You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/2993.d99ba66f.async.js

382 lines
3.4 MiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

!(function(){var mS=Object.defineProperty,vS=Object.defineProperties;var yS=Object.getOwnPropertyDescriptors;var fv=Object.getOwnPropertySymbols;var N1=Object.prototype.hasOwnProperty,R1=Object.prototype.propertyIsEnumerable;var I1=Math.pow,k1=(Ie,Z,b)=>Z in Ie?mS(Ie,Z,{enumerable:!0,configurable:!0,writable:!0,value:b}):Ie[Z]=b,ls=(Ie,Z)=>{for(var b in Z||(Z={}))N1.call(Z,b)&&k1(Ie,b,Z[b]);if(fv)for(var b of fv(Z))R1.call(Z,b)&&k1(Ie,b,Z[b]);return Ie},Vh=(Ie,Z)=>vS(Ie,yS(Z));var o0=(Ie,Z)=>{var b={};for(var B in Ie)N1.call(Ie,B)&&Z.indexOf(B)<0&&(b[B]=Ie[B]);if(Ie!=null&&fv)for(var B of fv(Ie))Z.indexOf(B)<0&&R1.call(Ie,B)&&(b[B]=Ie[B]);return b};var O1=(Ie,Z,b)=>new Promise((B,Y)=>{var s=u=>{try{I(b.next(u))}catch(d){Y(d)}},E=u=>{try{I(b.throw(u))}catch(d){Y(d)}},I=u=>u.done?B(u.value):Promise.resolve(u.value).then(s,E);I((b=b.apply(Ie,Z)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[2993],{45420:function(Ie,Z,b){"use strict";b.d(Z,{Z:function(){return ct}});var B=b(1413),Y=b(87462),s=b(71002),E=b(97685),I=b(45987),u=b(67294),d=b.t(u,2),g=b(73935),y=b(98924),S=b(80334),v=b(42550),c=u.createContext(null),h=c,m=b(74902),x=b(8410),T=[];function _(St,_t){var At=u.useState(function(){if(!(0,y.Z)())return null;var Gn=document.createElement("div");return Gn}),ht=(0,E.Z)(At,1),wt=ht[0],jt=u.useRef(!1),st=u.useContext(h),ge=u.useState(T),on=(0,E.Z)(ge,2),mn=on[0],Mt=on[1],On=st||(jt.current?void 0:function(Gn){Mt(function(sn){var xt=[Gn].concat((0,m.Z)(sn));return xt})});function Vn(){wt.parentElement||document.body.appendChild(wt),jt.current=!0}function Fn(){var Gn;(Gn=wt.parentElement)===null||Gn===void 0||Gn.removeChild(wt),jt.current=!1}return(0,x.Z)(function(){return St?st?st(Vn):Vn():Fn(),Fn},[St]),(0,x.Z)(function(){mn.length&&(mn.forEach(function(Gn){return Gn()}),Mt(T))},[mn]),[wt,On]}var R=b(48981),A=b(74204);function N(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var L="rc-util-locker-".concat(Date.now()),M=0;function F(St){var _t=!!St,At=u.useState(function(){return M+=1,"".concat(L,"_").concat(M)}),ht=(0,E.Z)(At,1),wt=ht[0];(0,x.Z)(function(){if(_t){var jt=(0,A.o)(document.body).width,st=N();(0,R.hq)(`
html body {
overflow-y: hidden;
`.concat(st?"width: calc(100% - ".concat(jt,"px);"):"",`
}`),wt)}else(0,R.jL)(wt);return function(){(0,R.jL)(wt)}},[_t,wt])}var H=!1;function P(St){return typeof St=="boolean"&&(H=St),H}var V=function(_t){return _t===!1?!1:!(0,y.Z)()||!_t?null:typeof _t=="string"?document.querySelector(_t):typeof _t=="function"?_t():_t},G=u.forwardRef(function(St,_t){var At=St.open,ht=St.autoLock,wt=St.getContainer,jt=St.debug,st=St.autoDestroy,ge=st===void 0?!0:st,on=St.children,mn=u.useState(At),Mt=(0,E.Z)(mn,2),On=Mt[0],Vn=Mt[1],Fn=On||At;u.useEffect(function(){(ge||At)&&Vn(At)},[At,ge]);var Gn=u.useState(function(){return V(wt)}),sn=(0,E.Z)(Gn,2),xt=sn[0],gr=sn[1];u.useEffect(function(){var ir=V(wt);gr(ir!=null?ir:null)});var Pr=_(Fn&&!xt,jt),tr=(0,E.Z)(Pr,2),ii=tr[0],Ar=tr[1],Kt=xt!=null?xt:ii;F(ht&&At&&(0,y.Z)()&&(Kt===ii||Kt===document.body));var ye=null;if(on&&(0,v.Yr)(on)&&_t){var Vt=on;ye=Vt.ref}var rn=(0,v.x1)(ye,_t);if(!Fn||!(0,y.Z)()||xt===void 0)return null;var Xn=Kt===!1||P(),Zn=on;return _t&&(Zn=u.cloneElement(on,{ref:rn})),u.createElement(h.Provider,{value:Ar},Xn?Zn:(0,g.createPortal)(Zn,Kt))}),Q=G,ne=Q,ue=b(98280),ae=b(94184),he=b.n(ae),ce=b(21770);function we(St){return St!==null&&(0,s.Z)(St)==="object"}function me(St,_t,At){if(St===!1||_t===!1&&(!we(St)||!St.closeIcon))return null;var ht=typeof _t!="boolean"?_t:void 0;if(we(St)){var wt;return(0,B.Z)((0,B.Z)({},St),{},{closeIcon:(wt=St.closeIcon)!==null&&wt!==void 0?wt:ht})}return At||St||_t?{closeIcon:ht}:"empty"}function Le(St,_t,At,ht){return u.useMemo(function(){var wt=me(St,_t,!1),jt=me(At,ht,!0);return wt!=="empty"?wt:jt},[At,ht,St,_t])}var ee=b(66680);function se(St){var _t=window.innerWidth||document.documentElement.clientWidth,At=window.innerHeight||document.documentElement.clientHeight,ht=St.getBoundingClientRect(),wt=ht.top,jt=ht.right,st=ht.bottom,ge=ht.left;return wt>=0&&ge>=0&&jt<=_t&&st<=At}function le(St,_t,At){var ht;return(ht=At!=null?At:_t)!==null&&ht!==void 0?ht:St===null?"center":"bottom"}function ke(St){return typeof St=="number"&&!Number.isNaN(St)}function De(St,_t,At,ht){var wt=(0,u.useState)(void 0),jt=(0,E.Z)(wt,2),st=jt[0],ge=jt[1];(0,x.Z)(function(){var sn=typeof St=="function"?St():St;ge(sn||null)});var on=(0,u.useState)(null),mn=(0,E.Z)(on,2),Mt=mn[0],On=mn[1],Vn=(0,ee.Z)(function(){if(st){!se(st)&&_t&&st.scrollIntoView(ht);var sn=st.getBoundingClientRect(),xt=sn.left,gr=sn.top,Pr=sn.width,tr=sn.height,ii={left:xt,top:gr,width:Pr,height:tr,radius:0};On(function(Ar){return JSON.stringify(Ar)!==JSON.stringify(ii)?ii:Ar})}else On(null)}),Fn=function(xt){var gr;return(gr=Array.isArray(At==null?void 0:At.offset)?At==null?void 0:At.offset[xt]:At==null?void 0:At.offset)!==null&&gr!==void 0?gr:6};(0,x.Z)(function(){return Vn(),window.addEventListener("resize",Vn),function(){window.removeEventListener("resize",Vn)}},[st,_t,Vn]);var Gn=(0,u.useMemo)(function(){if(!Mt)return Mt;var sn=Fn(0),xt=Fn(1),gr=ke(At==null?void 0:At.radius)?At==null?void 0:At.radius:2;return{left:Mt.left-sn,top:Mt.top-xt,width:Mt.width+sn*2,height:Mt.height+xt*2,radius:gr}},[Mt,At]);return[Gn,st]}function Be(){var St=(0,B.Z)({},d);return St.useId}var He=0;function Fe(){}function Je(St){var _t=u.useState("ssr-id"),At=(0,E.Z)(_t,2),ht=At[0],wt=At[1],jt=Be(),st=jt==null?void 0:jt();return u.useEffect(function(){if(!jt){var ge=He;He+=1,wt("rc_unique_".concat(ge))}},[]),St||st||ht}var Me={fill:"transparent",pointerEvents:"auto"},lt=function(_t){var At=_t.prefixCls,ht=_t.rootClassName,wt=_t.pos,jt=_t.showMask,st=_t.style,ge=st===void 0?{}:st,on=_t.fill,mn=on===void 0?"rgba(0,0,0,0.5)":on,Mt=_t.open,On=_t.animated,Vn=_t.zIndex,Fn=_t.disabledInteraction,Gn=Je(),sn="".concat(At,"-mask-").concat(Gn),xt=(0,s.Z)(On)==="object"?On==null?void 0:On.placeholder:On,gr=typeof navigator!="undefined"&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Pr=gr?{width:"100%",height:"100%"}:{width:"100vw",height:"100vh"};return u.createElement(ne,{open:Mt,autoLock:!0},u.createElement("div",{className:he()("".concat(At,"-mask"),ht),style:(0,B.Z)({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:Vn,pointerEvents:wt&&!Fn?"none":"auto"},ge)},jt?u.createElement("svg",{style:{width:"100%",height:"100%"}},u.createElement("defs",null,u.createElement("mask",{id:sn},u.createElement("rect",(0,Y.Z)({x:"0",y:"0"},Pr,{fill:"white"})),wt&&u.createElement("rect",{x:wt.left,y:wt.top,rx:wt.radius,width:wt.width,height:wt.height,fill:"black",className:xt?"".concat(At,"-placeholder-animated"):""}))),u.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:mn,mask:"url(#".concat(sn,")")}),wt&&u.createElement(u.Fragment,null,u.createElement("rect",(0,Y.Z)({},Me,{x:"0",y:"0",width:"100%",height:wt.top})),u.createElement("rect",(0,Y.Z)({},Me,{x:"0",y:"0",width:wt.left,height:"100%"})),u.createElement("rect",(0,Y.Z)({},Me,{x:"0",y:wt.top+wt.height,width:"100%",height:"calc(100vh - ".concat(wt.top+wt.height,"px)")})),u.createElement("rect",(0,Y.Z)({},Me,{x:wt.left+wt.width,y:"0",width:"calc(100vw - ".concat(wt.left+wt.width,"px)"),height:"100%"})))):null))},Re=lt,Oe={adjustX:1,adjustY:1},pe=[0,0],fe={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function z(){var St=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,_t={};return Object.keys(fe).forEach(function(At){_t[At]=(0,B.Z)((0,B.Z)({},fe[At]),{},{autoArrow:St,targetOffset:pe})}),_t}var J=z(),be=b(64217);function _e(St){var _t,At=St.prefixCls,ht=St.current,wt=St.total,jt=St.title,st=St.description,ge=St.onClose,on=St.onPrev,mn=St.onNext,Mt=St.onFinish,On=St.className,Vn=St.closable,Fn=(0,be.Z)(Vn||{},!0),Gn=(_t=Vn==null?void 0:Vn.closeIcon)!==null&&_t!==void 0?_t:u.createElement("span",{className:"".concat(At,"-close-x")},"\xD7"),sn=!!Vn;return u.createElement("div",{className:he()("".concat(At,"-content"),On)},u.createElement("div",{className:"".concat(At,"-inner")},sn&&u.createElement("button",(0,Y.Z)({type:"button",onClick:ge,"aria-label":"Close"},Fn,{className:"".concat(At,"-close")}),Gn),u.createElement("div",{className:"".concat(At,"-header")},u.createElement("div",{className:"".concat(At,"-title")},jt)),u.createElement("div",{className:"".concat(At,"-description")},st),u.createElement("div",{className:"".concat(At,"-footer")},u.createElement("div",{className:"".concat(At,"-sliders")},wt>1?(0,m.Z)(Array.from({length:wt}).keys()).map(function(xt,gr){return u.createElement("span",{key:xt,className:gr===ht?"active":""})}):null),u.createElement("div",{className:"".concat(At,"-buttons")},ht!==0?u.createElement("button",{className:"".concat(At,"-prev-btn"),onClick:on},"Prev"):null,ht===wt-1?u.createElement("button",{className:"".concat(At,"-finish-btn"),onClick:Mt},"Finish"):u.createElement("button",{className:"".concat(At,"-next-btn"),onClick:mn},"Next")))))}var oe=function(_t){var At=_t.current,ht=_t.renderPanel;return u.createElement(u.Fragment,null,typeof ht=="function"?ht(_t,At):u.createElement(_e,_t))},ie=oe,ve=["prefixCls","steps","defaultCurrent","current","onChange","onClose","onFinish","open","mask","arrow","rootClassName","placement","renderPanel","gap","animated","scrollIntoViewOptions","zIndex","closeIcon","closable","builtinPlacements","disabledInteraction"],Ne={left:"50%",top:"50%",width:1,height:1},ze={block:"center",inline:"center"},Ve=function(_t){var At=_t.prefixCls,ht=At===void 0?"rc-tour":At,wt=_t.steps,jt=wt===void 0?[]:wt,st=_t.defaultCurrent,ge=_t.current,on=_t.onChange,mn=_t.onClose,Mt=_t.onFinish,On=_t.open,Vn=_t.mask,Fn=Vn===void 0?!0:Vn,Gn=_t.arrow,sn=Gn===void 0?!0:Gn,xt=_t.rootClassName,gr=_t.placement,Pr=_t.renderPanel,tr=_t.gap,ii=_t.animated,Ar=_t.scrollIntoViewOptions,Kt=Ar===void 0?ze:Ar,ye=_t.zIndex,Vt=ye===void 0?1001:ye,rn=_t.closeIcon,Xn=_t.closable,Zn=_t.builtinPlacements,ir=_t.disabledInteraction,Dr=(0,I.Z)(_t,ve),ai=u.useRef(),li=(0,ce.Z)(0,{value:ge,defaultValue:st}),Zr=(0,E.Z)(li,2),Tn=Zr[0],kn=Zr[1],Vr=(0,ce.Z)(void 0,{value:On,postState:function(_i){return Tn<0||Tn>=jt.length?!1:_i!=null?_i:!0}}),di=(0,E.Z)(Vr,2),nr=di[0],vn=di[1],Jn=u.useState(nr),bi=(0,E.Z)(Jn,2),gi=bi[0],mi=bi[1],Lt=u.useRef(nr);(0,x.Z)(function(){nr&&(Lt.current||kn(0),mi(!0)),Lt.current=nr},[nr]);var Yn=jt[Tn]||{},hr=Yn.target,zi=Yn.placement,bn=Yn.style,or=Yn.arrow,Ei=Yn.className,Co=Yn.mask,ki=Yn.scrollIntoViewOptions,yr=ki===void 0?ze:ki,Mr=Yn.closeIcon,Fr=Yn.closable,Di=Le(Fr,Mr,Xn,rn),so=nr&&(Co!=null?Co:Fn),Gi=yr!=null?yr:Kt,sr=De(hr,On,tr,Gi),ys=(0,E.Z)(sr,2),Wo=ys[0],Ro=ys[1],hn=le(Ro,gr,zi),us=Ro?typeof or=="undefined"?sn:or:!1,cs=(0,s.Z)(us)==="object"?us.pointAtCenter:!1;(0,x.Z)(function(){var tn;(tn=ai.current)===null||tn===void 0||tn.forceAlign()},[cs,Tn]);var yo=function(_i){kn(_i),on==null||on(_i)},Bs=(0,u.useMemo)(function(){return Zn?typeof Zn=="function"?Zn({arrowPointAtCenter:cs}):Zn:z(cs)},[Zn,cs]);if(Ro===void 0||!gi)return null;var Yi=function(){vn(!1),mn==null||mn(Tn)},eo=function(){return u.createElement(ie,(0,Y.Z)({arrow:us,key:"content",prefixCls:ht,total:jt.length,renderPanel:Pr,onPrev:function(){yo(Tn-1)},onNext:function(){yo(Tn+1)},onClose:Yi,current:Tn,onFinish:function(){Yi(),Mt==null||Mt()}},jt[Tn],{closable:Di}))},Oi=typeof so=="boolean"?so:!!so,hi=typeof so=="boolean"?void 0:so,Ni=function(_i){return _i||Ro||document.body};return u.createElement(u.Fragment,null,u.createElement(Re,{zIndex:Vt,prefixCls:ht,pos:Wo,showMask:Oi,style:hi==null?void 0:hi.style,fill:hi==null?void 0:hi.color,open:nr,animated:ii,rootClassName:xt,disabledInteraction:ir}),u.createElement(ue.Z,(0,Y.Z)({},Dr,{builtinPlacements:Bs,ref:ai,popupStyle:bn,popupPlacement:hn,popupVisible:nr,popupClassName:he()(xt,Ei),prefixCls:ht,popup:eo,forceRender:!1,destroyPopupOnHide:!0,zIndex:Vt,getTriggerDOMNode:Ni,arrow:!!us}),u.createElement(ne,{open:nr,autoLock:!0},u.createElement("div",{className:he()(xt,"".concat(ht,"-target-placeholder")),style:(0,B.Z)((0,B.Z)({},Wo||Ne),{},{position:"fixed",pointerEvents:"none"})}))))},yt=Ve,ct=yt},71749:function(){"use strict"},30483:function(){"use strict"},56448:function(Ie){(function(Z){(function(b){if(1)Ie.exports=b();else var B})(function(){var b,B,Y;return function(){function s(E,I,u){function d(S,v){if(!I[S]){if(!E[S]){var c=void 0;if(!v&&c)return require(S,!0);if(g)return g(S,!0);var h=new Error("Cannot find module '"+S+"'");throw h.code="MODULE_NOT_FOUND",h}var m=I[S]={exports:{}};E[S][0].call(m.exports,function(x){var T=E[S][1][x];return d(T||x)},m,m.exports,s,E,I,u)}return I[S].exports}for(var g=void 0,y=0;y<u.length;y++)d(u[y]);return d}return s}()({1:[function(s,E,I){"use strict";var u=s("./browser/client");u.Buffer=s("buffer").Buffer,u.urllib=s("../shims/xhr"),u.version=s("./browser/version").version,E.exports=u},{"../shims/xhr":475,"./browser/client":3,"./browser/version":6,buffer:90}],2:[function(s,E,I){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),d=u(s("@babel/runtime/regenerator")),g=u(s("@babel/runtime/helpers/asyncToGenerator"));s("core-js/modules/es.object.to-string.js"),s("core-js/modules/web.dom-collections.for-each.js"),s("core-js/modules/es.object.keys.js"),s("core-js/modules/es.array.slice.js");var y=s("assert"),S=s("../common/utils/checkBucketName"),v=S.checkBucketName,c=I;function h(x){return Array.isArray?Array.isArray(x):Object.prototype.toString.call(x)==="[object Array]"}function m(x){return x?h(x)?x:[x]:[]}c.useBucket=function(T){return v(T),this.options.bucket=T,this},c.setBucket=function(T){return v(T),this.options.bucket=T,this},c.getBucket=function(){return this.options.bucket},c.deleteBucket=function(){var x=(0,g.default)(d.default.mark(function _(R,A){var N,L;return d.default.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return N=this._bucketRequestParams("DELETE",R,"",A),F.next=3,this.request(N);case 3:if(L=F.sent,!(L.status===200||L.status===204)){F.next=6;break}return F.abrupt("return",{res:L.res});case 6:return F.next=8,this.requestError(L);case 8:throw F.sent;case 9:case"end":return F.stop()}},_,this)}));function T(_,R){return x.apply(this,arguments)}return T}(),c.putBucketACL=function(){var x=(0,g.default)(d.default.mark(function _(R,A,N){var L,M;return d.default.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return L=this._bucketRequestParams("PUT",R,"acl",N),L.headers={"x-oss-acl":A},L.successStatuses=[200],H.next=5,this.request(L);case 5:return M=H.sent,H.abrupt("return",{bucket:M.headers.location&&M.headers.location.substring(1)||null,res:M.res});case 7:case"end":return H.stop()}},_,this)}));function T(_,R,A){return x.apply(this,arguments)}return T}(),c.getBucketACL=function(){var x=(0,g.default)(d.default.mark(function _(R,A){var N,L;return d.default.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return N=this._bucketRequestParams("GET",R,"acl",A),N.successStatuses=[200],N.xmlResponse=!0,F.next=5,this.request(N);case 5:return L=F.sent,F.abrupt("return",{acl:L.data.AccessControlList.Grant,owner:{id:L.data.Owner.ID,displayName:L.data.Owner.DisplayName},res:L.res});case 7:case"end":return F.stop()}},_,this)}));function T(_,R){return x.apply(this,arguments)}return T}(),c.putBucketLogging=function(){var x=(0,g.default)(d.default.mark(function _(R,A,N){var L,M,F;return d.default.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return L=this._bucketRequestParams("PUT",R,"logging",N),M=`<?xml version="1.0" encoding="UTF-8"?>
<BucketLoggingStatus>
<LoggingEnabled>
<TargetBucket>`.concat(R,`</TargetBucket>
`),A&&(M+="<TargetPrefix>".concat(A,`</TargetPrefix>
`)),M+=`</LoggingEnabled>
</BucketLoggingStatus>`,L.content=M,L.mime="xml",L.successStatuses=[200],P.next=9,this.request(L);case 9:return F=P.sent,P.abrupt("return",{res:F.res});case 11:case"end":return P.stop()}},_,this)}));function T(_,R,A){return x.apply(this,arguments)}return T}(),c.getBucketLogging=function(){var x=(0,g.default)(d.default.mark(function _(R,A){var N,L,M;return d.default.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return N=this._bucketRequestParams("GET",R,"logging",A),N.successStatuses=[200],N.xmlResponse=!0,H.next=5,this.request(N);case 5:return L=H.sent,M=L.data.LoggingEnabled,H.abrupt("return",{enable:!!M,prefix:M&&M.TargetPrefix||null,res:L.res});case 8:case"end":return H.stop()}},_,this)}));function T(_,R){return x.apply(this,arguments)}return T}(),c.deleteBucketLogging=function(){var x=(0,g.default)(d.default.mark(function _(R,A){var N,L;return d.default.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return N=this._bucketRequestParams("DELETE",R,"logging",A),N.successStatuses=[204,200],F.next=4,this.request(N);case 4:return L=F.sent,F.abrupt("return",{res:L.res});case 6:case"end":return F.stop()}},_,this)}));function T(_,R){return x.apply(this,arguments)}return T}(),c.putBucketCORS=function(){var x=(0,g.default)(d.default.mark(function _(R,A,N){var L,M,F,H,P,V,G,Q,ne,ue;return d.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:for(A=A||[],y(A.length,"rules is required"),A.forEach(function(ce){y(ce.allowedOrigin,"allowedOrigin is required"),y(ce.allowedMethod,"allowedMethod is required")}),L=this._bucketRequestParams("PUT",R,"cors",N),M=`<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration>`,F=function(we){M+="<AllowedOrigin>".concat(we,"</AllowedOrigin>")},H=function(we){M+="<AllowedMethod>".concat(we,"</AllowedMethod>")},P=function(we){M+="<AllowedHeader>".concat(we,"</AllowedHeader>")},V=function(we){M+="<ExposeHeader>".concat(we,"</ExposeHeader>")},G=0,Q=A.length;G<Q;G++)ne=A[G],M+="<CORSRule>",m(ne.allowedOrigin).forEach(F),m(ne.allowedMethod).forEach(H),m(ne.allowedHeader).forEach(P),m(ne.exposeHeader).forEach(V),ne.maxAgeSeconds&&(M+="<MaxAgeSeconds>".concat(ne.maxAgeSeconds,"</MaxAgeSeconds>")),M+="</CORSRule>";return M+="</CORSConfiguration>",L.content=M,L.mime="xml",L.successStatuses=[200],he.next=16,this.request(L);case 16:return ue=he.sent,he.abrupt("return",{res:ue.res});case 18:case"end":return he.stop()}},_,this)}));function T(_,R,A){return x.apply(this,arguments)}return T}(),c.getBucketCORS=function(){var x=(0,g.default)(d.default.mark(function _(R,A){var N,L,M,F;return d.default.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return N=this._bucketRequestParams("GET",R,"cors",A),N.successStatuses=[200],N.xmlResponse=!0,P.next=5,this.request(N);case 5:return L=P.sent,M=[],L.data&&L.data.CORSRule&&(F=L.data.CORSRule,h(F)||(F=[F]),F.forEach(function(V){var G={};Object.keys(V).forEach(function(Q){G[Q.slice(0,1).toLowerCase()+Q.slice(1,Q.length)]=V[Q]}),M.push(G)})),P.abrupt("return",{rules:M,res:L.res});case 9:case"end":return P.stop()}},_,this)}));function T(_,R){return x.apply(this,arguments)}return T}(),c.deleteBucketCORS=function(){var x=(0,g.default)(d.default.mark(function _(R,A){var N,L;return d.default.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return N=this._bucketRequestParams("DELETE",R,"cors",A),N.successStatuses=[204],F.next=4,this.request(N);case 4:return L=F.sent,F.abrupt("return",{res:L.res});case 6:case"end":return F.stop()}},_,this)}));function T(_,R){return x.apply(this,arguments)}return T}(),c.putBucketReferer=function(){var x=(0,g.default)(d.default.mark(function _(R,A,N,L){var M,F,H,P;return d.default.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:if(M=this._bucketRequestParams("PUT",R,"referer",L),F=`<?xml version="1.0" encoding="UTF-8"?>
<RefererConfiguration>
`,F+=" <AllowEmptyReferer>".concat(A?"true":"false",`</AllowEmptyReferer>
`),N&&N.length>0){for(F+=` <RefererList>
`,H=0;H<N.length;H++)F+=" <Referer>".concat(N[H],`</Referer>
`);F+=` </RefererList>
`}else F+=` <RefererList />
`;return F+="</RefererConfiguration>",M.content=F,M.mime="xml",M.successStatuses=[200],G.next=10,this.request(M);case 10:return P=G.sent,G.abrupt("return",{res:P.res});case 12:case"end":return G.stop()}},_,this)}));function T(_,R,A,N){return x.apply(this,arguments)}return T}(),c.getBucketReferer=function(){var x=(0,g.default)(d.default.mark(function _(R,A){var N,L,M;return d.default.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return N=this._bucketRequestParams("GET",R,"referer",A),N.successStatuses=[200],N.xmlResponse=!0,H.next=5,this.request(N);case 5:return L=H.sent,M=L.data.RefererList.Referer||null,M&&(h(M)||(M=[M])),H.abrupt("return",{allowEmpty:L.data.AllowEmptyReferer==="true",referers:M,res:L.res});case 9:case"end":return H.stop()}},_,this)}));function T(_,R){return x.apply(this,arguments)}return T}(),c.deleteBucketReferer=function(){var x=(0,g.default)(d.default.mark(function _(R,A){return d.default.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,this.putBucketReferer(R,!0,null,A);case 2:return L.abrupt("return",L.sent);case 3:case"end":return L.stop()}},_,this)}));function T(_,R){return x.apply(this,arguments)}return T}(),c._bucketRequestParams=function(T,_,R,A){return{method:T,bucket:_,subres:R,timeout:A&&A.timeout,ctx:A&&A.ctx}}},{"../common/utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,assert:82,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],3:[function(s,E,I){(function(u,d){(function(){"use strict";var g=s("@babel/runtime/helpers/interopRequireDefault"),y=g(s("@babel/runtime/regenerator")),S=g(s("@babel/runtime/helpers/asyncToGenerator"));s("core-js/modules/es.function.name.js"),s("core-js/modules/es.regexp.exec.js"),s("core-js/modules/es.string.split.js"),s("core-js/modules/es.object.assign.js"),s("core-js/modules/es.array.includes.js"),s("core-js/modules/es.string.replace.js"),s("core-js/modules/es.array.concat.js"),s("core-js/modules/es.symbol.js"),s("core-js/modules/es.symbol.description.js"),s("core-js/modules/es.array.slice.js"),s("core-js/modules/es.object.to-string.js"),s("core-js/modules/es.promise.js"),s("core-js/modules/es.regexp.to-string.js");var v=s("debug")("ali-oss"),c=s("xml2js"),h=s("agentkeepalive"),m=s("merge-descriptors"),x=s("platform"),T=s("utility"),_=s("urllib"),R=s("./version"),A=s("bowser"),N=s("../common/signUtils"),L=s("../common/client/initOptions"),M=s("../common/utils/createRequest"),F=M.createRequest,H=s("../common/utils/encoder"),P=H.encoder,V=s("../common/client/getReqUrl"),G=V.getReqUrl,Q=s("../common/utils/setSTSToken"),ne=Q.setSTSToken,ue=s("../common/utils/retry"),ae=ue.retry,he=s("../common/utils/isFunction"),ce=he.isFunction,we=new h;function me(){var De=x.name,Be=x.version;De&&De.toLowerCase&&De.toLowerCase()==="ie"&&Be.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function Le(){return location&&location.protocol==="https:"}function ee(De,Be){if(me(),!(this instanceof ee))return new ee(De,Be);De&&De.inited?this.options=De:this.options=ee.initOptions(De),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=_,this.agent=this.options.agent||we),this.ctx=Be,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}E.exports=ee,ee.initOptions=function(Be){Be.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var He=Object.assign({secure:Le(),useFetch:!1},Be);return L(He)};var se=ee.prototype;se.debug=v,m(se,s("./object")),m(se,s("./bucket")),m(se,s("../common/bucket/getBucketWebsite")),m(se,s("../common/bucket/putBucketWebsite")),m(se,s("../common/bucket/deleteBucketWebsite")),m(se,s("../common/bucket/getBucketLifecycle")),m(se,s("../common/bucket/putBucketLifecycle")),m(se,s("../common/bucket/deleteBucketLifecycle")),m(se,s("../common/bucket/putBucketVersioning")),m(se,s("../common/bucket/getBucketVersioning")),m(se,s("../common/bucket/getBucketInventory")),m(se,s("../common/bucket/deleteBucketInventory")),m(se,s("../common/bucket/listBucketInventory")),m(se,s("../common/bucket/putBucketInventory")),m(se,s("../common/bucket/abortBucketWorm")),m(se,s("../common/bucket/completeBucketWorm")),m(se,s("../common/bucket/extendBucketWorm")),m(se,s("../common/bucket/getBucketWorm")),m(se,s("../common/bucket/initiateBucketWorm")),m(se,s("./managed-upload")),m(se,s("../common/multipart-copy")),m(se,s("../common/multipart")),m(se,s("../common/parallel")),se.signature=function(Be){return this.debug("authorization stringToSign: %s",Be,"info"),N.computeSignature(this.options.accessKeySecret,Be,this.options.headerEncoding)},se._getReqUrl=G,se.authorization=function(Be,He,Fe,Je){var Me=N.buildCanonicalString(Be.toUpperCase(),He,{headers:Je,parameters:Fe});return N.authorization(this.options.accessKeyId,this.options.accessKeySecret,Me,this.options.headerEncoding)},se.request=function(){var De=(0,S.default)(y.default.mark(function Be(He){var Fe=this;return y.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:if(!this.options.retryMax){Me.next=6;break}return Me.next=3,ae(le.bind(this),this.options.retryMax,{errorHandler:function(Re){var Oe=function(fe){if(He.stream)return!1;var z=[-1,-2].includes(fe.status),J=Fe.options.requestErrorRetryHandle||function(){return!0};return z&&J(fe)};return!!Oe(Re)}})(He);case 3:return Me.abrupt("return",Me.sent);case 6:return Me.abrupt("return",le.call(this,He));case 7:case"end":return Me.stop()}},Be,this)}));return function(Be){return De.apply(this,arguments)}}();function le(De){return ke.apply(this,arguments)}function ke(){return ke=(0,S.default)(y.default.mark(function De(Be){var He,Fe,Je,Me,lt,Re;return y.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:if(!(this.options.stsToken&&ce(this.options.refreshSTSToken))){pe.next=3;break}return pe.next=3,ne.call(this);case 3:return He=F.call(this,Be),this.options.useFetch||(He.params.mode="disable-fetch"),Me=!!Be.stream,pe.prev=6,pe.next=9,this.urllib.request(He.url,He.params);case 9:Fe=pe.sent,this.debug("response %s %s, got %s, headers: %j",Be.method,He.url,Fe.status,Fe.headers,"info"),pe.next=16;break;case 13:pe.prev=13,pe.t0=pe.catch(6),Je=pe.t0;case 16:if(!(Fe&&Be.successStatuses&&Be.successStatuses.indexOf(Fe.status)===-1)){pe.next=28;break}return pe.next=19,this.requestError(Fe);case 19:if(lt=pe.sent,!(lt.code==="RequestTimeTooSkewed"&&!Me)){pe.next=25;break}return this.options.amendTimeSkewed=+new Date(lt.serverTime)-new Date,pe.next=24,this.request(Be);case 24:return pe.abrupt("return",pe.sent);case 25:lt.params=Be,pe.next=32;break;case 28:if(!Je){pe.next=32;break}return pe.next=31,this.requestError(Je);case 31:lt=pe.sent;case 32:if(!lt){pe.next=34;break}throw lt;case 34:if(!Be.xmlResponse){pe.next=39;break}return pe.next=37,this.parseXML(Fe.data);case 37:Re=pe.sent,Fe.data=Re;case 39:return pe.abrupt("return",Fe);case 40:case"end":return pe.stop()}},De,this,[[6,13]])})),ke.apply(this,arguments)}se._getResource=function(Be){var He="/";return Be.bucket&&(He+="".concat(Be.bucket,"/")),Be.object&&(He+=P(Be.object,this.options.headerEncoding)),He},se._escape=function(Be){return T.encodeURIComponent(Be).replace(/%2F/g,"/")},se._getUserAgent=function(){var Be=d&&d.browser?"js":"nodejs",He="aliyun-sdk-".concat(Be,"/").concat(R.version),Fe=x.description;return!Fe&&d&&(Fe="Node.js ".concat(d.version.slice(1)," on ").concat(d.platform," ").concat(d.arch)),this._checkUserAgent("".concat(He," ").concat(Fe))},se._checkUserAgent=function(Be){var He=Be.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return He},se.checkBrowserAndVersion=function(Be,He){return A.name===Be&&A.version.split(".")[0]===He},se.parseXML=function(Be){return new Promise(function(He,Fe){u.isBuffer(Be)&&(Be=Be.toString()),c.parseString(Be,{explicitRoot:!1,explicitArray:!1},function(Je,Me){Je?Fe(Je):He(Me)})})},se.requestError=function(){var De=(0,S.default)(y.default.mark(function He(Fe){var Je,Me,lt,Re;return y.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:if(Je=null,!(!Fe.data||!Fe.data.length)){pe.next=5;break}Fe.status===-1||Fe.status===-2?(Je=new Error(Fe.message),Je.name=Fe.name,Je.status=Fe.status,Je.code=Fe.name):(Fe.status===404?(Je=new Error("Object not exists"),Je.name="NoSuchKeyError",Je.status=404,Je.code="NoSuchKey"):Fe.status===412?(Je=new Error("Pre condition failed"),Je.name="PreconditionFailedError",Je.status=412,Je.code="PreconditionFailed"):(Je=new Error("Unknow error, status: ".concat(Fe.status)),Je.name="UnknownError",Je.status=Fe.status),Je.requestId=Fe.headers["x-oss-request-id"],Je.host=""),pe.next=32;break;case 5:return Me=String(Fe.data),this.debug("request response error data: %s",Me,"error"),pe.prev=7,pe.next=10,this.parseXML(Me);case 10:if(pe.t0=pe.sent,pe.t0){pe.next=13;break}pe.t0={};case 13:lt=pe.t0,pe.next=23;break;case 16:return pe.prev=16,pe.t1=pe.catch(7),this.debug(Me,"error"),pe.t1.message+=`
raw xml: `.concat(Me),pe.t1.status=Fe.status,pe.t1.requestId=Fe.headers["x-oss-request-id"],pe.abrupt("return",pe.t1);case 23:Re=lt.Message||"unknow request error, status: ".concat(Fe.status),lt.Condition&&(Re+=" (condition: ".concat(lt.Condition,")")),Je=new Error(Re),Je.name=lt.Code?"".concat(lt.Code,"Error"):"UnknownError",Je.status=Fe.status,Je.code=lt.Code,Je.requestId=lt.RequestId,Je.hostId=lt.HostId,Je.serverTime=lt.ServerTime;case 32:return this.debug("generate error %j",Je,"error"),pe.abrupt("return",Je);case 34:case"end":return pe.stop()}},He,this,[[7,16]])}));function Be(He){return De.apply(this,arguments)}return Be}()}).call(this)}).call(this,{isBuffer:s("../../node_modules/is-buffer/index.js")},s("_process"))},{"../../node_modules/is-buffer/index.js":366,"../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":49,"../common/signUtils":50,"../common/utils/createRequest":56,"../common/utils/encoder":59,"../common/utils/isFunction":68,"../common/utils/retry":74,"../common/utils/setSTSToken":76,"./bucket":2,"./managed-upload":4,"./object":5,"./version":6,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,agentkeepalive:81,bowser:88,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/es.string.split.js":307,"core-js/modules/es.symbol.description.js":310,"core-js/modules/es.symbol.js":313,debug:465,"merge-descriptors":372,platform:379,urllib:475,utility:474,xml2js:426}],4:[function(s,E,I){(function(u){(function(){"use strict";var d=s("@babel/runtime/helpers/interopRequireDefault"),g=d(s("@babel/runtime/regenerator"));s("core-js/modules/es.function.name.js"),s("core-js/modules/es.object.to-string.js"),s("core-js/modules/es.promise.js"),s("core-js/modules/es.array.from.js"),s("core-js/modules/es.string.iterator.js"),s("core-js/modules/es.array.map.js"),s("core-js/modules/es.array.filter.js"),s("core-js/modules/es.array.find.js"),s("core-js/modules/es.array.concat.js"),s("core-js/modules/es.regexp.to-string.js"),s("core-js/modules/es.array.slice.js"),s("core-js/modules/es.array.iterator.js"),s("core-js/modules/es.array-buffer.slice.js"),s("core-js/modules/es.typed-array.uint8-array.js"),s("core-js/modules/es.typed-array.copy-within.js"),s("core-js/modules/es.typed-array.every.js"),s("core-js/modules/es.typed-array.fill.js"),s("core-js/modules/es.typed-array.filter.js"),s("core-js/modules/es.typed-array.find.js"),s("core-js/modules/es.typed-array.find-index.js"),s("core-js/modules/es.typed-array.for-each.js"),s("core-js/modules/es.typed-array.includes.js"),s("core-js/modules/es.typed-array.index-of.js"),s("core-js/modules/es.typed-array.iterator.js"),s("core-js/modules/es.typed-array.join.js"),s("core-js/modules/es.typed-array.last-index-of.js"),s("core-js/modules/es.typed-array.map.js"),s("core-js/modules/es.typed-array.reduce.js"),s("core-js/modules/es.typed-array.reduce-right.js"),s("core-js/modules/es.typed-array.reverse.js"),s("core-js/modules/es.typed-array.set.js"),s("core-js/modules/es.typed-array.slice.js"),s("core-js/modules/es.typed-array.some.js"),s("core-js/modules/es.typed-array.sort.js"),s("core-js/modules/es.typed-array.subarray.js"),s("core-js/modules/es.typed-array.to-locale-string.js"),s("core-js/modules/es.typed-array.to-string.js");var y=d(s("@babel/runtime/helpers/asyncToGenerator")),S=s("util"),v=s("path"),c=s("mime"),h=s("copy-to"),m=s("../common/utils/isBlob"),x=m.isBlob,T=s("../common/utils/isFile"),_=T.isFile,R=s("../common/utils/isBuffer"),A=R.isBuffer,N=I;N.multipartUpload=function(){var P=(0,y.default)(g.default.mark(function G(Q,ne){var ue,ae,he,ce,we,me,Le,ee,se,le=arguments;return g.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(ue=le.length>2&&le[2]!==void 0?le[2]:{},this.resetCancelFlag(),ue.disabledMD5=ue.disabledMD5===void 0?!0:!!ue.disabledMD5,!(ue.checkpoint&&ue.checkpoint.uploadId)){De.next=8;break}return ne&&_(ne)&&(ue.checkpoint.file=ne),De.next=7,this._resumeMultipart(ue.checkpoint,ue);case 7:return De.abrupt("return",De.sent);case 8:return ae=102400,ue.mime||(_(ne)?ue.mime=c.getType(v.extname(ne.name)):x(ne)?ue.mime=ne.type:A(ne)?ue.mime="":ue.mime=c.getType(v.extname(ne))),ue.headers=ue.headers||{},this._convertMetaToHeaders(ue.meta,ue.headers),De.next=14,this._getFileSize(ne);case 14:if(he=De.sent,!(he<ae)){De.next=26;break}return ue.contentLength=he,De.next=19,this.put(Q,ne,ue);case 19:if(ce=De.sent,!(ue&&ue.progress)){De.next=23;break}return De.next=23,ue.progress(1);case 23:return we={res:ce.res,bucket:this.options.bucket,name:Q,etag:ce.res.headers.etag},(ue.headers&&ue.headers["x-oss-callback"]||ue.callback)&&(we.data=ce.data),De.abrupt("return",we);case 26:if(!(ue.partSize&&parseInt(ue.partSize,10)!==ue.partSize)){De.next=28;break}throw new Error("partSize must be int number");case 28:if(!(ue.partSize&&ue.partSize<ae)){De.next=30;break}throw new Error("partSize must not be smaller than ".concat(ae));case 30:return De.next=32,this.initMultipartUpload(Q,ue);case 32:if(me=De.sent,Le=me.uploadId,ee=this._getPartSize(he,ue.partSize),se={file:ne,name:Q,fileSize:he,partSize:ee,uploadId:Le,doneParts:[]},!(ue&&ue.progress)){De.next=39;break}return De.next=39,ue.progress(0,se,me.res);case 39:return De.next=41,this._resumeMultipart(se,ue);case 41:return De.abrupt("return",De.sent);case 42:case"end":return De.stop()}},G,this)}));function V(G,Q){return P.apply(this,arguments)}return V}(),N._resumeMultipart=function(){var P=(0,y.default)(g.default.mark(function G(Q,ne){var ue,ae,he,ce,we,me,Le,ee,se,le,ke,De,Be,He,Fe,Je,Me,lt,Re;return g.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:if(ue=this,!this.isCancel()){pe.next=3;break}throw this._makeCancelEvent();case 3:return ae=Q.file,he=Q.fileSize,ce=Q.partSize,we=Q.uploadId,me=Q.doneParts,Le=Q.name,ee=[],me.length>0&&h(me).to(ee),se=this._divideParts(he,ce),le=se.length,ke=!1,De=function(z,J){return new Promise(function(){var be=(0,y.default)(g.default.mark(function _e(oe,ie){var ve,Ne,ze,Ve,yt;return g.default.wrap(function(St){for(;;)switch(St.prev=St.next){case 0:if(St.prev=0,z.isCancel()){St.next=29;break}return ve=se[J-1],St.next=5,z._createBuffer(ae,ve.start,ve.end);case 5:return Ne=St.sent,ze={content:Ne,size:ve.end-ve.start},St.prev=7,St.next=10,z._uploadPart(Le,we,J,ze,ne);case 10:Ve=St.sent,St.next=18;break;case 13:if(St.prev=13,St.t0=St.catch(7),St.t0.status!==404){St.next=17;break}throw z._makeAbortEvent();case 17:throw St.t0;case 18:if(!(!z.isCancel()&&!ke)){St.next=26;break}if(Q.doneParts.push({number:J,etag:Ve.res.headers.etag}),!ne.progress){St.next=23;break}return St.next=23,ne.progress(me.length/(le+1),Q,Ve.res);case 23:oe({number:J,etag:Ve.res.headers.etag}),St.next=27;break;case 26:oe();case 27:St.next=30;break;case 29:oe();case 30:St.next=41;break;case 32:St.prev=32,St.t1=St.catch(0),yt=new Error,yt.name=St.t1.name,yt.message=St.t1.message,yt.stack=St.t1.stack,yt.partNum=J,h(St.t1).to(yt),ie(yt);case 41:case"end":return St.stop()}},_e,null,[[0,32],[7,13]])}));return function(_e,oe){return be.apply(this,arguments)}}())},Be=Array.from(new Array(le),function(fe,z){return z+1}),He=ee.map(function(fe){return fe.number}),Fe=Be.filter(function(fe){return He.indexOf(fe)<0}),Je=5,Me=ne.parallel||Je,pe.next=17,this._parallel(Fe,Me,function(fe){return new Promise(function(z,J){De(ue,fe).then(function(be){be&&ee.push(be),z()}).catch(function(be){J(be)})})});case 17:if(lt=pe.sent,ke=!0,Re=lt.find(function(fe){return fe.name==="abort"}),!Re){pe.next=22;break}throw Re;case 22:if(!this.isCancel()){pe.next=25;break}throw De=null,this._makeCancelEvent();case 25:if(!(lt&&lt.length>0)){pe.next=28;break}throw lt[0].message="Failed to upload some parts with error: ".concat(lt[0].toString()," part_num: ").concat(lt[0].partNum),lt[0];case 28:return pe.next=30,this.completeMultipartUpload(Le,we,ee,ne);case 30:return pe.abrupt("return",pe.sent);case 31:case"end":return pe.stop()}},G,this)}));function V(G,Q){return P.apply(this,arguments)}return V}(),N._getFileSize=function(){var P=(0,y.default)(g.default.mark(function G(Q){return g.default.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:if(!A(Q)){ue.next=4;break}return ue.abrupt("return",Q.length);case 4:if(!(x(Q)||_(Q))){ue.next=6;break}return ue.abrupt("return",Q.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return ue.stop()}},G)}));function V(G){return P.apply(this,arguments)}return V}();var L=s("stream"),M=L.Readable;function F(P,V){if(!(this instanceof F))return new F(P,V);M.call(this,V),this.file=P,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}S.inherits(F,M),F.prototype.readFileAndPush=function(V){if(this.fileBuffer)for(var G=!0;G&&this.fileBuffer&&this.start<this.fileBuffer.length;){var Q=this.start,ne=Q+V;ne=ne>this.fileBuffer.length?this.fileBuffer.length:ne,this.start=ne,G=this.push(this.fileBuffer.slice(Q,ne))}},F.prototype._read=function(V){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 G=16*1024;V=V||G;var Q=this;this.reader.onload=function(ue){Q.fileBuffer=u.from(new Uint8Array(ue.target.result)),Q.file=null,Q.readFileAndPush(V)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(V)};function H(P){return P.arrayBuffer?P.arrayBuffer():new Promise(function(V,G){var Q=new FileReader;Q.onload=function(ne){V(ne.target.result)},Q.onerror=function(ne){G(ne)},Q.readAsArrayBuffer(P)})}N._createBuffer=function(){var P=(0,y.default)(g.default.mark(function G(Q,ne,ue){var ae,he;return g.default.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:if(!(x(Q)||_(Q))){we.next=8;break}return ae=Q.slice(ne,ue),we.next=4,H(ae);case 4:return he=we.sent,we.abrupt("return",u.from(he));case 8:if(!A(Q)){we.next=12;break}return we.abrupt("return",Q.subarray(ne,ue));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return we.stop()}},G)}));function V(G,Q,ne){return P.apply(this,arguments)}return V}(),N._getPartSize=function(V,G){var Q=1e4,ne=1*1024*1024;G||(G=ne);var ue=Math.ceil(V/Q);return G<ue&&(G=ue,console.warn("partSize has been set to ".concat(G,", because the partSize you provided causes partNumber to be greater than 10,000"))),G},N._divideParts=function(V,G){for(var Q=Math.ceil(V/G),ne=[],ue=0;ue<Q;ue++){var ae=G*ue,he=Math.min(ae+G,V);ne.push({start:ae,end:he})}return ne}}).call(this)}).call(this,s("buffer").Buffer)},{"../common/utils/isBlob":64,"../common/utils/isBuffer":65,"../common/utils/isFile":67,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,buffer:90,"copy-to":94,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.map.js":280,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.iterator.js":303,"core-js/modules/es.typed-array.copy-within.js":315,"core-js/modules/es.typed-array.every.js":316,"core-js/modules/es.typed-array.fill.js":317,"core-js/modules/es.typed-array.filter.js":318,"core-js/modules/es.typed-array.find-index.js":319,"core-js/modules/es.typed-array.find.js":320,"core-js/modules/es.typed-array.for-each.js":321,"core-js/modules/es.typed-array.includes.js":322,"core-js/modules/es.typed-array.index-of.js":323,"core-js/modules/es.typed-array.iterator.js":324,"core-js/modules/es.typed-array.join.js":325,"core-js/modules/es.typed-array.last-index-of.js":326,"core-js/modules/es.typed-array.map.js":327,"core-js/modules/es.typed-array.reduce-right.js":328,"core-js/modules/es.typed-array.reduce.js":329,"core-js/modules/es.typed-array.reverse.js":330,"core-js/modules/es.typed-array.set.js":331,"core-js/modules/es.typed-array.slice.js":332,"core-js/modules/es.typed-array.some.js":333,"core-js/modules/es.typed-array.sort.js":334,"core-js/modules/es.typed-array.subarray.js":335,"core-js/modules/es.typed-array.to-locale-string.js":336,"core-js/modules/es.typed-array.to-string.js":337,"core-js/modules/es.typed-array.uint8-array.js":338,mime:374,path:378,stream:398,util:419}],5:[function(s,E,I){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault");s("core-js/modules/es.function.name.js"),s("core-js/modules/es.object.to-string.js"),s("core-js/modules/es.regexp.to-string.js"),s("core-js/modules/es.array.map.js"),s("core-js/modules/es.number.constructor.js"),s("core-js/modules/es.object.assign.js"),s("core-js/modules/es.regexp.exec.js"),s("core-js/modules/es.string.replace.js"),s("core-js/modules/web.dom-collections.for-each.js"),s("core-js/modules/es.object.keys.js"),s("core-js/modules/es.promise.js");var d=u(s("@babel/runtime/regenerator")),g=u(s("@babel/runtime/helpers/asyncToGenerator")),y=s("fs"),S=s("copy-to"),v=s("path"),c=s("mime"),h=s("../common/callback"),m=s("merge-descriptors"),x=s("../common/utils/isBlob"),T=x.isBlob,_=s("../common/utils/isFile"),R=_.isFile,A=s("../common/utils/isBuffer"),N=A.isBuffer,L=s("../common/utils/obj2xml"),M=L.obj2xml,F=I;F.append=function(){var H=(0,g.default)(d.default.mark(function V(G,Q,ne){var ue;return d.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return ne=ne||{},ne.position===void 0&&(ne.position="0"),ne.subres={append:"",position:ne.position},ne.method="POST",he.next=6,this.put(G,Q,ne);case 6:return ue=he.sent,ue.nextAppendPosition=ue.res.headers["x-oss-next-append-position"],he.abrupt("return",ue);case 9:case"end":return he.stop()}},V,this)}));function P(V,G,Q){return H.apply(this,arguments)}return P}(),F.put=function(){var H=(0,g.default)(d.default.mark(function V(G,Q,ne){var ue,ae,he,ce,we;return d.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:if(ne=ne||{},ne.disabledMD5=ne.disabledMD5===void 0?!0:!!ne.disabledMD5,ne.headers=ne.headers||{},G=this._objectName(G),!N(Q)){Le.next=8;break}ue=Q,Le.next=19;break;case 8:if(!(T(Q)||R(Q))){Le.next=18;break}return ne.mime||(R(Q)?ne.mime=c.getType(v.extname(Q.name)):ne.mime=Q.type),Le.next=12,this._createBuffer(Q,0,Q.size);case 12:return ue=Le.sent,Le.next=15,this._getFileSize(Q);case 15:ne.contentLength=Le.sent,Le.next=19;break;case 18:throw new TypeError("Must provide Buffer/Blob/File for put.");case 19:return this._convertMetaToHeaders(ne.meta,ne.headers),ae=ne.method||"PUT",he=this._objectRequestParams(ae,G,ne),h.encodeCallback(he,ne),he.mime=ne.mime,he.disabledMD5=ne.disabledMD5,he.content=ue,he.successStatuses=[200],Le.next=29,this.request(he);case 29:return ce=Le.sent,we={name:G,url:this._objectUrl(G),res:ce.res},he.headers&&he.headers["x-oss-callback"]&&(we.data=JSON.parse(ce.data.toString())),Le.abrupt("return",we);case 33:case"end":return Le.stop()}},V,this)}));function P(V,G,Q){return H.apply(this,arguments)}return P}(),F.putStream=function(){var H=(0,g.default)(d.default.mark(function V(G,Q,ne){var ue,ae,he,ce;return d.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return ne=ne||{},ne.headers=ne.headers||{},G=this._objectName(G),ne.contentLength?ne.headers["Content-Length"]=ne.contentLength:ne.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(ne.meta,ne.headers),ue=ne.method||"PUT",ae=this._objectRequestParams(ue,G,ne),h.encodeCallback(ae,ne),ae.mime=ne.mime,ae.stream=Q,ae.successStatuses=[200],me.next=13,this.request(ae);case 13:return he=me.sent,ce={name:G,url:this._objectUrl(G),res:he.res},ae.headers&&ae.headers["x-oss-callback"]&&(ce.data=JSON.parse(he.data.toString())),me.abrupt("return",ce);case 17:case"end":return me.stop()}},V,this)}));function P(V,G,Q){return H.apply(this,arguments)}return P}(),m(F,s("../common/object/copyObject")),m(F,s("../common/object/getObjectTagging")),m(F,s("../common/object/putObjectTagging")),m(F,s("../common/object/deleteObjectTagging")),m(F,s("../common/image")),m(F,s("../common/object/getBucketVersions")),m(F,s("../common/object/getACL")),m(F,s("../common/object/putACL")),m(F,s("../common/object/head")),m(F,s("../common/object/delete")),m(F,s("../common/object/get")),m(F,s("../common/object/putSymlink")),m(F,s("../common/object/getSymlink")),m(F,s("../common/object/deleteMulti")),m(F,s("../common/object/getObjectMeta")),m(F,s("../common/object/getObjectUrl")),m(F,s("../common/object/generateObjectUrl")),m(F,s("../common/object/signatureUrl")),m(F,s("../common/object/asyncSignatureUrl")),F.putMeta=function(){var H=(0,g.default)(d.default.mark(function V(G,Q,ne){var ue;return d.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,this.copy(G,G,{meta:Q||{},timeout:ne&&ne.timeout,ctx:ne&&ne.ctx});case 2:return ue=he.sent,he.abrupt("return",ue);case 4:case"end":return he.stop()}},V,this)}));function P(V,G,Q){return H.apply(this,arguments)}return P}(),F.list=function(){var H=(0,g.default)(d.default.mark(function V(G,Q){var ne,ue,ae,he,ce;return d.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return ne=this._objectRequestParams("GET","",Q),ne.query=G,ne.xmlResponse=!0,ne.successStatuses=[200],me.next=6,this.request(ne);case 6:return ue=me.sent,ae=ue.data.Contents||[],he=this,ae&&(Array.isArray(ae)||(ae=[ae]),ae=ae.map(function(Le){return{name:Le.Key,url:he._objectUrl(Le.Key),lastModified:Le.LastModified,etag:Le.ETag,type:Le.Type,size:Number(Le.Size),storageClass:Le.StorageClass,owner:{id:Le.Owner.ID,displayName:Le.Owner.DisplayName}}})),ce=ue.data.CommonPrefixes||null,ce&&(Array.isArray(ce)||(ce=[ce]),ce=ce.map(function(Le){return Le.Prefix})),me.abrupt("return",{res:ue.res,objects:ae,prefixes:ce,nextMarker:ue.data.NextMarker||null,isTruncated:ue.data.IsTruncated==="true"});case 13:case"end":return me.stop()}},V,this)}));function P(V,G){return H.apply(this,arguments)}return P}(),F.listV2=function(){var H=(0,g.default)(d.default.mark(function V(G){var Q,ne,ue,ae,he,ce,we,me=arguments;return d.default.wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return Q=me.length>1&&me[1]!==void 0?me[1]:{},ne=G["continuation-token"]||G.continuationToken,ne&&(Q.subres=Object.assign({"continuation-token":ne},Q.subres)),ue=this._objectRequestParams("GET","",Q),ue.query=Object.assign({"list-type":2},G),delete ue.query["continuation-token"],delete ue.query.continuationToken,ue.xmlResponse=!0,ue.successStatuses=[200],ee.next=11,this.request(ue);case 11:return ae=ee.sent,he=ae.data.Contents||[],ce=this,he&&(Array.isArray(he)||(he=[he]),he=he.map(function(se){var le=null;return se.Owner&&(le={id:se.Owner.ID,displayName:se.Owner.DisplayName}),{name:se.Key,url:ce._objectUrl(se.Key),lastModified:se.LastModified,etag:se.ETag,type:se.Type,size:Number(se.Size),storageClass:se.StorageClass,owner:le}})),we=ae.data.CommonPrefixes||null,we&&(Array.isArray(we)||(we=[we]),we=we.map(function(se){return se.Prefix})),ee.abrupt("return",{res:ae.res,objects:he,prefixes:we,isTruncated:ae.data.IsTruncated==="true",keyCount:+ae.data.KeyCount,continuationToken:ae.data.ContinuationToken||null,nextContinuationToken:ae.data.NextContinuationToken||null});case 18:case"end":return ee.stop()}},V,this)}));function P(V){return H.apply(this,arguments)}return P}(),F.restore=function(){var H=(0,g.default)(d.default.mark(function V(G){var Q,ne,ue,ae,he=arguments;return d.default.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return Q=he.length>1&&he[1]!==void 0?he[1]:{type:"Archive"},Q=Q||{},Q.subres=Object.assign({restore:""},Q.subres),Q.versionId&&(Q.subres.versionId=Q.versionId),ne=this._objectRequestParams("POST",G,Q),Q.type==="ColdArchive"&&(ue={RestoreRequest:{Days:Q.Days?Q.Days:2,JobParameters:{Tier:Q.JobParameters?Q.JobParameters:"Standard"}}},ne.content=M(ue,{headers:!0}),ne.mime="xml"),ne.successStatuses=[202],we.next=9,this.request(ne);case 9:return ae=we.sent,we.abrupt("return",{res:ae.res});case 11:case"end":return we.stop()}},V,this)}));function P(V){return H.apply(this,arguments)}return P}(),F._objectUrl=function(P){return this._getReqUrl({bucket:this.options.bucket,object:P})},F._objectRequestParams=function(P,V,G){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");G=G||{},V=this._objectName(V);var Q={object:V,bucket:this.options.bucket,method:P,subres:G&&G.subres,timeout:G&&G.timeout,ctx:G&&G.ctx};return G.headers&&(Q.headers={},S(G.headers).to(Q.headers)),Q},F._objectName=function(P){return P.replace(/^\/+/,"")},F._convertMetaToHeaders=function(P,V){P&&Object.keys(P).forEach(function(G){V["x-oss-meta-".concat(G)]=P[G]})},F._deleteFileSafe=function(P){var V=this;return new Promise(function(G){y.exists(P,function(Q){Q?y.unlink(P,function(ne){ne&&V.debug("unlink %j error: %s",P,ne,"error"),G()}):G()})})}},{"../common/callback":24,"../common/image":27,"../common/object/asyncSignatureUrl":31,"../common/object/copyObject":32,"../common/object/delete":33,"../common/object/deleteMulti":34,"../common/object/deleteObjectTagging":35,"../common/object/generateObjectUrl":36,"../common/object/get":37,"../common/object/getACL":38,"../common/object/getBucketVersions":39,"../common/object/getObjectMeta":40,"../common/object/getObjectTagging":41,"../common/object/getObjectUrl":42,"../common/object/getSymlink":43,"../common/object/head":44,"../common/object/putACL":45,"../common/object/putObjectTagging":46,"../common/object/putSymlink":47,"../common/object/signatureUrl":48,"../common/utils/isBlob":64,"../common/utils/isBuffer":65,"../common/utils/isFile":67,"../common/utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.number.constructor.js":286,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339,fs:89,"merge-descriptors":372,mime:374,path:378}],6:[function(s,E,I){"use strict";I.version="6.18.1"},{}],7:[function(s,E,I){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),d=u(s("@babel/runtime/regenerator")),g=u(s("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(I,"__esModule",{value:!0}),I.abortBucketWorm=void 0;var y=s("../utils/checkBucketName");function S(c,h){return v.apply(this,arguments)}function v(){return v=(0,g.default)(d.default.mark(function c(h,m){var x,T;return d.default.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return y.checkBucketName(h),x=this._bucketRequestParams("DELETE",h,"worm",m),R.next=4,this.request(x);case 4:return T=R.sent,R.abrupt("return",{res:T.res,status:T.status});case 6:case"end":return R.stop()}},c,this)})),v.apply(this,arguments)}I.abortBucketWorm=S},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],8:[function(s,E,I){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),d=u(s("@babel/runtime/regenerator")),g=u(s("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(I,"__esModule",{value:!0}),I.completeBucketWorm=void 0;var y=s("../utils/checkBucketName");function S(c,h,m){return v.apply(this,arguments)}function v(){return v=(0,g.default)(d.default.mark(function c(h,m,x){var T,_;return d.default.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return y.checkBucketName(h),T=this._bucketRequestParams("POST",h,{wormId:m},x),A.next=4,this.request(T);case 4:return _=A.sent,A.abrupt("return",{res:_.res,status:_.status});case 6:case"end":return A.stop()}},c,this)})),v.apply(this,arguments)}I.completeBucketWorm=S},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],9:[function(s,E,I){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),d=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js");var g=u(s("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(I,"__esModule",{value:!0}),I.deleteBucketInventory=void 0;var y=s("../utils/checkBucketName");function S(c,h){return v.apply(this,arguments)}function v(){return v=(0,g.default)(d.default.mark(function c(h,m){var x,T,_,R,A=arguments;return d.default.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return x=A.length>2&&A[2]!==void 0?A[2]:{},T=Object.assign({inventory:"",inventoryId:m},x.subres),y.checkBucketName(h),_=this._bucketRequestParams("DELETE",h,T,x),_.successStatuses=[204],L.next=7,this.request(_);case 7:return R=L.sent,L.abrupt("return",{status:R.status,res:R.res});case 9:case"end":return L.stop()}},c,this)})),v.apply(this,arguments)}I.deleteBucketInventory=S},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],10:[function(s,E,I){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),d=u(s("@babel/runtime/regenerator")),g=u(s("@babel/runtime/helpers/asyncToGenerator")),y=s("../utils/checkBucketName"),S=y.checkBucketName,v=I;v.deleteBucketLifecycle=function(){var c=(0,g.default)(d.default.mark(function m(x,T){var _,R;return d.default.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return S(x),_=this._bucketRequestParams("DELETE",x,"lifecycle",T),_.successStatuses=[204],N.next=5,this.request(_);case 5:return R=N.sent,N.abrupt("return",{res:R.res});case 7:case"end":return N.stop()}},m,this)}));function h(m,x){return c.apply(this,arguments)}return h}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],11:[function(s,E,I){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),d=u(s("@babel/runtime/regenerator")),g=u(s("@babel/runtime/helpers/asyncToGenerator")),y=s("../utils/checkBucketName"),S=y.checkBucketName,v=I;v.deleteBucketWebsite=function(){var c=(0,g.default)(d.default.mark(function m(x,T){var _,R;return d.default.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return S(x),_=this._bucketRequestParams("DELETE",x,"website",T),_.successStatuses=[204],N.next=5,this.request(_);case 5:return R=N.sent,N.abrupt("return",{res:R.res});case 7:case"end":return N.stop()}},m,this)}));function h(m,x){return c.apply(this,arguments)}return h}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],12:[function(s,E,I){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),d=u(s("@babel/runtime/regenerator")),g=u(s("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(I,"__esModule",{value:!0}),I.extendBucketWorm=void 0;var y=s("../utils/checkBucketName"),S=s("../utils/obj2xml");function v(h,m,x,T){return c.apply(this,arguments)}function c(){return c=(0,g.default)(d.default.mark(function h(m,x,T,_){var R,A,N;return d.default.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return y.checkBucketName(m),R=this._bucketRequestParams("POST",m,{wormExtend:"",wormId:x},_),A={ExtendWormConfiguration:{RetentionPeriodInDays:T}},R.mime="xml",R.content=S.obj2xml(A,{headers:!0}),R.successStatuses=[200],M.next=8,this.request(R);case 8:return N=M.sent,M.abrupt("return",{res:N.res,status:N.status});case 10:case"end":return M.stop()}},h,this)})),c.apply(this,arguments)}I.extendBucketWorm=v},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],13:[function(s,E,I){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),d=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js");var g=u(s("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(I,"__esModule",{value:!0}),I.getBucketInventory=void 0;var y=s("../utils/checkBucketName"),S=s("../utils/formatInventoryConfig");function v(h,m){return c.apply(this,arguments)}function c(){return c=(0,g.default)(d.default.mark(function h(m,x){var T,_,R,A,N=arguments;return d.default.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return T=N.length>2&&N[2]!==void 0?N[2]:{},_=Object.assign({inventory:"",inventoryId:x},T.subres),y.checkBucketName(m),R=this._bucketRequestParams("GET",m,_,T),R.successStatuses=[200],R.xmlResponse=!0,M.next=8,this.request(R);case 8:return A=M.sent,M.abrupt("return",{status:A.status,res:A.res,inventory:S.formatInventoryConfig(A.data)});case 10:case"end":return M.stop()}},h,this)})),c.apply(this,arguments)}I.getBucketInventory=v},{"../utils/checkBucketName":51,"../utils/formatInventoryConfig":60,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],14:[function(s,E,I){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),d=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.array.map.js");var g=u(s("@babel/runtime/helpers/asyncToGenerator")),y=s("../utils/checkBucketName"),S=y.checkBucketName,v=s("../utils/isArray"),c=v.isArray,h=s("../utils/formatObjKey"),m=h.formatObjKey,x=I;x.getBucketLifecycle=function(){var T=(0,g.default)(d.default.mark(function R(A,N){var L,M,F;return d.default.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return S(A),L=this._bucketRequestParams("GET",A,"lifecycle",N),L.successStatuses=[200],L.xmlResponse=!0,P.next=6,this.request(L);case 6:return M=P.sent,F=M.data.Rule||null,F&&(c(F)||(F=[F]),F=F.map(function(V){return V.ID&&(V.id=V.ID,delete V.ID),V.Tag&&!c(V.Tag)&&(V.Tag=[V.Tag]),m(V,"firstLowerCase")})),P.abrupt("return",{rules:F,res:M.res});case 10:case"end":return P.stop()}},R,this)}));function _(R,A){return T.apply(this,arguments)}return _}()},{"../utils/checkBucketName":51,"../utils/formatObjKey":61,"../utils/isArray":63,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280}],15:[function(s,E,I){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),d=u(s("@babel/runtime/regenerator")),g=u(s("@babel/runtime/helpers/asyncToGenerator")),y=s("../utils/checkBucketName"),S=y.checkBucketName,v=I;v.getBucketVersioning=function(){var c=(0,g.default)(d.default.mark(function m(x,T){var _,R,A;return d.default.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return S(x),_=this._bucketRequestParams("GET",x,"versioning",T),_.xmlResponse=!0,_.successStatuses=[200],L.next=6,this.request(_);case 6:return R=L.sent,A=R.data.Status,L.abrupt("return",{status:R.status,versionStatus:A,res:R.res});case 9:case"end":return L.stop()}},m,this)}));function h(m,x){return c.apply(this,arguments)}return h}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],16:[function(s,E,I){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),d=u(s("@babel/runtime/regenerator")),g=u(s("@babel/runtime/helpers/asyncToGenerator")),y=s("../utils/checkBucketName"),S=y.checkBucketName,v=s("../utils/isObject"),c=v.isObject,h=I;h.getBucketWebsite=function(){var m=(0,g.default)(d.default.mark(function T(_,R){var A,N,L;return d.default.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return S(_),A=this._bucketRequestParams("GET",_,"website",R),A.successStatuses=[200],A.xmlResponse=!0,F.next=6,this.request(A);case 6:return N=F.sent,L=[],N.data.RoutingRules&&N.data.RoutingRules.RoutingRule&&(c(N.data.RoutingRules.RoutingRule)?L=[N.data.RoutingRules.RoutingRule]:L=N.data.RoutingRules.RoutingRule),F.abrupt("return",{index:N.data.IndexDocument&&N.data.IndexDocument.Suffix||"",supportSubDir:N.data.IndexDocument&&N.data.IndexDocument.SupportSubDir||"false",type:N.data.IndexDocument&&N.data.IndexDocument.Type,routingRules:L,error:N.data.ErrorDocument&&N.data.ErrorDocument.Key||null,res:N.res});case 10:case"end":return F.stop()}},T,this)}));function x(T,_){return m.apply(this,arguments)}return x}()},{"../utils/checkBucketName":51,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],17:[function(s,E,I){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),d=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js");var g=u(s("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(I,"__esModule",{value:!0}),I.getBucketWorm=void 0;var y=s("../utils/checkBucketName"),S=s("../utils/dataFix");function v(h,m){return c.apply(this,arguments)}function c(){return c=(0,g.default)(d.default.mark(function h(m,x){var T,_;return d.default.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return y.checkBucketName(m),T=this._bucketRequestParams("GET",m,"worm",x),T.successStatuses=[200],T.xmlResponse=!0,A.next=6,this.request(T);case 6:return _=A.sent,S.dataFix(_.data,{lowerFirst:!0,rename:{RetentionPeriodInDays:"days"}}),A.abrupt("return",Object.assign(Object.assign({},_.data),{res:_.res,status:_.status}));case 9:case"end":return A.stop()}},h,this)})),c.apply(this,arguments)}I.getBucketWorm=v},{"../utils/checkBucketName":51,"../utils/dataFix":57,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],18:[function(s,E,I){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),d=u(s("@babel/runtime/regenerator")),g=u(s("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(I,"__esModule",{value:!0}),I.initiateBucketWorm=void 0;var y=s("../utils/obj2xml"),S=s("../utils/checkBucketName");function v(h,m,x){return c.apply(this,arguments)}function c(){return c=(0,g.default)(d.default.mark(function h(m,x,T){var _,R,A;return d.default.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return S.checkBucketName(m),_=this._bucketRequestParams("POST",m,"worm",T),R={InitiateWormConfiguration:{RetentionPeriodInDays:x}},_.mime="xml",_.content=y.obj2xml(R,{headers:!0}),_.successStatuses=[200],L.next=8,this.request(_);case 8:return A=L.sent,L.abrupt("return",{res:A.res,wormId:A.res.headers["x-oss-worm-id"],status:A.status});case 10:case"end":return L.stop()}},h,this)})),c.apply(this,arguments)}I.initiateBucketWorm=v},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],19:[function(s,E,I){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),d=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js");var g=u(s("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(I,"__esModule",{value:!0}),I.listBucketInventory=void 0;var y=s("../utils/checkBucketName"),S=s("../utils/formatInventoryConfig");function v(h){return c.apply(this,arguments)}function c(){return c=(0,g.default)(d.default.mark(function h(m){var x,T,_,R,A,N,L,M,F=arguments;return d.default.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return x=F.length>1&&F[1]!==void 0?F[1]:{},T=x.continuationToken,_=Object.assign({inventory:""},T&&{"continuation-token":T},x.subres),y.checkBucketName(m),R=this._bucketRequestParams("GET",m,_,x),R.successStatuses=[200],R.xmlResponse=!0,P.next=9,this.request(R);case 9:return A=P.sent,N=A.data,L=A.res,M=A.status,P.abrupt("return",{isTruncated:N.IsTruncated==="true",nextContinuationToken:N.NextContinuationToken,inventoryList:S.formatInventoryConfig(N.InventoryConfiguration,!0),status:M,res:L});case 12:case"end":return P.stop()}},h,this)})),c.apply(this,arguments)}I.listBucketInventory=v},{"../utils/checkBucketName":51,"../utils/formatInventoryConfig":60,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],20:[function(s,E,I){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),d=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js"),s("core-js/modules/es.array.concat.js");var g=u(s("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(I,"__esModule",{value:!0}),I.putBucketInventory=void 0;var y=s("../utils/checkBucketName"),S=s("../utils/obj2xml");function v(h,m){return c.apply(this,arguments)}function c(){return c=(0,g.default)(d.default.mark(function h(m,x){var T,_,R,A,N,L,M,F,H,P,V,G=arguments;return d.default.wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return T=G.length>2&&G[2]!==void 0?G[2]:{},_=Object.assign({inventory:"",inventoryId:x.id},T.subres),y.checkBucketName(m),R=x.OSSBucketDestination,A=x.optionalFields,N=x.includedObjectVersions,L="acs:oss:::",M="acs:ram::".concat(R.accountId,":role/"),F={InventoryConfiguration:{Id:x.id,IsEnabled:x.isEnabled,Filter:{Prefix:x.prefix||""},Destination:{OSSBucketDestination:{Format:R.format,AccountId:R.accountId,RoleArn:"".concat(M).concat(R.rolename),Bucket:"".concat(L).concat(R.bucket),Prefix:R.prefix||"",Encryption:R.encryption||""}},Schedule:{Frequency:x.frequency},IncludedObjectVersions:N,OptionalFields:{Field:(A==null?void 0:A.field)||[]}}},H=S.obj2xml(F,{headers:!0,firstUpperCase:!0}),P=this._bucketRequestParams("PUT",m,_,T),P.successStatuses=[200],P.mime="xml",P.content=H,ne.next=14,this.request(P);case 14:return V=ne.sent,ne.abrupt("return",{status:V.status,res:V.res});case 16:case"end":return ne.stop()}},h,this)})),c.apply(this,arguments)}I.putBucketInventory=v},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.assign.js":287}],21:[function(s,E,I){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),d=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.to-string.js"),s("core-js/modules/web.dom-collections.for-each.js"),s("core-js/modules/es.regexp.exec.js"),s("core-js/modules/es.array.includes.js");var g=u(s("@babel/runtime/helpers/asyncToGenerator")),y=s("../utils/checkBucketName"),S=y.checkBucketName,v=s("../utils/isArray"),c=v.isArray,h=s("../utils/deepCopy"),m=h.deepCopy,x=s("../utils/isObject"),T=x.isObject,_=s("../utils/obj2xml"),R=_.obj2xml,A=s("../utils/checkObjectTag"),N=A.checkObjectTag,L=s("../utils/getStrBytesCount"),M=L.getStrBytesCount,F=I;F.putBucketLifecycle=function(){var Q=(0,g.default)(d.default.mark(function ue(ae,he,ce){var we,me,Le,ee,se;return d.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:if(S(ae),c(he)){ke.next=3;break}throw new Error("rules must be Array");case 3:return we=this._bucketRequestParams("PUT",ae,"lifecycle",ce),me=[],Le={LifecycleConfiguration:{Rule:me}},he.forEach(function(De){H(De),G(De),De.id&&(De.ID=De.id,delete De.id),me.push(De)}),ee=R(Le,{headers:!0,firstUpperCase:!0}),we.content=ee,we.mime="xml",we.successStatuses=[200],ke.next=13,this.request(we);case 13:return se=ke.sent,ke.abrupt("return",{res:se.res});case 15:case"end":return ke.stop()}},ue,this)}));function ne(ue,ae,he){return Q.apply(this,arguments)}return ne}();function H(Q){Q.days&&(Q.expiration={days:Q.days}),Q.date&&(Q.expiration={createdBeforeDate:Q.date})}function P(Q,ne){var ue=Q.days,ae=Q.createdBeforeDate;if(!ue&&!ae)throw new Error("".concat(ne," must includes days or createdBeforeDate"));if(ue&&!/^[1-9][0-9]*$/.test(ue))throw new Error("days must be a positive integer");if(ae&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(ae))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function V(Q){if(!c(Q)&&!T(Q))throw new Error("tag must be Object or Array");Q=T(Q)?[Q]:Q;var ne={},ue=m(Q);ue.forEach(function(ae){ne[ae.key]=ae.value}),N(ne)}function G(Q){if(Q.id&&M(Q.id)>255)throw new Error("ID is composed of 255 bytes at most");if(Q.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(Q.status))throw new Error("Status must be Enabled or Disabled");if(Q.transition){if(!["IA","Archive"].includes(Q.transition.storageClass))throw new Error("StorageClass must be IA or Archive");P(Q.transition,"Transition")}if(Q.expiration){if(!Q.expiration.expiredObjectDeleteMarker)P(Q.expiration,"Expiration");else if(Q.expiration.days||Q.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(Q.abortMultipartUpload&&P(Q.abortMultipartUpload,"AbortMultipartUpload"),!Q.expiration&&!Q.abortMultipartUpload&&!Q.transition&&!Q.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(Q.tag){if(Q.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");V(Q.tag)}}},{"../utils/checkBucketName":51,"../utils/checkObjectTag":54,"../utils/deepCopy":58,"../utils/getStrBytesCount":62,"../utils/isArray":63,"../utils/isObject":70,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/web.dom-collections.for-each.js":339}],22:[function(s,E,I){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),d=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.array.includes.js");var g=u(s("@babel/runtime/helpers/asyncToGenerator")),y=s("../utils/checkBucketName"),S=y.checkBucketName,v=s("../utils/obj2xml"),c=v.obj2xml,h=I;h.putBucketVersioning=function(){var m=(0,g.default)(d.default.mark(function T(_,R){var A,N,L,M,F=arguments;return d.default.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(A=F.length>2&&F[2]!==void 0?F[2]:{},S(_),["Enabled","Suspended"].includes(R)){P.next=4;break}throw new Error("status must be Enabled or Suspended");case 4:return N=this._bucketRequestParams("PUT",_,"versioning",A),L={VersioningConfiguration:{Status:R}},N.mime="xml",N.content=c(L,{headers:!0}),P.next=10,this.request(N);case 10:return M=P.sent,P.abrupt("return",{res:M.res,status:M.status});case 12:case"end":return P.stop()}},T,this)}));function x(T,_){return m.apply(this,arguments)}return x}()},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.includes.js":277}],23:[function(s,E,I){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),d=u(s("@babel/runtime/regenerator")),g=u(s("@babel/runtime/helpers/asyncToGenerator")),y=s("../utils/checkBucketName"),S=y.checkBucketName,v=s("../utils/obj2xml"),c=v.obj2xml,h=s("../utils/isArray"),m=h.isArray,x=I;x.putBucketWebsite=function(){var T=(0,g.default)(d.default.mark(function R(A){var N,L,M,F,H,P,V,G=arguments;return d.default.wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:if(N=G.length>1&&G[1]!==void 0?G[1]:{},L=G.length>2?G[2]:void 0,S(A),M=this._bucketRequestParams("PUT",A,"website",L),F={Suffix:N.index||"index.html"},H={IndexDocument:F},P={WebsiteConfiguration:H},N.supportSubDir&&(F.SupportSubDir=N.supportSubDir),N.type&&(F.Type=N.type),N.error&&(H.ErrorDocument={Key:N.error}),N.routingRules===void 0){ne.next=14;break}if(m(N.routingRules)){ne.next=13;break}throw new Error("RoutingRules must be Array");case 13:H.RoutingRules={RoutingRule:N.routingRules};case 14:return P=c(P),M.content=P,M.mime="xml",M.successStatuses=[200],ne.next=20,this.request(M);case 20:return V=ne.sent,ne.abrupt("return",{res:V.res});case 22:case"end":return ne.stop()}},R,this)}));function _(R){return T.apply(this,arguments)}return _}()},{"../utils/checkBucketName":51,"../utils/isArray":63,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],24:[function(s,E,I){(function(u){(function(){"use strict";s("core-js/modules/es.object.to-string.js"),s("core-js/modules/es.regexp.to-string.js"),s("core-js/modules/web.dom-collections.for-each.js"),s("core-js/modules/es.object.keys.js"),I.encodeCallback=function(g,y){if(g.headers=g.headers||{},!Object.prototype.hasOwnProperty.call(g.headers,"x-oss-callback")&&y.callback){var S={callbackUrl:encodeURI(y.callback.url),callbackBody:y.callback.body};y.callback.host&&(S.callbackHost=y.callback.host),y.callback.contentType&&(S.callbackBodyType=y.callback.contentType);var v=u.from(JSON.stringify(S)).toString("base64");if(g.headers["x-oss-callback"]=v,y.callback.customValue){var c={};Object.keys(y.callback.customValue).forEach(function(h){c["x:".concat(h)]=y.callback.customValue[h].toString()}),g.headers["x-oss-callback-var"]=u.from(JSON.stringify(c)).toString("base64")}}}}).call(this)}).call(this,s("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/web.dom-collections.for-each.js":339}],25:[function(s,E,I){"use strict";s("core-js/modules/es.array.concat.js"),s("core-js/modules/es.regexp.exec.js"),s("core-js/modules/es.string.replace.js"),s("core-js/modules/es.object.to-string.js"),s("core-js/modules/web.dom-collections.for-each.js");var u=function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(I,"__esModule",{value:!0}),I.getReqUrl=void 0;var d=u(s("copy-to")),g=u(s("url")),y=u(s("merge-descriptors")),S=u(s("is-type-of")),v=s("../utils/isIP"),c=s("../utils/checkConfigValid");function h(m){var x={},T=this.options.cname;c.checkConfigValid(this.options.endpoint,"endpoint"),d.default(this.options.endpoint,!1).to(x),m.bucket&&!T&&!v.isIP(x.hostname)&&!this.options.sldEnable&&(x.host="".concat(m.bucket,".").concat(x.host));var _="/";m.bucket&&this.options.sldEnable&&(_+="".concat(m.bucket,"/")),m.object&&(_+=this._escape(m.object).replace(/\+/g,"%2B")),x.pathname=_;var R={};if(m.query&&y.default(R,m.query),m.subres){var A={};S.default.string(m.subres)?A[m.subres]="":S.default.array(m.subres)?m.subres.forEach(function(N){A[N]=""}):A=m.subres,y.default(R,A)}return x.query=R,g.default.format(x)}I.getReqUrl=h},{"../utils/checkConfigValid":52,"../utils/isIP":69,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339,"is-type-of":466,"merge-descriptors":372,url:472}],26:[function(s,E,I){"use strict";s("core-js/modules/es.array.concat.js"),s("core-js/modules/es.object.assign.js"),s("core-js/modules/es.string.trim.js");var u=s("humanize-ms"),d=s("url"),g=s("../utils/checkBucketName"),y=g.checkBucketName,S=s("../utils/setRegion"),v=S.setRegion,c=s("../utils/checkConfigValid"),h=c.checkConfigValid;function m(x,T){h(x,"endpoint");var _=d.parse(x);if(_.protocol||(_=d.parse("http".concat(T?"s":"","://").concat(x))),_.protocol!=="http:"&&_.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return _}E.exports=function(x){if(!x||!x.accessKeyId||!x.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");x.stsToken&&!x.refreshSTSToken&&!x.refreshSTSTokenInterval&&console.warn("It's recommended to set 'refreshSTSToken' and 'refreshSTSTokenInterval' to refresh stsToken\u3001accessKeyId\u3001accessKeySecret automatically when sts token has expired"),x.bucket&&y(x.bucket);var T=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},x);if(T.accessKeyId=T.accessKeyId.trim(),T.accessKeySecret=T.accessKeySecret.trim(),T.timeout&&(T.timeout=u(T.timeout)),T.endpoint)T.endpoint=m(T.endpoint,T.secure);else if(T.region)T.endpoint=v(T.region,T.internal,T.secure);else throw new Error("require options.endpoint or options.region");return T.inited=!0,T}},{"../utils/checkBucketName":51,"../utils/checkConfigValid":52,"../utils/setRegion":75,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.string.trim.js":308,"humanize-ms":356,url:472}],27:[function(s,E,I){"use strict";var u=s("merge-descriptors"),d=I;u(d,s("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":372}],28:[function(s,E,I){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),d=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.array.concat.js");var g=u(s("@babel/runtime/helpers/asyncToGenerator")),y=s("../utils/checkBucketName"),S=y.checkBucketName,v=s("querystring"),c=s("js-base64"),h=c.Base64.encode,m=I;m.processObjectSave=function(){var T=(0,g.default)(d.default.mark(function R(A,N,L,M){var F,H,P,V;return d.default.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return x(A,"sourceObject"),x(N,"targetObject"),x(L,"process"),N=this._objectName(N),M&&S(M),F=this._objectRequestParams("POST",A,{subres:"x-oss-process"}),H=M?",b_".concat(h(M)):"",N=h(N),P={"x-oss-process":"".concat(L,"|sys/saveas,o_").concat(N).concat(H)},F.content=v.stringify(P),Q.next=12,this.request(F);case 12:return V=Q.sent,Q.abrupt("return",{res:V.res,status:V.res.status});case 14:case"end":return Q.stop()}},R,this)}));function _(R,A,N,L){return T.apply(this,arguments)}return _}();function x(T,_){if(!T)throw new Error("".concat(_," is required"));if(typeof T!="string")throw new Error("".concat(_," must be String"))}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"js-base64":371,querystring:385}],29:[function(s,E,I){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),d=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.array.concat.js"),s("core-js/modules/es.function.name.js"),s("core-js/modules/es.object.to-string.js"),s("core-js/modules/es.promise.js"),s("core-js/modules/es.array.from.js"),s("core-js/modules/es.string.iterator.js"),s("core-js/modules/es.array.map.js"),s("core-js/modules/es.array.filter.js"),s("core-js/modules/es.array.find.js"),s("core-js/modules/es.regexp.to-string.js");var g=u(s("@babel/runtime/helpers/asyncToGenerator")),y=s("debug")("ali-oss:multipart-copy"),S=s("copy-to"),v=I;v.uploadPartCopy=function(){var c=(0,g.default)(d.default.mark(function m(x,T,_,R,A){var N,L,M,F,H,P=arguments;return d.default.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return N=P.length>5&&P[5]!==void 0?P[5]:{},N.headers=N.headers||{},L=N.versionId||N.subres&&N.subres.versionId||null,L?M="/".concat(A.sourceBucketName,"/").concat(encodeURIComponent(A.sourceKey),"?versionId=").concat(L):M="/".concat(A.sourceBucketName,"/").concat(encodeURIComponent(A.sourceKey)),N.headers["x-oss-copy-source"]=M,R&&(N.headers["x-oss-copy-source-range"]="bytes=".concat(R)),N.subres={partNumber:_,uploadId:T},F=this._objectRequestParams("PUT",x,N),F.mime=N.mime,F.successStatuses=[200],G.next=12,this.request(F);case 12:return H=G.sent,G.abrupt("return",{name:x,etag:H.res.headers.etag,res:H.res});case 14:case"end":return G.stop()}},m,this)}));function h(m,x,T,_,R){return c.apply(this,arguments)}return h}(),v.multipartUploadCopy=function(){var c=(0,g.default)(d.default.mark(function m(x,T){var _,R,A,N,L,M,F,H,P,V,G,Q,ne=arguments;return d.default.wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:return _=ne.length>2&&ne[2]!==void 0?ne[2]:{},this.resetCancelFlag(),R=_.versionId,A=R===void 0?null:R,N={versionId:A},ae.next=6,this._getObjectMeta(T.sourceBucketName,T.sourceKey,N);case 6:if(L=ae.sent,M=L.res.headers["content-length"],T.startOffset=T.startOffset||0,T.endOffset=T.endOffset||M,!(_.checkpoint&&_.checkpoint.uploadId)){ae.next=14;break}return ae.next=13,this._resumeMultipartCopy(_.checkpoint,T,_);case 13:return ae.abrupt("return",ae.sent);case 14:if(F=102400,H=T.endOffset-T.startOffset,!(H<F)){ae.next=18;break}throw new Error("copySize must not be smaller than ".concat(F));case 18:if(!(_.partSize&&_.partSize<F)){ae.next=20;break}throw new Error("partSize must not be smaller than ".concat(F));case 20:return ae.next=22,this.initMultipartUpload(x,_);case 22:if(P=ae.sent,V=P.uploadId,G=this._getPartSize(H,_.partSize),Q={name:x,copySize:H,partSize:G,uploadId:V,doneParts:[]},!(_&&_.progress)){ae.next=29;break}return ae.next=29,_.progress(0,Q,P.res);case 29:return ae.next=31,this._resumeMultipartCopy(Q,T,_);case 31:return ae.abrupt("return",ae.sent);case 32:case"end":return ae.stop()}},m,this)}));function h(m,x){return c.apply(this,arguments)}return h}(),v._resumeMultipartCopy=function(){var c=(0,g.default)(d.default.mark(function m(x,T,_){var R,A,N,L,M,F,H,P,V,G,Q,ne,ue,ae,he,ce,we,me,Le,ee,se;return d.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:if(!this.isCancel()){ke.next=2;break}throw this._makeCancelEvent();case 2:if(R=_.versionId,A=R===void 0?null:R,N={versionId:A},L=x.copySize,M=x.partSize,F=x.uploadId,H=x.doneParts,P=x.name,V=this._divideMultipartCopyParts(L,M,T.startOffset),G=V.length,Q={headers:{}},_.copyheaders&&S(_.copyheaders).to(Q.headers),A&&S(N).to(Q),ne=function(Be,He,Fe){return new Promise(function(){var Je=(0,g.default)(d.default.mark(function Me(lt,Re){var Oe,pe,fe;return d.default.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:if(J.prev=0,Be.isCancel()){J.next=22;break}return Oe=V[He-1],pe="".concat(Oe.start,"-").concat(Oe.end-1),J.prev=4,J.next=7,Be.uploadPartCopy(P,F,He,pe,Fe,Q);case 7:fe=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 Be._makeAbortEvent();case 14:throw J.t0;case 15:if(Be.isCancel()){J.next=22;break}if(y("content-range ".concat(fe.res.headers["content-range"])),H.push({number:He,etag:fe.res.headers.etag}),x.doneParts=H,!(_&&_.progress)){J.next=22;break}return J.next=22,_.progress(H.length/G,x,fe.res);case 22:lt(),J.next=29;break;case 25:J.prev=25,J.t1=J.catch(0),J.t1.partNum=He,Re(J.t1);case 29:case"end":return J.stop()}},Me,null,[[0,25],[4,10]])}));return function(Me,lt){return Je.apply(this,arguments)}}())},ue=Array.from(new Array(G),function(De,Be){return Be+1}),ae=H.map(function(De){return De.number}),he=ue.filter(function(De){return ae.indexOf(De)<0}),ce=5,we=_.parallel||ce,!(this.checkBrowserAndVersion("Internet Explorer","10")||we===1)){ke.next=28;break}me=0;case 18:if(!(me<he.length)){ke.next=26;break}if(!this.isCancel()){ke.next=21;break}throw this._makeCancelEvent();case 21:return ke.next=23,ne(this,he[me],T);case 23:me++,ke.next=18;break;case 26:ke.next=40;break;case 28:return ke.next=30,this._parallelNode(he,we,ne,T);case 30:if(Le=ke.sent,ee=Le.find(function(De){return De.name==="abort"}),!ee){ke.next=34;break}throw ee;case 34:if(!this.isCancel()){ke.next=36;break}throw this._makeCancelEvent();case 36:if(!(Le&&Le.length>0)){ke.next=40;break}throw se=Le[0],se.message="Failed to copy some parts with error: ".concat(se.toString()," part_num: ").concat(se.partNum),se;case 40:return ke.next=42,this.completeMultipartUpload(P,F,H,_);case 42:return ke.abrupt("return",ke.sent);case 43:case"end":return ke.stop()}},m,this)}));function h(m,x,T){return c.apply(this,arguments)}return h}(),v._divideMultipartCopyParts=function(h,m,x){for(var T=Math.ceil(h/m),_=[],R=0;R<T;R++){var A=m*R+x,N=Math.min(A+m,h+x);_.push({start:A,end:N})}return _},v._getObjectMeta=function(){var c=(0,g.default)(d.default.mark(function m(x,T,_){var R,A;return d.default.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return R=this.getBucket(),this.setBucket(x),L.next=4,this.head(T,_);case 4:return A=L.sent,this.setBucket(R),L.abrupt("return",A);case 7:case"end":return L.stop()}},m,this)}));function h(m,x,T){return c.apply(this,arguments)}return h}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.iterator.js":303,debug:465}],30:[function(s,E,I){(function(u){(function(){"use strict";var d=s("@babel/runtime/helpers/interopRequireDefault"),g=d(s("@babel/runtime/regenerator"));s("core-js/modules/es.array.map.js"),s("core-js/modules/es.array.filter.js"),s("core-js/modules/es.object.to-string.js"),s("core-js/modules/es.array.sort.js"),s("core-js/modules/es.array.concat.js"),s("core-js/modules/es.regexp.to-string.js");var y=d(s("@babel/runtime/helpers/asyncToGenerator")),S=s("copy-to"),v=s("./callback"),c=s("./utils/deepCopy"),h=c.deepCopyWith,m=s("./utils/isBuffer"),x=m.isBuffer,T=s("./utils/omit"),_=T.omit,R=I;R.listUploads=function(){var A=(0,y.default)(g.default.mark(function L(M,F){var H,P,V,G;return g.default.wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return F=F||{},H={},S(F).to(H),H.subres="uploads",P=this._objectRequestParams("GET","",H),P.query=M,P.xmlResponse=!0,P.successStatuses=[200],ne.next=10,this.request(P);case 10:return V=ne.sent,G=V.data.Upload||[],Array.isArray(G)||(G=[G]),G=G.map(function(ue){return{name:ue.Key,uploadId:ue.UploadId,initiated:ue.Initiated}}),ne.abrupt("return",{res:V.res,uploads:G,bucket:V.data.Bucket,nextKeyMarker:V.data.NextKeyMarker,nextUploadIdMarker:V.data.NextUploadIdMarker,isTruncated:V.data.IsTruncated==="true"});case 15:case"end":return ne.stop()}},L,this)}));function N(L,M){return A.apply(this,arguments)}return N}(),R.listParts=function(){var A=(0,y.default)(g.default.mark(function L(M,F,H,P){var V,G,Q;return g.default.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return P=P||{},V={},S(P).to(V),V.subres={uploadId:F},G=this._objectRequestParams("GET",M,V),G.query=H,G.xmlResponse=!0,G.successStatuses=[200],ue.next=10,this.request(G);case 10:return Q=ue.sent,ue.abrupt("return",{res:Q.res,uploadId:Q.data.UploadId,bucket:Q.data.Bucket,name:Q.data.Key,partNumberMarker:Q.data.PartNumberMarker,nextPartNumberMarker:Q.data.NextPartNumberMarker,maxParts:Q.data.MaxParts,isTruncated:Q.data.IsTruncated,parts:Q.data.Part||[]});case 12:case"end":return ue.stop()}},L,this)}));function N(L,M,F,H){return A.apply(this,arguments)}return N}(),R.abortMultipartUpload=function(){var A=(0,y.default)(g.default.mark(function L(M,F,H){var P,V,G;return g.default.wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return this._stop(),H=H||{},P={},S(H).to(P),P.subres={uploadId:F},V=this._objectRequestParams("DELETE",M,P),V.successStatuses=[204],ne.next=9,this.request(V);case 9:return G=ne.sent,ne.abrupt("return",{res:G.res});case 11:case"end":return ne.stop()}},L,this)}));function N(L,M,F){return A.apply(this,arguments)}return N}(),R.initMultipartUpload=function(){var A=(0,y.default)(g.default.mark(function L(M,F){var H,P,V;return g.default.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return F=F||{},H={},S(F).to(H),H.headers=H.headers||{},this._convertMetaToHeaders(F.meta,H.headers),H.subres="uploads",P=this._objectRequestParams("POST",M,H),P.mime=F.mime,P.xmlResponse=!0,P.successStatuses=[200],Q.next=12,this.request(P);case 12:return V=Q.sent,Q.abrupt("return",{res:V.res,bucket:V.data.Bucket,name:V.data.Key,uploadId:V.data.UploadId});case 14:case"end":return Q.stop()}},L,this)}));function N(L,M){return A.apply(this,arguments)}return N}(),R.uploadPart=function(){var A=(0,y.default)(g.default.mark(function L(M,F,H,P,V,G,Q){var ne,ue;return g.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:if(ne={size:G-V},ue=u&&u.browser,!ue){he.next=8;break}return he.next=5,this._createBuffer(P,V,G);case 5:ne.content=he.sent,he.next=11;break;case 8:return he.next=10,this._createStream(P,V,G);case 10:ne.stream=he.sent;case 11:return he.next=13,this._uploadPart(M,F,H,ne,Q);case 13:return he.abrupt("return",he.sent);case 14:case"end":return he.stop()}},L,this)}));function N(L,M,F,H,P,V,G){return A.apply(this,arguments)}return N}(),R.completeMultipartUpload=function(){var A=(0,y.default)(g.default.mark(function L(M,F,H,P){var V,G,Q,ne,ue,ae,he,ce;return g.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:for(V=H.concat().sort(function(Le,ee){return Le.number-ee.number}).filter(function(Le,ee,se){return!ee||Le.number!==se[ee-1].number}),G=`<?xml version="1.0" encoding="UTF-8"?>
<CompleteMultipartUpload>
`,Q=0;Q<V.length;Q++)ne=V[Q],G+=`<Part>
`,G+="<PartNumber>".concat(ne.number,`</PartNumber>
`),G+="<ETag>".concat(ne.etag,`</ETag>
`),G+=`</Part>
`;return G+="</CompleteMultipartUpload>",P=P||{},ue={},ue=h(P,function(Le){if(x(Le))return null}),ue.subres={uploadId:F},ue.headers=_(ue.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),ae=this._objectRequestParams("POST",M,ue),v.encodeCallback(ae,ue),ae.mime="xml",ae.content=G,ae.headers&&ae.headers["x-oss-callback"]||(ae.xmlResponse=!0),ae.successStatuses=[200],me.next=17,this.request(ae);case 17:if(he=me.sent,!P.progress){me.next=21;break}return me.next=21,P.progress(1,null,he.res);case 21:return ce={res:he.res,bucket:ae.bucket,name:M,etag:he.res.headers.etag},ae.headers&&ae.headers["x-oss-callback"]&&(ce.data=JSON.parse(he.data.toString())),me.abrupt("return",ce);case 24:case"end":return me.stop()}},L,this)}));function N(L,M,F,H){return A.apply(this,arguments)}return N}(),R._uploadPart=function(){var A=(0,y.default)(g.default.mark(function L(M,F,H,P,V){var G,Q,ne,ue;return g.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return V=V||{},G={},S(V).to(G),G.headers=G.headers||{},G.headers["Content-Length"]=P.size,G.headers=_(G.headers,["x-oss-server-side-encryption"]),G.subres={partNumber:H,uploadId:F},Q=this._objectRequestParams("PUT",M,G),Q.mime=G.mime,ne=u&&u.browser,ne?Q.content=P.content:Q.stream=P.stream,Q.successStatuses=[200],Q.disabledMD5=V.disabledMD5,he.next=15,this.request(Q);case 15:if(ue=he.sent,ue.res.headers.etag){he.next=18;break}throw new Error(`Please set the etag of expose-headers in OSS
https://help.aliyun.com/document_detail/32069.html`);case 18:return P.stream&&(P.stream=null,Q.stream=null),he.abrupt("return",{name:M,etag:ue.res.headers.etag,res:ue.res});case 20:case"end":return he.stop()}},L,this)}));function N(L,M,F,H,P){return A.apply(this,arguments)}return N}()}).call(this)}).call(this,s("_process"))},{"./callback":24,"./utils/deepCopy":58,"./utils/isBuffer":65,"./utils/omit":73,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.map.js":280,"core-js/modules/es.array.sort.js":282,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],31:[function(s,E,I){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),d=u(s("@babel/runtime/regenerator")),g=u(s("@babel/runtime/helpers/asyncToGenerator")),y=s("url"),S=s("utility"),v=s("copy-to"),c=s("../../common/signUtils"),h=s("../utils/isIP"),m=h.isIP,x=s("../utils/setSTSToken"),T=x.setSTSToken,_=s("../utils/isFunction"),R=_.isFunction,A=I;A.asyncSignatureUrl=function(){var N=(0,g.default)(d.default.mark(function M(F,H){var P,V,G,Q,ne;return d.default.wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:if(!m(this.options.endpoint.hostname)){ae.next=2;break}throw new Error("can not get the object URL when endpoint is IP");case 2:if(H=H||{},F=this._objectName(F),H.method=H.method||"GET",P=S.timestamp()+(H.expires||1800),V={bucket:this.options.bucket,object:F},G=this._getResource(V),!(this.options.stsToken&&R(this.options.refreshSTSToken))){ae.next=11;break}return ae.next=11,T.call(this);case 11:return this.options.stsToken&&(H["security-token"]=this.options.stsToken),Q=c._signatureForURL(this.options.accessKeySecret,H,G,P),ne=y.parse(this._getReqUrl(V)),ne.query={OSSAccessKeyId:this.options.accessKeyId,Expires:P,Signature:Q.Signature},v(Q.subResource).to(ne.query),ae.abrupt("return",ne.format());case 17:case"end":return ae.stop()}},M,this)}));function L(M,F){return N.apply(this,arguments)}return L}()},{"../../common/signUtils":50,"../utils/isFunction":68,"../utils/isIP":69,"../utils/setSTSToken":76,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,url:472,utility:474}],32:[function(s,E,I){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),d=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.to-string.js"),s("core-js/modules/web.dom-collections.for-each.js"),s("core-js/modules/es.object.keys.js"),s("core-js/modules/es.array.find.js"),s("core-js/modules/es.array.includes.js"),s("core-js/modules/es.array.concat.js"),s("core-js/modules/es.regexp.exec.js"),s("core-js/modules/es.string.replace.js");var g=u(s("@babel/runtime/helpers/typeof")),y=u(s("@babel/runtime/helpers/asyncToGenerator")),S=s("../utils/checkBucketName"),v=S.checkBucketName,c=I,h=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];c.copy=function(){var m=(0,y.default)(d.default.mark(function T(_,R,A,N){var L,M,F;return d.default.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return(0,g.default)(A)==="object"&&(N=A),N=N||{},N.headers=N.headers||{},Object.keys(N.headers).forEach(function(V){N.headers["x-oss-copy-source-".concat(V.toLowerCase())]=N.headers[V]}),(N.meta||Object.keys(N.headers).find(function(V){return h.includes(V.toLowerCase())}))&&(N.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(N.meta,N.headers),R=this._getSourceName(R,A),N.versionId&&(R="".concat(R,"?versionId=").concat(N.versionId)),N.headers["x-oss-copy-source"]=R,L=this._objectRequestParams("PUT",_,N),L.xmlResponse=!0,L.successStatuses=[200,304],P.next=14,this.request(L);case 14:return M=P.sent,F=M.data,F&&(F={etag:F.ETag,lastModified:F.LastModified}),P.abrupt("return",{data:F,res:M.res});case 18:case"end":return P.stop()}},T,this)}));function x(T,_,R,A){return m.apply(this,arguments)}return x}(),c._getSourceName=function(x,T){return typeof T=="string"?x=this._objectName(x):x[0]!=="/"?T=this.options.bucket:(T=x.replace(/\/(.+?)(\/.*)/,"$1"),x=x.replace(/(\/.+?\/)(.*)/,"$2")),v(T),x=encodeURIComponent(x),x="/".concat(T,"/").concat(x),x}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],33:[function(s,E,I){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),d=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js");var g=u(s("@babel/runtime/helpers/asyncToGenerator")),y=I;y.delete=function(){var S=(0,g.default)(d.default.mark(function c(h){var m,x,T,_=arguments;return d.default.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return m=_.length>1&&_[1]!==void 0?_[1]:{},m.subres=Object.assign({},m.subres),m.versionId&&(m.subres.versionId=m.versionId),x=this._objectRequestParams("DELETE",h,m),x.successStatuses=[204],A.next=7,this.request(x);case 7:return T=A.sent,A.abrupt("return",{res:T.res});case 9:case"end":return A.stop()}},c,this)}));function v(c){return S.apply(this,arguments)}return v}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],34:[function(s,E,I){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),d=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js");var g=u(s("@babel/runtime/helpers/asyncToGenerator")),y=s("utility"),S=s("../utils/obj2xml"),v=S.obj2xml,c=I;c.deleteMulti=function(){var h=(0,g.default)(d.default.mark(function x(T){var _,R,A,N,L,M,F,H,P,V,G,Q,ne,ue=arguments;return d.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:if(_=ue.length>1&&ue[1]!==void 0?ue[1]:{},R=[],!(!T||!T.length)){he.next=4;break}throw new Error("names is required");case 4:for(A=0;A<T.length;A++)N={},typeof T[A]=="string"?N.Key=y.escape(this._objectName(T[A])):(L=T[A],M=L.key,F=L.versionId,N.Key=y.escape(this._objectName(M)),N.VersionId=F),R.push(N);return H={Delete:{Quiet:!!_.quiet,Object:R}},P=v(H,{headers:!0}),_.subres=Object.assign({delete:""},_.subres),_.versionId&&(_.subres.versionId=_.versionId),V=this._objectRequestParams("POST","",_),V.mime="xml",V.content=P,V.xmlResponse=!0,V.successStatuses=[200],he.next=16,this.request(V);case 16:return G=he.sent,Q=G.data,ne=Q&&Q.Deleted||null,ne&&(Array.isArray(ne)||(ne=[ne])),he.abrupt("return",{res:G.res,deleted:ne||[]});case 21:case"end":return he.stop()}},x,this)}));function m(x){return h.apply(this,arguments)}return m}()},{"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,utility:474}],35:[function(s,E,I){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),d=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js");var g=u(s("@babel/runtime/helpers/asyncToGenerator")),y=I;y.deleteObjectTagging=function(){var S=(0,g.default)(d.default.mark(function c(h){var m,x,T,_=arguments;return d.default.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return m=_.length>1&&_[1]!==void 0?_[1]:{},m.subres=Object.assign({tagging:""},m.subres),m.versionId&&(m.subres.versionId=m.versionId),h=this._objectName(h),x=this._objectRequestParams("DELETE",h,m),x.successStatuses=[204],A.next=8,this.request(x);case 8:return T=A.sent,A.abrupt("return",{status:T.status,res:T.res});case 10:case"end":return A.stop()}},c,this)}));function v(c){return S.apply(this,arguments)}return v}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],36:[function(s,E,I){"use strict";s("core-js/modules/es.array.concat.js");var u=s("url"),d=s("../utils/isIP"),g=d.isIP,y=I;y.generateObjectUrl=function(v,c){if(g(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");if(c)c[c.length-1]!=="/"&&(c+="/");else{c=this.options.endpoint.format();var h=u.parse(c),m=this.options.bucket;h.hostname="".concat(m,".").concat(h.hostname),h.host="".concat(m,".").concat(h.host),c=h.format()}return c+this._escape(this._objectName(v))}},{"../utils/isIP":69,"core-js/modules/es.array.concat.js":272,url:472}],37:[function(s,E,I){(function(u){(function(){"use strict";var d=s("@babel/runtime/helpers/interopRequireDefault"),g=d(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js");var y=d(s("@babel/runtime/helpers/asyncToGenerator")),S=s("fs"),v=s("is-type-of"),c=I;c.get=function(){var h=(0,y.default)(g.default.mark(function x(T,_){var R,A,N,L,M,F,H,P,V=arguments;return g.default.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return R=V.length>2&&V[2]!==void 0?V[2]:{},A=null,N=!1,v.writableStream(_)?A=_:v.string(_)?(A=S.createWriteStream(_),N=!0):R=_,R=R||{},L=u&&u.browser,M=R.responseCacheControl===null?"":"no-cache",F=L&&M?{"response-cache-control":M}:{},R.subres=Object.assign(F,R.subres),R.versionId&&(R.subres.versionId=R.versionId),R.process&&(R.subres["x-oss-process"]=R.process),Q.prev=11,P=this._objectRequestParams("GET",T,R),P.writeStream=A,P.successStatuses=[200,206,304],Q.next=17,this.request(P);case 17:H=Q.sent,N&&A.destroy(),Q.next=28;break;case 21:if(Q.prev=21,Q.t0=Q.catch(11),!N){Q.next=27;break}return A.destroy(),Q.next=27,this._deleteFileSafe(_);case 27:throw Q.t0;case 28:return Q.abrupt("return",{res:H.res,content:H.data});case 29:case"end":return Q.stop()}},x,this,[[11,21]])}));function m(x,T){return h.apply(this,arguments)}return m}()}).call(this)}).call(this,s("_process"))},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,"core-js/modules/es.object.assign.js":287,fs:89,"is-type-of":466}],38:[function(s,E,I){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),d=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js");var g=u(s("@babel/runtime/helpers/asyncToGenerator")),y=I;y.getACL=function(){var S=(0,g.default)(d.default.mark(function c(h){var m,x,T,_=arguments;return d.default.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return m=_.length>1&&_[1]!==void 0?_[1]:{},m.subres=Object.assign({acl:""},m.subres),m.versionId&&(m.subres.versionId=m.versionId),h=this._objectName(h),x=this._objectRequestParams("GET",h,m),x.successStatuses=[200],x.xmlResponse=!0,A.next=9,this.request(x);case 9:return T=A.sent,A.abrupt("return",{acl:T.data.AccessControlList.Grant,owner:{id:T.data.Owner.ID,displayName:T.data.Owner.DisplayName},res:T.res});case 11:case"end":return A.stop()}},c,this)}));function v(c){return S.apply(this,arguments)}return v}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],39:[function(s,E,I){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),d=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.regexp.exec.js"),s("core-js/modules/es.string.replace.js"),s("core-js/modules/es.object.to-string.js"),s("core-js/modules/web.dom-collections.for-each.js"),s("core-js/modules/es.object.keys.js"),s("core-js/modules/es.object.assign.js"),s("core-js/modules/es.array.map.js"),s("core-js/modules/es.number.constructor.js");var g=u(s("@babel/runtime/helpers/asyncToGenerator")),y=I,S=s("../utils/isObject"),v=S.isObject,c=s("../utils/isArray"),h=c.isArray;y.getBucketVersions=m,y.listObjectVersions=m;function m(){return x.apply(this,arguments)}function x(){return x=(0,g.default)(d.default.mark(function R(){var A,N,L,M,F,H,P,V,G=arguments;return d.default.wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:if(A=G.length>0&&G[0]!==void 0?G[0]:{},N=G.length>1&&G[1]!==void 0?G[1]:{},!(A.versionIdMarker&&A.keyMarker===void 0)){ne.next=4;break}throw new Error("A version-id marker cannot be specified without a key marker");case 4:return N.subres=Object.assign({versions:""},N.subres),N.versionId&&(N.subres.versionId=N.versionId),L=this._objectRequestParams("GET","",N),L.xmlResponse=!0,L.successStatuses=[200],L.query=_(A),ne.next=12,this.request(L);case 12:return M=ne.sent,F=M.data.Version||[],H=M.data.DeleteMarker||[],P=this,F&&(Array.isArray(F)||(F=[F]),F=F.map(function(ue){return{name:ue.Key,url:P._objectUrl(ue.Key),lastModified:ue.LastModified,isLatest:ue.IsLatest==="true",versionId:ue.VersionId,etag:ue.ETag,type:ue.Type,size:Number(ue.Size),storageClass:ue.StorageClass,owner:{id:ue.Owner.ID,displayName:ue.Owner.DisplayName}}})),H&&(h(H)||(H=[H]),H=H.map(function(ue){return{name:ue.Key,lastModified:ue.LastModified,versionId:ue.VersionId,owner:{id:ue.Owner.ID,displayName:ue.Owner.DisplayName}}})),V=M.data.CommonPrefixes||null,V&&(h(V)||(V=[V]),V=V.map(function(ue){return ue.Prefix})),ne.abrupt("return",{res:M.res,objects:F,deleteMarker:H,prefixes:V,nextMarker:M.data.NextKeyMarker||null,NextVersionIdMarker:M.data.NextVersionIdMarker||null,nextKeyMarker:M.data.NextKeyMarker||null,nextVersionIdMarker:M.data.NextVersionIdMarker||null,isTruncated:M.data.IsTruncated==="true"});case 21:case"end":return ne.stop()}},R,this)})),x.apply(this,arguments)}function T(R){return R.replace(/([A-Z])/g,"-$1").toLowerCase()}function _(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A={};return v(R)&&Object.keys(R).forEach(function(N){A[T(N)]=R[N]}),A}},{"../utils/isArray":63,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280,"core-js/modules/es.number.constructor.js":286,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],40:[function(s,E,I){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),d=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js");var g=u(s("@babel/runtime/helpers/asyncToGenerator")),y=I;y.getObjectMeta=function(){var S=(0,g.default)(d.default.mark(function c(h,m){var x,T;return d.default.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return m=m||{},h=this._objectName(h),m.subres=Object.assign({objectMeta:""},m.subres),m.versionId&&(m.subres.versionId=m.versionId),x=this._objectRequestParams("HEAD",h,m),x.successStatuses=[200],R.next=8,this.request(x);case 8:return T=R.sent,R.abrupt("return",{status:T.status,res:T.res});case 10:case"end":return R.stop()}},c,this)}));function v(c,h){return S.apply(this,arguments)}return v}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],41:[function(s,E,I){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),d=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js"),s("core-js/modules/es.object.to-string.js"),s("core-js/modules/web.dom-collections.for-each.js");var g=u(s("@babel/runtime/helpers/asyncToGenerator")),y=I,S=s("../utils/isObject"),v=S.isObject;y.getObjectTagging=function(){var c=(0,g.default)(d.default.mark(function m(x){var T,_,R,A,N,L,M=arguments;return d.default.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return T=M.length>1&&M[1]!==void 0?M[1]:{},T.subres=Object.assign({tagging:""},T.subres),T.versionId&&(T.subres.versionId=T.versionId),x=this._objectName(x),_=this._objectRequestParams("GET",x,T),_.successStatuses=[200],H.next=8,this.request(_);case 8:return R=H.sent,H.next=11,this.parseXML(R.data);case 11:return A=H.sent,N=A.TagSet.Tag,N=N&&v(N)?[N]:N||[],L={},N.forEach(function(P){L[P.Key]=P.Value}),H.abrupt("return",{status:R.status,res:R.res,tag:L});case 17:case"end":return H.stop()}},m,this)}));function h(m){return c.apply(this,arguments)}return h}()},{"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],42:[function(s,E,I){"use strict";var u=s("../utils/isIP"),d=u.isIP,g=I;g.getObjectUrl=function(S,v){if(d(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");return v?v[v.length-1]!=="/"&&(v+="/"):v=this.options.endpoint.format(),v+this._escape(this._objectName(S))}},{"../utils/isIP":69}],43:[function(s,E,I){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),d=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js");var g=u(s("@babel/runtime/helpers/asyncToGenerator")),y=I;y.getSymlink=function(){var S=(0,g.default)(d.default.mark(function c(h){var m,x,T,_,R=arguments;return d.default.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return m=R.length>1&&R[1]!==void 0?R[1]:{},m.subres=Object.assign({symlink:""},m.subres),m.versionId&&(m.subres.versionId=m.versionId),h=this._objectName(h),x=this._objectRequestParams("GET",h,m),x.successStatuses=[200],N.next=8,this.request(x);case 8:return T=N.sent,_=T.res.headers["x-oss-symlink-target"],N.abrupt("return",{targetName:decodeURIComponent(_),res:T.res});case 11:case"end":return N.stop()}},c,this)}));function v(c){return S.apply(this,arguments)}return v}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],44:[function(s,E,I){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),d=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js"),s("core-js/modules/es.object.to-string.js"),s("core-js/modules/web.dom-collections.for-each.js"),s("core-js/modules/es.object.keys.js");var g=u(s("@babel/runtime/helpers/asyncToGenerator")),y=s("../utils/checkEnv"),S=y.checkEnv,v=I;v.head=function(){var c=(0,g.default)(d.default.mark(function m(x){var T,_,R,A,N=arguments;return d.default.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return T=N.length>1&&N[1]!==void 0?N[1]:{},S("Because HeadObject has gzip enabled, head cannot get the file size correctly. If you need to get the file size, please use getObjectMeta"),T.subres=Object.assign({},T.subres),T.versionId&&(T.subres.versionId=T.versionId),_=this._objectRequestParams("HEAD",x,T),_.successStatuses=[200,304],M.next=8,this.request(_);case 8:return R=M.sent,A={meta:null,res:R.res,status:R.status},R.status===200&&Object.keys(R.headers).forEach(function(F){F.indexOf("x-oss-meta-")===0&&(A.meta||(A.meta={}),A.meta[F.substring(11)]=R.headers[F])}),M.abrupt("return",A);case 12:case"end":return M.stop()}},m,this)}));function h(m){return c.apply(this,arguments)}return h}()},{"../utils/checkEnv":53,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],45:[function(s,E,I){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),d=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js");var g=u(s("@babel/runtime/helpers/asyncToGenerator")),y=I;y.putACL=function(){var S=(0,g.default)(d.default.mark(function c(h,m,x){var T,_;return d.default.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return x=x||{},x.subres=Object.assign({acl:""},x.subres),x.versionId&&(x.subres.versionId=x.versionId),x.headers=x.headers||{},x.headers["x-oss-object-acl"]=m,h=this._objectName(h),T=this._objectRequestParams("PUT",h,x),T.successStatuses=[200],A.next=10,this.request(T);case 10:return _=A.sent,A.abrupt("return",{res:_.res});case 12:case"end":return A.stop()}},c,this)}));function v(c,h,m){return S.apply(this,arguments)}return v}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],46:[function(s,E,I){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),d=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js"),s("core-js/modules/es.array.map.js"),s("core-js/modules/es.object.keys.js");var g=u(s("@babel/runtime/helpers/asyncToGenerator")),y=s("../utils/obj2xml"),S=y.obj2xml,v=s("../utils/checkObjectTag"),c=v.checkObjectTag,h=I;h.putObjectTagging=function(){var m=(0,g.default)(d.default.mark(function T(_,R){var A,N,L,M,F=arguments;return d.default.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return A=F.length>2&&F[2]!==void 0?F[2]:{},c(R),A.subres=Object.assign({tagging:""},A.subres),A.versionId&&(A.subres.versionId=A.versionId),_=this._objectName(_),N=this._objectRequestParams("PUT",_,A),N.successStatuses=[200],R=Object.keys(R).map(function(V){return{Key:V,Value:R[V]}}),L={Tagging:{TagSet:{Tag:R}}},N.mime="xml",N.content=S(L),P.next=13,this.request(N);case 13:return M=P.sent,P.abrupt("return",{res:M.res,status:M.status});case 15:case"end":return P.stop()}},T,this)}));function x(T,_){return m.apply(this,arguments)}return x}()},{"../utils/checkObjectTag":54,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290}],47:[function(s,E,I){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),d=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.assign.js");var g=u(s("@babel/runtime/helpers/asyncToGenerator")),y=I;y.putSymlink=function(){var S=(0,g.default)(d.default.mark(function c(h,m,x){var T,_;return d.default.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return x=x||{},x.headers=x.headers||{},m=this._escape(this._objectName(m)),this._convertMetaToHeaders(x.meta,x.headers),x.headers["x-oss-symlink-target"]=m,x.subres=Object.assign({symlink:""},x.subres),x.versionId&&(x.subres.versionId=x.versionId),x.storageClass&&(x.headers["x-oss-storage-class"]=x.storageClass),h=this._objectName(h),T=this._objectRequestParams("PUT",h,x),T.successStatuses=[200],A.next=13,this.request(T);case 13:return _=A.sent,A.abrupt("return",{res:_.res});case 15:case"end":return A.stop()}},c,this)}));function v(c,h,m){return S.apply(this,arguments)}return v}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],48:[function(s,E,I){"use strict";var u=s("url"),d=s("utility"),g=s("copy-to"),y=s("../../common/signUtils"),S=s("../utils/isIP"),v=S.isIP,c=I;c.signatureUrl=function(m,x){if(v(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");x=x||{},m=this._objectName(m),x.method=x.method||"GET";var T=d.timestamp()+(x.expires||1800),_={bucket:this.options.bucket,object:m},R=this._getResource(_);this.options.stsToken&&(x["security-token"]=this.options.stsToken);var A=y._signatureForURL(this.options.accessKeySecret,x,R,T),N=u.parse(this._getReqUrl(_));return N.query={OSSAccessKeyId:this.options.accessKeyId,Expires:T,Signature:A.Signature},g(A.subResource).to(N.query),N.format()}},{"../../common/signUtils":50,"../utils/isIP":69,"copy-to":94,url:472,utility:474}],49:[function(s,E,I){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),d=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.array.iterator.js"),s("core-js/modules/es.object.to-string.js"),s("core-js/modules/es.promise.js"),s("core-js/modules/es.string.iterator.js"),s("core-js/modules/web.dom-collections.iterator.js"),s("core-js/modules/web.dom-collections.for-each.js"),s("core-js/modules/es.function.name.js");var g=u(s("@babel/runtime/helpers/asyncToGenerator")),y=s("./utils/isArray"),S=y.isArray,v=I;v._parallelNode=function(){var c=(0,g.default)(d.default.mark(function m(x,T,_,R){var A,N,L,M,F,H,P,V;return d.default.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:A=this,N=[],L=[],M=x.length/T,F=x.length%T,H=F===0?M:(x.length-F)/T+1,P=1,V=0;case 8:if(!(V<x.length)){Q.next=26;break}if(!A.isCancel()){Q.next=11;break}return Q.abrupt("break",26);case 11:if(R?L.push(_(A,x[V],R)):L.push(_(A,x[V])),!(L.length===T||P===H&&V===x.length-1)){Q.next=23;break}return Q.prev=13,P+=1,Q.next=17,Promise.all(L);case 17:Q.next=22;break;case 19:Q.prev=19,Q.t0=Q.catch(13),N.push(Q.t0);case 22:L=[];case 23:V++,Q.next=8;break;case 26:return Q.abrupt("return",N);case 27:case"end":return Q.stop()}},m,this,[[13,19]])}));function h(m,x,T,_){return c.apply(this,arguments)}return h}(),v._parallel=function(h,m,x){var T=this;return new Promise(function(_){var R=[];if(m<=0||!h){_(R);return}function A(Q){return function(){if(Q===null)throw new Error("Callback was already called.");var ne=Q;Q=null;for(var ue=arguments.length,ae=new Array(ue),he=0;he<ue;he++)ae[he]=arguments[he];ne.apply(this,ae)}}function N(Q){var ne=-1,ue=Q.length;return function(){return++ne<ue&&!T.isCancel()?{value:Q[ne],key:ne}:null}}var L=N(h),M=!1,F=0,H=!1;function P(Q){F-=1,Q?(M=!0,R.push(Q),_(R)):M&&F<=0?(M=!0,_(R)):H||(T.isCancel()?_(R):G())}function V(Q,ne){x(Q).then(function(ue){ne(null,ue)}).catch(function(ue){ne(ue)})}function G(){for(H=!0;F<m&&!M&&!T.isCancel();){var Q=L();if(Q===null||R.length>0){M=!0,F<=0&&_(R);return}F+=1,V(Q.value,A(P))}H=!1}G()})},v.cancel=function(h){this.options.cancelFlag=!0,S(this.multipartUploadStreams)&&this.multipartUploadStreams.forEach(function(m){if(m.destroyed===!1){var x={name:"cancel",message:"cancel"};m.destroy(x)}}),this.multipartUploadStreams=[],h&&this.abortMultipartUpload(h.name,h.uploadId,h.options)},v.isCancel=function(){return this.options.cancelFlag},v.resetCancelFlag=function(){this.options.cancelFlag=!1},v._stop=function(){this.options.cancelFlag=!0},v._makeCancelEvent=function(){var h={status:0,name:"cancel"};return h},v._makeAbortEvent=function(){var h={status:0,name:"abort",message:"upload task has been abort"};return h}},{"./utils/isArray":63,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.string.iterator.js":303,"core-js/modules/web.dom-collections.for-each.js":339,"core-js/modules/web.dom-collections.iterator.js":340}],50:[function(s,E,I){(function(u){(function(){"use strict";s("core-js/modules/es.string.trim.js"),s("core-js/modules/es.array.sort.js"),s("core-js/modules/es.array.join.js"),s("core-js/modules/es.object.to-string.js"),s("core-js/modules/web.dom-collections.for-each.js"),s("core-js/modules/es.object.keys.js"),s("core-js/modules/es.array.concat.js"),s("core-js/modules/es.regexp.to-string.js");var d=s("./../../shims/crypto/crypto.js"),g=s("is-type-of"),y=s("./utils/lowercaseKeyHeader"),S=y.lowercaseKeyHeader;I.buildCanonicalizedResource=function(c,h){var m="".concat(c),x="?";if(g.string(h)&&h.trim()!=="")m+=x+h;else if(g.array(h))h.sort(),m+=x+h.join("&");else if(h){var T=function(A,N){return A[0]>N[0]?1:A[0]<N[0]?-1:0},_=function(A){m+=x+A,(h[A]||h[A]===0)&&(m+="=".concat(h[A])),x="&"};Object.keys(h).sort(T).forEach(_)}return m},I.buildCanonicalString=function(c,h,m,x){m=m||{};var T=S(m.headers),_="x-oss-",R=[],A={},N=[c.toUpperCase(),T["content-md5"]||"",T["content-type"],x||T["x-oss-date"]];return Object.keys(T).forEach(function(L){var M=L.toLowerCase();M.indexOf(_)===0&&(A[M]=String(T[L]).trim())}),Object.keys(A).sort().forEach(function(L){R.push("".concat(L,":").concat(A[L]))}),N=N.concat(R),N.push(this.buildCanonicalizedResource(h,m.parameters)),N.join(`
`)},I.computeSignature=function(c,h){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"utf-8",x=d.createHmac("sha1",c);return x.update(u.from(h,m)).digest("base64")},I.authorization=function(c,h,m,x){return"OSS ".concat(c,":").concat(this.computeSignature(h,m,x))},I._signatureForURL=function(c){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=arguments.length>2?arguments[2]:void 0,x=arguments.length>3?arguments[3]:void 0,T=arguments.length>4?arguments[4]:void 0,_={},R=h.subResource,A=R===void 0?{}:R;if(h.process){var N="x-oss-process";A[N]=h.process}if(h.trafficLimit){var L="x-oss-traffic-limit";A[L]=h.trafficLimit}if(h.response&&Object.keys(h.response).forEach(function(P){var V="response-".concat(P.toLowerCase());A[V]=h.response[P]}),Object.keys(h).forEach(function(P){var V=P.toLowerCase(),G=h[P];V.indexOf("x-oss-")===0?_[V]=G:(V.indexOf("content-md5")===0||V.indexOf("content-type")===0)&&(_[P]=G)}),Object.prototype.hasOwnProperty.call(h,"security-token")&&(A["security-token"]=h["security-token"]),Object.prototype.hasOwnProperty.call(h,"callback")){var M={callbackUrl:encodeURI(h.callback.url),callbackBody:h.callback.body};if(h.callback.host&&(M.callbackHost=h.callback.host),h.callback.contentType&&(M.callbackBodyType=h.callback.contentType),A.callback=u.from(JSON.stringify(M)).toString("base64"),h.callback.customValue){var F={};Object.keys(h.callback.customValue).forEach(function(P){F["x:".concat(P)]=h.callback.customValue[P]}),A["callback-var"]=u.from(JSON.stringify(F)).toString("base64")}}var H=this.buildCanonicalString(h.method,m,{headers:_,parameters:A},x.toString());return{Signature:this.computeSignature(c,H,T),subResource:A}}}).call(this)}).call(this,s("buffer").Buffer)},{"./../../shims/crypto/crypto.js":461,"./utils/lowercaseKeyHeader":71,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.sort.js":282,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.trim.js":308,"core-js/modules/web.dom-collections.for-each.js":339,"is-type-of":466}],51:[function(s,E,I){"use strict";s("core-js/modules/es.regexp.exec.js"),Object.defineProperty(I,"__esModule",{value:!0}),I.checkBucketName=void 0,I.checkBucketName=function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g=d?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!g.test(u))throw new Error("The bucket must be conform to the specifications")}},{"core-js/modules/es.regexp.exec.js":300}],52:[function(s,E,I){"use strict";s("core-js/modules/es.regexp.exec.js"),Object.defineProperty(I,"__esModule",{value:!0}),I.checkConfigValid=void 0;var u={endpoint:d,region:/^[a-zA-Z0-9\-_]+$/};function d(g){return typeof g=="string"?/^[a-zA-Z0-9._:/-]+$/.test(g):g.host?/^[a-zA-Z0-9._:/-]+$/.test(g.host):!1}I.checkConfigValid=function(g,y){if(u[y]){var S=!0;if(u[y]instanceof Function?S=u[y](g):S=u[y].test(g),!S)throw new Error("The ".concat(y," must be conform to the specifications"))}}},{"core-js/modules/es.regexp.exec.js":300}],53:[function(s,E,I){(function(u){(function(){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.checkEnv=void 0;function d(g){u.browser&&console.warn(g)}I.checkEnv=d}).call(this)}).call(this,s("_process"))},{_process:467}],54:[function(s,E,I){"use strict";s("core-js/modules/es.array.concat.js"),s("core-js/modules/es.object.entries.js"),s("core-js/modules/es.object.to-string.js"),s("core-js/modules/web.dom-collections.for-each.js"),Object.defineProperty(I,"__esModule",{value:!0}),I.checkObjectTag=void 0;var u=s("./checkValid"),d=u.checkValid,g=s("./isObject"),y=g.isObject,S=[{validator:function(m){if(typeof m!="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 (/)"}],v={key:[].concat(S,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(S,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function c(h){if(!y(h))throw new Error("tag must be Object");var m=Object.entries(h);if(m.length>10)throw new Error("maximum of 10 tags for a object");var x=["key","value"];m.forEach(function(T){T.forEach(function(_,R){d(_,v[x[R]])})})}I.checkObjectTag=c},{"./checkValid":55,"./isObject":70,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.entries.js":288,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],55:[function(s,E,I){"use strict";s("core-js/modules/es.object.to-string.js"),s("core-js/modules/web.dom-collections.for-each.js"),s("core-js/modules/es.regexp.exec.js"),Object.defineProperty(I,"__esModule",{value:!0}),I.checkValid=void 0;function u(d,g){g.forEach(function(y){if(y.validator)y.validator(d);else if(y.pattern&&!y.pattern.test(d))throw new Error(y.msg)})}I.checkValid=u},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/web.dom-collections.for-each.js":339}],56:[function(s,E,I){(function(u){(function(){"use strict";s("core-js/modules/es.array.includes.js"),s("core-js/modules/es.string.includes.js"),s("core-js/modules/es.object.assign.js"),s("core-js/modules/es.array.concat.js"),Object.defineProperty(I,"__esModule",{value:!0}),I.createRequest=void 0;var d=s("./../../../shims/crypto/crypto.js"),g=s("debug")("ali-oss"),y=s("mime"),S=s("dateformat"),v=s("copy-to"),c=s("path"),h=s("./encoder"),m=h.encoder,x=s("./isIP"),T=x.isIP,_=s("./setRegion"),R=_.setRegion,A=s("../client/getReqUrl"),N=A.getReqUrl,L=s("./isDingTalk"),M=L.isDingTalk;function F(V,G){return V[G]||V[G.toLowerCase()]}function H(V,G){delete V[G],delete V[G.toLowerCase()]}function P(V){var G=new Date;this.options.amendTimeSkewed&&(G=+new Date+this.options.amendTimeSkewed);var Q={"x-oss-date":S(G,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'")};typeof window!="undefined"&&(Q["x-oss-user-agent"]=this.userAgent),this.userAgent.includes("nodejs")&&(Q["User-Agent"]=this.userAgent),this.options.isRequestPay&&Object.assign(Q,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(Q["x-oss-security-token"]=this.options.stsToken),v(V.headers).to(Q),F(Q,"Content-Type")||(V.mime&&V.mime.indexOf("/")>0?Q["Content-Type"]=V.mime:M()?Q["Content-Type"]="application/octet-stream":Q["Content-Type"]=y.getType(V.mime||c.extname(V.object||""))),F(Q,"Content-Type")||H(Q,"Content-Type"),V.content&&(V.disabledMD5||(!V.headers||!V.headers["Content-MD5"]?Q["Content-MD5"]=d.createHash("md5").update(u.from(V.content,"utf8")).digest("base64"):Q["Content-MD5"]=V.headers["Content-MD5"]),Q["Content-Length"]||(Q["Content-Length"]=V.content.length));var ne=Object.prototype.hasOwnProperty;for(var ue in Q)Q[ue]&&ne.call(Q,ue)&&(Q[ue]=m(String(Q[ue]),this.options.headerEncoding));var ae=this._getResource(V);if(Q.authorization=this.authorization(V.method,ae,V.subres,Q,this.options.headerEncoding),T(this.options.endpoint.hostname)){var he=this.options,ce=he.region,we=he.internal,me=he.secure,Le=R(ce,we,me);Q.host="".concat(V.bucket,".").concat(Le.host)}var ee=N.bind(this)(V);g("request %s %s, with headers %j, !!stream: %s",V.method,ee,Q,!!V.stream);var se=V.timeout||this.options.timeout,le={method:V.method,content:V.content,stream:V.stream,headers:Q,timeout:se,writeStream:V.writeStream,customResponse:V.customResponse,ctx:V.ctx||this.ctx};return this.agent&&(le.agent=this.agent),this.httpsAgent&&(le.httpsAgent=this.httpsAgent),le.enableProxy=!!this.options.enableProxy,le.proxy=this.options.proxy?this.options.proxy:null,{url:ee,params:le}}I.createRequest=P}).call(this)}).call(this,s("buffer").Buffer)},{"../client/getReqUrl":25,"./../../../shims/crypto/crypto.js":461,"./encoder":59,"./isDingTalk":66,"./isIP":69,"./setRegion":75,buffer:90,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.string.includes.js":302,dateformat:342,debug:465,mime:374,path:378}],57:[function(s,E,I){"use strict";s("core-js/modules/es.object.to-string.js"),s("core-js/modules/web.dom-collections.for-each.js"),s("core-js/modules/es.object.entries.js"),s("core-js/modules/es.regexp.exec.js"),s("core-js/modules/es.string.replace.js"),s("core-js/modules/es.array.includes.js"),s("core-js/modules/es.object.keys.js"),Object.defineProperty(I,"__esModule",{value:!0}),I.dataFix=void 0;var u=s("./isObject"),d=["true","TRUE","1",1],g=["false","FALSE","0",0];function y(c,h,m){if(u.isObject(c)){var x=h.remove,T=x===void 0?[]:x,_=h.rename,R=_===void 0?{}:_,A=h.camel,N=A===void 0?[]:A,L=h.bool,M=L===void 0?[]:L,F=h.lowerFirst,H=F===void 0?!1:F;return T.forEach(function(P){return delete c[P]}),Object.entries(R).forEach(function(P){c[P[0]]&&(c[P[1]]||(c[P[1]]=c[P[0]],delete c[P[0]]))}),N.forEach(function(P){if(c[P]){var V=P.replace(/^(.)/,function(G){return G.toLowerCase()}).replace(/-(\w)/g,function(G,Q){return Q.toUpperCase()});c[V]||(c[V]=c[P])}}),M.forEach(function(P){c[P]=S(c[P])}),typeof m=="function"&&m(c),v(c,H),y}}I.dataFix=y;function S(c){return c?d.includes(c)?!0:g.includes(c)?!1:c:!1}function v(c,h){h&&Object.keys(c).forEach(function(m){var x=m.replace(/^\w/,function(T){return T.toLowerCase()});typeof c[x]=="undefined"&&(c[x]=c[m],delete c[m])})}},{"./isObject":70,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.entries.js":288,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],58:[function(s,E,I){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault");s("core-js/modules/es.array.slice.js"),s("core-js/modules/es.object.to-string.js"),s("core-js/modules/web.dom-collections.for-each.js"),s("core-js/modules/es.object.keys.js");var d=u(s("@babel/runtime/helpers/typeof"));Object.defineProperty(I,"__esModule",{value:!0}),I.deepCopyWith=I.deepCopy=void 0;var g=s("./isBuffer");I.deepCopy=function(y){if(y===null||(0,d.default)(y)!=="object")return y;if(g.isBuffer(y))return y.slice();var S=Array.isArray(y)?[]:{};return Object.keys(y).forEach(function(v){S[v]=I.deepCopy(y[v])}),S},I.deepCopyWith=function(y,S){function v(c,h,m){var x=S(c,h,m);if(x!==void 0)return x;if(c===null||(0,d.default)(c)!=="object")return c;if(g.isBuffer(c))return c.slice();var T=Array.isArray(c)?[]:{};return Object.keys(c).forEach(function(_){T[_]=v(c[_],_,c)}),T}return S?v(y,"",null):I.deepCopy(y)}},{"./isBuffer":65,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],59:[function(s,E,I){(function(u){(function(){"use strict";s("core-js/modules/es.object.to-string.js"),s("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(I,"__esModule",{value:!0}),I.encoder=void 0;function d(g){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"utf-8";return y==="utf-8"?g:u.from(g).toString("latin1")}I.encoder=d}).call(this)}).call(this,s("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],60:[function(s,E,I){"use strict";s("core-js/modules/es.array.map.js"),s("core-js/modules/es.regexp.exec.js"),s("core-js/modules/es.string.replace.js"),Object.defineProperty(I,"__esModule",{value:!0}),I.formatInventoryConfig=void 0;var u=s("../utils/dataFix"),d=s("../utils/isObject"),g=s("../utils/isArray"),y=s("../utils/formatObjKey");function S(c){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return h&&d.isObject(c)&&(c=[c]),g.isArray(c)?c=c.map(v):c=v(c),c}I.formatInventoryConfig=S;function v(c){return u.dataFix(c,{bool:["IsEnabled"]},function(h){var m,x;h.prefix=h.Filter.Prefix,delete h.Filter,h.OSSBucketDestination=h.Destination.OSSBucketDestination,h.OSSBucketDestination.rolename=h.OSSBucketDestination.RoleArn.replace(/.*\//,""),delete h.OSSBucketDestination.RoleArn,h.OSSBucketDestination.bucket=h.OSSBucketDestination.Bucket.replace(/.*:::/,""),delete h.OSSBucketDestination.Bucket,delete h.Destination,h.frequency=h.Schedule.Frequency,delete h.Schedule.Frequency,!((m=h==null?void 0:h.OptionalFields)===null||m===void 0)&&m.Field&&!g.isArray((x=h.OptionalFields)===null||x===void 0?void 0:x.Field)&&(h.OptionalFields.Field=[h.OptionalFields.Field])}),c=y.formatObjKey(c,"firstLowerCase",{exclude:["OSSBucketDestination","SSE-OSS","SSE-KMS"]}),c}},{"../utils/dataFix":57,"../utils/formatObjKey":61,"../utils/isArray":63,"../utils/isObject":70,"core-js/modules/es.array.map.js":280,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305}],61:[function(s,E,I){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault");s("core-js/modules/es.object.to-string.js"),s("core-js/modules/web.dom-collections.for-each.js"),s("core-js/modules/es.object.keys.js"),s("core-js/modules/es.array.includes.js"),s("core-js/modules/es.string.includes.js"),s("core-js/modules/es.regexp.exec.js"),s("core-js/modules/es.string.replace.js");var d=u(s("@babel/runtime/helpers/typeof"));Object.defineProperty(I,"__esModule",{value:!0}),I.formatObjKey=void 0;function g(S,v,c){if(S===null||(0,d.default)(S)!=="object")return S;var h;if(Array.isArray(S)){h=[];for(var m=0;m<S.length;m++)h.push(g(S[m],v,c))}else h={},Object.keys(S).forEach(function(x){h[y(x,v,c)]=g(S[x],v,c)});return h}I.formatObjKey=g;function y(S,v,c){return c&&c.exclude&&c.exclude.includes(S)||(v==="firstUpperCase"?S=S.replace(/^./,function(h){return h.toUpperCase()}):v==="firstLowerCase"&&(S=S.replace(/^./,function(h){return h.toLowerCase()}))),S}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.includes.js":302,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],62:[function(s,E,I){"use strict";s("core-js/modules/es.regexp.exec.js"),Object.defineProperty(I,"__esModule",{value:!0}),I.getStrBytesCount=void 0;function u(d){for(var g=0,y=0;y<d.length;y++){var S=d.charAt(y);/^[\u00-\uff]$/.test(S)?g+=1:g+=2}return g}I.getStrBytesCount=u},{"core-js/modules/es.regexp.exec.js":300}],63:[function(s,E,I){"use strict";s("core-js/modules/es.object.to-string.js"),Object.defineProperty(I,"__esModule",{value:!0}),I.isArray=void 0,I.isArray=function(u){return Object.prototype.toString.call(u)==="[object Array]"}},{"core-js/modules/es.object.to-string.js":291}],64:[function(s,E,I){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.isBlob=void 0;function u(d){return typeof Blob!="undefined"&&d instanceof Blob}I.isBlob=u},{}],65:[function(s,E,I){(function(u){(function(){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.isBuffer=void 0;function d(g){return u.isBuffer(g)}I.isBuffer=d}).call(this)}).call(this,{isBuffer:s("../../../node_modules/is-buffer/index.js")})},{"../../../node_modules/is-buffer/index.js":366}],66:[function(s,E,I){(function(u){(function(){"use strict";s("core-js/modules/es.array.includes.js"),s("core-js/modules/es.string.includes.js"),Object.defineProperty(I,"__esModule",{value:!0}),I.isDingTalk=void 0;function d(){return!!(u.browser&&window.navigator.userAgent.toLowerCase().includes("aliapp(dingtalk"))}I.isDingTalk=d}).call(this)}).call(this,s("_process"))},{_process:467,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.string.includes.js":302}],67:[function(s,E,I){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.isFile=void 0,I.isFile=function(u){return typeof File!="undefined"&&u instanceof File}},{}],68:[function(s,E,I){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.isFunction=void 0,I.isFunction=function(u){return typeof u=="function"}},{}],69:[function(s,E,I){"use strict";s("core-js/modules/es.regexp.exec.js"),Object.defineProperty(I,"__esModule",{value:!0}),I.isIP=void 0,I.isIP=function(u){var d=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,g=/^\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 d.test(u)||g.test(u)}},{"core-js/modules/es.regexp.exec.js":300}],70:[function(s,E,I){"use strict";s("core-js/modules/es.object.to-string.js"),Object.defineProperty(I,"__esModule",{value:!0}),I.isObject=void 0,I.isObject=function(u){return Object.prototype.toString.call(u)==="[object Object]"}},{"core-js/modules/es.object.to-string.js":291}],71:[function(s,E,I){"use strict";s("core-js/modules/es.object.to-string.js"),s("core-js/modules/web.dom-collections.for-each.js"),s("core-js/modules/es.object.keys.js"),Object.defineProperty(I,"__esModule",{value:!0}),I.lowercaseKeyHeader=void 0;var u=s("./isObject");function d(g){var y={};return u.isObject(g)&&Object.keys(g).forEach(function(S){y[S.toLowerCase()]=g[S]}),y}I.lowercaseKeyHeader=d},{"./isObject":70,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],72:[function(s,E,I){"use strict";s("core-js/modules/es.regexp.exec.js"),s("core-js/modules/es.string.replace.js"),s("core-js/modules/es.object.to-string.js"),s("core-js/modules/web.dom-collections.for-each.js"),s("core-js/modules/es.object.keys.js"),s("core-js/modules/es.array.concat.js"),s("core-js/modules/es.array.join.js"),s("core-js/modules/es.array.map.js"),s("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(I,"__esModule",{value:!0}),I.obj2xml=void 0;var u=s("./formatObjKey");function d(y){return Object.prototype.toString.call(y).replace(/(.*? |])/g,"").toLowerCase()}function g(y,S){var v="";return S&&S.headers&&(v=`<?xml version="1.0" encoding="UTF-8"?>
`),S&&S.firstUpperCase&&(y=u.formatObjKey(y,"firstUpperCase")),d(y)==="object"?Object.keys(y).forEach(function(c){d(y[c])!=="undefined"&&d(y[c])!=="null"&&(d(y[c])==="string"||d(y[c])==="number"?v+="<".concat(c,">").concat(y[c],"</").concat(c,">"):d(y[c])==="object"?v+="<".concat(c,">").concat(g(y[c]),"</").concat(c,">"):d(y[c])==="array"?v+=y[c].map(function(h){return"<".concat(c,">").concat(g(h),"</").concat(c,">")}).join(""):v+="<".concat(c,">").concat(y[c].toString(),"</").concat(c,">"))}):v+=y.toString(),v}I.obj2xml=g},{"./formatObjKey":61,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.map.js":280,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],73:[function(s,E,I){"use strict";s("core-js/modules/es.array.slice.js"),s("core-js/modules/es.object.to-string.js"),s("core-js/modules/es.function.name.js"),s("core-js/modules/es.array.from.js"),s("core-js/modules/es.string.iterator.js"),s("core-js/modules/es.regexp.exec.js"),s("core-js/modules/es.symbol.js"),s("core-js/modules/es.symbol.description.js"),s("core-js/modules/es.symbol.iterator.js"),s("core-js/modules/es.array.iterator.js"),s("core-js/modules/web.dom-collections.iterator.js"),s("core-js/modules/es.object.assign.js");function u(S,v){var c=typeof Symbol!="undefined"&&S[Symbol.iterator]||S["@@iterator"];if(!c){if(Array.isArray(S)||(c=d(S))||v&&S&&typeof S.length=="number"){c&&(S=c);var h=0,m=function(){};return{s:m,n:function(){return h>=S.length?{done:!0}:{done:!1,value:S[h++]}},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 x=!0,T=!1,_;return{s:function(){c=c.call(S)},n:function(){var A=c.next();return x=A.done,A},e:function(A){T=!0,_=A},f:function(){try{!x&&c.return!=null&&c.return()}finally{if(T)throw _}}}}function d(S,v){if(S){if(typeof S=="string")return g(S,v);var c=Object.prototype.toString.call(S).slice(8,-1);if(c==="Object"&&S.constructor&&(c=S.constructor.name),c==="Map"||c==="Set")return Array.from(S);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return g(S,v)}}function g(S,v){(v==null||v>S.length)&&(v=S.length);for(var c=0,h=new Array(v);c<v;c++)h[c]=S[c];return h}Object.defineProperty(I,"__esModule",{value:!0}),I.omit=void 0;function y(S,v){var c=Object.assign({},S),h=u(v),m;try{for(h.s();!(m=h.n()).done;){var x=m.value;delete c[x]}}catch(T){h.e(T)}finally{h.f()}return c}I.omit=y},{"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.iterator.js":303,"core-js/modules/es.symbol.description.js":310,"core-js/modules/es.symbol.iterator.js":312,"core-js/modules/es.symbol.js":313,"core-js/modules/web.dom-collections.iterator.js":340}],74:[function(s,E,I){"use strict";s("core-js/modules/es.object.to-string.js"),s("core-js/modules/es.promise.js"),Object.defineProperty(I,"__esModule",{value:!0}),I.retry=void 0;function u(d,g){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},S=0,v=y.retryDelay,c=v===void 0?500:v,h=y.errorHandler,m=h===void 0?function(){return!0}:h,x=function T(){for(var _=arguments.length,R=new Array(_),A=0;A<_;A++)R[A]=arguments[A];return new Promise(function(N,L){d.apply(void 0,R).then(function(M){S=0,N(M)}).catch(function(M){S<g&&m(M)?(S++,setTimeout(function(){N(T.apply(void 0,R))},c)):(S=0,L(M))})})};return x}I.retry=u},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],75:[function(s,E,I){"use strict";var u=function(S){return S&&S.__esModule?S:{default:S}};Object.defineProperty(I,"__esModule",{value:!0}),I.setRegion=void 0;var d=u(s("url")),g=s("./checkConfigValid");function y(S){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;g.checkConfigValid(S,"region");var h=c?"https://":"http://",m=v?"-internal.aliyuncs.com":".aliyuncs.com",x="vpc100-oss-cn-";return S.substr(0,x.length)===x&&(m=".aliyuncs.com"),d.default.parse(h+S+m)}I.setRegion=y},{"./checkConfigValid":52,url:472}],76:[function(s,E,I){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),d=u(s("@babel/runtime/regenerator"));s("core-js/modules/es.object.keys.js"),s("core-js/modules/es.object.to-string.js"),s("core-js/modules/es.array.find.js"),s("core-js/modules/es.object.assign.js");var g=u(s("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(I,"__esModule",{value:!0}),I.checkCredentials=I.setSTSToken=void 0;var y=s("./formatObjKey");function S(){return v.apply(this,arguments)}function v(){return v=(0,g.default)(d.default.mark(function h(){var m,x;return d.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(this.options||(this.options={}),m=new Date,!this.stsTokenFreshTime){_.next=14;break}if(!(+m-this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval)){_.next=12;break}return this.stsTokenFreshTime=m,_.next=7,this.options.refreshSTSToken();case 7:x=_.sent,x=y.formatObjKey(x,"firstLowerCase"),x.securityToken&&(x.stsToken=x.securityToken),c(x),Object.assign(this.options,x);case 12:_.next=15;break;case 14:this.stsTokenFreshTime=m;case 15:return _.abrupt("return",null);case 16:case"end":return _.stop()}},h,this)})),v.apply(this,arguments)}I.setSTSToken=S;function c(h){var m=["accessKeySecret","accessKeyId","stsToken"],x=Object.keys(h);m.forEach(function(T){if(!x.find(function(_){return _===T}))throw Error("refreshSTSToken must return contains ".concat(T))})}I.checkCredentials=c},{"./formatObjKey":61,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.find.js":275,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291}],77:[function(s,E,I){function u(g,y,S,v,c,h,m){try{var x=g[h](m),T=x.value}catch(_){S(_);return}x.done?y(T):Promise.resolve(T).then(v,c)}function d(g){return function(){var y=this,S=arguments;return new Promise(function(v,c){var h=g.apply(y,S);function m(T){u(h,v,c,m,x,"next",T)}function x(T){u(h,v,c,m,x,"throw",T)}m(void 0)})}}E.exports=d,E.exports.__esModule=!0,E.exports.default=E.exports},{}],78:[function(s,E,I){function u(d){return d&&d.__esModule?d:{default:d}}E.exports=u,E.exports.__esModule=!0,E.exports.default=E.exports},{}],79:[function(s,E,I){function u(d){"@babel/helpers - typeof";return E.exports=u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},E.exports.__esModule=!0,E.exports.default=E.exports,u(d)}E.exports=u,E.exports.__esModule=!0,E.exports.default=E.exports},{}],80:[function(s,E,I){E.exports=s("regenerator-runtime")},{"regenerator-runtime":395}],81:[function(s,E,I){E.exports=u,E.exports.HttpsAgent=u;function u(){}},{}],82:[function(s,E,I){(function(u){(function(){"use strict";var d=s("object-assign");function g(ce,we){if(ce===we)return 0;for(var me=ce.length,Le=we.length,ee=0,se=Math.min(me,Le);ee<se;++ee)if(ce[ee]!==we[ee]){me=ce[ee],Le=we[ee];break}return me<Le?-1:Le<me?1:0}function y(ce){return u.Buffer&&typeof u.Buffer.isBuffer=="function"?u.Buffer.isBuffer(ce):!!(ce!=null&&ce._isBuffer)}var S=s("util/"),v=Object.prototype.hasOwnProperty,c=Array.prototype.slice,h=function(){return function(){}.name==="foo"}();function m(ce){return Object.prototype.toString.call(ce)}function x(ce){return y(ce)||typeof u.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(ce):ce?!!(ce instanceof DataView||ce.buffer&&ce.buffer instanceof ArrayBuffer):!1}var T=E.exports=F,_=/\s*function\s+([^\(\s]*)\s*/;function R(ce){if(S.isFunction(ce)){if(h)return ce.name;var we=ce.toString(),me=we.match(_);return me&&me[1]}}T.AssertionError=function(we){this.name="AssertionError",this.actual=we.actual,this.expected=we.expected,this.operator=we.operator,we.message?(this.message=we.message,this.generatedMessage=!1):(this.message=L(this),this.generatedMessage=!0);var me=we.stackStartFunction||M;if(Error.captureStackTrace)Error.captureStackTrace(this,me);else{var Le=new Error;if(Le.stack){var ee=Le.stack,se=R(me),le=ee.indexOf(`
`+se);if(le>=0){var ke=ee.indexOf(`
`,le+1);ee=ee.substring(ke+1)}this.stack=ee}}},S.inherits(T.AssertionError,Error);function A(ce,we){return typeof ce=="string"?ce.length<we?ce:ce.slice(0,we):ce}function N(ce){if(h||!S.isFunction(ce))return S.inspect(ce);var we=R(ce),me=we?": "+we:"";return"[Function"+me+"]"}function L(ce){return A(N(ce.actual),128)+" "+ce.operator+" "+A(N(ce.expected),128)}function M(ce,we,me,Le,ee){throw new T.AssertionError({message:me,actual:ce,expected:we,operator:Le,stackStartFunction:ee})}T.fail=M;function F(ce,we){ce||M(ce,!0,we,"==",T.ok)}T.ok=F,T.equal=function(we,me,Le){we!=me&&M(we,me,Le,"==",T.equal)},T.notEqual=function(we,me,Le){we==me&&M(we,me,Le,"!=",T.notEqual)},T.deepEqual=function(we,me,Le){H(we,me,!1)||M(we,me,Le,"deepEqual",T.deepEqual)},T.deepStrictEqual=function(we,me,Le){H(we,me,!0)||M(we,me,Le,"deepStrictEqual",T.deepStrictEqual)};function H(ce,we,me,Le){if(ce===we)return!0;if(y(ce)&&y(we))return g(ce,we)===0;if(S.isDate(ce)&&S.isDate(we))return ce.getTime()===we.getTime();if(S.isRegExp(ce)&&S.isRegExp(we))return ce.source===we.source&&ce.global===we.global&&ce.multiline===we.multiline&&ce.lastIndex===we.lastIndex&&ce.ignoreCase===we.ignoreCase;if((ce===null||typeof ce!="object")&&(we===null||typeof we!="object"))return me?ce===we:ce==we;if(x(ce)&&x(we)&&m(ce)===m(we)&&!(ce instanceof Float32Array||ce instanceof Float64Array))return g(new Uint8Array(ce.buffer),new Uint8Array(we.buffer))===0;if(y(ce)!==y(we))return!1;Le=Le||{actual:[],expected:[]};var ee=Le.actual.indexOf(ce);return ee!==-1&&ee===Le.expected.indexOf(we)?!0:(Le.actual.push(ce),Le.expected.push(we),V(ce,we,me,Le))}function P(ce){return Object.prototype.toString.call(ce)=="[object Arguments]"}function V(ce,we,me,Le){if(ce==null||we===null||we===void 0)return!1;if(S.isPrimitive(ce)||S.isPrimitive(we))return ce===we;if(me&&Object.getPrototypeOf(ce)!==Object.getPrototypeOf(we))return!1;var ee=P(ce),se=P(we);if(ee&&!se||!ee&&se)return!1;if(ee)return ce=c.call(ce),we=c.call(we),H(ce,we,me);var le=he(ce),ke=he(we),De,Be;if(le.length!==ke.length)return!1;for(le.sort(),ke.sort(),Be=le.length-1;Be>=0;Be--)if(le[Be]!==ke[Be])return!1;for(Be=le.length-1;Be>=0;Be--)if(De=le[Be],!H(ce[De],we[De],me,Le))return!1;return!0}T.notDeepEqual=function(we,me,Le){H(we,me,!1)&&M(we,me,Le,"notDeepEqual",T.notDeepEqual)},T.notDeepStrictEqual=G;function G(ce,we,me){H(ce,we,!0)&&M(ce,we,me,"notDeepStrictEqual",G)}T.strictEqual=function(we,me,Le){we!==me&&M(we,me,Le,"===",T.strictEqual)},T.notStrictEqual=function(we,me,Le){we===me&&M(we,me,Le,"!==",T.notStrictEqual)};function Q(ce,we){if(!ce||!we)return!1;if(Object.prototype.toString.call(we)=="[object RegExp]")return we.test(ce);try{if(ce instanceof we)return!0}catch(me){}return Error.isPrototypeOf(we)?!1:we.call({},ce)===!0}function ne(ce){var we;try{ce()}catch(me){we=me}return we}function ue(ce,we,me,Le){var ee;if(typeof we!="function")throw new TypeError('"block" argument must be a function');typeof me=="string"&&(Le=me,me=null),ee=ne(we),Le=(me&&me.name?" ("+me.name+").":".")+(Le?" "+Le:"."),ce&&!ee&&M(ee,me,"Missing expected exception"+Le);var se=typeof Le=="string",le=!ce&&S.isError(ee),ke=!ce&&ee&&!me;if((le&&se&&Q(ee,me)||ke)&&M(ee,me,"Got unwanted exception"+Le),ce&&ee&&me&&!Q(ee,me)||!ce&&ee)throw ee}T.throws=function(ce,we,me){ue(!0,ce,we,me)},T.doesNotThrow=function(ce,we,me){ue(!1,ce,we,me)},T.ifError=function(ce){if(ce)throw ce};function ae(ce,we){ce||M(ce,!0,we,"==",ae)}T.strict=d(ae,T,{equal:T.strictEqual,deepEqual:T.deepStrictEqual,notEqual:T.notStrictEqual,notDeepEqual:T.notDeepStrictEqual}),T.strict.strict=T.strict;var he=Object.keys||function(ce){var we=[];for(var me in ce)v.call(ce,me)&&we.push(me);return we}}).call(this)}).call(this,typeof Z!="undefined"?Z:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"object-assign":377,"util/":85}],83:[function(s,E,I){typeof Object.create=="function"?E.exports=function(d,g){d.super_=g,d.prototype=Object.create(g.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}})}:E.exports=function(d,g){d.super_=g;var y=function(){};y.prototype=g.prototype,d.prototype=new y,d.prototype.constructor=d}},{}],84:[function(s,E,I){E.exports=function(d){return d&&typeof d=="object"&&typeof d.copy=="function"&&typeof d.fill=="function"&&typeof d.readUInt8=="function"}},{}],85:[function(s,E,I){(function(u,d){(function(){var g=/%[sdj%]/g;I.format=function(ke){if(!V(ke)){for(var De=[],Be=0;Be<arguments.length;Be++)De.push(v(arguments[Be]));return De.join(" ")}for(var Be=1,He=arguments,Fe=He.length,Je=String(ke).replace(g,function(lt){if(lt==="%%")return"%";if(Be>=Fe)return lt;switch(lt){case"%s":return String(He[Be++]);case"%d":return Number(He[Be++]);case"%j":try{return JSON.stringify(He[Be++])}catch(Re){return"[Circular]"}default:return lt}}),Me=He[Be];Be<Fe;Me=He[++Be])F(Me)||!ue(Me)?Je+=" "+Me:Je+=" "+v(Me);return Je},I.deprecate=function(ke,De){if(Q(d.process))return function(){return I.deprecate(ke,De).apply(this,arguments)};if(u.noDeprecation===!0)return ke;var Be=!1;function He(){if(!Be){if(u.throwDeprecation)throw new Error(De);u.traceDeprecation?console.trace(De):console.error(De),Be=!0}return ke.apply(this,arguments)}return He};var y={},S;I.debuglog=function(ke){if(Q(S)&&(S=u.env.NODE_DEBUG||""),ke=ke.toUpperCase(),!y[ke])if(new RegExp("\\b"+ke+"\\b","i").test(S)){var De=u.pid;y[ke]=function(){var Be=I.format.apply(I,arguments);console.error("%s %d: %s",ke,De,Be)}}else y[ke]=function(){};return y[ke]};function v(ke,De){var Be={seen:[],stylize:h};return arguments.length>=3&&(Be.depth=arguments[2]),arguments.length>=4&&(Be.colors=arguments[3]),M(De)?Be.showHidden=De:De&&I._extend(Be,De),Q(Be.showHidden)&&(Be.showHidden=!1),Q(Be.depth)&&(Be.depth=2),Q(Be.colors)&&(Be.colors=!1),Q(Be.customInspect)&&(Be.customInspect=!0),Be.colors&&(Be.stylize=c),x(Be,ke,Be.depth)}I.inspect=v,v.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]},v.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function c(ke,De){var Be=v.styles[De];return Be?"\x1B["+v.colors[Be][0]+"m"+ke+"\x1B["+v.colors[Be][1]+"m":ke}function h(ke,De){return ke}function m(ke){var De={};return ke.forEach(function(Be,He){De[Be]=!0}),De}function x(ke,De,Be){if(ke.customInspect&&De&&ce(De.inspect)&&De.inspect!==I.inspect&&!(De.constructor&&De.constructor.prototype===De)){var He=De.inspect(Be,ke);return V(He)||(He=x(ke,He,Be)),He}var Fe=T(ke,De);if(Fe)return Fe;var Je=Object.keys(De),Me=m(Je);if(ke.showHidden&&(Je=Object.getOwnPropertyNames(De)),he(De)&&(Je.indexOf("message")>=0||Je.indexOf("description")>=0))return _(De);if(Je.length===0){if(ce(De)){var lt=De.name?": "+De.name:"";return ke.stylize("[Function"+lt+"]","special")}if(ne(De))return ke.stylize(RegExp.prototype.toString.call(De),"regexp");if(ae(De))return ke.stylize(Date.prototype.toString.call(De),"date");if(he(De))return _(De)}var Re="",Oe=!1,pe=["{","}"];if(L(De)&&(Oe=!0,pe=["[","]"]),ce(De)){var fe=De.name?": "+De.name:"";Re=" [Function"+fe+"]"}if(ne(De)&&(Re=" "+RegExp.prototype.toString.call(De)),ae(De)&&(Re=" "+Date.prototype.toUTCString.call(De)),he(De)&&(Re=" "+_(De)),Je.length===0&&(!Oe||De.length==0))return pe[0]+Re+pe[1];if(Be<0)return ne(De)?ke.stylize(RegExp.prototype.toString.call(De),"regexp"):ke.stylize("[Object]","special");ke.seen.push(De);var z;return Oe?z=R(ke,De,Be,Me,Je):z=Je.map(function(J){return A(ke,De,Be,Me,J,Oe)}),ke.seen.pop(),N(z,Re,pe)}function T(ke,De){if(Q(De))return ke.stylize("undefined","undefined");if(V(De)){var Be="'"+JSON.stringify(De).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return ke.stylize(Be,"string")}if(P(De))return ke.stylize(""+De,"number");if(M(De))return ke.stylize(""+De,"boolean");if(F(De))return ke.stylize("null","null")}function _(ke){return"["+Error.prototype.toString.call(ke)+"]"}function R(ke,De,Be,He,Fe){for(var Je=[],Me=0,lt=De.length;Me<lt;++Me)le(De,String(Me))?Je.push(A(ke,De,Be,He,String(Me),!0)):Je.push("");return Fe.forEach(function(Re){Re.match(/^\d+$/)||Je.push(A(ke,De,Be,He,Re,!0))}),Je}function A(ke,De,Be,He,Fe,Je){var Me,lt,Re;if(Re=Object.getOwnPropertyDescriptor(De,Fe)||{value:De[Fe]},Re.get?Re.set?lt=ke.stylize("[Getter/Setter]","special"):lt=ke.stylize("[Getter]","special"):Re.set&&(lt=ke.stylize("[Setter]","special")),le(He,Fe)||(Me="["+Fe+"]"),lt||(ke.seen.indexOf(Re.value)<0?(F(Be)?lt=x(ke,Re.value,null):lt=x(ke,Re.value,Be-1),lt.indexOf(`
`)>-1&&(Je?lt=lt.split(`
`).map(function(Oe){return" "+Oe}).join(`
`).substr(2):lt=`
`+lt.split(`
`).map(function(Oe){return" "+Oe}).join(`
`))):lt=ke.stylize("[Circular]","special")),Q(Me)){if(Je&&Fe.match(/^\d+$/))return lt;Me=JSON.stringify(""+Fe),Me.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Me=Me.substr(1,Me.length-2),Me=ke.stylize(Me,"name")):(Me=Me.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Me=ke.stylize(Me,"string"))}return Me+": "+lt}function N(ke,De,Be){var He=0,Fe=ke.reduce(function(Je,Me){return He++,Me.indexOf(`
`)>=0&&He++,Je+Me.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Fe>60?Be[0]+(De===""?"":De+`
`)+" "+ke.join(`,
`)+" "+Be[1]:Be[0]+De+" "+ke.join(", ")+" "+Be[1]}function L(ke){return Array.isArray(ke)}I.isArray=L;function M(ke){return typeof ke=="boolean"}I.isBoolean=M;function F(ke){return ke===null}I.isNull=F;function H(ke){return ke==null}I.isNullOrUndefined=H;function P(ke){return typeof ke=="number"}I.isNumber=P;function V(ke){return typeof ke=="string"}I.isString=V;function G(ke){return typeof ke=="symbol"}I.isSymbol=G;function Q(ke){return ke===void 0}I.isUndefined=Q;function ne(ke){return ue(ke)&&me(ke)==="[object RegExp]"}I.isRegExp=ne;function ue(ke){return typeof ke=="object"&&ke!==null}I.isObject=ue;function ae(ke){return ue(ke)&&me(ke)==="[object Date]"}I.isDate=ae;function he(ke){return ue(ke)&&(me(ke)==="[object Error]"||ke instanceof Error)}I.isError=he;function ce(ke){return typeof ke=="function"}I.isFunction=ce;function we(ke){return ke===null||typeof ke=="boolean"||typeof ke=="number"||typeof ke=="string"||typeof ke=="symbol"||typeof ke=="undefined"}I.isPrimitive=we,I.isBuffer=s("./support/isBuffer");function me(ke){return Object.prototype.toString.call(ke)}function Le(ke){return ke<10?"0"+ke.toString(10):ke.toString(10)}var ee=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function se(){var ke=new Date,De=[Le(ke.getHours()),Le(ke.getMinutes()),Le(ke.getSeconds())].join(":");return[ke.getDate(),ee[ke.getMonth()],De].join(" ")}I.log=function(){console.log("%s - %s",se(),I.format.apply(I,arguments))},I.inherits=s("inherits"),I._extend=function(ke,De){if(!De||!ue(De))return ke;for(var Be=Object.keys(De),He=Be.length;He--;)ke[Be[He]]=De[Be[He]];return ke};function le(ke,De){return Object.prototype.hasOwnProperty.call(ke,De)}}).call(this)}).call(this,s("_process"),typeof Z!="undefined"?Z:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":84,_process:467,inherits:83}],86:[function(s,E,I){(function(u){(function(){"use strict";var d=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],g=typeof globalThis=="undefined"?u:globalThis;E.exports=function(){for(var S=[],v=0;v<d.length;v++)typeof g[d[v]]=="function"&&(S[S.length]=d[v]);return S}}).call(this)}).call(this,typeof Z!="undefined"?Z:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],87:[function(s,E,I){"use strict";I.byteLength=h,I.toByteArray=x,I.fromByteArray=R;for(var u=[],d=[],g=typeof Uint8Array!="undefined"?Uint8Array:Array,y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",S=0,v=y.length;S<v;++S)u[S]=y[S],d[y.charCodeAt(S)]=S;d[45]=62,d[95]=63;function c(A){var N=A.length;if(N%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var L=A.indexOf("=");L===-1&&(L=N);var M=L===N?0:4-L%4;return[L,M]}function h(A){var N=c(A),L=N[0],M=N[1];return(L+M)*3/4-M}function m(A,N,L){return(N+L)*3/4-L}function x(A){var N,L=c(A),M=L[0],F=L[1],H=new g(m(A,M,F)),P=0,V=F>0?M-4:M,G;for(G=0;G<V;G+=4)N=d[A.charCodeAt(G)]<<18|d[A.charCodeAt(G+1)]<<12|d[A.charCodeAt(G+2)]<<6|d[A.charCodeAt(G+3)],H[P++]=N>>16&255,H[P++]=N>>8&255,H[P++]=N&255;return F===2&&(N=d[A.charCodeAt(G)]<<2|d[A.charCodeAt(G+1)]>>4,H[P++]=N&255),F===1&&(N=d[A.charCodeAt(G)]<<10|d[A.charCodeAt(G+1)]<<4|d[A.charCodeAt(G+2)]>>2,H[P++]=N>>8&255,H[P++]=N&255),H}function T(A){return u[A>>18&63]+u[A>>12&63]+u[A>>6&63]+u[A&63]}function _(A,N,L){for(var M,F=[],H=N;H<L;H+=3)M=(A[H]<<16&16711680)+(A[H+1]<<8&65280)+(A[H+2]&255),F.push(T(M));return F.join("")}function R(A){for(var N,L=A.length,M=L%3,F=[],H=16383,P=0,V=L-M;P<V;P+=H)F.push(_(A,P,P+H>V?V:P+H));return M===1?(N=A[L-1],F.push(u[N>>2]+u[N<<4&63]+"==")):M===2&&(N=(A[L-2]<<8)+A[L-1],F.push(u[N>>10]+u[N>>4&63]+u[N<<2&63]+"=")),F.join("")}},{}],88:[function(s,E,I){(function(u,d,g){typeof E!="undefined"&&E.exports?E.exports=g():typeof b=="function"&&b.amd?b(d,g):u[d]=g()})(this,"bowser",function(){var u=!0;function d(m){function x(De){var Be=m.match(De);return Be&&Be.length>1&&Be[1]||""}function T(De){var Be=m.match(De);return Be&&Be.length>1&&Be[2]||""}var _=x(/(ipod|iphone|ipad)/i).toLowerCase(),R=/like android/i.test(m),A=!R&&/android/i.test(m),N=/nexus\s*[0-6]\s*/i.test(m),L=!N&&/nexus\s*[0-9]+/i.test(m),M=/CrOS/.test(m),F=/silk/i.test(m),H=/sailfish/i.test(m),P=/tizen/i.test(m),V=/(web|hpw)(o|0)s/i.test(m),G=/windows phone/i.test(m),Q=/SamsungBrowser/i.test(m),ne=!G&&/windows/i.test(m),ue=!_&&!F&&/macintosh/i.test(m),ae=!A&&!H&&!P&&!V&&/linux/i.test(m),he=T(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),ce=x(/version\/(\d+(\.\d+)?)/i),we=/tablet/i.test(m)&&!/tablet pc/i.test(m),me=!we&&/[^-]mobi/i.test(m),Le=/xbox/i.test(m),ee;/opera/i.test(m)?ee={name:"Opera",opera:u,version:ce||x(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(m)?ee={name:"Opera",opera:u,version:x(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||ce}:/SamsungBrowser/i.test(m)?ee={name:"Samsung Internet for Android",samsungBrowser:u,version:ce||x(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(m)?ee={name:"NAVER Whale browser",whale:u,version:x(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(m)?ee={name:"MZ Browser",mzbrowser:u,version:x(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(m)?ee={name:"Opera Coast",coast:u,version:ce||x(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(m)?ee={name:"Focus",focus:u,version:x(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(m)?ee={name:"Yandex Browser",yandexbrowser:u,version:ce||x(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(m)?ee={name:"UC Browser",ucbrowser:u,version:x(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(m)?ee={name:"Maxthon",maxthon:u,version:x(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(m)?ee={name:"Epiphany",epiphany:u,version:x(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(m)?ee={name:"Puffin",puffin:u,version:x(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(m)?ee={name:"Sleipnir",sleipnir:u,version:x(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(m)?ee={name:"K-Meleon",kMeleon:u,version:x(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:G?(ee={name:"Windows Phone",osname:"Windows Phone",windowsphone:u},he?(ee.msedge=u,ee.version=he):(ee.msie=u,ee.version=x(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(m)?ee={name:"Internet Explorer",msie:u,version:x(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:M?ee={name:"Chrome",osname:"Chrome OS",chromeos:u,chromeBook:u,chrome:u,version:x(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(m)?ee={name:"Microsoft Edge",msedge:u,version:he}:/vivaldi/i.test(m)?ee={name:"Vivaldi",vivaldi:u,version:x(/vivaldi\/(\d+(\.\d+)?)/i)||ce}:H?ee={name:"Sailfish",osname:"Sailfish OS",sailfish:u,version:x(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(m)?ee={name:"SeaMonkey",seamonkey:u,version:x(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(m)?(ee={name:"Firefox",firefox:u,version:x(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(m)&&(ee.firefoxos=u,ee.osname="Firefox OS")):F?ee={name:"Amazon Silk",silk:u,version:x(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(m)?ee={name:"PhantomJS",phantom:u,version:x(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(m)?ee={name:"SlimerJS",slimer:u,version:x(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(m)||/rim\stablet/i.test(m)?ee={name:"BlackBerry",osname:"BlackBerry OS",blackberry:u,version:ce||x(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:V?(ee={name:"WebOS",osname:"WebOS",webos:u,version:ce||x(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(m)&&(ee.touchpad=u)):/bada/i.test(m)?ee={name:"Bada",osname:"Bada",bada:u,version:x(/dolfin\/(\d+(\.\d+)?)/i)}:P?ee={name:"Tizen",osname:"Tizen",tizen:u,version:x(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||ce}:/qupzilla/i.test(m)?ee={name:"QupZilla",qupzilla:u,version:x(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||ce}:/chromium/i.test(m)?ee={name:"Chromium",chromium:u,version:x(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||ce}:/chrome|crios|crmo/i.test(m)?ee={name:"Chrome",chrome:u,version:x(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:A?ee={name:"Android",version:ce}:/safari|applewebkit/i.test(m)?(ee={name:"Safari",safari:u},ce&&(ee.version=ce)):_?(ee={name:_=="iphone"?"iPhone":_=="ipad"?"iPad":"iPod"},ce&&(ee.version=ce)):/googlebot/i.test(m)?ee={name:"Googlebot",googlebot:u,version:x(/googlebot\/(\d+(\.\d+))/i)||ce}:ee={name:x(/^(.*)\/(.*) /),version:T(/^(.*)\/(.*) /)},!ee.msedge&&/(apple)?webkit/i.test(m)?(/(apple)?webkit\/537\.36/i.test(m)?(ee.name=ee.name||"Blink",ee.blink=u):(ee.name=ee.name||"Webkit",ee.webkit=u),!ee.version&&ce&&(ee.version=ce)):!ee.opera&&/gecko\//i.test(m)&&(ee.name=ee.name||"Gecko",ee.gecko=u,ee.version=ee.version||x(/gecko\/(\d+(\.\d+)?)/i)),!ee.windowsphone&&(A||ee.silk)?(ee.android=u,ee.osname="Android"):!ee.windowsphone&&_?(ee[_]=u,ee.ios=u,ee.osname="iOS"):ue?(ee.mac=u,ee.osname="macOS"):Le?(ee.xbox=u,ee.osname="Xbox"):ne?(ee.windows=u,ee.osname="Windows"):ae&&(ee.linux=u,ee.osname="Linux");function se(De){switch(De){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 le="";ee.windows?le=se(x(/Windows ((NT|XP)( \d\d?.\d)?)/i)):ee.windowsphone?le=x(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):ee.mac?(le=x(/Mac OS X (\d+([_\.\s]\d+)*)/i),le=le.replace(/[_\s]/g,".")):_?(le=x(/os (\d+([_\s]\d+)*) like mac os x/i),le=le.replace(/[_\s]/g,".")):A?le=x(/android[ \/-](\d+(\.\d+)*)/i):ee.webos?le=x(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):ee.blackberry?le=x(/rim\stablet\sos\s(\d+(\.\d+)*)/i):ee.bada?le=x(/bada\/(\d+(\.\d+)*)/i):ee.tizen&&(le=x(/tizen[\/\s](\d+(\.\d+)*)/i)),le&&(ee.osversion=le);var ke=!ee.windows&&le.split(".")[0];return we||L||_=="ipad"||A&&(ke==3||ke>=4&&!me)||ee.silk?ee.tablet=u:(me||_=="iphone"||_=="ipod"||A||N||ee.blackberry||ee.webos||ee.bada)&&(ee.mobile=u),ee.msedge||ee.msie&&ee.version>=10||ee.yandexbrowser&&ee.version>=15||ee.vivaldi&&ee.version>=1||ee.chrome&&ee.version>=20||ee.samsungBrowser&&ee.version>=4||ee.whale&&v([ee.version,"1.0"])===1||ee.mzbrowser&&v([ee.version,"6.0"])===1||ee.focus&&v([ee.version,"1.0"])===1||ee.firefox&&ee.version>=20||ee.safari&&ee.version>=6||ee.opera&&ee.version>=10||ee.ios&&ee.osversion&&ee.osversion.split(".")[0]>=6||ee.blackberry&&ee.version>=10.1||ee.chromium&&ee.version>=20?ee.a=u:ee.msie&&ee.version<10||ee.chrome&&ee.version<20||ee.firefox&&ee.version<20||ee.safari&&ee.version<6||ee.opera&&ee.version<10||ee.ios&&ee.osversion&&ee.osversion.split(".")[0]<6||ee.chromium&&ee.version<20?ee.c=u:ee.x=u,ee}var g=d(typeof navigator!="undefined"&&navigator.userAgent||"");g.test=function(m){for(var x=0;x<m.length;++x){var T=m[x];if(typeof T=="string"&&T in g)return!0}return!1};function y(m){return m.split(".").length}function S(m,x){var T=[],_;if(Array.prototype.map)return Array.prototype.map.call(m,x);for(_=0;_<m.length;_++)T.push(x(m[_]));return T}function v(m){for(var x=Math.max(y(m[0]),y(m[1])),T=S(m,function(_){var R=x-y(_);return _=_+new Array(R+1).join(".0"),S(_.split("."),function(A){return new Array(20-A.length).join("0")+A}).reverse()});--x>=0;){if(T[0][x]>T[1][x])return 1;if(T[0][x]===T[1][x]){if(x===0)return 0}else return-1}}function c(m,x,T){var _=g;typeof x=="string"&&(T=x,x=void 0),x===void 0&&(x=!1),T&&(_=d(T));var R=""+_.version;for(var A in m)if(m.hasOwnProperty(A)&&_[A]){if(typeof m[A]!="string")throw new Error("Browser version in the minVersion map should be a string: "+A+": "+String(m));return v([R,m[A]])<0}return x}function h(m,x,T){return!c(m,x,T)}return g.isUnsupportedBrowser=c,g.compareVersions=v,g.check=h,g._detect=d,g.detect=d,g})},{}],89:[function(s,E,I){},{}],90:[function(s,E,I){(function(u){(function(){"use strict";var d=s("base64-js"),g=s("ieee754");I.Buffer=c,I.SlowBuffer=M,I.INSPECT_MAX_BYTES=50;var y=2147483647;I.kMaxLength=y,c.TYPED_ARRAY_SUPPORT=S(),!c.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function S(){try{var ie=new Uint8Array(1);return ie.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},ie.foo()===42}catch(ve){return!1}}Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}});function v(ie){if(ie>y)throw new RangeError('The value "'+ie+'" is invalid for option "size"');var ve=new Uint8Array(ie);return ve.__proto__=c.prototype,ve}function c(ie,ve,Ne){if(typeof ie=="number"){if(typeof ve=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return T(ie)}return h(ie,ve,Ne)}typeof Symbol!="undefined"&&Symbol.species!=null&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),c.poolSize=8192;function h(ie,ve,Ne){if(typeof ie=="string")return _(ie,ve);if(ArrayBuffer.isView(ie))return R(ie);if(ie==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ie);if(_e(ie,ArrayBuffer)||ie&&_e(ie.buffer,ArrayBuffer))return A(ie,ve,Ne);if(typeof ie=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var ze=ie.valueOf&&ie.valueOf();if(ze!=null&&ze!==ie)return c.from(ze,ve,Ne);var Ve=N(ie);if(Ve)return Ve;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof ie[Symbol.toPrimitive]=="function")return c.from(ie[Symbol.toPrimitive]("string"),ve,Ne);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ie)}c.from=function(ie,ve,Ne){return h(ie,ve,Ne)},c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array;function m(ie){if(typeof ie!="number")throw new TypeError('"size" argument must be of type number');if(ie<0)throw new RangeError('The value "'+ie+'" is invalid for option "size"')}function x(ie,ve,Ne){return m(ie),ie<=0?v(ie):ve!==void 0?typeof Ne=="string"?v(ie).fill(ve,Ne):v(ie).fill(ve):v(ie)}c.alloc=function(ie,ve,Ne){return x(ie,ve,Ne)};function T(ie){return m(ie),v(ie<0?0:L(ie)|0)}c.allocUnsafe=function(ie){return T(ie)},c.allocUnsafeSlow=function(ie){return T(ie)};function _(ie,ve){if((typeof ve!="string"||ve==="")&&(ve="utf8"),!c.isEncoding(ve))throw new TypeError("Unknown encoding: "+ve);var Ne=F(ie,ve)|0,ze=v(Ne),Ve=ze.write(ie,ve);return Ve!==Ne&&(ze=ze.slice(0,Ve)),ze}function R(ie){for(var ve=ie.length<0?0:L(ie.length)|0,Ne=v(ve),ze=0;ze<ve;ze+=1)Ne[ze]=ie[ze]&255;return Ne}function A(ie,ve,Ne){if(ve<0||ie.byteLength<ve)throw new RangeError('"offset" is outside of buffer bounds');if(ie.byteLength<ve+(Ne||0))throw new RangeError('"length" is outside of buffer bounds');var ze;return ve===void 0&&Ne===void 0?ze=new Uint8Array(ie):Ne===void 0?ze=new Uint8Array(ie,ve):ze=new Uint8Array(ie,ve,Ne),ze.__proto__=c.prototype,ze}function N(ie){if(c.isBuffer(ie)){var ve=L(ie.length)|0,Ne=v(ve);return Ne.length===0||ie.copy(Ne,0,0,ve),Ne}if(ie.length!==void 0)return typeof ie.length!="number"||oe(ie.length)?v(0):R(ie);if(ie.type==="Buffer"&&Array.isArray(ie.data))return R(ie.data)}function L(ie){if(ie>=y)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+y.toString(16)+" bytes");return ie|0}function M(ie){return+ie!=ie&&(ie=0),c.alloc(+ie)}c.isBuffer=function(ve){return ve!=null&&ve._isBuffer===!0&&ve!==c.prototype},c.compare=function(ve,Ne){if(_e(ve,Uint8Array)&&(ve=c.from(ve,ve.offset,ve.byteLength)),_e(Ne,Uint8Array)&&(Ne=c.from(Ne,Ne.offset,Ne.byteLength)),!c.isBuffer(ve)||!c.isBuffer(Ne))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(ve===Ne)return 0;for(var ze=ve.length,Ve=Ne.length,yt=0,ct=Math.min(ze,Ve);yt<ct;++yt)if(ve[yt]!==Ne[yt]){ze=ve[yt],Ve=Ne[yt];break}return ze<Ve?-1:Ve<ze?1:0},c.isEncoding=function(ve){switch(String(ve).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(ve,Ne){if(!Array.isArray(ve))throw new TypeError('"list" argument must be an Array of Buffers');if(ve.length===0)return c.alloc(0);var ze;if(Ne===void 0)for(Ne=0,ze=0;ze<ve.length;++ze)Ne+=ve[ze].length;var Ve=c.allocUnsafe(Ne),yt=0;for(ze=0;ze<ve.length;++ze){var ct=ve[ze];if(_e(ct,Uint8Array)&&(ct=c.from(ct)),!c.isBuffer(ct))throw new TypeError('"list" argument must be an Array of Buffers');ct.copy(Ve,yt),yt+=ct.length}return Ve};function F(ie,ve){if(c.isBuffer(ie))return ie.length;if(ArrayBuffer.isView(ie)||_e(ie,ArrayBuffer))return ie.byteLength;if(typeof ie!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof ie);var Ne=ie.length,ze=arguments.length>2&&arguments[2]===!0;if(!ze&&Ne===0)return 0;for(var Ve=!1;;)switch(ve){case"ascii":case"latin1":case"binary":return Ne;case"utf8":case"utf-8":return pe(ie).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ne*2;case"hex":return Ne>>>1;case"base64":return J(ie).length;default:if(Ve)return ze?-1:pe(ie).length;ve=(""+ve).toLowerCase(),Ve=!0}}c.byteLength=F;function H(ie,ve,Ne){var ze=!1;if((ve===void 0||ve<0)&&(ve=0),ve>this.length||((Ne===void 0||Ne>this.length)&&(Ne=this.length),Ne<=0)||(Ne>>>=0,ve>>>=0,Ne<=ve))return"";for(ie||(ie="utf8");;)switch(ie){case"hex":return ke(this,ve,Ne);case"utf8":case"utf-8":return me(this,ve,Ne);case"ascii":return se(this,ve,Ne);case"latin1":case"binary":return le(this,ve,Ne);case"base64":return we(this,ve,Ne);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return De(this,ve,Ne);default:if(ze)throw new TypeError("Unknown encoding: "+ie);ie=(ie+"").toLowerCase(),ze=!0}}c.prototype._isBuffer=!0;function P(ie,ve,Ne){var ze=ie[ve];ie[ve]=ie[Ne],ie[Ne]=ze}c.prototype.swap16=function(){var ve=this.length;if(ve%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Ne=0;Ne<ve;Ne+=2)P(this,Ne,Ne+1);return this},c.prototype.swap32=function(){var ve=this.length;if(ve%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Ne=0;Ne<ve;Ne+=4)P(this,Ne,Ne+3),P(this,Ne+1,Ne+2);return this},c.prototype.swap64=function(){var ve=this.length;if(ve%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Ne=0;Ne<ve;Ne+=8)P(this,Ne,Ne+7),P(this,Ne+1,Ne+6),P(this,Ne+2,Ne+5),P(this,Ne+3,Ne+4);return this},c.prototype.toString=function(){var ve=this.length;return ve===0?"":arguments.length===0?me(this,0,ve):H.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(ve){if(!c.isBuffer(ve))throw new TypeError("Argument must be a Buffer");return this===ve?!0:c.compare(this,ve)===0},c.prototype.inspect=function(){var ve="",Ne=I.INSPECT_MAX_BYTES;return ve=this.toString("hex",0,Ne).replace(/(.{2})/g,"$1 ").trim(),this.length>Ne&&(ve+=" ... "),"<Buffer "+ve+">"},c.prototype.compare=function(ve,Ne,ze,Ve,yt){if(_e(ve,Uint8Array)&&(ve=c.from(ve,ve.offset,ve.byteLength)),!c.isBuffer(ve))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof ve);if(Ne===void 0&&(Ne=0),ze===void 0&&(ze=ve?ve.length:0),Ve===void 0&&(Ve=0),yt===void 0&&(yt=this.length),Ne<0||ze>ve.length||Ve<0||yt>this.length)throw new RangeError("out of range index");if(Ve>=yt&&Ne>=ze)return 0;if(Ve>=yt)return-1;if(Ne>=ze)return 1;if(Ne>>>=0,ze>>>=0,Ve>>>=0,yt>>>=0,this===ve)return 0;for(var ct=yt-Ve,St=ze-Ne,_t=Math.min(ct,St),At=this.slice(Ve,yt),ht=ve.slice(Ne,ze),wt=0;wt<_t;++wt)if(At[wt]!==ht[wt]){ct=At[wt],St=ht[wt];break}return ct<St?-1:St<ct?1:0};function V(ie,ve,Ne,ze,Ve){if(ie.length===0)return-1;if(typeof Ne=="string"?(ze=Ne,Ne=0):Ne>2147483647?Ne=2147483647:Ne<-2147483648&&(Ne=-2147483648),Ne=+Ne,oe(Ne)&&(Ne=Ve?0:ie.length-1),Ne<0&&(Ne=ie.length+Ne),Ne>=ie.length){if(Ve)return-1;Ne=ie.length-1}else if(Ne<0)if(Ve)Ne=0;else return-1;if(typeof ve=="string"&&(ve=c.from(ve,ze)),c.isBuffer(ve))return ve.length===0?-1:G(ie,ve,Ne,ze,Ve);if(typeof ve=="number")return ve=ve&255,typeof Uint8Array.prototype.indexOf=="function"?Ve?Uint8Array.prototype.indexOf.call(ie,ve,Ne):Uint8Array.prototype.lastIndexOf.call(ie,ve,Ne):G(ie,[ve],Ne,ze,Ve);throw new TypeError("val must be string, number or Buffer")}function G(ie,ve,Ne,ze,Ve){var yt=1,ct=ie.length,St=ve.length;if(ze!==void 0&&(ze=String(ze).toLowerCase(),ze==="ucs2"||ze==="ucs-2"||ze==="utf16le"||ze==="utf-16le")){if(ie.length<2||ve.length<2)return-1;yt=2,ct/=2,St/=2,Ne/=2}function _t(st,ge){return yt===1?st[ge]:st.readUInt16BE(ge*yt)}var At;if(Ve){var ht=-1;for(At=Ne;At<ct;At++)if(_t(ie,At)===_t(ve,ht===-1?0:At-ht)){if(ht===-1&&(ht=At),At-ht+1===St)return ht*yt}else ht!==-1&&(At-=At-ht),ht=-1}else for(Ne+St>ct&&(Ne=ct-St),At=Ne;At>=0;At--){for(var wt=!0,jt=0;jt<St;jt++)if(_t(ie,At+jt)!==_t(ve,jt)){wt=!1;break}if(wt)return At}return-1}c.prototype.includes=function(ve,Ne,ze){return this.indexOf(ve,Ne,ze)!==-1},c.prototype.indexOf=function(ve,Ne,ze){return V(this,ve,Ne,ze,!0)},c.prototype.lastIndexOf=function(ve,Ne,ze){return V(this,ve,Ne,ze,!1)};function Q(ie,ve,Ne,ze){Ne=Number(Ne)||0;var Ve=ie.length-Ne;ze?(ze=Number(ze),ze>Ve&&(ze=Ve)):ze=Ve;var yt=ve.length;ze>yt/2&&(ze=yt/2);for(var ct=0;ct<ze;++ct){var St=parseInt(ve.substr(ct*2,2),16);if(oe(St))return ct;ie[Ne+ct]=St}return ct}function ne(ie,ve,Ne,ze){return be(pe(ve,ie.length-Ne),ie,Ne,ze)}function ue(ie,ve,Ne,ze){return be(fe(ve),ie,Ne,ze)}function ae(ie,ve,Ne,ze){return ue(ie,ve,Ne,ze)}function he(ie,ve,Ne,ze){return be(J(ve),ie,Ne,ze)}function ce(ie,ve,Ne,ze){return be(z(ve,ie.length-Ne),ie,Ne,ze)}c.prototype.write=function(ve,Ne,ze,Ve){if(Ne===void 0)Ve="utf8",ze=this.length,Ne=0;else if(ze===void 0&&typeof Ne=="string")Ve=Ne,ze=this.length,Ne=0;else if(isFinite(Ne))Ne=Ne>>>0,isFinite(ze)?(ze=ze>>>0,Ve===void 0&&(Ve="utf8")):(Ve=ze,ze=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var yt=this.length-Ne;if((ze===void 0||ze>yt)&&(ze=yt),ve.length>0&&(ze<0||Ne<0)||Ne>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ve||(Ve="utf8");for(var ct=!1;;)switch(Ve){case"hex":return Q(this,ve,Ne,ze);case"utf8":case"utf-8":return ne(this,ve,Ne,ze);case"ascii":return ue(this,ve,Ne,ze);case"latin1":case"binary":return ae(this,ve,Ne,ze);case"base64":return he(this,ve,Ne,ze);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ce(this,ve,Ne,ze);default:if(ct)throw new TypeError("Unknown encoding: "+Ve);Ve=(""+Ve).toLowerCase(),ct=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function we(ie,ve,Ne){return ve===0&&Ne===ie.length?d.fromByteArray(ie):d.fromByteArray(ie.slice(ve,Ne))}function me(ie,ve,Ne){Ne=Math.min(ie.length,Ne);for(var ze=[],Ve=ve;Ve<Ne;){var yt=ie[Ve],ct=null,St=yt>239?4:yt>223?3:yt>191?2:1;if(Ve+St<=Ne){var _t,At,ht,wt;switch(St){case 1:yt<128&&(ct=yt);break;case 2:_t=ie[Ve+1],(_t&192)===128&&(wt=(yt&31)<<6|_t&63,wt>127&&(ct=wt));break;case 3:_t=ie[Ve+1],At=ie[Ve+2],(_t&192)===128&&(At&192)===128&&(wt=(yt&15)<<12|(_t&63)<<6|At&63,wt>2047&&(wt<55296||wt>57343)&&(ct=wt));break;case 4:_t=ie[Ve+1],At=ie[Ve+2],ht=ie[Ve+3],(_t&192)===128&&(At&192)===128&&(ht&192)===128&&(wt=(yt&15)<<18|(_t&63)<<12|(At&63)<<6|ht&63,wt>65535&&wt<1114112&&(ct=wt))}}ct===null?(ct=65533,St=1):ct>65535&&(ct-=65536,ze.push(ct>>>10&1023|55296),ct=56320|ct&1023),ze.push(ct),Ve+=St}return ee(ze)}var Le=4096;function ee(ie){var ve=ie.length;if(ve<=Le)return String.fromCharCode.apply(String,ie);for(var Ne="",ze=0;ze<ve;)Ne+=String.fromCharCode.apply(String,ie.slice(ze,ze+=Le));return Ne}function se(ie,ve,Ne){var ze="";Ne=Math.min(ie.length,Ne);for(var Ve=ve;Ve<Ne;++Ve)ze+=String.fromCharCode(ie[Ve]&127);return ze}function le(ie,ve,Ne){var ze="";Ne=Math.min(ie.length,Ne);for(var Ve=ve;Ve<Ne;++Ve)ze+=String.fromCharCode(ie[Ve]);return ze}function ke(ie,ve,Ne){var ze=ie.length;(!ve||ve<0)&&(ve=0),(!Ne||Ne<0||Ne>ze)&&(Ne=ze);for(var Ve="",yt=ve;yt<Ne;++yt)Ve+=Oe(ie[yt]);return Ve}function De(ie,ve,Ne){for(var ze=ie.slice(ve,Ne),Ve="",yt=0;yt<ze.length;yt+=2)Ve+=String.fromCharCode(ze[yt]+ze[yt+1]*256);return Ve}c.prototype.slice=function(ve,Ne){var ze=this.length;ve=~~ve,Ne=Ne===void 0?ze:~~Ne,ve<0?(ve+=ze,ve<0&&(ve=0)):ve>ze&&(ve=ze),Ne<0?(Ne+=ze,Ne<0&&(Ne=0)):Ne>ze&&(Ne=ze),Ne<ve&&(Ne=ve);var Ve=this.subarray(ve,Ne);return Ve.__proto__=c.prototype,Ve};function Be(ie,ve,Ne){if(ie%1!==0||ie<0)throw new RangeError("offset is not uint");if(ie+ve>Ne)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUIntLE=function(ve,Ne,ze){ve=ve>>>0,Ne=Ne>>>0,ze||Be(ve,Ne,this.length);for(var Ve=this[ve],yt=1,ct=0;++ct<Ne&&(yt*=256);)Ve+=this[ve+ct]*yt;return Ve},c.prototype.readUIntBE=function(ve,Ne,ze){ve=ve>>>0,Ne=Ne>>>0,ze||Be(ve,Ne,this.length);for(var Ve=this[ve+--Ne],yt=1;Ne>0&&(yt*=256);)Ve+=this[ve+--Ne]*yt;return Ve},c.prototype.readUInt8=function(ve,Ne){return ve=ve>>>0,Ne||Be(ve,1,this.length),this[ve]},c.prototype.readUInt16LE=function(ve,Ne){return ve=ve>>>0,Ne||Be(ve,2,this.length),this[ve]|this[ve+1]<<8},c.prototype.readUInt16BE=function(ve,Ne){return ve=ve>>>0,Ne||Be(ve,2,this.length),this[ve]<<8|this[ve+1]},c.prototype.readUInt32LE=function(ve,Ne){return ve=ve>>>0,Ne||Be(ve,4,this.length),(this[ve]|this[ve+1]<<8|this[ve+2]<<16)+this[ve+3]*16777216},c.prototype.readUInt32BE=function(ve,Ne){return ve=ve>>>0,Ne||Be(ve,4,this.length),this[ve]*16777216+(this[ve+1]<<16|this[ve+2]<<8|this[ve+3])},c.prototype.readIntLE=function(ve,Ne,ze){ve=ve>>>0,Ne=Ne>>>0,ze||Be(ve,Ne,this.length);for(var Ve=this[ve],yt=1,ct=0;++ct<Ne&&(yt*=256);)Ve+=this[ve+ct]*yt;return yt*=128,Ve>=yt&&(Ve-=Math.pow(2,8*Ne)),Ve},c.prototype.readIntBE=function(ve,Ne,ze){ve=ve>>>0,Ne=Ne>>>0,ze||Be(ve,Ne,this.length);for(var Ve=Ne,yt=1,ct=this[ve+--Ve];Ve>0&&(yt*=256);)ct+=this[ve+--Ve]*yt;return yt*=128,ct>=yt&&(ct-=Math.pow(2,8*Ne)),ct},c.prototype.readInt8=function(ve,Ne){return ve=ve>>>0,Ne||Be(ve,1,this.length),this[ve]&128?(255-this[ve]+1)*-1:this[ve]},c.prototype.readInt16LE=function(ve,Ne){ve=ve>>>0,Ne||Be(ve,2,this.length);var ze=this[ve]|this[ve+1]<<8;return ze&32768?ze|4294901760:ze},c.prototype.readInt16BE=function(ve,Ne){ve=ve>>>0,Ne||Be(ve,2,this.length);var ze=this[ve+1]|this[ve]<<8;return ze&32768?ze|4294901760:ze},c.prototype.readInt32LE=function(ve,Ne){return ve=ve>>>0,Ne||Be(ve,4,this.length),this[ve]|this[ve+1]<<8|this[ve+2]<<16|this[ve+3]<<24},c.prototype.readInt32BE=function(ve,Ne){return ve=ve>>>0,Ne||Be(ve,4,this.length),this[ve]<<24|this[ve+1]<<16|this[ve+2]<<8|this[ve+3]},c.prototype.readFloatLE=function(ve,Ne){return ve=ve>>>0,Ne||Be(ve,4,this.length),g.read(this,ve,!0,23,4)},c.prototype.readFloatBE=function(ve,Ne){return ve=ve>>>0,Ne||Be(ve,4,this.length),g.read(this,ve,!1,23,4)},c.prototype.readDoubleLE=function(ve,Ne){return ve=ve>>>0,Ne||Be(ve,8,this.length),g.read(this,ve,!0,52,8)},c.prototype.readDoubleBE=function(ve,Ne){return ve=ve>>>0,Ne||Be(ve,8,this.length),g.read(this,ve,!1,52,8)};function He(ie,ve,Ne,ze,Ve,yt){if(!c.isBuffer(ie))throw new TypeError('"buffer" argument must be a Buffer instance');if(ve>Ve||ve<yt)throw new RangeError('"value" argument is out of bounds');if(Ne+ze>ie.length)throw new RangeError("Index out of range")}c.prototype.writeUIntLE=function(ve,Ne,ze,Ve){if(ve=+ve,Ne=Ne>>>0,ze=ze>>>0,!Ve){var yt=Math.pow(2,8*ze)-1;He(this,ve,Ne,ze,yt,0)}var ct=1,St=0;for(this[Ne]=ve&255;++St<ze&&(ct*=256);)this[Ne+St]=ve/ct&255;return Ne+ze},c.prototype.writeUIntBE=function(ve,Ne,ze,Ve){if(ve=+ve,Ne=Ne>>>0,ze=ze>>>0,!Ve){var yt=Math.pow(2,8*ze)-1;He(this,ve,Ne,ze,yt,0)}var ct=ze-1,St=1;for(this[Ne+ct]=ve&255;--ct>=0&&(St*=256);)this[Ne+ct]=ve/St&255;return Ne+ze},c.prototype.writeUInt8=function(ve,Ne,ze){return ve=+ve,Ne=Ne>>>0,ze||He(this,ve,Ne,1,255,0),this[Ne]=ve&255,Ne+1},c.prototype.writeUInt16LE=function(ve,Ne,ze){return ve=+ve,Ne=Ne>>>0,ze||He(this,ve,Ne,2,65535,0),this[Ne]=ve&255,this[Ne+1]=ve>>>8,Ne+2},c.prototype.writeUInt16BE=function(ve,Ne,ze){return ve=+ve,Ne=Ne>>>0,ze||He(this,ve,Ne,2,65535,0),this[Ne]=ve>>>8,this[Ne+1]=ve&255,Ne+2},c.prototype.writeUInt32LE=function(ve,Ne,ze){return ve=+ve,Ne=Ne>>>0,ze||He(this,ve,Ne,4,4294967295,0),this[Ne+3]=ve>>>24,this[Ne+2]=ve>>>16,this[Ne+1]=ve>>>8,this[Ne]=ve&255,Ne+4},c.prototype.writeUInt32BE=function(ve,Ne,ze){return ve=+ve,Ne=Ne>>>0,ze||He(this,ve,Ne,4,4294967295,0),this[Ne]=ve>>>24,this[Ne+1]=ve>>>16,this[Ne+2]=ve>>>8,this[Ne+3]=ve&255,Ne+4},c.prototype.writeIntLE=function(ve,Ne,ze,Ve){if(ve=+ve,Ne=Ne>>>0,!Ve){var yt=Math.pow(2,8*ze-1);He(this,ve,Ne,ze,yt-1,-yt)}var ct=0,St=1,_t=0;for(this[Ne]=ve&255;++ct<ze&&(St*=256);)ve<0&&_t===0&&this[Ne+ct-1]!==0&&(_t=1),this[Ne+ct]=(ve/St>>0)-_t&255;return Ne+ze},c.prototype.writeIntBE=function(ve,Ne,ze,Ve){if(ve=+ve,Ne=Ne>>>0,!Ve){var yt=Math.pow(2,8*ze-1);He(this,ve,Ne,ze,yt-1,-yt)}var ct=ze-1,St=1,_t=0;for(this[Ne+ct]=ve&255;--ct>=0&&(St*=256);)ve<0&&_t===0&&this[Ne+ct+1]!==0&&(_t=1),this[Ne+ct]=(ve/St>>0)-_t&255;return Ne+ze},c.prototype.writeInt8=function(ve,Ne,ze){return ve=+ve,Ne=Ne>>>0,ze||He(this,ve,Ne,1,127,-128),ve<0&&(ve=255+ve+1),this[Ne]=ve&255,Ne+1},c.prototype.writeInt16LE=function(ve,Ne,ze){return ve=+ve,Ne=Ne>>>0,ze||He(this,ve,Ne,2,32767,-32768),this[Ne]=ve&255,this[Ne+1]=ve>>>8,Ne+2},c.prototype.writeInt16BE=function(ve,Ne,ze){return ve=+ve,Ne=Ne>>>0,ze||He(this,ve,Ne,2,32767,-32768),this[Ne]=ve>>>8,this[Ne+1]=ve&255,Ne+2},c.prototype.writeInt32LE=function(ve,Ne,ze){return ve=+ve,Ne=Ne>>>0,ze||He(this,ve,Ne,4,2147483647,-2147483648),this[Ne]=ve&255,this[Ne+1]=ve>>>8,this[Ne+2]=ve>>>16,this[Ne+3]=ve>>>24,Ne+4},c.prototype.writeInt32BE=function(ve,Ne,ze){return ve=+ve,Ne=Ne>>>0,ze||He(this,ve,Ne,4,2147483647,-2147483648),ve<0&&(ve=4294967295+ve+1),this[Ne]=ve>>>24,this[Ne+1]=ve>>>16,this[Ne+2]=ve>>>8,this[Ne+3]=ve&255,Ne+4};function Fe(ie,ve,Ne,ze,Ve,yt){if(Ne+ze>ie.length)throw new RangeError("Index out of range");if(Ne<0)throw new RangeError("Index out of range")}function Je(ie,ve,Ne,ze,Ve){return ve=+ve,Ne=Ne>>>0,Ve||Fe(ie,ve,Ne,4,34028234663852886e22,-34028234663852886e22),g.write(ie,ve,Ne,ze,23,4),Ne+4}c.prototype.writeFloatLE=function(ve,Ne,ze){return Je(this,ve,Ne,!0,ze)},c.prototype.writeFloatBE=function(ve,Ne,ze){return Je(this,ve,Ne,!1,ze)};function Me(ie,ve,Ne,ze,Ve){return ve=+ve,Ne=Ne>>>0,Ve||Fe(ie,ve,Ne,8,17976931348623157e292,-17976931348623157e292),g.write(ie,ve,Ne,ze,52,8),Ne+8}c.prototype.writeDoubleLE=function(ve,Ne,ze){return Me(this,ve,Ne,!0,ze)},c.prototype.writeDoubleBE=function(ve,Ne,ze){return Me(this,ve,Ne,!1,ze)},c.prototype.copy=function(ve,Ne,ze,Ve){if(!c.isBuffer(ve))throw new TypeError("argument should be a Buffer");if(ze||(ze=0),!Ve&&Ve!==0&&(Ve=this.length),Ne>=ve.length&&(Ne=ve.length),Ne||(Ne=0),Ve>0&&Ve<ze&&(Ve=ze),Ve===ze||ve.length===0||this.length===0)return 0;if(Ne<0)throw new RangeError("targetStart out of bounds");if(ze<0||ze>=this.length)throw new RangeError("Index out of range");if(Ve<0)throw new RangeError("sourceEnd out of bounds");Ve>this.length&&(Ve=this.length),ve.length-Ne<Ve-ze&&(Ve=ve.length-Ne+ze);var yt=Ve-ze;if(this===ve&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(Ne,ze,Ve);else if(this===ve&&ze<Ne&&Ne<Ve)for(var ct=yt-1;ct>=0;--ct)ve[ct+Ne]=this[ct+ze];else Uint8Array.prototype.set.call(ve,this.subarray(ze,Ve),Ne);return yt},c.prototype.fill=function(ve,Ne,ze,Ve){if(typeof ve=="string"){if(typeof Ne=="string"?(Ve=Ne,Ne=0,ze=this.length):typeof ze=="string"&&(Ve=ze,ze=this.length),Ve!==void 0&&typeof Ve!="string")throw new TypeError("encoding must be a string");if(typeof Ve=="string"&&!c.isEncoding(Ve))throw new TypeError("Unknown encoding: "+Ve);if(ve.length===1){var yt=ve.charCodeAt(0);(Ve==="utf8"&&yt<128||Ve==="latin1")&&(ve=yt)}}else typeof ve=="number"&&(ve=ve&255);if(Ne<0||this.length<Ne||this.length<ze)throw new RangeError("Out of range index");if(ze<=Ne)return this;Ne=Ne>>>0,ze=ze===void 0?this.length:ze>>>0,ve||(ve=0);var ct;if(typeof ve=="number")for(ct=Ne;ct<ze;++ct)this[ct]=ve;else{var St=c.isBuffer(ve)?ve:c.from(ve,Ve),_t=St.length;if(_t===0)throw new TypeError('The value "'+ve+'" is invalid for argument "value"');for(ct=0;ct<ze-Ne;++ct)this[ct+Ne]=St[ct%_t]}return this};var lt=/[^+/0-9A-Za-z-_]/g;function Re(ie){if(ie=ie.split("=")[0],ie=ie.trim().replace(lt,""),ie.length<2)return"";for(;ie.length%4!==0;)ie=ie+"=";return ie}function Oe(ie){return ie<16?"0"+ie.toString(16):ie.toString(16)}function pe(ie,ve){ve=ve||1/0;for(var Ne,ze=ie.length,Ve=null,yt=[],ct=0;ct<ze;++ct){if(Ne=ie.charCodeAt(ct),Ne>55295&&Ne<57344){if(!Ve){if(Ne>56319){(ve-=3)>-1&&yt.push(239,191,189);continue}else if(ct+1===ze){(ve-=3)>-1&&yt.push(239,191,189);continue}Ve=Ne;continue}if(Ne<56320){(ve-=3)>-1&&yt.push(239,191,189),Ve=Ne;continue}Ne=(Ve-55296<<10|Ne-56320)+65536}else Ve&&(ve-=3)>-1&&yt.push(239,191,189);if(Ve=null,Ne<128){if((ve-=1)<0)break;yt.push(Ne)}else if(Ne<2048){if((ve-=2)<0)break;yt.push(Ne>>6|192,Ne&63|128)}else if(Ne<65536){if((ve-=3)<0)break;yt.push(Ne>>12|224,Ne>>6&63|128,Ne&63|128)}else if(Ne<1114112){if((ve-=4)<0)break;yt.push(Ne>>18|240,Ne>>12&63|128,Ne>>6&63|128,Ne&63|128)}else throw new Error("Invalid code point")}return yt}function fe(ie){for(var ve=[],Ne=0;Ne<ie.length;++Ne)ve.push(ie.charCodeAt(Ne)&255);return ve}function z(ie,ve){for(var Ne,ze,Ve,yt=[],ct=0;ct<ie.length&&!((ve-=2)<0);++ct)Ne=ie.charCodeAt(ct),ze=Ne>>8,Ve=Ne%256,yt.push(Ve),yt.push(ze);return yt}function J(ie){return d.toByteArray(Re(ie))}function be(ie,ve,Ne,ze){for(var Ve=0;Ve<ze&&!(Ve+Ne>=ve.length||Ve>=ie.length);++Ve)ve[Ve+Ne]=ie[Ve];return Ve}function _e(ie,ve){return ie instanceof ve||ie!=null&&ie.constructor!=null&&ie.constructor.name!=null&&ie.constructor.name===ve.name}function oe(ie){return ie!==ie}}).call(this)}).call(this,s("buffer").Buffer)},{"base64-js":87,buffer:90,ieee754:357}],91:[function(s,E,I){E.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],92:[function(s,E,I){"use strict";var u=s("get-intrinsic"),d=s("./"),g=d(u("String.prototype.indexOf"));E.exports=function(S,v){var c=u(S,!!v);return typeof c=="function"&&g(S,".prototype.")>-1?d(c):c}},{"./":93,"get-intrinsic":348}],93:[function(s,E,I){"use strict";var u=s("function-bind"),d=s("get-intrinsic"),g=d("%Function.prototype.apply%"),y=d("%Function.prototype.call%"),S=d("%Reflect.apply%",!0)||u.call(y,g),v=d("%Object.getOwnPropertyDescriptor%",!0),c=d("%Object.defineProperty%",!0),h=d("%Math.max%");if(c)try{c({},"a",{value:1})}catch(x){c=null}E.exports=function(T){var _=S(u,y,arguments);if(v&&c){var R=v(_,"length");R.configurable&&c(_,"length",{value:1+h(0,T.length-(arguments.length-1))})}return _};var m=function(){return S(u,g,arguments)};c?c(E.exports,"apply",{value:m}):E.exports.apply=m},{"function-bind":347,"get-intrinsic":348}],94:[function(s,E,I){"use strict";var u=Array.prototype.slice;E.exports=d;function d(y,S){if(!(this instanceof d))return new d(y,S);this.src=y,this._withAccess=S}d.prototype.withAccess=function(y){return this._withAccess=y!==!1,this},d.prototype.pick=function(y){return Array.isArray(y)||(y=u.call(arguments)),y.length&&(this.keys=y),this},d.prototype.to=function(y){if(y=y||{},!this.src)return y;var S=this.keys||Object.keys(this.src);if(!this._withAccess){for(var v=0;v<S.length;v++)c=S[v],y[c]===void 0&&(y[c]=this.src[c]);return y}for(var v=0;v<S.length;v++){var c=S[v];if(g(y,c)){var h=this.src.__lookupGetter__(c),m=this.src.__lookupSetter__(c);h&&y.__defineGetter__(c,h),m&&y.__defineSetter__(c,m),!h&&!m&&(y[c]=this.src[c])}}return y},d.prototype.toCover=function(y){for(var S=this.keys||Object.keys(this.src),v=0;v<S.length;v++){var c=S[v];delete y[c];var h=this.src.__lookupGetter__(c),m=this.src.__lookupSetter__(c);h&&y.__defineGetter__(c,h),m&&y.__defineSetter__(c,m),!h&&!m&&(y[c]=this.src[c])}},d.prototype.override=d.prototype.toCover,d.prototype.and=function(y){var S={};return this.to(S),this.src=y,this.to(S),this.src=S,this};function g(y,S){return y[S]===void 0&&y.__lookupGetter__(S)===void 0&&y.__lookupSetter__(S)===void 0}},{}],95:[function(s,E,I){var u=s("../internals/global"),d=s("../internals/is-callable"),g=s("../internals/try-to-string"),y=u.TypeError;E.exports=function(S){if(d(S))return S;throw y(g(S)+" is not a function")}},{"../internals/global":163,"../internals/is-callable":176,"../internals/try-to-string":257}],96:[function(s,E,I){var u=s("../internals/global"),d=s("../internals/is-constructor"),g=s("../internals/try-to-string"),y=u.TypeError;E.exports=function(S){if(d(S))return S;throw y(g(S)+" is not a constructor")}},{"../internals/global":163,"../internals/is-constructor":177,"../internals/try-to-string":257}],97:[function(s,E,I){var u=s("../internals/global"),d=s("../internals/is-callable"),g=u.String,y=u.TypeError;E.exports=function(S){if(typeof S=="object"||d(S))return S;throw y("Can't set "+g(S)+" as a prototype")}},{"../internals/global":163,"../internals/is-callable":176}],98:[function(s,E,I){var u=s("../internals/well-known-symbol"),d=s("../internals/object-create"),g=s("../internals/object-define-property"),y=u("unscopables"),S=Array.prototype;S[y]==null&&g.f(S,y,{configurable:!0,value:d(null)}),E.exports=function(v){S[y][v]=!0}},{"../internals/object-create":196,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],99:[function(s,E,I){"use strict";var u=s("../internals/string-multibyte").charAt;E.exports=function(d,g,y){return g+(y?u(d,g).length:1)}},{"../internals/string-multibyte":239}],100:[function(s,E,I){var u=s("../internals/global"),d=s("../internals/object-is-prototype-of"),g=u.TypeError;E.exports=function(y,S){if(d(S,y))return y;throw g("Incorrect invocation")}},{"../internals/global":163,"../internals/object-is-prototype-of":204}],101:[function(s,E,I){var u=s("../internals/global"),d=s("../internals/is-object"),g=u.String,y=u.TypeError;E.exports=function(S){if(d(S))return S;throw y(g(S)+" is not an object")}},{"../internals/global":163,"../internals/is-object":180}],102:[function(s,E,I){E.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},{}],103:[function(s,E,I){"use strict";var u=s("../internals/array-buffer-native"),d=s("../internals/descriptors"),g=s("../internals/global"),y=s("../internals/is-callable"),S=s("../internals/is-object"),v=s("../internals/has-own-property"),c=s("../internals/classof"),h=s("../internals/try-to-string"),m=s("../internals/create-non-enumerable-property"),x=s("../internals/redefine"),T=s("../internals/object-define-property").f,_=s("../internals/object-is-prototype-of"),R=s("../internals/object-get-prototype-of"),A=s("../internals/object-set-prototype-of"),N=s("../internals/well-known-symbol"),L=s("../internals/uid"),M=g.Int8Array,F=M&&M.prototype,H=g.Uint8ClampedArray,P=H&&H.prototype,V=M&&R(M),G=F&&R(F),Q=Object.prototype,ne=g.TypeError,ue=N("toStringTag"),ae=L("TYPED_ARRAY_TAG"),he=L("TYPED_ARRAY_CONSTRUCTOR"),ce=u&&!!A&&c(g.opera)!=="Opera",we=!1,me,Le,ee,se={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},le={BigInt64Array:8,BigUint64Array:8},ke=function(lt){if(!S(lt))return!1;var Re=c(lt);return Re==="DataView"||v(se,Re)||v(le,Re)},De=function(Me){if(!S(Me))return!1;var lt=c(Me);return v(se,lt)||v(le,lt)},Be=function(Me){if(De(Me))return Me;throw ne("Target is not a typed array")},He=function(Me){if(y(Me)&&(!A||_(V,Me)))return Me;throw ne(h(Me)+" is not a typed array constructor")},Fe=function(Me,lt,Re,Oe){if(d){if(Re)for(var pe in se){var fe=g[pe];if(fe&&v(fe.prototype,Me))try{delete fe.prototype[Me]}catch(z){try{fe.prototype[Me]=lt}catch(J){}}}(!G[Me]||Re)&&x(G,Me,Re?lt:ce&&F[Me]||lt,Oe)}},Je=function(Me,lt,Re){var Oe,pe;if(d){if(A){if(Re){for(Oe in se)if(pe=g[Oe],pe&&v(pe,Me))try{delete pe[Me]}catch(fe){}}if(!V[Me]||Re)try{return x(V,Me,Re?lt:ce&&V[Me]||lt)}catch(fe){}else return}for(Oe in se)pe=g[Oe],pe&&(!pe[Me]||Re)&&x(pe,Me,lt)}};for(me in se)Le=g[me],ee=Le&&Le.prototype,ee?m(ee,he,Le):ce=!1;for(me in le)Le=g[me],ee=Le&&Le.prototype,ee&&m(ee,he,Le);if((!ce||!y(V)||V===Function.prototype)&&(V=function(){throw ne("Incorrect invocation")},ce))for(me in se)g[me]&&A(g[me],V);if((!ce||!G||G===Q)&&(G=V.prototype,ce))for(me in se)g[me]&&A(g[me].prototype,G);if(ce&&R(P)!==G&&A(P,G),d&&!v(G,ue)){we=!0,T(G,ue,{get:function(){return S(this)?this[ae]:void 0}});for(me in se)g[me]&&m(g[me],ae,me)}E.exports={NATIVE_ARRAY_BUFFER_VIEWS:ce,TYPED_ARRAY_CONSTRUCTOR:he,TYPED_ARRAY_TAG:we&&ae,aTypedArray:Be,aTypedArrayConstructor:He,exportTypedArrayMethod:Fe,exportTypedArrayStaticMethod:Je,isView:ke,isTypedArray:De,TypedArray:V,TypedArrayPrototype:G}},{"../internals/array-buffer-native":102,"../internals/classof":124,"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-define-property":198,"../internals/object-get-prototype-of":203,"../internals/object-is-prototype-of":204,"../internals/object-set-prototype-of":208,"../internals/redefine":222,"../internals/try-to-string":257,"../internals/uid":263,"../internals/well-known-symbol":268}],104:[function(s,E,I){"use strict";var u=s("../internals/global"),d=s("../internals/function-uncurry-this"),g=s("../internals/descriptors"),y=s("../internals/array-buffer-native"),S=s("../internals/function-name"),v=s("../internals/create-non-enumerable-property"),c=s("../internals/redefine-all"),h=s("../internals/fails"),m=s("../internals/an-instance"),x=s("../internals/to-integer-or-infinity"),T=s("../internals/to-length"),_=s("../internals/to-index"),R=s("../internals/ieee754"),A=s("../internals/object-get-prototype-of"),N=s("../internals/object-set-prototype-of"),L=s("../internals/object-get-own-property-names").f,M=s("../internals/object-define-property").f,F=s("../internals/array-fill"),H=s("../internals/array-slice-simple"),P=s("../internals/set-to-string-tag"),V=s("../internals/internal-state"),G=S.PROPER,Q=S.CONFIGURABLE,ne=V.get,ue=V.set,ae="ArrayBuffer",he="DataView",ce="prototype",we="Wrong length",me="Wrong index",Le=u[ae],ee=Le,se=ee&&ee[ce],le=u[he],ke=le&&le[ce],De=Object.prototype,Be=u.Array,He=u.RangeError,Fe=d(F),Je=d([].reverse),Me=R.pack,lt=R.unpack,Re=function(ct){return[ct&255]},Oe=function(ct){return[ct&255,ct>>8&255]},pe=function(ct){return[ct&255,ct>>8&255,ct>>16&255,ct>>24&255]},fe=function(ct){return ct[3]<<24|ct[2]<<16|ct[1]<<8|ct[0]},z=function(ct){return Me(ct,23,4)},J=function(ct){return Me(ct,52,8)},be=function(ct,St){M(ct[ce],St,{get:function(){return ne(this)[St]}})},_e=function(ct,St,_t,At){var ht=_(_t),wt=ne(ct);if(ht+St>wt.byteLength)throw He(me);var jt=ne(wt.buffer).bytes,st=ht+wt.byteOffset,ge=H(jt,st,st+St);return At?ge:Je(ge)},oe=function(ct,St,_t,At,ht,wt){var jt=_(_t),st=ne(ct);if(jt+St>st.byteLength)throw He(me);for(var ge=ne(st.buffer).bytes,on=jt+st.byteOffset,mn=At(+ht),Mt=0;Mt<St;Mt++)ge[on+Mt]=mn[wt?Mt:St-Mt-1]};if(!y)ee=function(St){m(this,se);var _t=_(St);ue(this,{bytes:Fe(Be(_t),0),byteLength:_t}),g||(this.byteLength=_t)},se=ee[ce],le=function(St,_t,At){m(this,ke),m(St,se);var ht=ne(St).byteLength,wt=x(_t);if(wt<0||wt>ht)throw He("Wrong offset");if(At=At===void 0?ht-wt:T(At),wt+At>ht)throw He(we);ue(this,{buffer:St,byteLength:At,byteOffset:wt}),g||(this.buffer=St,this.byteLength=At,this.byteOffset=wt)},ke=le[ce],g&&(be(ee,"byteLength"),be(le,"buffer"),be(le,"byteLength"),be(le,"byteOffset")),c(ke,{getInt8:function(St){return _e(this,1,St)[0]<<24>>24},getUint8:function(St){return _e(this,1,St)[0]},getInt16:function(St){var _t=_e(this,2,St,arguments.length>1?arguments[1]:void 0);return(_t[1]<<8|_t[0])<<16>>16},getUint16:function(St){var _t=_e(this,2,St,arguments.length>1?arguments[1]:void 0);return _t[1]<<8|_t[0]},getInt32:function(St){return fe(_e(this,4,St,arguments.length>1?arguments[1]:void 0))},getUint32:function(St){return fe(_e(this,4,St,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(St){return lt(_e(this,4,St,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(St){return lt(_e(this,8,St,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(St,_t){oe(this,1,St,Re,_t)},setUint8:function(St,_t){oe(this,1,St,Re,_t)},setInt16:function(St,_t){oe(this,2,St,Oe,_t,arguments.length>2?arguments[2]:void 0)},setUint16:function(St,_t){oe(this,2,St,Oe,_t,arguments.length>2?arguments[2]:void 0)},setInt32:function(St,_t){oe(this,4,St,pe,_t,arguments.length>2?arguments[2]:void 0)},setUint32:function(St,_t){oe(this,4,St,pe,_t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(St,_t){oe(this,4,St,z,_t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(St,_t){oe(this,8,St,J,_t,arguments.length>2?arguments[2]:void 0)}});else{var ie=G&&Le.name!==ae;if(!h(function(){Le(1)})||!h(function(){new Le(-1)})||h(function(){return new Le,new Le(1.5),new Le(NaN),ie&&!Q})){ee=function(St){return m(this,se),new Le(_(St))},ee[ce]=se;for(var ve=L(Le),Ne=0,ze;ve.length>Ne;)(ze=ve[Ne++])in ee||v(ee,ze,Le[ze]);se.constructor=ee}else ie&&Q&&v(Le,"name",ae);N&&A(ke)!==De&&N(ke,De);var Ve=new le(new ee(2)),yt=d(ke.setInt8);Ve.setInt8(0,2147483648),Ve.setInt8(1,2147483649),(Ve.getInt8(0)||!Ve.getInt8(1))&&c(ke,{setInt8:function(St,_t){yt(this,St,_t<<24>>24)},setUint8:function(St,_t){yt(this,St,_t<<24>>24)}},{unsafe:!0})}P(ee,ae),P(le,he),E.exports={ArrayBuffer:ee,DataView:le}},{"../internals/an-instance":100,"../internals/array-buffer-native":102,"../internals/array-fill":106,"../internals/array-slice-simple":116,"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/fails":150,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/ieee754":169,"../internals/internal-state":173,"../internals/object-define-property":198,"../internals/object-get-own-property-names":201,"../internals/object-get-prototype-of":203,"../internals/object-set-prototype-of":208,"../internals/redefine-all":221,"../internals/set-to-string-tag":234,"../internals/to-index":246,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],105:[function(s,E,I){"use strict";var u=s("../internals/to-object"),d=s("../internals/to-absolute-index"),g=s("../internals/length-of-array-like"),y=Math.min;E.exports=[].copyWithin||function(v,c){var h=u(this),m=g(h),x=d(v,m),T=d(c,m),_=arguments.length>2?arguments[2]:void 0,R=y((_===void 0?m:d(_,m))-T,m-x),A=1;for(T<x&&x<T+R&&(A=-1,T+=R-1,x+=R-1);R-- >0;)T in h?h[x]=h[T]:delete h[x],x+=A,T+=A;return h}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],106:[function(s,E,I){"use strict";var u=s("../internals/to-object"),d=s("../internals/to-absolute-index"),g=s("../internals/length-of-array-like");E.exports=function(S){for(var v=u(this),c=g(v),h=arguments.length,m=d(h>1?arguments[1]:void 0,c),x=h>2?arguments[2]:void 0,T=x===void 0?c:d(x,c);T>m;)v[m++]=S;return v}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],107:[function(s,E,I){"use strict";var u=s("../internals/array-iteration").forEach,d=s("../internals/array-method-is-strict"),g=d("forEach");E.exports=g?[].forEach:function(S){return u(this,S,arguments.length>1?arguments[1]:void 0)}},{"../internals/array-iteration":111,"../internals/array-method-is-strict":114}],108:[function(s,E,I){var u=s("../internals/length-of-array-like");E.exports=function(d,g){for(var y=0,S=u(g),v=new d(S);S>y;)v[y]=g[y++];return v}},{"../internals/length-of-array-like":188}],109:[function(s,E,I){"use strict";var u=s("../internals/global"),d=s("../internals/function-bind-context"),g=s("../internals/function-call"),y=s("../internals/to-object"),S=s("../internals/call-with-safe-iteration-closing"),v=s("../internals/is-array-iterator-method"),c=s("../internals/is-constructor"),h=s("../internals/length-of-array-like"),m=s("../internals/create-property"),x=s("../internals/get-iterator"),T=s("../internals/get-iterator-method"),_=u.Array;E.exports=function(A){var N=y(A),L=c(this),M=arguments.length,F=M>1?arguments[1]:void 0,H=F!==void 0;H&&(F=d(F,M>2?arguments[2]:void 0));var P=T(N),V=0,G,Q,ne,ue,ae,he;if(P&&!(this==_&&v(P)))for(ue=x(N,P),ae=ue.next,Q=L?new this:[];!(ne=g(ae,ue)).done;V++)he=H?S(ue,F,[ne.value,V],!0):ne.value,m(Q,V,he);else for(G=h(N),Q=L?new this(G):_(G);G>V;V++)he=H?F(N[V],V):N[V],m(Q,V,he);return Q.length=V,Q}},{"../internals/call-with-safe-iteration-closing":121,"../internals/create-property":131,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/is-array-iterator-method":174,"../internals/is-constructor":177,"../internals/length-of-array-like":188,"../internals/to-object":250}],110:[function(s,E,I){var u=s("../internals/to-indexed-object"),d=s("../internals/to-absolute-index"),g=s("../internals/length-of-array-like"),y=function(S){return function(v,c,h){var m=u(v),x=g(m),T=d(h,x),_;if(S&&c!=c){for(;x>T;)if(_=m[T++],_!=_)return!0}else for(;x>T;T++)if((S||T in m)&&m[T]===c)return S||T||0;return!S&&-1}};E.exports={includes:y(!0),indexOf:y(!1)}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247}],111:[function(s,E,I){var u=s("../internals/function-bind-context"),d=s("../internals/function-uncurry-this"),g=s("../internals/indexed-object"),y=s("../internals/to-object"),S=s("../internals/length-of-array-like"),v=s("../internals/array-species-create"),c=d([].push),h=function(m){var x=m==1,T=m==2,_=m==3,R=m==4,A=m==6,N=m==7,L=m==5||A;return function(M,F,H,P){for(var V=y(M),G=g(V),Q=u(F,H),ne=S(G),ue=0,ae=P||v,he=x?ae(M,ne):T||N?ae(M,0):void 0,ce,we;ne>ue;ue++)if((L||ue in G)&&(ce=G[ue],we=Q(ce,ue,V),m))if(x)he[ue]=we;else if(we)switch(m){case 3:return!0;case 5:return ce;case 6:return ue;case 2:c(he,ce)}else switch(m){case 4:return!1;case 7:c(he,ce)}return A?-1:_||R?R:he}};E.exports={forEach:h(0),map:h(1),filter:h(2),some:h(3),every:h(4),find:h(5),findIndex:h(6),filterReject:h(7)}},{"../internals/array-species-create":120,"../internals/function-bind-context":153,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],112:[function(s,E,I){"use strict";var u=s("../internals/function-apply"),d=s("../internals/to-indexed-object"),g=s("../internals/to-integer-or-infinity"),y=s("../internals/length-of-array-like"),S=s("../internals/array-method-is-strict"),v=Math.min,c=[].lastIndexOf,h=!!c&&1/[1].lastIndexOf(1,-0)<0,m=S("lastIndexOf"),x=h||!m;E.exports=x?function(_){if(h)return u(c,this,arguments)||0;var R=d(this),A=y(R),N=A-1;for(arguments.length>1&&(N=v(N,g(arguments[1]))),N<0&&(N=A+N);N>=0;N--)if(N in R&&R[N]===_)return N||0;return-1}:c},{"../internals/array-method-is-strict":114,"../internals/function-apply":152,"../internals/length-of-array-like":188,"../internals/to-indexed-object":247,"../internals/to-integer-or-infinity":248}],113:[function(s,E,I){var u=s("../internals/fails"),d=s("../internals/well-known-symbol"),g=s("../internals/engine-v8-version"),y=d("species");E.exports=function(S){return g>=51||!u(function(){var v=[],c=v.constructor={};return c[y]=function(){return{foo:1}},v[S](Boolean).foo!==1})}},{"../internals/engine-v8-version":146,"../internals/fails":150,"../internals/well-known-symbol":268}],114:[function(s,E,I){"use strict";var u=s("../internals/fails");E.exports=function(d,g){var y=[][d];return!!y&&u(function(){y.call(null,g||function(){return 1},1)})}},{"../internals/fails":150}],115:[function(s,E,I){var u=s("../internals/global"),d=s("../internals/a-callable"),g=s("../internals/to-object"),y=s("../internals/indexed-object"),S=s("../internals/length-of-array-like"),v=u.TypeError,c=function(h){return function(m,x,T,_){d(x);var R=g(m),A=y(R),N=S(R),L=h?N-1:0,M=h?-1:1;if(T<2)for(;;){if(L in A){_=A[L],L+=M;break}if(L+=M,h?L<0:N<=L)throw v("Reduce of empty array with no initial value")}for(;h?L>=0:N>L;L+=M)L in A&&(_=x(_,A[L],L,R));return _}};E.exports={left:c(!1),right:c(!0)}},{"../internals/a-callable":95,"../internals/global":163,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],116:[function(s,E,I){var u=s("../internals/global"),d=s("../internals/to-absolute-index"),g=s("../internals/length-of-array-like"),y=s("../internals/create-property"),S=u.Array,v=Math.max;E.exports=function(c,h,m){for(var x=g(c),T=d(h,x),_=d(m===void 0?x:m,x),R=S(v(_-T,0)),A=0;T<_;T++,A++)y(R,A,c[T]);return R.length=A,R}},{"../internals/create-property":131,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245}],117:[function(s,E,I){var u=s("../internals/function-uncurry-this");E.exports=u([].slice)},{"../internals/function-uncurry-this":157}],118:[function(s,E,I){var u=s("../internals/array-slice-simple"),d=Math.floor,g=function(v,c){var h=v.length,m=d(h/2);return h<8?y(v,c):S(v,g(u(v,0,m),c),g(u(v,m),c),c)},y=function(v,c){for(var h=v.length,m=1,x,T;m<h;){for(T=m,x=v[m];T&&c(v[T-1],x)>0;)v[T]=v[--T];T!==m++&&(v[T]=x)}return v},S=function(v,c,h,m){for(var x=c.length,T=h.length,_=0,R=0;_<x||R<T;)v[_+R]=_<x&&R<T?m(c[_],h[R])<=0?c[_++]:h[R++]:_<x?c[_++]:h[R++];return v};E.exports=g},{"../internals/array-slice-simple":116}],119:[function(s,E,I){var u=s("../internals/global"),d=s("../internals/is-array"),g=s("../internals/is-constructor"),y=s("../internals/is-object"),S=s("../internals/well-known-symbol"),v=S("species"),c=u.Array;E.exports=function(h){var m;return d(h)&&(m=h.constructor,g(m)&&(m===c||d(m.prototype))?m=void 0:y(m)&&(m=m[v],m===null&&(m=void 0))),m===void 0?c:m}},{"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/well-known-symbol":268}],120:[function(s,E,I){var u=s("../internals/array-species-constructor");E.exports=function(d,g){return new(u(d))(g===0?0:g)}},{"../internals/array-species-constructor":119}],121:[function(s,E,I){var u=s("../internals/an-object"),d=s("../internals/iterator-close");E.exports=function(g,y,S,v){try{return v?y(u(S)[0],S[1]):y(S)}catch(c){d(g,"throw",c)}}},{"../internals/an-object":101,"../internals/iterator-close":185}],122:[function(s,E,I){var u=s("../internals/well-known-symbol"),d=u("iterator"),g=!1;try{var y=0,S={next:function(){return{done:!!y++}},return:function(){g=!0}};S[d]=function(){return this},Array.from(S,function(){throw 2})}catch(v){}E.exports=function(v,c){if(!c&&!g)return!1;var h=!1;try{var m={};m[d]=function(){return{next:function(){return{done:h=!0}}}},v(m)}catch(x){}return h}},{"../internals/well-known-symbol":268}],123:[function(s,E,I){var u=s("../internals/function-uncurry-this"),d=u({}.toString),g=u("".slice);E.exports=function(y){return g(d(y),8,-1)}},{"../internals/function-uncurry-this":157}],124:[function(s,E,I){var u=s("../internals/global"),d=s("../internals/to-string-tag-support"),g=s("../internals/is-callable"),y=s("../internals/classof-raw"),S=s("../internals/well-known-symbol"),v=S("toStringTag"),c=u.Object,h=y(function(){return arguments}())=="Arguments",m=function(x,T){try{return x[T]}catch(_){}};E.exports=d?y:function(x){var T,_,R;return x===void 0?"Undefined":x===null?"Null":typeof(_=m(T=c(x),v))=="string"?_:h?y(T):(R=y(T))=="Object"&&g(T.callee)?"Arguments":R}},{"../internals/classof-raw":123,"../internals/global":163,"../internals/is-callable":176,"../internals/to-string-tag-support":255,"../internals/well-known-symbol":268}],125:[function(s,E,I){var u=s("../internals/has-own-property"),d=s("../internals/own-keys"),g=s("../internals/object-get-own-property-descriptor"),y=s("../internals/object-define-property");E.exports=function(S,v,c){for(var h=d(v),m=y.f,x=g.f,T=0;T<h.length;T++){var _=h[T];!u(S,_)&&!(c&&u(c,_))&&m(S,_,x(v,_))}}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/own-keys":212}],126:[function(s,E,I){var u=s("../internals/well-known-symbol"),d=u("match");E.exports=function(g){var y=/./;try{"/./"[g](y)}catch(S){try{return y[d]=!1,"/./"[g](y)}catch(v){}}return!1}},{"../internals/well-known-symbol":268}],127:[function(s,E,I){var u=s("../internals/fails");E.exports=!u(function(){function d(){}return d.prototype.constructor=null,Object.getPrototypeOf(new d)!==d.prototype})},{"../internals/fails":150}],128:[function(s,E,I){"use strict";var u=s("../internals/iterators-core").IteratorPrototype,d=s("../internals/object-create"),g=s("../internals/create-property-descriptor"),y=s("../internals/set-to-string-tag"),S=s("../internals/iterators"),v=function(){return this};E.exports=function(c,h,m,x){var T=h+" Iterator";return c.prototype=d(u,{next:g(+!x,m)}),y(c,T,!1,!0),S[T]=v,c}},{"../internals/create-property-descriptor":130,"../internals/iterators":187,"../internals/iterators-core":186,"../internals/object-create":196,"../internals/set-to-string-tag":234}],129:[function(s,E,I){var u=s("../internals/descriptors"),d=s("../internals/object-define-property"),g=s("../internals/create-property-descriptor");E.exports=u?function(y,S,v){return d.f(y,S,g(1,v))}:function(y,S,v){return y[S]=v,y}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/object-define-property":198}],130:[function(s,E,I){E.exports=function(u,d){return{enumerable:!(u&1),configurable:!(u&2),writable:!(u&4),value:d}}},{}],131:[function(s,E,I){"use strict";var u=s("../internals/to-property-key"),d=s("../internals/object-define-property"),g=s("../internals/create-property-descriptor");E.exports=function(y,S,v){var c=u(S);c in y?d.f(y,c,g(0,v)):y[c]=v}},{"../internals/create-property-descriptor":130,"../internals/object-define-property":198,"../internals/to-property-key":254}],132:[function(s,E,I){"use strict";var u=s("../internals/export"),d=s("../internals/function-call"),g=s("../internals/is-pure"),y=s("../internals/function-name"),S=s("../internals/is-callable"),v=s("../internals/create-iterator-constructor"),c=s("../internals/object-get-prototype-of"),h=s("../internals/object-set-prototype-of"),m=s("../internals/set-to-string-tag"),x=s("../internals/create-non-enumerable-property"),T=s("../internals/redefine"),_=s("../internals/well-known-symbol"),R=s("../internals/iterators"),A=s("../internals/iterators-core"),N=y.PROPER,L=y.CONFIGURABLE,M=A.IteratorPrototype,F=A.BUGGY_SAFARI_ITERATORS,H=_("iterator"),P="keys",V="values",G="entries",Q=function(){return this};E.exports=function(ne,ue,ae,he,ce,we,me){v(ae,ue,he);var Le=function(Me){if(Me===ce&&De)return De;if(!F&&Me in le)return le[Me];switch(Me){case P:return function(){return new ae(this,Me)};case V:return function(){return new ae(this,Me)};case G:return function(){return new ae(this,Me)}}return function(){return new ae(this)}},ee=ue+" Iterator",se=!1,le=ne.prototype,ke=le[H]||le["@@iterator"]||ce&&le[ce],De=!F&&ke||Le(ce),Be=ue=="Array"&&le.entries||ke,He,Fe,Je;if(Be&&(He=c(Be.call(new ne)),He!==Object.prototype&&He.next&&(!g&&c(He)!==M&&(h?h(He,M):S(He[H])||T(He,H,Q)),m(He,ee,!0,!0),g&&(R[ee]=Q))),N&&ce==V&&ke&&ke.name!==V&&(!g&&L?x(le,"name",V):(se=!0,De=function(){return d(ke,this)})),ce)if(Fe={values:Le(V),keys:we?De:Le(P),entries:Le(G)},me)for(Je in Fe)(F||se||!(Je in le))&&T(le,Je,Fe[Je]);else u({target:ue,proto:!0,forced:F||se},Fe);return(!g||me)&&le[H]!==De&&T(le,H,De,{name:ce}),R[ue]=De,Fe}},{"../internals/create-iterator-constructor":128,"../internals/create-non-enumerable-property":129,"../internals/export":149,"../internals/function-call":155,"../internals/function-name":156,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/iterators":187,"../internals/iterators-core":186,"../internals/object-get-prototype-of":203,"../internals/object-set-prototype-of":208,"../internals/redefine":222,"../internals/set-to-string-tag":234,"../internals/well-known-symbol":268}],133:[function(s,E,I){var u=s("../internals/path"),d=s("../internals/has-own-property"),g=s("../internals/well-known-symbol-wrapped"),y=s("../internals/object-define-property").f;E.exports=function(S){var v=u.Symbol||(u.Symbol={});d(v,S)||y(v,S,{value:g.f(S)})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/path":213,"../internals/well-known-symbol-wrapped":267}],134:[function(s,E,I){var u=s("../internals/fails");E.exports=!u(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},{"../internals/fails":150}],135:[function(s,E,I){var u=s("../internals/global"),d=s("../internals/is-object"),g=u.document,y=d(g)&&d(g.createElement);E.exports=function(S){return y?g.createElement(S):{}}},{"../internals/global":163,"../internals/is-object":180}],136:[function(s,E,I){E.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}},{}],137:[function(s,E,I){var u=s("../internals/document-create-element"),d=u("span").classList,g=d&&d.constructor&&d.constructor.prototype;E.exports=g===Object.prototype?void 0:g},{"../internals/document-create-element":135}],138:[function(s,E,I){var u=s("../internals/engine-user-agent"),d=u.match(/firefox\/(\d+)/i);E.exports=!!d&&+d[1]},{"../internals/engine-user-agent":145}],139:[function(s,E,I){E.exports=typeof window=="object"&&typeof Deno!="object"},{}],140:[function(s,E,I){var u=s("../internals/engine-user-agent");E.exports=/MSIE|Trident/.test(u)},{"../internals/engine-user-agent":145}],141:[function(s,E,I){var u=s("../internals/engine-user-agent"),d=s("../internals/global");E.exports=/ipad|iphone|ipod/i.test(u)&&d.Pebble!==void 0},{"../internals/engine-user-agent":145,"../internals/global":163}],142:[function(s,E,I){var u=s("../internals/engine-user-agent");E.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(u)},{"../internals/engine-user-agent":145}],143:[function(s,E,I){var u=s("../internals/classof-raw"),d=s("../internals/global");E.exports=u(d.process)=="process"},{"../internals/classof-raw":123,"../internals/global":163}],144:[function(s,E,I){var u=s("../internals/engine-user-agent");E.exports=/web0s(?!.*chrome)/i.test(u)},{"../internals/engine-user-agent":145}],145:[function(s,E,I){var u=s("../internals/get-built-in");E.exports=u("navigator","userAgent")||""},{"../internals/get-built-in":158}],146:[function(s,E,I){var u=s("../internals/global"),d=s("../internals/engine-user-agent"),g=u.process,y=u.Deno,S=g&&g.versions||y&&y.version,v=S&&S.v8,c,h;v&&(c=v.split("."),h=c[0]>0&&c[0]<4?1:+(c[0]+c[1])),!h&&d&&(c=d.match(/Edge\/(\d+)/),(!c||c[1]>=74)&&(c=d.match(/Chrome\/(\d+)/),c&&(h=+c[1]))),E.exports=h},{"../internals/engine-user-agent":145,"../internals/global":163}],147:[function(s,E,I){var u=s("../internals/engine-user-agent"),d=u.match(/AppleWebKit\/(\d+)\./);E.exports=!!d&&+d[1]},{"../internals/engine-user-agent":145}],148:[function(s,E,I){E.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],149:[function(s,E,I){var u=s("../internals/global"),d=s("../internals/object-get-own-property-descriptor").f,g=s("../internals/create-non-enumerable-property"),y=s("../internals/redefine"),S=s("../internals/set-global"),v=s("../internals/copy-constructor-properties"),c=s("../internals/is-forced");E.exports=function(h,m){var x=h.target,T=h.global,_=h.stat,R,A,N,L,M,F;if(T?A=u:_?A=u[x]||S(x,{}):A=(u[x]||{}).prototype,A)for(N in m){if(M=m[N],h.noTargetGet?(F=d(A,N),L=F&&F.value):L=A[N],R=c(T?N:x+(_?".":"#")+N,h.forced),!R&&L!==void 0){if(typeof M==typeof L)continue;v(M,L)}(h.sham||L&&L.sham)&&g(M,"sham",!0),y(A,N,M,h)}}},{"../internals/copy-constructor-properties":125,"../internals/create-non-enumerable-property":129,"../internals/global":163,"../internals/is-forced":178,"../internals/object-get-own-property-descriptor":199,"../internals/redefine":222,"../internals/set-global":232}],150:[function(s,E,I){E.exports=function(u){try{return!!u()}catch(d){return!0}}},{}],151:[function(s,E,I){"use strict";s("../modules/es.regexp.exec");var u=s("../internals/function-uncurry-this"),d=s("../internals/redefine"),g=s("../internals/regexp-exec"),y=s("../internals/fails"),S=s("../internals/well-known-symbol"),v=s("../internals/create-non-enumerable-property"),c=S("species"),h=RegExp.prototype;E.exports=function(m,x,T,_){var R=S(m),A=!y(function(){var F={};return F[R]=function(){return 7},""[m](F)!=7}),N=A&&!y(function(){var F=!1,H=/a/;return m==="split"&&(H={},H.constructor={},H.constructor[c]=function(){return H},H.flags="",H[R]=/./[R]),H.exec=function(){return F=!0,null},H[R](""),!F});if(!A||!N||T){var L=u(/./[R]),M=x(R,""[m],function(F,H,P,V,G){var Q=u(F),ne=H.exec;return ne===g||ne===h.exec?A&&!G?{done:!0,value:L(H,P,V)}:{done:!0,value:Q(P,H,V)}:{done:!1}});d(String.prototype,m,M[0]),d(h,R,M[1])}_&&v(h[R],"sham",!0)}},{"../internals/create-non-enumerable-property":129,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/redefine":222,"../internals/regexp-exec":224,"../internals/well-known-symbol":268,"../modules/es.regexp.exec":300}],152:[function(s,E,I){var u=s("../internals/function-bind-native"),d=Function.prototype,g=d.apply,y=d.call;E.exports=typeof Reflect=="object"&&Reflect.apply||(u?y.bind(g):function(){return y.apply(g,arguments)})},{"../internals/function-bind-native":154}],153:[function(s,E,I){var u=s("../internals/function-uncurry-this"),d=s("../internals/a-callable"),g=s("../internals/function-bind-native"),y=u(u.bind);E.exports=function(S,v){return d(S),v===void 0?S:g?y(S,v):function(){return S.apply(v,arguments)}}},{"../internals/a-callable":95,"../internals/function-bind-native":154,"../internals/function-uncurry-this":157}],154:[function(s,E,I){var u=s("../internals/fails");E.exports=!u(function(){var d=function(){}.bind();return typeof d!="function"||d.hasOwnProperty("prototype")})},{"../internals/fails":150}],155:[function(s,E,I){var u=s("../internals/function-bind-native"),d=Function.prototype.call;E.exports=u?d.bind(d):function(){return d.apply(d,arguments)}},{"../internals/function-bind-native":154}],156:[function(s,E,I){var u=s("../internals/descriptors"),d=s("../internals/has-own-property"),g=Function.prototype,y=u&&Object.getOwnPropertyDescriptor,S=d(g,"name"),v=S&&function(){}.name==="something",c=S&&(!u||u&&y(g,"name").configurable);E.exports={EXISTS:S,PROPER:v,CONFIGURABLE:c}},{"../internals/descriptors":134,"../internals/has-own-property":164}],157:[function(s,E,I){var u=s("../internals/function-bind-native"),d=Function.prototype,g=d.bind,y=d.call,S=u&&g.bind(y,y);E.exports=u?function(v){return v&&S(v)}:function(v){return v&&function(){return y.apply(v,arguments)}}},{"../internals/function-bind-native":154}],158:[function(s,E,I){var u=s("../internals/global"),d=s("../internals/is-callable"),g=function(y){return d(y)?y:void 0};E.exports=function(y,S){return arguments.length<2?g(u[y]):u[y]&&u[y][S]}},{"../internals/global":163,"../internals/is-callable":176}],159:[function(s,E,I){var u=s("../internals/classof"),d=s("../internals/get-method"),g=s("../internals/iterators"),y=s("../internals/well-known-symbol"),S=y("iterator");E.exports=function(v){if(v!=null)return d(v,S)||d(v,"@@iterator")||g[u(v)]}},{"../internals/classof":124,"../internals/get-method":161,"../internals/iterators":187,"../internals/well-known-symbol":268}],160:[function(s,E,I){var u=s("../internals/global"),d=s("../internals/function-call"),g=s("../internals/a-callable"),y=s("../internals/an-object"),S=s("../internals/try-to-string"),v=s("../internals/get-iterator-method"),c=u.TypeError;E.exports=function(h,m){var x=arguments.length<2?v(h):m;if(g(x))return y(d(x,h));throw c(S(h)+" is not iterable")}},{"../internals/a-callable":95,"../internals/an-object":101,"../internals/function-call":155,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/try-to-string":257}],161:[function(s,E,I){var u=s("../internals/a-callable");E.exports=function(d,g){var y=d[g];return y==null?void 0:u(y)}},{"../internals/a-callable":95}],162:[function(s,E,I){var u=s("../internals/function-uncurry-this"),d=s("../internals/to-object"),g=Math.floor,y=u("".charAt),S=u("".replace),v=u("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,h=/\$([$&'`]|\d{1,2})/g;E.exports=function(m,x,T,_,R,A){var N=T+m.length,L=_.length,M=h;return R!==void 0&&(R=d(R),M=c),S(A,M,function(F,H){var P;switch(y(H,0)){case"$":return"$";case"&":return m;case"`":return v(x,0,T);case"'":return v(x,N);case"<":P=R[v(H,1,-1)];break;default:var V=+H;if(V===0)return F;if(V>L){var G=g(V/10);return G===0?F:G<=L?_[G-1]===void 0?y(H,1):_[G-1]+y(H,1):F}P=_[V-1]}return P===void 0?"":P})}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],163:[function(s,E,I){(function(u){(function(){var d=function(g){return g&&g.Math==Math&&g};E.exports=d(typeof globalThis=="object"&&globalThis)||d(typeof window=="object"&&window)||d(typeof self=="object"&&self)||d(typeof u=="object"&&u)||function(){return this}()||Function("return this")()}).call(this)}).call(this,typeof Z!="undefined"?Z:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],164:[function(s,E,I){var u=s("../internals/function-uncurry-this"),d=s("../internals/to-object"),g=u({}.hasOwnProperty);E.exports=Object.hasOwn||function(S,v){return g(d(S),v)}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],165:[function(s,E,I){E.exports={}},{}],166:[function(s,E,I){var u=s("../internals/global");E.exports=function(d,g){var y=u.console;y&&y.error&&(arguments.length==1?y.error(d):y.error(d,g))}},{"../internals/global":163}],167:[function(s,E,I){var u=s("../internals/get-built-in");E.exports=u("document","documentElement")},{"../internals/get-built-in":158}],168:[function(s,E,I){var u=s("../internals/descriptors"),d=s("../internals/fails"),g=s("../internals/document-create-element");E.exports=!u&&!d(function(){return Object.defineProperty(g("div"),"a",{get:function(){return 7}}).a!=7})},{"../internals/descriptors":134,"../internals/document-create-element":135,"../internals/fails":150}],169:[function(s,E,I){var u=s("../internals/global"),d=u.Array,g=Math.abs,y=Math.pow,S=Math.floor,v=Math.log,c=Math.LN2,h=function(x,T,_){var R=d(_),A=_*8-T-1,N=(1<<A)-1,L=N>>1,M=T===23?y(2,-24)-y(2,-77):0,F=x<0||x===0&&1/x<0?1:0,H=0,P,V,G;for(x=g(x),x!=x||x===1/0?(V=x!=x?1:0,P=N):(P=S(v(x)/c),G=y(2,-P),x*G<1&&(P--,G*=2),P+L>=1?x+=M/G:x+=M*y(2,1-L),x*G>=2&&(P++,G/=2),P+L>=N?(V=0,P=N):P+L>=1?(V=(x*G-1)*y(2,T),P=P+L):(V=x*y(2,L-1)*y(2,T),P=0));T>=8;)R[H++]=V&255,V/=256,T-=8;for(P=P<<T|V,A+=T;A>0;)R[H++]=P&255,P/=256,A-=8;return R[--H]|=F*128,R},m=function(x,T){var _=x.length,R=_*8-T-1,A=(1<<R)-1,N=A>>1,L=R-7,M=_-1,F=x[M--],H=F&127,P;for(F>>=7;L>0;)H=H*256+x[M--],L-=8;for(P=H&(1<<-L)-1,H>>=-L,L+=T;L>0;)P=P*256+x[M--],L-=8;if(H===0)H=1-N;else{if(H===A)return P?NaN:F?-1/0:1/0;P=P+y(2,T),H=H-N}return(F?-1:1)*P*y(2,H-T)};E.exports={pack:h,unpack:m}},{"../internals/global":163}],170:[function(s,E,I){var u=s("../internals/global"),d=s("../internals/function-uncurry-this"),g=s("../internals/fails"),y=s("../internals/classof-raw"),S=u.Object,v=d("".split);E.exports=g(function(){return!S("z").propertyIsEnumerable(0)})?function(c){return y(c)=="String"?v(c,""):S(c)}:S},{"../internals/classof-raw":123,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],171:[function(s,E,I){var u=s("../internals/is-callable"),d=s("../internals/is-object"),g=s("../internals/object-set-prototype-of");E.exports=function(y,S,v){var c,h;return g&&u(c=S.constructor)&&c!==v&&d(h=c.prototype)&&h!==v.prototype&&g(y,h),y}},{"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-set-prototype-of":208}],172:[function(s,E,I){var u=s("../internals/function-uncurry-this"),d=s("../internals/is-callable"),g=s("../internals/shared-store"),y=u(Function.toString);d(g.inspectSource)||(g.inspectSource=function(S){return y(S)}),E.exports=g.inspectSource},{"../internals/function-uncurry-this":157,"../internals/is-callable":176,"../internals/shared-store":236}],173:[function(s,E,I){var u=s("../internals/native-weak-map"),d=s("../internals/global"),g=s("../internals/function-uncurry-this"),y=s("../internals/is-object"),S=s("../internals/create-non-enumerable-property"),v=s("../internals/has-own-property"),c=s("../internals/shared-store"),h=s("../internals/shared-key"),m=s("../internals/hidden-keys"),x="Object already initialized",T=d.TypeError,_=d.WeakMap,R,A,N,L=function(Q){return N(Q)?A(Q):R(Q,{})},M=function(Q){return function(ne){var ue;if(!y(ne)||(ue=A(ne)).type!==Q)throw T("Incompatible receiver, "+Q+" required");return ue}};if(u||c.state){var F=c.state||(c.state=new _),H=g(F.get),P=g(F.has),V=g(F.set);R=function(Q,ne){if(P(F,Q))throw new T(x);return ne.facade=Q,V(F,Q,ne),ne},A=function(Q){return H(F,Q)||{}},N=function(Q){return P(F,Q)}}else{var G=h("state");m[G]=!0,R=function(Q,ne){if(v(Q,G))throw new T(x);return ne.facade=Q,S(Q,G,ne),ne},A=function(Q){return v(Q,G)?Q[G]:{}},N=function(Q){return v(Q,G)}}E.exports={set:R,get:A,has:N,enforce:L,getterFor:M}},{"../internals/create-non-enumerable-property":129,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/is-object":180,"../internals/native-weak-map":192,"../internals/shared-key":235,"../internals/shared-store":236}],174:[function(s,E,I){var u=s("../internals/well-known-symbol"),d=s("../internals/iterators"),g=u("iterator"),y=Array.prototype;E.exports=function(S){return S!==void 0&&(d.Array===S||y[g]===S)}},{"../internals/iterators":187,"../internals/well-known-symbol":268}],175:[function(s,E,I){var u=s("../internals/classof-raw");E.exports=Array.isArray||function(g){return u(g)=="Array"}},{"../internals/classof-raw":123}],176:[function(s,E,I){E.exports=function(u){return typeof u=="function"}},{}],177:[function(s,E,I){var u=s("../internals/function-uncurry-this"),d=s("../internals/fails"),g=s("../internals/is-callable"),y=s("../internals/classof"),S=s("../internals/get-built-in"),v=s("../internals/inspect-source"),c=function(){},h=[],m=S("Reflect","construct"),x=/^\s*(?:class|function)\b/,T=u(x.exec),_=!x.exec(c),R=function(L){if(!g(L))return!1;try{return m(c,h,L),!0}catch(M){return!1}},A=function(L){if(!g(L))return!1;switch(y(L)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return _||!!T(x,v(L))}catch(M){return!0}};A.sham=!0,E.exports=!m||d(function(){var N;return R(R.call)||!R(Object)||!R(function(){N=!0})||N})?A:R},{"../internals/classof":124,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/inspect-source":172,"../internals/is-callable":176}],178:[function(s,E,I){var u=s("../internals/fails"),d=s("../internals/is-callable"),g=/#|\.prototype\./,y=function(m,x){var T=v[S(m)];return T==h?!0:T==c?!1:d(x)?u(x):!!x},S=y.normalize=function(m){return String(m).replace(g,".").toLowerCase()},v=y.data={},c=y.NATIVE="N",h=y.POLYFILL="P";E.exports=y},{"../internals/fails":150,"../internals/is-callable":176}],179:[function(s,E,I){var u=s("../internals/is-object"),d=Math.floor;E.exports=Number.isInteger||function(y){return!u(y)&&isFinite(y)&&d(y)===y}},{"../internals/is-object":180}],180:[function(s,E,I){var u=s("../internals/is-callable");E.exports=function(d){return typeof d=="object"?d!==null:u(d)}},{"../internals/is-callable":176}],181:[function(s,E,I){E.exports=!1},{}],182:[function(s,E,I){var u=s("../internals/is-object"),d=s("../internals/classof-raw"),g=s("../internals/well-known-symbol"),y=g("match");E.exports=function(S){var v;return u(S)&&((v=S[y])!==void 0?!!v:d(S)=="RegExp")}},{"../internals/classof-raw":123,"../internals/is-object":180,"../internals/well-known-symbol":268}],183:[function(s,E,I){var u=s("../internals/global"),d=s("../internals/get-built-in"),g=s("../internals/is-callable"),y=s("../internals/object-is-prototype-of"),S=s("../internals/use-symbol-as-uid"),v=u.Object;E.exports=S?function(c){return typeof c=="symbol"}:function(c){var h=d("Symbol");return g(h)&&y(h.prototype,v(c))}},{"../internals/get-built-in":158,"../internals/global":163,"../internals/is-callable":176,"../internals/object-is-prototype-of":204,"../internals/use-symbol-as-uid":264}],184:[function(s,E,I){var u=s("../internals/global"),d=s("../internals/function-bind-context"),g=s("../internals/function-call"),y=s("../internals/an-object"),S=s("../internals/try-to-string"),v=s("../internals/is-array-iterator-method"),c=s("../internals/length-of-array-like"),h=s("../internals/object-is-prototype-of"),m=s("../internals/get-iterator"),x=s("../internals/get-iterator-method"),T=s("../internals/iterator-close"),_=u.TypeError,R=function(N,L){this.stopped=N,this.result=L},A=R.prototype;E.exports=function(N,L,M){var F=M&&M.that,H=!!(M&&M.AS_ENTRIES),P=!!(M&&M.IS_ITERATOR),V=!!(M&&M.INTERRUPTED),G=d(L,F),Q,ne,ue,ae,he,ce,we,me=function(ee){return Q&&T(Q,"normal",ee),new R(!0,ee)},Le=function(ee){return H?(y(ee),V?G(ee[0],ee[1],me):G(ee[0],ee[1])):V?G(ee,me):G(ee)};if(P)Q=N;else{if(ne=x(N),!ne)throw _(S(N)+" is not iterable");if(v(ne)){for(ue=0,ae=c(N);ae>ue;ue++)if(he=Le(N[ue]),he&&h(A,he))return he;return new R(!1)}Q=m(N,ne)}for(ce=Q.next;!(we=g(ce,Q)).done;){try{he=Le(we.value)}catch(ee){T(Q,"throw",ee)}if(typeof he=="object"&&he&&h(A,he))return he}return new R(!1)}},{"../internals/an-object":101,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/is-array-iterator-method":174,"../internals/iterator-close":185,"../internals/length-of-array-like":188,"../internals/object-is-prototype-of":204,"../internals/try-to-string":257}],185:[function(s,E,I){var u=s("../internals/function-call"),d=s("../internals/an-object"),g=s("../internals/get-method");E.exports=function(y,S,v){var c,h;d(y);try{if(c=g(y,"return"),!c){if(S==="throw")throw v;return v}c=u(c,y)}catch(m){h=!0,c=m}if(S==="throw")throw v;if(h)throw c;return d(c),v}},{"../internals/an-object":101,"../internals/function-call":155,"../internals/get-method":161}],186:[function(s,E,I){"use strict";var u=s("../internals/fails"),d=s("../internals/is-callable"),g=s("../internals/object-create"),y=s("../internals/object-get-prototype-of"),S=s("../internals/redefine"),v=s("../internals/well-known-symbol"),c=s("../internals/is-pure"),h=v("iterator"),m=!1,x,T,_;[].keys&&(_=[].keys(),"next"in _?(T=y(y(_)),T!==Object.prototype&&(x=T)):m=!0);var R=x==null||u(function(){var A={};return x[h].call(A)!==A});R?x={}:c&&(x=g(x)),d(x[h])||S(x,h,function(){return this}),E.exports={IteratorPrototype:x,BUGGY_SAFARI_ITERATORS:m}},{"../internals/fails":150,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/object-create":196,"../internals/object-get-prototype-of":203,"../internals/redefine":222,"../internals/well-known-symbol":268}],187:[function(s,E,I){arguments[4][165][0].apply(I,arguments)},{dup:165}],188:[function(s,E,I){var u=s("../internals/to-length");E.exports=function(d){return u(d.length)}},{"../internals/to-length":249}],189:[function(s,E,I){var u=s("../internals/global"),d=s("../internals/function-bind-context"),g=s("../internals/object-get-own-property-descriptor").f,y=s("../internals/task").set,S=s("../internals/engine-is-ios"),v=s("../internals/engine-is-ios-pebble"),c=s("../internals/engine-is-webos-webkit"),h=s("../internals/engine-is-node"),m=u.MutationObserver||u.WebKitMutationObserver,x=u.document,T=u.process,_=u.Promise,R=g(u,"queueMicrotask"),A=R&&R.value,N,L,M,F,H,P,V,G;A||(N=function(){var Q,ne;for(h&&(Q=T.domain)&&Q.exit();L;){ne=L.fn,L=L.next;try{ne()}catch(ue){throw L?F():M=void 0,ue}}M=void 0,Q&&Q.enter()},!S&&!h&&!c&&m&&x?(H=!0,P=x.createTextNode(""),new m(N).observe(P,{characterData:!0}),F=function(){P.data=H=!H}):!v&&_&&_.resolve?(V=_.resolve(void 0),V.constructor=_,G=d(V.then,V),F=function(){G(N)}):h?F=function(){T.nextTick(N)}:(y=d(y,u),F=function(){y(N)})),E.exports=A||function(Q){var ne={fn:Q,next:void 0};M&&(M.next=ne),L||(L=ne,F()),M=ne}},{"../internals/engine-is-ios":142,"../internals/engine-is-ios-pebble":141,"../internals/engine-is-node":143,"../internals/engine-is-webos-webkit":144,"../internals/function-bind-context":153,"../internals/global":163,"../internals/object-get-own-property-descriptor":199,"../internals/task":243}],190:[function(s,E,I){var u=s("../internals/native-symbol");E.exports=u&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/native-symbol":191}],191:[function(s,E,I){var u=s("../internals/engine-v8-version"),d=s("../internals/fails");E.exports=!!Object.getOwnPropertySymbols&&!d(function(){var g=Symbol();return!String(g)||!(Object(g)instanceof Symbol)||!Symbol.sham&&u&&u<41})},{"../internals/engine-v8-version":146,"../internals/fails":150}],192:[function(s,E,I){var u=s("../internals/global"),d=s("../internals/is-callable"),g=s("../internals/inspect-source"),y=u.WeakMap;E.exports=d(y)&&/native code/.test(g(y))},{"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176}],193:[function(s,E,I){"use strict";var u=s("../internals/a-callable"),d=function(g){var y,S;this.promise=new g(function(v,c){if(y!==void 0||S!==void 0)throw TypeError("Bad Promise constructor");y=v,S=c}),this.resolve=u(y),this.reject=u(S)};E.exports.f=function(g){return new d(g)}},{"../internals/a-callable":95}],194:[function(s,E,I){var u=s("../internals/global"),d=s("../internals/is-regexp"),g=u.TypeError;E.exports=function(y){if(d(y))throw g("The method doesn't accept regular expressions");return y}},{"../internals/global":163,"../internals/is-regexp":182}],195:[function(s,E,I){"use strict";var u=s("../internals/descriptors"),d=s("../internals/function-uncurry-this"),g=s("../internals/function-call"),y=s("../internals/fails"),S=s("../internals/object-keys"),v=s("../internals/object-get-own-property-symbols"),c=s("../internals/object-property-is-enumerable"),h=s("../internals/to-object"),m=s("../internals/indexed-object"),x=Object.assign,T=Object.defineProperty,_=d([].concat);E.exports=!x||y(function(){if(u&&x({b:1},x(T({},"a",{enumerable:!0,get:function(){T(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var R={},A={},N=Symbol(),L="abcdefghijklmnopqrst";return R[N]=7,L.split("").forEach(function(M){A[M]=M}),x({},R)[N]!=7||S(x({},A)).join("")!=L})?function(A,N){for(var L=h(A),M=arguments.length,F=1,H=v.f,P=c.f;M>F;)for(var V=m(arguments[F++]),G=H?_(S(V),H(V)):S(V),Q=G.length,ne=0,ue;Q>ne;)ue=G[ne++],(!u||g(P,V,ue))&&(L[ue]=V[ue]);return L}:x},{"../internals/descriptors":134,"../internals/fails":150,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/object-get-own-property-symbols":202,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/to-object":250}],196:[function(s,E,I){var u=s("../internals/an-object"),d=s("../internals/object-define-properties"),g=s("../internals/enum-bug-keys"),y=s("../internals/hidden-keys"),S=s("../internals/html"),v=s("../internals/document-create-element"),c=s("../internals/shared-key"),h=">",m="<",x="prototype",T="script",_=c("IE_PROTO"),R=function(){},A=function(H){return m+T+h+H+m+"/"+T+h},N=function(H){H.write(A("")),H.close();var P=H.parentWindow.Object;return H=null,P},L=function(){var H=v("iframe"),P="java"+T+":",V;return H.style.display="none",S.appendChild(H),H.src=String(P),V=H.contentWindow.document,V.open(),V.write(A("document.F=Object")),V.close(),V.F},M,F=function(){try{M=new ActiveXObject("htmlfile")}catch(P){}F=typeof document!="undefined"?document.domain&&M?N(M):L():N(M);for(var H=g.length;H--;)delete F[x][g[H]];return F()};y[_]=!0,E.exports=Object.create||function(P,V){var G;return P!==null?(R[x]=u(P),G=new R,R[x]=null,G[_]=P):G=F(),V===void 0?G:d.f(G,V)}},{"../internals/an-object":101,"../internals/document-create-element":135,"../internals/enum-bug-keys":148,"../internals/hidden-keys":165,"../internals/html":167,"../internals/object-define-properties":197,"../internals/shared-key":235}],197:[function(s,E,I){var u=s("../internals/descriptors"),d=s("../internals/v8-prototype-define-bug"),g=s("../internals/object-define-property"),y=s("../internals/an-object"),S=s("../internals/to-indexed-object"),v=s("../internals/object-keys");I.f=u&&!d?Object.defineProperties:function(h,m){y(h);for(var x=S(m),T=v(m),_=T.length,R=0,A;_>R;)g.f(h,A=T[R++],x[A]);return h}},{"../internals/an-object":101,"../internals/descriptors":134,"../internals/object-define-property":198,"../internals/object-keys":206,"../internals/to-indexed-object":247,"../internals/v8-prototype-define-bug":265}],198:[function(s,E,I){var u=s("../internals/global"),d=s("../internals/descriptors"),g=s("../internals/ie8-dom-define"),y=s("../internals/v8-prototype-define-bug"),S=s("../internals/an-object"),v=s("../internals/to-property-key"),c=u.TypeError,h=Object.defineProperty,m=Object.getOwnPropertyDescriptor,x="enumerable",T="configurable",_="writable";I.f=d?y?function(A,N,L){if(S(A),N=v(N),S(L),typeof A=="function"&&N==="prototype"&&"value"in L&&_ in L&&!L[_]){var M=m(A,N);M&&M[_]&&(A[N]=L.value,L={configurable:T in L?L[T]:M[T],enumerable:x in L?L[x]:M[x],writable:!1})}return h(A,N,L)}:h:function(A,N,L){if(S(A),N=v(N),S(L),g)try{return h(A,N,L)}catch(M){}if("get"in L||"set"in L)throw c("Accessors not supported");return"value"in L&&(A[N]=L.value),A}},{"../internals/an-object":101,"../internals/descriptors":134,"../internals/global":163,"../internals/ie8-dom-define":168,"../internals/to-property-key":254,"../internals/v8-prototype-define-bug":265}],199:[function(s,E,I){var u=s("../internals/descriptors"),d=s("../internals/function-call"),g=s("../internals/object-property-is-enumerable"),y=s("../internals/create-property-descriptor"),S=s("../internals/to-indexed-object"),v=s("../internals/to-property-key"),c=s("../internals/has-own-property"),h=s("../internals/ie8-dom-define"),m=Object.getOwnPropertyDescriptor;I.f=u?m:function(T,_){if(T=S(T),_=v(_),h)try{return m(T,_)}catch(R){}if(c(T,_))return y(!d(g.f,T,_),T[_])}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/function-call":155,"../internals/has-own-property":164,"../internals/ie8-dom-define":168,"../internals/object-property-is-enumerable":207,"../internals/to-indexed-object":247,"../internals/to-property-key":254}],200:[function(s,E,I){var u=s("../internals/classof-raw"),d=s("../internals/to-indexed-object"),g=s("../internals/object-get-own-property-names").f,y=s("../internals/array-slice-simple"),S=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],v=function(c){try{return g(c)}catch(h){return y(S)}};E.exports.f=function(h){return S&&u(h)=="Window"?v(h):g(d(h))}},{"../internals/array-slice-simple":116,"../internals/classof-raw":123,"../internals/object-get-own-property-names":201,"../internals/to-indexed-object":247}],201:[function(s,E,I){var u=s("../internals/object-keys-internal"),d=s("../internals/enum-bug-keys"),g=d.concat("length","prototype");I.f=Object.getOwnPropertyNames||function(S){return u(S,g)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],202:[function(s,E,I){I.f=Object.getOwnPropertySymbols},{}],203:[function(s,E,I){var u=s("../internals/global"),d=s("../internals/has-own-property"),g=s("../internals/is-callable"),y=s("../internals/to-object"),S=s("../internals/shared-key"),v=s("../internals/correct-prototype-getter"),c=S("IE_PROTO"),h=u.Object,m=h.prototype;E.exports=v?h.getPrototypeOf:function(x){var T=y(x);if(d(T,c))return T[c];var _=T.constructor;return g(_)&&T instanceof _?_.prototype:T instanceof h?m:null}},{"../internals/correct-prototype-getter":127,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/shared-key":235,"../internals/to-object":250}],204:[function(s,E,I){var u=s("../internals/function-uncurry-this");E.exports=u({}.isPrototypeOf)},{"../internals/function-uncurry-this":157}],205:[function(s,E,I){var u=s("../internals/function-uncurry-this"),d=s("../internals/has-own-property"),g=s("../internals/to-indexed-object"),y=s("../internals/array-includes").indexOf,S=s("../internals/hidden-keys"),v=u([].push);E.exports=function(c,h){var m=g(c),x=0,T=[],_;for(_ in m)!d(S,_)&&d(m,_)&&v(T,_);for(;h.length>x;)d(m,_=h[x++])&&(~y(T,_)||v(T,_));return T}},{"../internals/array-includes":110,"../internals/function-uncurry-this":157,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/to-indexed-object":247}],206:[function(s,E,I){var u=s("../internals/object-keys-internal"),d=s("../internals/enum-bug-keys");E.exports=Object.keys||function(y){return u(y,d)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],207:[function(s,E,I){"use strict";var u={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,g=d&&!u.call({1:2},1);I.f=g?function(S){var v=d(this,S);return!!v&&v.enumerable}:u},{}],208:[function(s,E,I){var u=s("../internals/function-uncurry-this"),d=s("../internals/an-object"),g=s("../internals/a-possible-prototype");E.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var y=!1,S={},v;try{v=u(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),v(S,[]),y=S instanceof Array}catch(c){}return function(h,m){return d(h),g(m),y?v(h,m):h.__proto__=m,h}}():void 0)},{"../internals/a-possible-prototype":97,"../internals/an-object":101,"../internals/function-uncurry-this":157}],209:[function(s,E,I){var u=s("../internals/descriptors"),d=s("../internals/function-uncurry-this"),g=s("../internals/object-keys"),y=s("../internals/to-indexed-object"),S=s("../internals/object-property-is-enumerable").f,v=d(S),c=d([].push),h=function(m){return function(x){for(var T=y(x),_=g(T),R=_.length,A=0,N=[],L;R>A;)L=_[A++],(!u||v(T,L))&&c(N,m?[L,T[L]]:T[L]);return N}};E.exports={entries:h(!0),values:h(!1)}},{"../internals/descriptors":134,"../internals/function-uncurry-this":157,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/to-indexed-object":247}],210:[function(s,E,I){"use strict";var u=s("../internals/to-string-tag-support"),d=s("../internals/classof");E.exports=u?{}.toString:function(){return"[object "+d(this)+"]"}},{"../internals/classof":124,"../internals/to-string-tag-support":255}],211:[function(s,E,I){var u=s("../internals/global"),d=s("../internals/function-call"),g=s("../internals/is-callable"),y=s("../internals/is-object"),S=u.TypeError;E.exports=function(v,c){var h,m;if(c==="string"&&g(h=v.toString)&&!y(m=d(h,v))||g(h=v.valueOf)&&!y(m=d(h,v))||c!=="string"&&g(h=v.toString)&&!y(m=d(h,v)))return m;throw S("Can't convert object to primitive value")}},{"../internals/function-call":155,"../internals/global":163,"../internals/is-callable":176,"../internals/is-object":180}],212:[function(s,E,I){var u=s("../internals/get-built-in"),d=s("../internals/function-uncurry-this"),g=s("../internals/object-get-own-property-names"),y=s("../internals/object-get-own-property-symbols"),S=s("../internals/an-object"),v=d([].concat);E.exports=u("Reflect","ownKeys")||function(h){var m=g.f(S(h)),x=y.f;return x?v(m,x(h)):m}},{"../internals/an-object":101,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/object-get-own-property-names":201,"../internals/object-get-own-property-symbols":202}],213:[function(s,E,I){var u=s("../internals/global");E.exports=u},{"../internals/global":163}],214:[function(s,E,I){E.exports=function(u){try{return{error:!1,value:u()}}catch(d){return{error:!0,value:d}}}},{}],215:[function(s,E,I){var u=s("../internals/global"),d=s("../internals/promise-native-constructor"),g=s("../internals/is-callable"),y=s("../internals/is-forced"),S=s("../internals/inspect-source"),v=s("../internals/well-known-symbol"),c=s("../internals/engine-is-browser"),h=s("../internals/is-pure"),m=s("../internals/engine-v8-version"),x=d&&d.prototype,T=v("species"),_=!1,R=g(u.PromiseRejectionEvent),A=y("Promise",function(){var N=S(d),L=N!==String(d);if(!L&&m===66||h&&!(x.catch&&x.finally))return!0;if(m>=51&&/native code/.test(N))return!1;var M=new d(function(P){P(1)}),F=function(P){P(function(){},function(){})},H=M.constructor={};return H[T]=F,_=M.then(function(){})instanceof F,_?!L&&c&&!R:!0});E.exports={CONSTRUCTOR:A,REJECTION_EVENT:R,SUBCLASSING:_}},{"../internals/engine-is-browser":139,"../internals/engine-v8-version":146,"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176,"../internals/is-forced":178,"../internals/is-pure":181,"../internals/promise-native-constructor":216,"../internals/well-known-symbol":268}],216:[function(s,E,I){var u=s("../internals/global");E.exports=u.Promise},{"../internals/global":163}],217:[function(s,E,I){var u=s("../internals/an-object"),d=s("../internals/is-object"),g=s("../internals/new-promise-capability");E.exports=function(y,S){if(u(y),d(S)&&S.constructor===y)return S;var v=g.f(y),c=v.resolve;return c(S),v.promise}},{"../internals/an-object":101,"../internals/is-object":180,"../internals/new-promise-capability":193}],218:[function(s,E,I){var u=s("../internals/promise-native-constructor"),d=s("../internals/check-correctness-of-iteration"),g=s("../internals/promise-constructor-detection").CONSTRUCTOR;E.exports=g||!d(function(y){u.all(y).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":122,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216}],219:[function(s,E,I){var u=s("../internals/object-define-property").f;E.exports=function(d,g,y){y in d||u(d,y,{configurable:!0,get:function(){return g[y]},set:function(S){g[y]=S}})}},{"../internals/object-define-property":198}],220:[function(s,E,I){var u=function(){this.head=null,this.tail=null};u.prototype={add:function(d){var g={item:d,next:null};this.head?this.tail.next=g:this.head=g,this.tail=g},get:function(){var d=this.head;if(d)return this.head=d.next,this.tail===d&&(this.tail=null),d.item}},E.exports=u},{}],221:[function(s,E,I){var u=s("../internals/redefine");E.exports=function(d,g,y){for(var S in g)u(d,S,g[S],y);return d}},{"../internals/redefine":222}],222:[function(s,E,I){var u=s("../internals/global"),d=s("../internals/is-callable"),g=s("../internals/has-own-property"),y=s("../internals/create-non-enumerable-property"),S=s("../internals/set-global"),v=s("../internals/inspect-source"),c=s("../internals/internal-state"),h=s("../internals/function-name").CONFIGURABLE,m=c.get,x=c.enforce,T=String(String).split("String");(E.exports=function(_,R,A,N){var L=N?!!N.unsafe:!1,M=N?!!N.enumerable:!1,F=N?!!N.noTargetGet:!1,H=N&&N.name!==void 0?N.name:R,P;if(d(A)&&(String(H).slice(0,7)==="Symbol("&&(H="["+String(H).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!g(A,"name")||h&&A.name!==H)&&y(A,"name",H),P=x(A),P.source||(P.source=T.join(typeof H=="string"?H:""))),_===u){M?_[R]=A:S(R,A);return}else L?!F&&_[R]&&(M=!0):delete _[R];M?_[R]=A:y(_,R,A)})(Function.prototype,"toString",function(){return d(this)&&m(this).source||v(this)})},{"../internals/create-non-enumerable-property":129,"../internals/function-name":156,"../internals/global":163,"../internals/has-own-property":164,"../internals/inspect-source":172,"../internals/internal-state":173,"../internals/is-callable":176,"../internals/set-global":232}],223:[function(s,E,I){var u=s("../internals/global"),d=s("../internals/function-call"),g=s("../internals/an-object"),y=s("../internals/is-callable"),S=s("../internals/classof-raw"),v=s("../internals/regexp-exec"),c=u.TypeError;E.exports=function(h,m){var x=h.exec;if(y(x)){var T=d(x,h,m);return T!==null&&g(T),T}if(S(h)==="RegExp")return d(v,h,m);throw c("RegExp#exec called on incompatible receiver")}},{"../internals/an-object":101,"../internals/classof-raw":123,"../internals/function-call":155,"../internals/global":163,"../internals/is-callable":176,"../internals/regexp-exec":224}],224:[function(s,E,I){"use strict";var u=s("../internals/function-call"),d=s("../internals/function-uncurry-this"),g=s("../internals/to-string"),y=s("../internals/regexp-flags"),S=s("../internals/regexp-sticky-helpers"),v=s("../internals/shared"),c=s("../internals/object-create"),h=s("../internals/internal-state").get,m=s("../internals/regexp-unsupported-dot-all"),x=s("../internals/regexp-unsupported-ncg"),T=v("native-string-replace",String.prototype.replace),_=RegExp.prototype.exec,R=_,A=d("".charAt),N=d("".indexOf),L=d("".replace),M=d("".slice),F=function(){var G=/a/,Q=/b*/g;return u(_,G,"a"),u(_,Q,"a"),G.lastIndex!==0||Q.lastIndex!==0}(),H=S.BROKEN_CARET,P=/()??/.exec("")[1]!==void 0,V=F||P||H||m||x;V&&(R=function(Q){var ne=this,ue=h(ne),ae=g(Q),he=ue.raw,ce,we,me,Le,ee,se,le;if(he)return he.lastIndex=ne.lastIndex,ce=u(R,he,ae),ne.lastIndex=he.lastIndex,ce;var ke=ue.groups,De=H&&ne.sticky,Be=u(y,ne),He=ne.source,Fe=0,Je=ae;if(De&&(Be=L(Be,"y",""),N(Be,"g")===-1&&(Be+="g"),Je=M(ae,ne.lastIndex),ne.lastIndex>0&&(!ne.multiline||ne.multiline&&A(ae,ne.lastIndex-1)!==`
`)&&(He="(?: "+He+")",Je=" "+Je,Fe++),we=new RegExp("^(?:"+He+")",Be)),P&&(we=new RegExp("^"+He+"$(?!\\s)",Be)),F&&(me=ne.lastIndex),Le=u(_,De?we:ne,Je),De?Le?(Le.input=M(Le.input,Fe),Le[0]=M(Le[0],Fe),Le.index=ne.lastIndex,ne.lastIndex+=Le[0].length):ne.lastIndex=0:F&&Le&&(ne.lastIndex=ne.global?Le.index+Le[0].length:me),P&&Le&&Le.length>1&&u(T,Le[0],we,function(){for(ee=1;ee<arguments.length-2;ee++)arguments[ee]===void 0&&(Le[ee]=void 0)}),Le&&ke)for(Le.groups=se=c(null),ee=0;ee<ke.length;ee++)le=ke[ee],se[le[0]]=Le[le[1]];return Le}),E.exports=R},{"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/internal-state":173,"../internals/object-create":196,"../internals/regexp-flags":225,"../internals/regexp-sticky-helpers":227,"../internals/regexp-unsupported-dot-all":228,"../internals/regexp-unsupported-ncg":229,"../internals/shared":237,"../internals/to-string":256}],225:[function(s,E,I){"use strict";var u=s("../internals/an-object");E.exports=function(){var d=u(this),g="";return d.hasIndices&&(g+="d"),d.global&&(g+="g"),d.ignoreCase&&(g+="i"),d.multiline&&(g+="m"),d.dotAll&&(g+="s"),d.unicode&&(g+="u"),d.sticky&&(g+="y"),g}},{"../internals/an-object":101}],226:[function(s,E,I){var u=s("../internals/function-call"),d=s("../internals/has-own-property"),g=s("../internals/object-is-prototype-of"),y=s("../internals/regexp-flags"),S=RegExp.prototype;E.exports=function(v){var c=v.flags;return c===void 0&&!("flags"in S)&&!d(v,"flags")&&g(S,v)?u(y,v):c}},{"../internals/function-call":155,"../internals/has-own-property":164,"../internals/object-is-prototype-of":204,"../internals/regexp-flags":225}],227:[function(s,E,I){var u=s("../internals/fails"),d=s("../internals/global"),g=d.RegExp,y=u(function(){var c=g("a","y");return c.lastIndex=2,c.exec("abcd")!=null}),S=y||u(function(){return!g("a","y").sticky}),v=y||u(function(){var c=g("^r","gy");return c.lastIndex=2,c.exec("str")!=null});E.exports={BROKEN_CARET:v,MISSED_STICKY:S,UNSUPPORTED_Y:y}},{"../internals/fails":150,"../internals/global":163}],228:[function(s,E,I){var u=s("../internals/fails"),d=s("../internals/global"),g=d.RegExp;E.exports=u(function(){var y=g(".","s");return!(y.dotAll&&y.exec(`
`)&&y.flags==="s")})},{"../internals/fails":150,"../internals/global":163}],229:[function(s,E,I){var u=s("../internals/fails"),d=s("../internals/global"),g=d.RegExp;E.exports=u(function(){var y=g("(?<a>b)","g");return y.exec("b").groups.a!=="b"||"b".replace(y,"$<a>c")!=="bc"})},{"../internals/fails":150,"../internals/global":163}],230:[function(s,E,I){var u=s("../internals/global"),d=u.TypeError;E.exports=function(g){if(g==null)throw d("Can't call method on "+g);return g}},{"../internals/global":163}],231:[function(s,E,I){E.exports=Object.is||function(d,g){return d===g?d!==0||1/d===1/g:d!=d&&g!=g}},{}],232:[function(s,E,I){var u=s("../internals/global"),d=Object.defineProperty;E.exports=function(g,y){try{d(u,g,{value:y,configurable:!0,writable:!0})}catch(S){u[g]=y}return y}},{"../internals/global":163}],233:[function(s,E,I){"use strict";var u=s("../internals/get-built-in"),d=s("../internals/object-define-property"),g=s("../internals/well-known-symbol"),y=s("../internals/descriptors"),S=g("species");E.exports=function(v){var c=u(v),h=d.f;y&&c&&!c[S]&&h(c,S,{configurable:!0,get:function(){return this}})}},{"../internals/descriptors":134,"../internals/get-built-in":158,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],234:[function(s,E,I){var u=s("../internals/object-define-property").f,d=s("../internals/has-own-property"),g=s("../internals/well-known-symbol"),y=g("toStringTag");E.exports=function(S,v,c){S&&!c&&(S=S.prototype),S&&!d(S,y)&&u(S,y,{configurable:!0,value:v})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],235:[function(s,E,I){var u=s("../internals/shared"),d=s("../internals/uid"),g=u("keys");E.exports=function(y){return g[y]||(g[y]=d(y))}},{"../internals/shared":237,"../internals/uid":263}],236:[function(s,E,I){var u=s("../internals/global"),d=s("../internals/set-global"),g="__core-js_shared__",y=u[g]||d(g,{});E.exports=y},{"../internals/global":163,"../internals/set-global":232}],237:[function(s,E,I){var u=s("../internals/is-pure"),d=s("../internals/shared-store");(E.exports=function(g,y){return d[g]||(d[g]=y!==void 0?y:{})})("versions",[]).push({version:"3.22.1",mode:u?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.1/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":181,"../internals/shared-store":236}],238:[function(s,E,I){var u=s("../internals/an-object"),d=s("../internals/a-constructor"),g=s("../internals/well-known-symbol"),y=g("species");E.exports=function(S,v){var c=u(S).constructor,h;return c===void 0||(h=u(c)[y])==null?v:d(h)}},{"../internals/a-constructor":96,"../internals/an-object":101,"../internals/well-known-symbol":268}],239:[function(s,E,I){var u=s("../internals/function-uncurry-this"),d=s("../internals/to-integer-or-infinity"),g=s("../internals/to-string"),y=s("../internals/require-object-coercible"),S=u("".charAt),v=u("".charCodeAt),c=u("".slice),h=function(m){return function(x,T){var _=g(y(x)),R=d(T),A=_.length,N,L;return R<0||R>=A?m?"":void 0:(N=v(_,R),N<55296||N>56319||R+1===A||(L=v(_,R+1))<56320||L>57343?m?S(_,R):N:m?c(_,R,R+2):(N-55296<<10)+(L-56320)+65536)}};E.exports={codeAt:h(!1),charAt:h(!0)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-string":256}],240:[function(s,E,I){var u=s("../internals/function-name").PROPER,d=s("../internals/fails"),g=s("../internals/whitespaces"),y="\u200B\x85\u180E";E.exports=function(S){return d(function(){return!!g[S]()||y[S]()!==y||u&&g[S].name!==S})}},{"../internals/fails":150,"../internals/function-name":156,"../internals/whitespaces":269}],241:[function(s,E,I){var u=s("../internals/function-uncurry-this"),d=s("../internals/require-object-coercible"),g=s("../internals/to-string"),y=s("../internals/whitespaces"),S=u("".replace),v="["+y+"]",c=RegExp("^"+v+v+"*"),h=RegExp(v+v+"*$"),m=function(x){return function(T){var _=g(d(T));return x&1&&(_=S(_,c,"")),x&2&&(_=S(_,h,"")),_}};E.exports={start:m(1),end:m(2),trim:m(3)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-string":256,"../internals/whitespaces":269}],242:[function(s,E,I){var u=s("../internals/function-call"),d=s("../internals/get-built-in"),g=s("../internals/well-known-symbol"),y=s("../internals/redefine");E.exports=function(){var S=d("Symbol"),v=S&&S.prototype,c=v&&v.valueOf,h=g("toPrimitive");v&&!v[h]&&y(v,h,function(m){return u(c,this)})}},{"../internals/function-call":155,"../internals/get-built-in":158,"../internals/redefine":222,"../internals/well-known-symbol":268}],243:[function(s,E,I){var u=s("../internals/global"),d=s("../internals/function-apply"),g=s("../internals/function-bind-context"),y=s("../internals/is-callable"),S=s("../internals/has-own-property"),v=s("../internals/fails"),c=s("../internals/html"),h=s("../internals/array-slice"),m=s("../internals/document-create-element"),x=s("../internals/validate-arguments-length"),T=s("../internals/engine-is-ios"),_=s("../internals/engine-is-node"),R=u.setImmediate,A=u.clearImmediate,N=u.process,L=u.Dispatch,M=u.Function,F=u.MessageChannel,H=u.String,P=0,V={},G="onreadystatechange",Q,ne,ue,ae;try{Q=u.location}catch(Le){}var he=function(Le){if(S(V,Le)){var ee=V[Le];delete V[Le],ee()}},ce=function(Le){return function(){he(Le)}},we=function(Le){he(Le.data)},me=function(Le){u.postMessage(H(Le),Q.protocol+"//"+Q.host)};(!R||!A)&&(R=function(ee){x(arguments.length,1);var se=y(ee)?ee:M(ee),le=h(arguments,1);return V[++P]=function(){d(se,void 0,le)},ne(P),P},A=function(ee){delete V[ee]},_?ne=function(Le){N.nextTick(ce(Le))}:L&&L.now?ne=function(Le){L.now(ce(Le))}:F&&!T?(ue=new F,ae=ue.port2,ue.port1.onmessage=we,ne=g(ae.postMessage,ae)):u.addEventListener&&y(u.postMessage)&&!u.importScripts&&Q&&Q.protocol!=="file:"&&!v(me)?(ne=me,u.addEventListener("message",we,!1)):G in m("script")?ne=function(Le){c.appendChild(m("script"))[G]=function(){c.removeChild(this),he(Le)}}:ne=function(Le){setTimeout(ce(Le),0)}),E.exports={set:R,clear:A}},{"../internals/array-slice":117,"../internals/document-create-element":135,"../internals/engine-is-ios":142,"../internals/engine-is-node":143,"../internals/fails":150,"../internals/function-apply":152,"../internals/function-bind-context":153,"../internals/global":163,"../internals/has-own-property":164,"../internals/html":167,"../internals/is-callable":176,"../internals/validate-arguments-length":266}],244:[function(s,E,I){var u=s("../internals/function-uncurry-this");E.exports=u(1 .valueOf)},{"../internals/function-uncurry-this":157}],245:[function(s,E,I){var u=s("../internals/to-integer-or-infinity"),d=Math.max,g=Math.min;E.exports=function(y,S){var v=u(y);return v<0?d(v+S,0):g(v,S)}},{"../internals/to-integer-or-infinity":248}],246:[function(s,E,I){var u=s("../internals/global"),d=s("../internals/to-integer-or-infinity"),g=s("../internals/to-length"),y=u.RangeError;E.exports=function(S){if(S===void 0)return 0;var v=d(S),c=g(v);if(v!==c)throw y("Wrong length or index");return c}},{"../internals/global":163,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],247:[function(s,E,I){var u=s("../internals/indexed-object"),d=s("../internals/require-object-coercible");E.exports=function(g){return u(d(g))}},{"../internals/indexed-object":170,"../internals/require-object-coercible":230}],248:[function(s,E,I){var u=Math.ceil,d=Math.floor;E.exports=function(g){var y=+g;return y!==y||y===0?0:(y>0?d:u)(y)}},{}],249:[function(s,E,I){var u=s("../internals/to-integer-or-infinity"),d=Math.min;E.exports=function(g){return g>0?d(u(g),9007199254740991):0}},{"../internals/to-integer-or-infinity":248}],250:[function(s,E,I){var u=s("../internals/global"),d=s("../internals/require-object-coercible"),g=u.Object;E.exports=function(y){return g(d(y))}},{"../internals/global":163,"../internals/require-object-coercible":230}],251:[function(s,E,I){var u=s("../internals/global"),d=s("../internals/to-positive-integer"),g=u.RangeError;E.exports=function(y,S){var v=d(y);if(v%S)throw g("Wrong offset");return v}},{"../internals/global":163,"../internals/to-positive-integer":252}],252:[function(s,E,I){var u=s("../internals/global"),d=s("../internals/to-integer-or-infinity"),g=u.RangeError;E.exports=function(y){var S=d(y);if(S<0)throw g("The argument can't be less than 0");return S}},{"../internals/global":163,"../internals/to-integer-or-infinity":248}],253:[function(s,E,I){var u=s("../internals/global"),d=s("../internals/function-call"),g=s("../internals/is-object"),y=s("../internals/is-symbol"),S=s("../internals/get-method"),v=s("../internals/ordinary-to-primitive"),c=s("../internals/well-known-symbol"),h=u.TypeError,m=c("toPrimitive");E.exports=function(x,T){if(!g(x)||y(x))return x;var _=S(x,m),R;if(_){if(T===void 0&&(T="default"),R=d(_,x,T),!g(R)||y(R))return R;throw h("Can't convert object to primitive value")}return T===void 0&&(T="number"),v(x,T)}},{"../internals/function-call":155,"../internals/get-method":161,"../internals/global":163,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/ordinary-to-primitive":211,"../internals/well-known-symbol":268}],254:[function(s,E,I){var u=s("../internals/to-primitive"),d=s("../internals/is-symbol");E.exports=function(g){var y=u(g,"string");return d(y)?y:y+""}},{"../internals/is-symbol":183,"../internals/to-primitive":253}],255:[function(s,E,I){var u=s("../internals/well-known-symbol"),d=u("toStringTag"),g={};g[d]="z",E.exports=String(g)==="[object z]"},{"../internals/well-known-symbol":268}],256:[function(s,E,I){var u=s("../internals/global"),d=s("../internals/classof"),g=u.String;E.exports=function(y){if(d(y)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return g(y)}},{"../internals/classof":124,"../internals/global":163}],257:[function(s,E,I){var u=s("../internals/global"),d=u.String;E.exports=function(g){try{return d(g)}catch(y){return"Object"}}},{"../internals/global":163}],258:[function(s,E,I){"use strict";var u=s("../internals/export"),d=s("../internals/global"),g=s("../internals/function-call"),y=s("../internals/descriptors"),S=s("../internals/typed-array-constructors-require-wrappers"),v=s("../internals/array-buffer-view-core"),c=s("../internals/array-buffer"),h=s("../internals/an-instance"),m=s("../internals/create-property-descriptor"),x=s("../internals/create-non-enumerable-property"),T=s("../internals/is-integral-number"),_=s("../internals/to-length"),R=s("../internals/to-index"),A=s("../internals/to-offset"),N=s("../internals/to-property-key"),L=s("../internals/has-own-property"),M=s("../internals/classof"),F=s("../internals/is-object"),H=s("../internals/is-symbol"),P=s("../internals/object-create"),V=s("../internals/object-is-prototype-of"),G=s("../internals/object-set-prototype-of"),Q=s("../internals/object-get-own-property-names").f,ne=s("../internals/typed-array-from"),ue=s("../internals/array-iteration").forEach,ae=s("../internals/set-species"),he=s("../internals/object-define-property"),ce=s("../internals/object-get-own-property-descriptor"),we=s("../internals/internal-state"),me=s("../internals/inherit-if-required"),Le=we.get,ee=we.set,se=he.f,le=ce.f,ke=Math.round,De=d.RangeError,Be=c.ArrayBuffer,He=Be.prototype,Fe=c.DataView,Je=v.NATIVE_ARRAY_BUFFER_VIEWS,Me=v.TYPED_ARRAY_CONSTRUCTOR,lt=v.TYPED_ARRAY_TAG,Re=v.TypedArray,Oe=v.TypedArrayPrototype,pe=v.aTypedArrayConstructor,fe=v.isTypedArray,z="BYTES_PER_ELEMENT",J="Wrong length",be=function(ze,Ve){pe(ze);for(var yt=0,ct=Ve.length,St=new ze(ct);ct>yt;)St[yt]=Ve[yt++];return St},_e=function(ze,Ve){se(ze,Ve,{get:function(){return Le(this)[Ve]}})},oe=function(ze){var Ve;return V(He,ze)||(Ve=M(ze))=="ArrayBuffer"||Ve=="SharedArrayBuffer"},ie=function(ze,Ve){return fe(ze)&&!H(Ve)&&Ve in ze&&T(+Ve)&&Ve>=0},ve=function(Ve,yt){return yt=N(yt),ie(Ve,yt)?m(2,Ve[yt]):le(Ve,yt)},Ne=function(Ve,yt,ct){return yt=N(yt),ie(Ve,yt)&&F(ct)&&L(ct,"value")&&!L(ct,"get")&&!L(ct,"set")&&!ct.configurable&&(!L(ct,"writable")||ct.writable)&&(!L(ct,"enumerable")||ct.enumerable)?(Ve[yt]=ct.value,Ve):se(Ve,yt,ct)};y?(Je||(ce.f=ve,he.f=Ne,_e(Oe,"buffer"),_e(Oe,"byteOffset"),_e(Oe,"byteLength"),_e(Oe,"length")),u({target:"Object",stat:!0,forced:!Je},{getOwnPropertyDescriptor:ve,defineProperty:Ne}),E.exports=function(ze,Ve,yt){var ct=ze.match(/\d+$/)[0]/8,St=ze+(yt?"Clamped":"")+"Array",_t="get"+ze,At="set"+ze,ht=d[St],wt=ht,jt=wt&&wt.prototype,st={},ge=function(Mt,On){var Vn=Le(Mt);return Vn.view[_t](On*ct+Vn.byteOffset,!0)},on=function(Mt,On,Vn){var Fn=Le(Mt);yt&&(Vn=(Vn=ke(Vn))<0?0:Vn>255?255:Vn&255),Fn.view[At](On*ct+Fn.byteOffset,Vn,!0)},mn=function(Mt,On){se(Mt,On,{get:function(){return ge(this,On)},set:function(Vn){return on(this,On,Vn)},enumerable:!0})};Je?S&&(wt=Ve(function(Mt,On,Vn,Fn){return h(Mt,jt),me(function(){return F(On)?oe(On)?Fn!==void 0?new ht(On,A(Vn,ct),Fn):Vn!==void 0?new ht(On,A(Vn,ct)):new ht(On):fe(On)?be(wt,On):g(ne,wt,On):new ht(R(On))}(),Mt,wt)}),G&&G(wt,Re),ue(Q(ht),function(Mt){Mt in wt||x(wt,Mt,ht[Mt])}),wt.prototype=jt):(wt=Ve(function(Mt,On,Vn,Fn){h(Mt,jt);var Gn=0,sn=0,xt,gr,Pr;if(!F(On))Pr=R(On),gr=Pr*ct,xt=new Be(gr);else if(oe(On)){xt=On,sn=A(Vn,ct);var tr=On.byteLength;if(Fn===void 0){if(tr%ct||(gr=tr-sn,gr<0))throw De(J)}else if(gr=_(Fn)*ct,gr+sn>tr)throw De(J);Pr=gr/ct}else return fe(On)?be(wt,On):g(ne,wt,On);for(ee(Mt,{buffer:xt,byteOffset:sn,byteLength:gr,length:Pr,view:new Fe(xt)});Gn<Pr;)mn(Mt,Gn++)}),G&&G(wt,Re),jt=wt.prototype=P(Oe)),jt.constructor!==wt&&x(jt,"constructor",wt),x(jt,Me,wt),lt&&x(jt,lt,St),st[St]=wt,u({global:!0,forced:wt!=ht,sham:!Je},st),z in wt||x(wt,z,ct),z in jt||x(jt,z,ct),ae(St)}):E.exports=function(){}},{"../internals/an-instance":100,"../internals/array-buffer":104,"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/classof":124,"../internals/create-non-enumerable-property":129,"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/export":149,"../internals/function-call":155,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/internal-state":173,"../internals/is-integral-number":179,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/object-create":196,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/object-set-prototype-of":208,"../internals/set-species":233,"../internals/to-index":246,"../internals/to-length":249,"../internals/to-offset":251,"../internals/to-property-key":254,"../internals/typed-array-constructors-require-wrappers":259,"../internals/typed-array-from":261}],259:[function(s,E,I){var u=s("../internals/global"),d=s("../internals/fails"),g=s("../internals/check-correctness-of-iteration"),y=s("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS,S=u.ArrayBuffer,v=u.Int8Array;E.exports=!y||!d(function(){v(1)})||!d(function(){new v(-1)})||!g(function(c){new v,new v(null),new v(1.5),new v(c)},!0)||d(function(){return new v(new S(2),1,void 0).length!==1})},{"../internals/array-buffer-view-core":103,"../internals/check-correctness-of-iteration":122,"../internals/fails":150,"../internals/global":163}],260:[function(s,E,I){var u=s("../internals/array-from-constructor-and-list"),d=s("../internals/typed-array-species-constructor");E.exports=function(g,y){return u(d(g),y)}},{"../internals/array-from-constructor-and-list":108,"../internals/typed-array-species-constructor":262}],261:[function(s,E,I){var u=s("../internals/function-bind-context"),d=s("../internals/function-call"),g=s("../internals/a-constructor"),y=s("../internals/to-object"),S=s("../internals/length-of-array-like"),v=s("../internals/get-iterator"),c=s("../internals/get-iterator-method"),h=s("../internals/is-array-iterator-method"),m=s("../internals/array-buffer-view-core").aTypedArrayConstructor;E.exports=function(T){var _=g(this),R=y(T),A=arguments.length,N=A>1?arguments[1]:void 0,L=N!==void 0,M=c(R),F,H,P,V,G,Q;if(M&&!h(M))for(G=v(R,M),Q=G.next,R=[];!(V=d(Q,G)).done;)R.push(V.value);for(L&&A>2&&(N=u(N,arguments[2])),H=S(R),P=new(m(_))(H),F=0;H>F;F++)P[F]=L?N(R[F],F):R[F];return P}},{"../internals/a-constructor":96,"../internals/array-buffer-view-core":103,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/is-array-iterator-method":174,"../internals/length-of-array-like":188,"../internals/to-object":250}],262:[function(s,E,I){var u=s("../internals/array-buffer-view-core"),d=s("../internals/species-constructor"),g=u.TYPED_ARRAY_CONSTRUCTOR,y=u.aTypedArrayConstructor;E.exports=function(S){return y(d(S,S[g]))}},{"../internals/array-buffer-view-core":103,"../internals/species-constructor":238}],263:[function(s,E,I){var u=s("../internals/function-uncurry-this"),d=0,g=Math.random(),y=u(1 .toString);E.exports=function(S){return"Symbol("+(S===void 0?"":S)+")_"+y(++d+g,36)}},{"../internals/function-uncurry-this":157}],264:[function(s,E,I){var u=s("../internals/native-symbol");E.exports=u&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/native-symbol":191}],265:[function(s,E,I){var u=s("../internals/descriptors"),d=s("../internals/fails");E.exports=u&&d(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},{"../internals/descriptors":134,"../internals/fails":150}],266:[function(s,E,I){var u=s("../internals/global"),d=u.TypeError;E.exports=function(g,y){if(g<y)throw d("Not enough arguments");return g}},{"../internals/global":163}],267:[function(s,E,I){var u=s("../internals/well-known-symbol");I.f=u},{"../internals/well-known-symbol":268}],268:[function(s,E,I){var u=s("../internals/global"),d=s("../internals/shared"),g=s("../internals/has-own-property"),y=s("../internals/uid"),S=s("../internals/native-symbol"),v=s("../internals/use-symbol-as-uid"),c=d("wks"),h=u.Symbol,m=h&&h.for,x=v?h:h&&h.withoutSetter||y;E.exports=function(T){if(!g(c,T)||!(S||typeof c[T]=="string")){var _="Symbol."+T;S&&g(h,T)?c[T]=h[T]:v&&m?c[T]=m(_):c[T]=x(_)}return c[T]}},{"../internals/global":163,"../internals/has-own-property":164,"../internals/native-symbol":191,"../internals/shared":237,"../internals/uid":263,"../internals/use-symbol-as-uid":264}],269:[function(s,E,I){E.exports=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},{}],270:[function(s,E,I){"use strict";var u=s("../internals/export"),d=s("../internals/global"),g=s("../internals/array-buffer"),y=s("../internals/set-species"),S="ArrayBuffer",v=g[S],c=d[S];u({global:!0,forced:c!==v},{ArrayBuffer:v}),y(S)},{"../internals/array-buffer":104,"../internals/export":149,"../internals/global":163,"../internals/set-species":233}],271:[function(s,E,I){"use strict";var u=s("../internals/export"),d=s("../internals/function-uncurry-this"),g=s("../internals/fails"),y=s("../internals/array-buffer"),S=s("../internals/an-object"),v=s("../internals/to-absolute-index"),c=s("../internals/to-length"),h=s("../internals/species-constructor"),m=y.ArrayBuffer,x=y.DataView,T=x.prototype,_=d(m.prototype.slice),R=d(T.getUint8),A=d(T.setUint8),N=g(function(){return!new m(2).slice(1,void 0).byteLength});u({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:N},{slice:function(M,F){if(_&&F===void 0)return _(S(this),M);for(var H=S(this).byteLength,P=v(M,H),V=v(F===void 0?H:F,H),G=new(h(this,m))(c(V-P)),Q=new x(this),ne=new x(G),ue=0;P<V;)A(ne,ue++,R(Q,P++));return G}})},{"../internals/an-object":101,"../internals/array-buffer":104,"../internals/export":149,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/species-constructor":238,"../internals/to-absolute-index":245,"../internals/to-length":249}],272:[function(s,E,I){"use strict";var u=s("../internals/export"),d=s("../internals/global"),g=s("../internals/fails"),y=s("../internals/is-array"),S=s("../internals/is-object"),v=s("../internals/to-object"),c=s("../internals/length-of-array-like"),h=s("../internals/create-property"),m=s("../internals/array-species-create"),x=s("../internals/array-method-has-species-support"),T=s("../internals/well-known-symbol"),_=s("../internals/engine-v8-version"),R=T("isConcatSpreadable"),A=9007199254740991,N="Maximum allowed index exceeded",L=d.TypeError,M=_>=51||!g(function(){var V=[];return V[R]=!1,V.concat()[0]!==V}),F=x("concat"),H=function(V){if(!S(V))return!1;var G=V[R];return G!==void 0?!!G:y(V)},P=!M||!F;u({target:"Array",proto:!0,forced:P},{concat:function(G){var Q=v(this),ne=m(Q,0),ue=0,ae,he,ce,we,me;for(ae=-1,ce=arguments.length;ae<ce;ae++)if(me=ae===-1?Q:arguments[ae],H(me)){if(we=c(me),ue+we>A)throw L(N);for(he=0;he<we;he++,ue++)he in me&&h(ne,ue,me[he])}else{if(ue>=A)throw L(N);h(ne,ue++,me)}return ne.length=ue,ne}})},{"../internals/array-method-has-species-support":113,"../internals/array-species-create":120,"../internals/create-property":131,"../internals/engine-v8-version":146,"../internals/export":149,"../internals/fails":150,"../internals/global":163,"../internals/is-array":175,"../internals/is-object":180,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/well-known-symbol":268}],273:[function(s,E,I){var u=s("../internals/export"),d=s("../internals/array-fill"),g=s("../internals/add-to-unscopables");u({target:"Array",proto:!0},{fill:d}),g("fill")},{"../internals/add-to-unscopables":98,"../internals/array-fill":106,"../internals/export":149}],274:[function(s,E,I){"use strict";var u=s("../internals/export"),d=s("../internals/array-iteration").filter,g=s("../internals/array-method-has-species-support"),y=g("filter");u({target:"Array",proto:!0,forced:!y},{filter:function(v){return d(this,v,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],275:[function(s,E,I){"use strict";var u=s("../internals/export"),d=s("../internals/array-iteration").find,g=s("../internals/add-to-unscopables"),y="find",S=!0;y in[]&&Array(1)[y](function(){S=!1}),u({target:"Array",proto:!0,forced:S},{find:function(c){return d(this,c,arguments.length>1?arguments[1]:void 0)}}),g(y)},{"../internals/add-to-unscopables":98,"../internals/array-iteration":111,"../internals/export":149}],276:[function(s,E,I){var u=s("../internals/export"),d=s("../internals/array-from"),g=s("../internals/check-correctness-of-iteration"),y=!g(function(S){Array.from(S)});u({target:"Array",stat:!0,forced:y},{from:d})},{"../internals/array-from":109,"../internals/check-correctness-of-iteration":122,"../internals/export":149}],277:[function(s,E,I){"use strict";var u=s("../internals/export"),d=s("../internals/array-includes").includes,g=s("../internals/add-to-unscopables");u({target:"Array",proto:!0},{includes:function(S){return d(this,S,arguments.length>1?arguments[1]:void 0)}}),g("includes")},{"../internals/add-to-unscopables":98,"../internals/array-includes":110,"../internals/export":149}],278:[function(s,E,I){"use strict";var u=s("../internals/to-indexed-object"),d=s("../internals/add-to-unscopables"),g=s("../internals/iterators"),y=s("../internals/internal-state"),S=s("../internals/object-define-property").f,v=s("../internals/define-iterator"),c=s("../internals/is-pure"),h=s("../internals/descriptors"),m="Array Iterator",x=y.set,T=y.getterFor(m);E.exports=v(Array,"Array",function(R,A){x(this,{type:m,target:u(R),index:0,kind:A})},function(){var R=T(this),A=R.target,N=R.kind,L=R.index++;return!A||L>=A.length?(R.target=void 0,{value:void 0,done:!0}):N=="keys"?{value:L,done:!1}:N=="values"?{value:A[L],done:!1}:{value:[L,A[L]],done:!1}},"values");var _=g.Arguments=g.Array;if(d("keys"),d("values"),d("entries"),!c&&h&&_.name!=="values")try{S(_,"name",{value:"values"})}catch(R){}},{"../internals/add-to-unscopables":98,"../internals/define-iterator":132,"../internals/descriptors":134,"../internals/internal-state":173,"../internals/is-pure":181,"../internals/iterators":187,"../internals/object-define-property":198,"../internals/to-indexed-object":247}],279:[function(s,E,I){"use strict";var u=s("../internals/export"),d=s("../internals/function-uncurry-this"),g=s("../internals/indexed-object"),y=s("../internals/to-indexed-object"),S=s("../internals/array-method-is-strict"),v=d([].join),c=g!=Object,h=S("join",",");u({target:"Array",proto:!0,forced:c||!h},{join:function(x){return v(y(this),x===void 0?",":x)}})},{"../internals/array-method-is-strict":114,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/to-indexed-object":247}],280:[function(s,E,I){"use strict";var u=s("../internals/export"),d=s("../internals/array-iteration").map,g=s("../internals/array-method-has-species-support"),y=g("map");u({target:"Array",proto:!0,forced:!y},{map:function(v){return d(this,v,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],281:[function(s,E,I){"use strict";var u=s("../internals/export"),d=s("../internals/global"),g=s("../internals/is-array"),y=s("../internals/is-constructor"),S=s("../internals/is-object"),v=s("../internals/to-absolute-index"),c=s("../internals/length-of-array-like"),h=s("../internals/to-indexed-object"),m=s("../internals/create-property"),x=s("../internals/well-known-symbol"),T=s("../internals/array-method-has-species-support"),_=s("../internals/array-slice"),R=T("slice"),A=x("species"),N=d.Array,L=Math.max;u({target:"Array",proto:!0,forced:!R},{slice:function(F,H){var P=h(this),V=c(P),G=v(F,V),Q=v(H===void 0?V:H,V),ne,ue,ae;if(g(P)&&(ne=P.constructor,y(ne)&&(ne===N||g(ne.prototype))?ne=void 0:S(ne)&&(ne=ne[A],ne===null&&(ne=void 0)),ne===N||ne===void 0))return _(P,G,Q);for(ue=new(ne===void 0?N:ne)(L(Q-G,0)),ae=0;G<Q;G++,ae++)G in P&&m(ue,ae,P[G]);return ue.length=ae,ue}})},{"../internals/array-method-has-species-support":113,"../internals/array-slice":117,"../internals/create-property":131,"../internals/export":149,"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247,"../internals/well-known-symbol":268}],282:[function(s,E,I){"use strict";var u=s("../internals/export"),d=s("../internals/function-uncurry-this"),g=s("../internals/a-callable"),y=s("../internals/to-object"),S=s("../internals/length-of-array-like"),v=s("../internals/to-string"),c=s("../internals/fails"),h=s("../internals/array-sort"),m=s("../internals/array-method-is-strict"),x=s("../internals/engine-ff-version"),T=s("../internals/engine-is-ie-or-edge"),_=s("../internals/engine-v8-version"),R=s("../internals/engine-webkit-version"),A=[],N=d(A.sort),L=d(A.push),M=c(function(){A.sort(void 0)}),F=c(function(){A.sort(null)}),H=m("sort"),P=!c(function(){if(_)return _<70;if(!(x&&x>3)){if(T)return!0;if(R)return R<603;var Q="",ne,ue,ae,he;for(ne=65;ne<76;ne++){switch(ue=String.fromCharCode(ne),ne){case 66:case 69:case 70:case 72:ae=3;break;case 68:case 71:ae=4;break;default:ae=2}for(he=0;he<47;he++)A.push({k:ue+he,v:ae})}for(A.sort(function(ce,we){return we.v-ce.v}),he=0;he<A.length;he++)ue=A[he].k.charAt(0),Q.charAt(Q.length-1)!==ue&&(Q+=ue);return Q!=="DGBEFHACIJK"}}),V=M||!F||!H||!P,G=function(Q){return function(ne,ue){return ue===void 0?-1:ne===void 0?1:Q!==void 0?+Q(ne,ue)||0:v(ne)>v(ue)?1:-1}};u({target:"Array",proto:!0,forced:V},{sort:function(ne){ne!==void 0&&g(ne);var ue=y(this);if(P)return ne===void 0?N(ue):N(ue,ne);var ae=[],he=S(ue),ce,we;for(we=0;we<he;we++)we in ue&&L(ae,ue[we]);for(h(ae,G(ne)),ce=ae.length,we=0;we<ce;)ue[we]=ae[we++];for(;we<he;)delete ue[we++];return ue}})},{"../internals/a-callable":95,"../internals/array-method-is-strict":114,"../internals/array-sort":118,"../internals/engine-ff-version":138,"../internals/engine-is-ie-or-edge":140,"../internals/engine-v8-version":146,"../internals/engine-webkit-version":147,"../internals/export":149,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/to-string":256}],283:[function(s,E,I){"use strict";var u=s("../internals/export"),d=s("../internals/global"),g=s("../internals/to-absolute-index"),y=s("../internals/to-integer-or-infinity"),S=s("../internals/length-of-array-like"),v=s("../internals/to-object"),c=s("../internals/array-species-create"),h=s("../internals/create-property"),m=s("../internals/array-method-has-species-support"),x=m("splice"),T=d.TypeError,_=Math.max,R=Math.min,A=9007199254740991,N="Maximum allowed length exceeded";u({target:"Array",proto:!0,forced:!x},{splice:function(M,F){var H=v(this),P=S(H),V=g(M,P),G=arguments.length,Q,ne,ue,ae,he,ce;if(G===0?Q=ne=0:G===1?(Q=0,ne=P-V):(Q=G-2,ne=R(_(y(F),0),P-V)),P+Q-ne>A)throw T(N);for(ue=c(H,ne),ae=0;ae<ne;ae++)he=V+ae,he in H&&h(ue,ae,H[he]);if(ue.length=ne,Q<ne){for(ae=V;ae<P-ne;ae++)he=ae+ne,ce=ae+Q,he in H?H[ce]=H[he]:delete H[ce];for(ae=P;ae>P-ne+Q;ae--)delete H[ae-1]}else if(Q>ne)for(ae=P-ne;ae>V;ae--)he=ae+ne-1,ce=ae+Q-1,he in H?H[ce]=H[he]:delete H[ce];for(ae=0;ae<Q;ae++)H[ae+V]=arguments[ae+2];return H.length=P-ne+Q,ue}})},{"../internals/array-method-has-species-support":113,"../internals/array-species-create":120,"../internals/create-property":131,"../internals/export":149,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-integer-or-infinity":248,"../internals/to-object":250}],284:[function(s,E,I){var u=s("../internals/descriptors"),d=s("../internals/function-name").EXISTS,g=s("../internals/function-uncurry-this"),y=s("../internals/object-define-property").f,S=Function.prototype,v=g(S.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,h=g(c.exec),m="name";u&&!d&&y(S,m,{configurable:!0,get:function(){try{return h(c,v(this))[1]}catch(x){return""}}})},{"../internals/descriptors":134,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/object-define-property":198}],285:[function(s,E,I){var u=s("../internals/export"),d=s("../internals/get-built-in"),g=s("../internals/function-apply"),y=s("../internals/function-call"),S=s("../internals/function-uncurry-this"),v=s("../internals/fails"),c=s("../internals/is-array"),h=s("../internals/is-callable"),m=s("../internals/is-object"),x=s("../internals/is-symbol"),T=s("../internals/array-slice"),_=s("../internals/native-symbol"),R=d("JSON","stringify"),A=S(/./.exec),N=S("".charAt),L=S("".charCodeAt),M=S("".replace),F=S(1 .toString),H=/[\uD800-\uDFFF]/g,P=/^[\uD800-\uDBFF]$/,V=/^[\uDC00-\uDFFF]$/,G=!_||v(function(){var ae=d("Symbol")();return R([ae])!="[null]"||R({a:ae})!="{}"||R(Object(ae))!="{}"}),Q=v(function(){return R("\uDF06\uD834")!=='"\\udf06\\ud834"'||R("\uDEAD")!=='"\\udead"'}),ne=function(ae,he){var ce=T(arguments),we=he;if(!(!m(he)&&ae===void 0||x(ae)))return c(he)||(he=function(me,Le){if(h(we)&&(Le=y(we,this,me,Le)),!x(Le))return Le}),ce[1]=he,g(R,null,ce)},ue=function(ae,he,ce){var we=N(ce,he-1),me=N(ce,he+1);return A(P,ae)&&!A(V,me)||A(V,ae)&&!A(P,we)?"\\u"+F(L(ae,0),16):ae};R&&u({target:"JSON",stat:!0,forced:G||Q},{stringify:function(he,ce,we){var me=T(arguments),Le=g(G?ne:R,null,me);return Q&&typeof Le=="string"?M(Le,H,ue):Le}})},{"../internals/array-slice":117,"../internals/export":149,"../internals/fails":150,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/is-array":175,"../internals/is-callable":176,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/native-symbol":191}],286:[function(s,E,I){"use strict";var u=s("../internals/descriptors"),d=s("../internals/global"),g=s("../internals/function-uncurry-this"),y=s("../internals/is-forced"),S=s("../internals/redefine"),v=s("../internals/has-own-property"),c=s("../internals/inherit-if-required"),h=s("../internals/object-is-prototype-of"),m=s("../internals/is-symbol"),x=s("../internals/to-primitive"),T=s("../internals/fails"),_=s("../internals/object-get-own-property-names").f,R=s("../internals/object-get-own-property-descriptor").f,A=s("../internals/object-define-property").f,N=s("../internals/this-number-value"),L=s("../internals/string-trim").trim,M="Number",F=d[M],H=F.prototype,P=d.TypeError,V=g("".slice),G=g("".charCodeAt),Q=function(we){var me=x(we,"number");return typeof me=="bigint"?me:ne(me)},ne=function(we){var me=x(we,"number"),Le,ee,se,le,ke,De,Be,He;if(m(me))throw P("Cannot convert a Symbol value to a number");if(typeof me=="string"&&me.length>2){if(me=L(me),Le=G(me,0),Le===43||Le===45){if(ee=G(me,2),ee===88||ee===120)return NaN}else if(Le===48){switch(G(me,1)){case 66:case 98:se=2,le=49;break;case 79:case 111:se=8,le=55;break;default:return+me}for(ke=V(me,2),De=ke.length,Be=0;Be<De;Be++)if(He=G(ke,Be),He<48||He>le)return NaN;return parseInt(ke,se)}}return+me};if(y(M,!F(" 0o1")||!F("0b1")||F("+0x1"))){for(var ue=function(me){var Le=arguments.length<1?0:F(Q(me)),ee=this;return h(H,ee)&&T(function(){N(ee)})?c(Object(Le),ee,ue):Le},ae=u?_(F):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),he=0,ce;ae.length>he;he++)v(F,ce=ae[he])&&!v(ue,ce)&&A(ue,ce,R(F,ce));ue.prototype=H,H.constructor=ue,S(d,M,ue)}},{"../internals/descriptors":134,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/is-forced":178,"../internals/is-symbol":183,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/redefine":222,"../internals/string-trim":241,"../internals/this-number-value":244,"../internals/to-primitive":253}],287:[function(s,E,I){var u=s("../internals/export"),d=s("../internals/object-assign");u({target:"Object",stat:!0,forced:Object.assign!==d},{assign:d})},{"../internals/export":149,"../internals/object-assign":195}],288:[function(s,E,I){var u=s("../internals/export"),d=s("../internals/object-to-array").entries;u({target:"Object",stat:!0},{entries:function(y){return d(y)}})},{"../internals/export":149,"../internals/object-to-array":209}],289:[function(s,E,I){var u=s("../internals/export"),d=s("../internals/native-symbol"),g=s("../internals/fails"),y=s("../internals/object-get-own-property-symbols"),S=s("../internals/to-object"),v=!d||g(function(){y.f(1)});u({target:"Object",stat:!0,forced:v},{getOwnPropertySymbols:function(h){var m=y.f;return m?m(S(h)):[]}})},{"../internals/export":149,"../internals/fails":150,"../internals/native-symbol":191,"../internals/object-get-own-property-symbols":202,"../internals/to-object":250}],290:[function(s,E,I){var u=s("../internals/export"),d=s("../internals/to-object"),g=s("../internals/object-keys"),y=s("../internals/fails"),S=y(function(){g(1)});u({target:"Object",stat:!0,forced:S},{keys:function(c){return g(d(c))}})},{"../internals/export":149,"../internals/fails":150,"../internals/object-keys":206,"../internals/to-object":250}],291:[function(s,E,I){var u=s("../internals/to-string-tag-support"),d=s("../internals/redefine"),g=s("../internals/object-to-string");u||d(Object.prototype,"toString",g,{unsafe:!0})},{"../internals/object-to-string":210,"../internals/redefine":222,"../internals/to-string-tag-support":255}],292:[function(s,E,I){"use strict";var u=s("../internals/export"),d=s("../internals/function-call"),g=s("../internals/a-callable"),y=s("../internals/new-promise-capability"),S=s("../internals/perform"),v=s("../internals/iterate"),c=s("../internals/promise-statics-incorrect-iteration");u({target:"Promise",stat:!0,forced:c},{all:function(m){var x=this,T=y.f(x),_=T.resolve,R=T.reject,A=S(function(){var N=g(x.resolve),L=[],M=0,F=1;v(m,function(H){var P=M++,V=!1;F++,d(N,x,H).then(function(G){V||(V=!0,L[P]=G,--F||_(L))},R)}),--F||_(L)});return A.error&&R(A.value),T.promise}})},{"../internals/a-callable":95,"../internals/export":149,"../internals/function-call":155,"../internals/iterate":184,"../internals/new-promise-capability":193,"../internals/perform":214,"../internals/promise-statics-incorrect-iteration":218}],293:[function(s,E,I){"use strict";var u=s("../internals/export"),d=s("../internals/is-pure"),g=s("../internals/promise-constructor-detection").CONSTRUCTOR,y=s("../internals/promise-native-constructor"),S=s("../internals/get-built-in"),v=s("../internals/is-callable"),c=s("../internals/redefine"),h=y&&y.prototype;if(u({target:"Promise",proto:!0,forced:g,real:!0},{catch:function(x){return this.then(void 0,x)}}),!d&&v(y)){var m=S("Promise").prototype.catch;h.catch!==m&&c(h,"catch",m,{unsafe:!0})}},{"../internals/export":149,"../internals/get-built-in":158,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/redefine":222}],294:[function(s,E,I){"use strict";var u=s("../internals/export"),d=s("../internals/is-pure"),g=s("../internals/engine-is-node"),y=s("../internals/global"),S=s("../internals/function-call"),v=s("../internals/redefine"),c=s("../internals/redefine-all"),h=s("../internals/object-set-prototype-of"),m=s("../internals/set-to-string-tag"),x=s("../internals/set-species"),T=s("../internals/a-callable"),_=s("../internals/is-callable"),R=s("../internals/is-object"),A=s("../internals/an-instance"),N=s("../internals/species-constructor"),L=s("../internals/task").set,M=s("../internals/microtask"),F=s("../internals/host-report-errors"),H=s("../internals/perform"),P=s("../internals/queue"),V=s("../internals/internal-state"),G=s("../internals/promise-native-constructor"),Q=s("../internals/promise-constructor-detection"),ne=s("../internals/new-promise-capability"),ue="Promise",ae=Q.CONSTRUCTOR,he=Q.REJECTION_EVENT,ce=Q.SUBCLASSING,we=V.getterFor(ue),me=V.set,Le=G&&G.prototype,ee=G,se=Le,le=y.TypeError,ke=y.document,De=y.process,Be=ne.f,He=Be,Fe=!!(ke&&ke.createEvent&&y.dispatchEvent),Je="unhandledrejection",Me="rejectionhandled",lt=0,Re=1,Oe=2,pe=1,fe=2,z,J,be,_e,oe=function(At){var ht;return R(At)&&_(ht=At.then)?ht:!1},ie=function(At,ht){var wt=ht.value,jt=ht.state==Re,st=jt?At.ok:At.fail,ge=At.resolve,on=At.reject,mn=At.domain,Mt,On,Vn;try{st?(jt||(ht.rejection===fe&&yt(ht),ht.rejection=pe),st===!0?Mt=wt:(mn&&mn.enter(),Mt=st(wt),mn&&(mn.exit(),Vn=!0)),Mt===At.promise?on(le("Promise-chain cycle")):(On=oe(Mt))?S(On,Mt,ge,on):ge(Mt)):on(wt)}catch(Fn){mn&&!Vn&&mn.exit(),on(Fn)}},ve=function(At,ht){At.notified||(At.notified=!0,M(function(){for(var wt=At.reactions,jt;jt=wt.get();)ie(jt,At);At.notified=!1,ht&&!At.rejection&&ze(At)}))},Ne=function(At,ht,wt){var jt,st;Fe?(jt=ke.createEvent("Event"),jt.promise=ht,jt.reason=wt,jt.initEvent(At,!1,!0),y.dispatchEvent(jt)):jt={promise:ht,reason:wt},!he&&(st=y["on"+At])?st(jt):At===Je&&F("Unhandled promise rejection",wt)},ze=function(At){S(L,y,function(){var ht=At.facade,wt=At.value,jt=Ve(At),st;if(jt&&(st=H(function(){g?De.emit("unhandledRejection",wt,ht):Ne(Je,ht,wt)}),At.rejection=g||Ve(At)?fe:pe,st.error))throw st.value})},Ve=function(At){return At.rejection!==pe&&!At.parent},yt=function(At){S(L,y,function(){var ht=At.facade;g?De.emit("rejectionHandled",ht):Ne(Me,ht,At.value)})},ct=function(At,ht,wt){return function(jt){At(ht,jt,wt)}},St=function(At,ht,wt){At.done||(At.done=!0,wt&&(At=wt),At.value=ht,At.state=Oe,ve(At,!0))},_t=function(At,ht,wt){if(!At.done){At.done=!0,wt&&(At=wt);try{if(At.facade===ht)throw le("Promise can't be resolved itself");var jt=oe(ht);jt?M(function(){var st={done:!1};try{S(jt,ht,ct(_t,st,At),ct(St,st,At))}catch(ge){St(st,ge,At)}}):(At.value=ht,At.state=Re,ve(At,!1))}catch(st){St({done:!1},st,At)}}};if(ae&&(ee=function(ht){A(this,se),T(ht),S(z,this);var wt=we(this);try{ht(ct(_t,wt),ct(St,wt))}catch(jt){St(wt,jt)}},se=ee.prototype,z=function(ht){me(this,{type:ue,done:!1,notified:!1,parent:!1,reactions:new P,rejection:!1,state:lt,value:void 0})},z.prototype=c(se,{then:function(ht,wt){var jt=we(this),st=Be(N(this,ee));return jt.parent=!0,st.ok=_(ht)?ht:!0,st.fail=_(wt)&&wt,st.domain=g?De.domain:void 0,jt.state==lt?jt.reactions.add(st):M(function(){ie(st,jt)}),st.promise}}),J=function(){var At=new z,ht=we(At);this.promise=At,this.resolve=ct(_t,ht),this.reject=ct(St,ht)},ne.f=Be=function(At){return At===ee||At===be?new J(At):He(At)},!d&&_(G)&&Le!==Object.prototype)){_e=Le.then,ce||v(Le,"then",function(ht,wt){var jt=this;return new ee(function(st,ge){S(_e,jt,st,ge)}).then(ht,wt)},{unsafe:!0});try{delete Le.constructor}catch(At){}h&&h(Le,se)}u({global:!0,wrap:!0,forced:ae},{Promise:ee}),m(ee,ue,!1,!0),x(ue)},{"../internals/a-callable":95,"../internals/an-instance":100,"../internals/engine-is-node":143,"../internals/export":149,"../internals/function-call":155,"../internals/global":163,"../internals/host-report-errors":166,"../internals/internal-state":173,"../internals/is-callable":176,"../internals/is-object":180,"../internals/is-pure":181,"../internals/microtask":189,"../internals/new-promise-capability":193,"../internals/object-set-prototype-of":208,"../internals/perform":214,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/queue":220,"../internals/redefine":222,"../internals/redefine-all":221,"../internals/set-species":233,"../internals/set-to-string-tag":234,"../internals/species-constructor":238,"../internals/task":243}],295:[function(s,E,I){s("../modules/es.promise.constructor"),s("../modules/es.promise.all"),s("../modules/es.promise.catch"),s("../modules/es.promise.race"),s("../modules/es.promise.reject"),s("../modules/es.promise.resolve")},{"../modules/es.promise.all":292,"../modules/es.promise.catch":293,"../modules/es.promise.constructor":294,"../modules/es.promise.race":296,"../modules/es.promise.reject":297,"../modules/es.promise.resolve":298}],296:[function(s,E,I){"use strict";var u=s("../internals/export"),d=s("../internals/function-call"),g=s("../internals/a-callable"),y=s("../internals/new-promise-capability"),S=s("../internals/perform"),v=s("../internals/iterate"),c=s("../internals/promise-statics-incorrect-iteration");u({target:"Promise",stat:!0,forced:c},{race:function(m){var x=this,T=y.f(x),_=T.reject,R=S(function(){var A=g(x.resolve);v(m,function(N){d(A,x,N).then(T.resolve,_)})});return R.error&&_(R.value),T.promise}})},{"../internals/a-callable":95,"../internals/export":149,"../internals/function-call":155,"../internals/iterate":184,"../internals/new-promise-capability":193,"../internals/perform":214,"../internals/promise-statics-incorrect-iteration":218}],297:[function(s,E,I){"use strict";var u=s("../internals/export"),d=s("../internals/function-call"),g=s("../internals/new-promise-capability"),y=s("../internals/promise-constructor-detection").CONSTRUCTOR;u({target:"Promise",stat:!0,forced:y},{reject:function(v){var c=g.f(this);return d(c.reject,void 0,v),c.promise}})},{"../internals/export":149,"../internals/function-call":155,"../internals/new-promise-capability":193,"../internals/promise-constructor-detection":215}],298:[function(s,E,I){"use strict";var u=s("../internals/export"),d=s("../internals/get-built-in"),g=s("../internals/is-pure"),y=s("../internals/promise-native-constructor"),S=s("../internals/promise-constructor-detection").CONSTRUCTOR,v=s("../internals/promise-resolve"),c=d("Promise"),h=g&&!S;u({target:"Promise",stat:!0,forced:g||S},{resolve:function(x){return v(h&&this===c?y:this,x)}})},{"../internals/export":149,"../internals/get-built-in":158,"../internals/is-pure":181,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/promise-resolve":217}],299:[function(s,E,I){var u=s("../internals/descriptors"),d=s("../internals/global"),g=s("../internals/function-uncurry-this"),y=s("../internals/is-forced"),S=s("../internals/inherit-if-required"),v=s("../internals/create-non-enumerable-property"),c=s("../internals/object-get-own-property-names").f,h=s("../internals/object-is-prototype-of"),m=s("../internals/is-regexp"),x=s("../internals/to-string"),T=s("../internals/regexp-get-flags"),_=s("../internals/regexp-sticky-helpers"),R=s("../internals/proxy-accessor"),A=s("../internals/redefine"),N=s("../internals/fails"),L=s("../internals/has-own-property"),M=s("../internals/internal-state").enforce,F=s("../internals/set-species"),H=s("../internals/well-known-symbol"),P=s("../internals/regexp-unsupported-dot-all"),V=s("../internals/regexp-unsupported-ncg"),G=H("match"),Q=d.RegExp,ne=Q.prototype,ue=d.SyntaxError,ae=g(ne.exec),he=g("".charAt),ce=g("".replace),we=g("".indexOf),me=g("".slice),Le=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,ee=/a/g,se=/a/g,le=new Q(ee)!==ee,ke=_.MISSED_STICKY,De=_.UNSUPPORTED_Y,Be=u&&(!le||ke||P||V||N(function(){return se[G]=!1,Q(ee)!=ee||Q(se)==se||Q(ee,"i")!="/a/i"})),He=function(Re){for(var Oe=Re.length,pe=0,fe="",z=!1,J;pe<=Oe;pe++){if(J=he(Re,pe),J==="\\"){fe+=J+he(Re,++pe);continue}!z&&J==="."?fe+="[\\s\\S]":(J==="["?z=!0:J==="]"&&(z=!1),fe+=J)}return fe},Fe=function(Re){for(var Oe=Re.length,pe=0,fe="",z=[],J={},be=!1,_e=!1,oe=0,ie="",ve;pe<=Oe;pe++){if(ve=he(Re,pe),ve==="\\")ve=ve+he(Re,++pe);else if(ve==="]")be=!1;else if(!be)switch(!0){case ve==="[":be=!0;break;case ve==="(":ae(Le,me(Re,pe+1))&&(pe+=2,_e=!0),fe+=ve,oe++;continue;case(ve===">"&&_e):if(ie===""||L(J,ie))throw new ue("Invalid capture group name");J[ie]=!0,z[z.length]=[ie,oe],_e=!1,ie="";continue}_e?ie+=ve:fe+=ve}return[fe,z]};if(y("RegExp",Be)){for(var Je=function(Oe,pe){var fe=h(ne,this),z=m(Oe),J=pe===void 0,be=[],_e=Oe,oe,ie,ve,Ne,ze,Ve;if(!fe&&z&&J&&Oe.constructor===Je)return Oe;if((z||h(ne,Oe))&&(Oe=Oe.source,J&&(pe=T(_e))),Oe=Oe===void 0?"":x(Oe),pe=pe===void 0?"":x(pe),_e=Oe,P&&"dotAll"in ee&&(ie=!!pe&&we(pe,"s")>-1,ie&&(pe=ce(pe,/s/g,""))),oe=pe,ke&&"sticky"in ee&&(ve=!!pe&&we(pe,"y")>-1,ve&&De&&(pe=ce(pe,/y/g,""))),V&&(Ne=Fe(Oe),Oe=Ne[0],be=Ne[1]),ze=S(Q(Oe,pe),fe?this:ne,Je),(ie||ve||be.length)&&(Ve=M(ze),ie&&(Ve.dotAll=!0,Ve.raw=Je(He(Oe),oe)),ve&&(Ve.sticky=!0),be.length&&(Ve.groups=be)),Oe!==_e)try{v(ze,"source",_e===""?"(?:)":_e)}catch(yt){}return ze},Me=c(Q),lt=0;Me.length>lt;)R(Je,Q,Me[lt++]);ne.constructor=Je,Je.prototype=ne,A(d,"RegExp",Je)}F("RegExp")},{"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/internal-state":173,"../internals/is-forced":178,"../internals/is-regexp":182,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/proxy-accessor":219,"../internals/redefine":222,"../internals/regexp-get-flags":226,"../internals/regexp-sticky-helpers":227,"../internals/regexp-unsupported-dot-all":228,"../internals/regexp-unsupported-ncg":229,"../internals/set-species":233,"../internals/to-string":256,"../internals/well-known-symbol":268}],300:[function(s,E,I){"use strict";var u=s("../internals/export"),d=s("../internals/regexp-exec");u({target:"RegExp",proto:!0,forced:/./.exec!==d},{exec:d})},{"../internals/export":149,"../internals/regexp-exec":224}],301:[function(s,E,I){"use strict";var u=s("../internals/function-name").PROPER,d=s("../internals/redefine"),g=s("../internals/an-object"),y=s("../internals/to-string"),S=s("../internals/fails"),v=s("../internals/regexp-get-flags"),c="toString",h=RegExp.prototype,m=h[c],x=S(function(){return m.call({source:"a",flags:"b"})!="/a/b"}),T=u&&m.name!=c;(x||T)&&d(RegExp.prototype,c,function(){var R=g(this),A=y(R.source),N=y(v(R));return"/"+A+"/"+N},{unsafe:!0})},{"../internals/an-object":101,"../internals/fails":150,"../internals/function-name":156,"../internals/redefine":222,"../internals/regexp-get-flags":226,"../internals/to-string":256}],302:[function(s,E,I){"use strict";var u=s("../internals/export"),d=s("../internals/function-uncurry-this"),g=s("../internals/not-a-regexp"),y=s("../internals/require-object-coercible"),S=s("../internals/to-string"),v=s("../internals/correct-is-regexp-logic"),c=d("".indexOf);u({target:"String",proto:!0,forced:!v("includes")},{includes:function(m){return!!~c(S(y(this)),S(g(m)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":126,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/not-a-regexp":194,"../internals/require-object-coercible":230,"../internals/to-string":256}],303:[function(s,E,I){"use strict";var u=s("../internals/string-multibyte").charAt,d=s("../internals/to-string"),g=s("../internals/internal-state"),y=s("../internals/define-iterator"),S="String Iterator",v=g.set,c=g.getterFor(S);y(String,"String",function(h){v(this,{type:S,string:d(h),index:0})},function(){var m=c(this),x=m.string,T=m.index,_;return T>=x.length?{value:void 0,done:!0}:(_=u(x,T),m.index+=_.length,{value:_,done:!1})})},{"../internals/define-iterator":132,"../internals/internal-state":173,"../internals/string-multibyte":239,"../internals/to-string":256}],304:[function(s,E,I){"use strict";var u=s("../internals/function-call"),d=s("../internals/fix-regexp-well-known-symbol-logic"),g=s("../internals/an-object"),y=s("../internals/to-length"),S=s("../internals/to-string"),v=s("../internals/require-object-coercible"),c=s("../internals/get-method"),h=s("../internals/advance-string-index"),m=s("../internals/regexp-exec-abstract");d("match",function(x,T,_){return[function(A){var N=v(this),L=A==null?void 0:c(A,x);return L?u(L,A,N):new RegExp(A)[x](S(N))},function(R){var A=g(this),N=S(R),L=_(T,A,N);if(L.done)return L.value;if(!A.global)return m(A,N);var M=A.unicode;A.lastIndex=0;for(var F=[],H=0,P;(P=m(A,N))!==null;){var V=S(P[0]);F[H]=V,V===""&&(A.lastIndex=h(N,y(A.lastIndex),M)),H++}return H===0?null:F}]})},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-call":155,"../internals/get-method":161,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/to-length":249,"../internals/to-string":256}],305:[function(s,E,I){"use strict";var u=s("../internals/function-apply"),d=s("../internals/function-call"),g=s("../internals/function-uncurry-this"),y=s("../internals/fix-regexp-well-known-symbol-logic"),S=s("../internals/fails"),v=s("../internals/an-object"),c=s("../internals/is-callable"),h=s("../internals/to-integer-or-infinity"),m=s("../internals/to-length"),x=s("../internals/to-string"),T=s("../internals/require-object-coercible"),_=s("../internals/advance-string-index"),R=s("../internals/get-method"),A=s("../internals/get-substitution"),N=s("../internals/regexp-exec-abstract"),L=s("../internals/well-known-symbol"),M=L("replace"),F=Math.max,H=Math.min,P=g([].concat),V=g([].push),G=g("".indexOf),Q=g("".slice),ne=function(ce){return ce===void 0?ce:String(ce)},ue=function(){return"a".replace(/./,"$0")==="$0"}(),ae=function(){return/./[M]?/./[M]("a","$0")==="":!1}(),he=!S(function(){var ce=/./;return ce.exec=function(){var we=[];return we.groups={a:"7"},we},"".replace(ce,"$<a>")!=="7"});y("replace",function(ce,we,me){var Le=ae?"$":"$0";return[function(se,le){var ke=T(this),De=se==null?void 0:R(se,M);return De?d(De,se,ke,le):d(we,x(ke),se,le)},function(ee,se){var le=v(this),ke=x(ee);if(typeof se=="string"&&G(se,Le)===-1&&G(se,"$<")===-1){var De=me(we,le,ke,se);if(De.done)return De.value}var Be=c(se);Be||(se=x(se));var He=le.global;if(He){var Fe=le.unicode;le.lastIndex=0}for(var Je=[];;){var Me=N(le,ke);if(Me===null||(V(Je,Me),!He))break;var lt=x(Me[0]);lt===""&&(le.lastIndex=_(ke,m(le.lastIndex),Fe))}for(var Re="",Oe=0,pe=0;pe<Je.length;pe++){Me=Je[pe];for(var fe=x(Me[0]),z=F(H(h(Me.index),ke.length),0),J=[],be=1;be<Me.length;be++)V(J,ne(Me[be]));var _e=Me.groups;if(Be){var oe=P([fe],J,z,ke);_e!==void 0&&V(oe,_e);var ie=x(u(se,void 0,oe))}else ie=A(fe,ke,z,J,_e,se);z>=Oe&&(Re+=Q(ke,Oe,z)+ie,Oe=z+fe.length)}return Re+Q(ke,Oe)}]},!he||!ue||ae)},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/fails":150,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-method":161,"../internals/get-substitution":162,"../internals/is-callable":176,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-length":249,"../internals/to-string":256,"../internals/well-known-symbol":268}],306:[function(s,E,I){"use strict";var u=s("../internals/function-call"),d=s("../internals/fix-regexp-well-known-symbol-logic"),g=s("../internals/an-object"),y=s("../internals/require-object-coercible"),S=s("../internals/same-value"),v=s("../internals/to-string"),c=s("../internals/get-method"),h=s("../internals/regexp-exec-abstract");d("search",function(m,x,T){return[function(R){var A=y(this),N=R==null?void 0:c(R,m);return N?u(N,R,A):new RegExp(R)[m](v(A))},function(_){var R=g(this),A=v(_),N=T(x,R,A);if(N.done)return N.value;var L=R.lastIndex;S(L,0)||(R.lastIndex=0);var M=h(R,A);return S(R.lastIndex,L)||(R.lastIndex=L),M===null?-1:M.index}]})},{"../internals/an-object":101,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-call":155,"../internals/get-method":161,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/same-value":231,"../internals/to-string":256}],307:[function(s,E,I){"use strict";var u=s("../internals/function-apply"),d=s("../internals/function-call"),g=s("../internals/function-uncurry-this"),y=s("../internals/fix-regexp-well-known-symbol-logic"),S=s("../internals/is-regexp"),v=s("../internals/an-object"),c=s("../internals/require-object-coercible"),h=s("../internals/species-constructor"),m=s("../internals/advance-string-index"),x=s("../internals/to-length"),T=s("../internals/to-string"),_=s("../internals/get-method"),R=s("../internals/array-slice-simple"),A=s("../internals/regexp-exec-abstract"),N=s("../internals/regexp-exec"),L=s("../internals/regexp-sticky-helpers"),M=s("../internals/fails"),F=L.UNSUPPORTED_Y,H=4294967295,P=Math.min,V=[].push,G=g(/./.exec),Q=g(V),ne=g("".slice),ue=!M(function(){var ae=/(?:)/,he=ae.exec;ae.exec=function(){return he.apply(this,arguments)};var ce="ab".split(ae);return ce.length!==2||ce[0]!=="a"||ce[1]!=="b"});y("split",function(ae,he,ce){var we;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?we=function(me,Le){var ee=T(c(this)),se=Le===void 0?H:Le>>>0;if(se===0)return[];if(me===void 0)return[ee];if(!S(me))return d(he,ee,me,se);for(var le=[],ke=(me.ignoreCase?"i":"")+(me.multiline?"m":"")+(me.unicode?"u":"")+(me.sticky?"y":""),De=0,Be=new RegExp(me.source,ke+"g"),He,Fe,Je;(He=d(N,Be,ee))&&(Fe=Be.lastIndex,!(Fe>De&&(Q(le,ne(ee,De,He.index)),He.length>1&&He.index<ee.length&&u(V,le,R(He,1)),Je=He[0].length,De=Fe,le.length>=se)));)Be.lastIndex===He.index&&Be.lastIndex++;return De===ee.length?(Je||!G(Be,""))&&Q(le,""):Q(le,ne(ee,De)),le.length>se?R(le,0,se):le}:"0".split(void 0,0).length?we=function(me,Le){return me===void 0&&Le===0?[]:d(he,this,me,Le)}:we=he,[function(Le,ee){var se=c(this),le=Le==null?void 0:_(Le,ae);return le?d(le,Le,se,ee):d(we,T(se),Le,ee)},function(me,Le){var ee=v(this),se=T(me),le=ce(we,ee,se,Le,we!==he);if(le.done)return le.value;var ke=h(ee,RegExp),De=ee.unicode,Be=(ee.ignoreCase?"i":"")+(ee.multiline?"m":"")+(ee.unicode?"u":"")+(F?"g":"y"),He=new ke(F?"^(?:"+ee.source+")":ee,Be),Fe=Le===void 0?H:Le>>>0;if(Fe===0)return[];if(se.length===0)return A(He,se)===null?[se]:[];for(var Je=0,Me=0,lt=[];Me<se.length;){He.lastIndex=F?0:Me;var Re=A(He,F?ne(se,Me):se),Oe;if(Re===null||(Oe=P(x(He.lastIndex+(F?Me:0)),se.length))===Je)Me=m(se,Me,De);else{if(Q(lt,ne(se,Je,Me)),lt.length===Fe)return lt;for(var pe=1;pe<=Re.length-1;pe++)if(Q(lt,Re[pe]),lt.length===Fe)return lt;Me=Je=Oe}}return Q(lt,ne(se,Je)),lt}]},!ue,F)},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/array-slice-simple":116,"../internals/fails":150,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-method":161,"../internals/is-regexp":182,"../internals/regexp-exec":224,"../internals/regexp-exec-abstract":223,"../internals/regexp-sticky-helpers":227,"../internals/require-object-coercible":230,"../internals/species-constructor":238,"../internals/to-length":249,"../internals/to-string":256}],308:[function(s,E,I){"use strict";var u=s("../internals/export"),d=s("../internals/string-trim").trim,g=s("../internals/string-trim-forced");u({target:"String",proto:!0,forced:g("trim")},{trim:function(){return d(this)}})},{"../internals/export":149,"../internals/string-trim":241,"../internals/string-trim-forced":240}],309:[function(s,E,I){"use strict";var u=s("../internals/export"),d=s("../internals/global"),g=s("../internals/function-call"),y=s("../internals/function-uncurry-this"),S=s("../internals/is-pure"),v=s("../internals/descriptors"),c=s("../internals/native-symbol"),h=s("../internals/fails"),m=s("../internals/has-own-property"),x=s("../internals/object-is-prototype-of"),T=s("../internals/an-object"),_=s("../internals/to-indexed-object"),R=s("../internals/to-property-key"),A=s("../internals/to-string"),N=s("../internals/create-property-descriptor"),L=s("../internals/object-create"),M=s("../internals/object-keys"),F=s("../internals/object-get-own-property-names"),H=s("../internals/object-get-own-property-names-external"),P=s("../internals/object-get-own-property-symbols"),V=s("../internals/object-get-own-property-descriptor"),G=s("../internals/object-define-property"),Q=s("../internals/object-define-properties"),ne=s("../internals/object-property-is-enumerable"),ue=s("../internals/redefine"),ae=s("../internals/shared"),he=s("../internals/shared-key"),ce=s("../internals/hidden-keys"),we=s("../internals/uid"),me=s("../internals/well-known-symbol"),Le=s("../internals/well-known-symbol-wrapped"),ee=s("../internals/define-well-known-symbol"),se=s("../internals/symbol-define-to-primitive"),le=s("../internals/set-to-string-tag"),ke=s("../internals/internal-state"),De=s("../internals/array-iteration").forEach,Be=he("hidden"),He="Symbol",Fe="prototype",Je=ke.set,Me=ke.getterFor(He),lt=Object[Fe],Re=d.Symbol,Oe=Re&&Re[Fe],pe=d.TypeError,fe=d.QObject,z=V.f,J=G.f,be=H.f,_e=ne.f,oe=y([].push),ie=ae("symbols"),ve=ae("op-symbols"),Ne=ae("wks"),ze=!fe||!fe[Fe]||!fe[Fe].findChild,Ve=v&&h(function(){return L(J({},"a",{get:function(){return J(this,"a",{value:7}).a}})).a!=7})?function(st,ge,on){var mn=z(lt,ge);mn&&delete lt[ge],J(st,ge,on),mn&&st!==lt&&J(lt,ge,mn)}:J,yt=function(st,ge){var on=ie[st]=L(Oe);return Je(on,{type:He,tag:st,description:ge}),v||(on.description=ge),on},ct=function(ge,on,mn){ge===lt&&ct(ve,on,mn),T(ge);var Mt=R(on);return T(mn),m(ie,Mt)?(mn.enumerable?(m(ge,Be)&&ge[Be][Mt]&&(ge[Be][Mt]=!1),mn=L(mn,{enumerable:N(0,!1)})):(m(ge,Be)||J(ge,Be,N(1,{})),ge[Be][Mt]=!0),Ve(ge,Mt,mn)):J(ge,Mt,mn)},St=function(ge,on){T(ge);var mn=_(on),Mt=M(mn).concat(jt(mn));return De(Mt,function(On){(!v||g(At,mn,On))&&ct(ge,On,mn[On])}),ge},_t=function(ge,on){return on===void 0?L(ge):St(L(ge),on)},At=function(ge){var on=R(ge),mn=g(_e,this,on);return this===lt&&m(ie,on)&&!m(ve,on)?!1:mn||!m(this,on)||!m(ie,on)||m(this,Be)&&this[Be][on]?mn:!0},ht=function(ge,on){var mn=_(ge),Mt=R(on);if(!(mn===lt&&m(ie,Mt)&&!m(ve,Mt))){var On=z(mn,Mt);return On&&m(ie,Mt)&&!(m(mn,Be)&&mn[Be][Mt])&&(On.enumerable=!0),On}},wt=function(ge){var on=be(_(ge)),mn=[];return De(on,function(Mt){!m(ie,Mt)&&!m(ce,Mt)&&oe(mn,Mt)}),mn},jt=function(st){var ge=st===lt,on=be(ge?ve:_(st)),mn=[];return De(on,function(Mt){m(ie,Mt)&&(!ge||m(lt,Mt))&&oe(mn,ie[Mt])}),mn};c||(Re=function(){if(x(Oe,this))throw pe("Symbol is not a constructor");var ge=!arguments.length||arguments[0]===void 0?void 0:A(arguments[0]),on=we(ge),mn=function(Mt){this===lt&&g(mn,ve,Mt),m(this,Be)&&m(this[Be],on)&&(this[Be][on]=!1),Ve(this,on,N(1,Mt))};return v&&ze&&Ve(lt,on,{configurable:!0,set:mn}),yt(on,ge)},Oe=Re[Fe],ue(Oe,"toString",function(){return Me(this).tag}),ue(Re,"withoutSetter",function(st){return yt(we(st),st)}),ne.f=At,G.f=ct,Q.f=St,V.f=ht,F.f=H.f=wt,P.f=jt,Le.f=function(st){return yt(me(st),st)},v&&(J(Oe,"description",{configurable:!0,get:function(){return Me(this).description}}),S||ue(lt,"propertyIsEnumerable",At,{unsafe:!0}))),u({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:Re}),De(M(Ne),function(st){ee(st)}),u({target:He,stat:!0,forced:!c},{useSetter:function(){ze=!0},useSimple:function(){ze=!1}}),u({target:"Object",stat:!0,forced:!c,sham:!v},{create:_t,defineProperty:ct,defineProperties:St,getOwnPropertyDescriptor:ht}),u({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:wt}),se(),le(Re,He),ce[Be]=!0},{"../internals/an-object":101,"../internals/array-iteration":111,"../internals/create-property-descriptor":130,"../internals/define-well-known-symbol":133,"../internals/descriptors":134,"../internals/export":149,"../internals/fails":150,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/internal-state":173,"../internals/is-pure":181,"../internals/native-symbol":191,"../internals/object-create":196,"../internals/object-define-properties":197,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-get-own-property-names-external":200,"../internals/object-get-own-property-symbols":202,"../internals/object-is-prototype-of":204,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/redefine":222,"../internals/set-to-string-tag":234,"../internals/shared":237,"../internals/shared-key":235,"../internals/symbol-define-to-primitive":242,"../internals/to-indexed-object":247,"../internals/to-property-key":254,"../internals/to-string":256,"../internals/uid":263,"../internals/well-known-symbol":268,"../internals/well-known-symbol-wrapped":267}],310:[function(s,E,I){"use strict";var u=s("../internals/export"),d=s("../internals/descriptors"),g=s("../internals/global"),y=s("../internals/function-uncurry-this"),S=s("../internals/has-own-property"),v=s("../internals/is-callable"),c=s("../internals/object-is-prototype-of"),h=s("../internals/to-string"),m=s("../internals/object-define-property").f,x=s("../internals/copy-constructor-properties"),T=g.Symbol,_=T&&T.prototype;if(d&&v(T)&&(!("description"in _)||T().description!==void 0)){var R={},A=function(){var G=arguments.length<1||arguments[0]===void 0?void 0:h(arguments[0]),Q=c(_,this)?new T(G):G===void 0?T():T(G);return G===""&&(R[Q]=!0),Q};x(A,T),A.prototype=_,_.constructor=A;var N=String(T("test"))=="Symbol(test)",L=y(_.toString),M=y(_.valueOf),F=/^Symbol\((.*)\)[^)]+$/,H=y("".replace),P=y("".slice);m(_,"description",{configurable:!0,get:function(){var G=M(this),Q=L(G);if(S(R,G))return"";var ne=N?P(Q,7,-1):H(Q,F,"$1");return ne===""?void 0:ne}}),u({global:!0,forced:!0},{Symbol:A})}},{"../internals/copy-constructor-properties":125,"../internals/descriptors":134,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/object-define-property":198,"../internals/object-is-prototype-of":204,"../internals/to-string":256}],311:[function(s,E,I){var u=s("../internals/export"),d=s("../internals/get-built-in"),g=s("../internals/has-own-property"),y=s("../internals/to-string"),S=s("../internals/shared"),v=s("../internals/native-symbol-registry"),c=S("string-to-symbol-registry"),h=S("symbol-to-string-registry");u({target:"Symbol",stat:!0,forced:!v},{for:function(m){var x=y(m);if(g(c,x))return c[x];var T=d("Symbol")(x);return c[x]=T,h[T]=x,T}})},{"../internals/export":149,"../internals/get-built-in":158,"../internals/has-own-property":164,"../internals/native-symbol-registry":190,"../internals/shared":237,"../internals/to-string":256}],312:[function(s,E,I){var u=s("../internals/define-well-known-symbol");u("iterator")},{"../internals/define-well-known-symbol":133}],313:[function(s,E,I){s("../modules/es.symbol.constructor"),s("../modules/es.symbol.for"),s("../modules/es.symbol.key-for"),s("../modules/es.json.stringify"),s("../modules/es.object.get-own-property-symbols")},{"../modules/es.json.stringify":285,"../modules/es.object.get-own-property-symbols":289,"../modules/es.symbol.constructor":309,"../modules/es.symbol.for":311,"../modules/es.symbol.key-for":314}],314:[function(s,E,I){var u=s("../internals/export"),d=s("../internals/has-own-property"),g=s("../internals/is-symbol"),y=s("../internals/try-to-string"),S=s("../internals/shared"),v=s("../internals/native-symbol-registry"),c=S("symbol-to-string-registry");u({target:"Symbol",stat:!0,forced:!v},{keyFor:function(m){if(!g(m))throw TypeError(y(m)+" is not a symbol");if(d(c,m))return c[m]}})},{"../internals/export":149,"../internals/has-own-property":164,"../internals/is-symbol":183,"../internals/native-symbol-registry":190,"../internals/shared":237,"../internals/try-to-string":257}],315:[function(s,E,I){"use strict";var u=s("../internals/function-uncurry-this"),d=s("../internals/array-buffer-view-core"),g=s("../internals/array-copy-within"),y=u(g),S=d.aTypedArray,v=d.exportTypedArrayMethod;v("copyWithin",function(h,m){return y(S(this),h,m,arguments.length>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-copy-within":105,"../internals/function-uncurry-this":157}],316:[function(s,E,I){"use strict";var u=s("../internals/array-buffer-view-core"),d=s("../internals/array-iteration").every,g=u.aTypedArray,y=u.exportTypedArrayMethod;y("every",function(v){return d(g(this),v,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],317:[function(s,E,I){"use strict";var u=s("../internals/array-buffer-view-core"),d=s("../internals/function-call"),g=s("../internals/array-fill"),y=u.aTypedArray,S=u.exportTypedArrayMethod;S("fill",function(c){var h=arguments.length;return d(g,y(this),c,h>1?arguments[1]:void 0,h>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-fill":106,"../internals/function-call":155}],318:[function(s,E,I){"use strict";var u=s("../internals/array-buffer-view-core"),d=s("../internals/array-iteration").filter,g=s("../internals/typed-array-from-species-and-list"),y=u.aTypedArray,S=u.exportTypedArrayMethod;S("filter",function(c){var h=d(y(this),c,arguments.length>1?arguments[1]:void 0);return g(this,h)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-from-species-and-list":260}],319:[function(s,E,I){"use strict";var u=s("../internals/array-buffer-view-core"),d=s("../internals/array-iteration").findIndex,g=u.aTypedArray,y=u.exportTypedArrayMethod;y("findIndex",function(v){return d(g(this),v,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],320:[function(s,E,I){"use strict";var u=s("../internals/array-buffer-view-core"),d=s("../internals/array-iteration").find,g=u.aTypedArray,y=u.exportTypedArrayMethod;y("find",function(v){return d(g(this),v,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],321:[function(s,E,I){"use strict";var u=s("../internals/array-buffer-view-core"),d=s("../internals/array-iteration").forEach,g=u.aTypedArray,y=u.exportTypedArrayMethod;y("forEach",function(v){d(g(this),v,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],322:[function(s,E,I){"use strict";var u=s("../internals/array-buffer-view-core"),d=s("../internals/array-includes").includes,g=u.aTypedArray,y=u.exportTypedArrayMethod;y("includes",function(v){return d(g(this),v,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],323:[function(s,E,I){"use strict";var u=s("../internals/array-buffer-view-core"),d=s("../internals/array-includes").indexOf,g=u.aTypedArray,y=u.exportTypedArrayMethod;y("indexOf",function(v){return d(g(this),v,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],324:[function(s,E,I){"use strict";var u=s("../internals/global"),d=s("../internals/fails"),g=s("../internals/function-uncurry-this"),y=s("../internals/array-buffer-view-core"),S=s("../modules/es.array.iterator"),v=s("../internals/well-known-symbol"),c=v("iterator"),h=u.Uint8Array,m=g(S.values),x=g(S.keys),T=g(S.entries),_=y.aTypedArray,R=y.exportTypedArrayMethod,A=h&&h.prototype,N=!d(function(){A[c].call([1])}),L=!!A&&A.values&&A[c]===A.values&&A.values.name==="values",M=function(){return m(_(this))};R("entries",function(){return T(_(this))},N),R("keys",function(){return x(_(this))},N),R("values",M,N||!L,{name:"values"}),R(c,M,N||!L,{name:"values"})},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/well-known-symbol":268,"../modules/es.array.iterator":278}],325:[function(s,E,I){"use strict";var u=s("../internals/array-buffer-view-core"),d=s("../internals/function-uncurry-this"),g=u.aTypedArray,y=u.exportTypedArrayMethod,S=d([].join);y("join",function(c){return S(g(this),c)})},{"../internals/array-buffer-view-core":103,"../internals/function-uncurry-this":157}],326:[function(s,E,I){"use strict";var u=s("../internals/array-buffer-view-core"),d=s("../internals/function-apply"),g=s("../internals/array-last-index-of"),y=u.aTypedArray,S=u.exportTypedArrayMethod;S("lastIndexOf",function(c){var h=arguments.length;return d(g,y(this),h>1?[c,arguments[1]]:[c])})},{"../internals/array-buffer-view-core":103,"../internals/array-last-index-of":112,"../internals/function-apply":152}],327:[function(s,E,I){"use strict";var u=s("../internals/array-buffer-view-core"),d=s("../internals/array-iteration").map,g=s("../internals/typed-array-species-constructor"),y=u.aTypedArray,S=u.exportTypedArrayMethod;S("map",function(c){return d(y(this),c,arguments.length>1?arguments[1]:void 0,function(h,m){return new(g(h))(m)})})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-species-constructor":262}],328:[function(s,E,I){"use strict";var u=s("../internals/array-buffer-view-core"),d=s("../internals/array-reduce").right,g=u.aTypedArray,y=u.exportTypedArrayMethod;y("reduceRight",function(v){var c=arguments.length;return d(g(this),v,c,c>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],329:[function(s,E,I){"use strict";var u=s("../internals/array-buffer-view-core"),d=s("../internals/array-reduce").left,g=u.aTypedArray,y=u.exportTypedArrayMethod;y("reduce",function(v){var c=arguments.length;return d(g(this),v,c,c>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],330:[function(s,E,I){"use strict";var u=s("../internals/array-buffer-view-core"),d=u.aTypedArray,g=u.exportTypedArrayMethod,y=Math.floor;g("reverse",function(){for(var v=this,c=d(v).length,h=y(c/2),m=0,x;m<h;)x=v[m],v[m++]=v[--c],v[c]=x;return v})},{"../internals/array-buffer-view-core":103}],331:[function(s,E,I){"use strict";var u=s("../internals/global"),d=s("../internals/function-call"),g=s("../internals/array-buffer-view-core"),y=s("../internals/length-of-array-like"),S=s("../internals/to-offset"),v=s("../internals/to-object"),c=s("../internals/fails"),h=u.RangeError,m=u.Int8Array,x=m&&m.prototype,T=x&&x.set,_=g.aTypedArray,R=g.exportTypedArrayMethod,A=!c(function(){var L=new Uint8ClampedArray(2);return d(T,L,{length:1,0:3},1),L[1]!==3}),N=A&&g.NATIVE_ARRAY_BUFFER_VIEWS&&c(function(){var L=new m(2);return L.set(1),L.set("2",1),L[0]!==0||L[1]!==2});R("set",function(M){_(this);var F=S(arguments.length>1?arguments[1]:void 0,1),H=v(M);if(A)return d(T,this,H,F);var P=this.length,V=y(H),G=0;if(V+F>P)throw h("Wrong length");for(;G<V;)this[F+G]=H[G++]},!A||N)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-call":155,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/to-offset":251}],332:[function(s,E,I){"use strict";var u=s("../internals/array-buffer-view-core"),d=s("../internals/typed-array-species-constructor"),g=s("../internals/fails"),y=s("../internals/array-slice"),S=u.aTypedArray,v=u.exportTypedArrayMethod,c=g(function(){new Int8Array(1).slice()});v("slice",function(m,x){for(var T=y(S(this),m,x),_=d(this),R=0,A=T.length,N=new _(A);A>R;)N[R]=T[R++];return N},c)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/typed-array-species-constructor":262}],333:[function(s,E,I){"use strict";var u=s("../internals/array-buffer-view-core"),d=s("../internals/array-iteration").some,g=u.aTypedArray,y=u.exportTypedArrayMethod;y("some",function(v){return d(g(this),v,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],334:[function(s,E,I){"use strict";var u=s("../internals/global"),d=s("../internals/function-uncurry-this"),g=s("../internals/fails"),y=s("../internals/a-callable"),S=s("../internals/array-sort"),v=s("../internals/array-buffer-view-core"),c=s("../internals/engine-ff-version"),h=s("../internals/engine-is-ie-or-edge"),m=s("../internals/engine-v8-version"),x=s("../internals/engine-webkit-version"),T=v.aTypedArray,_=v.exportTypedArrayMethod,R=u.Uint16Array,A=R&&d(R.prototype.sort),N=!!A&&!(g(function(){A(new R(2),null)})&&g(function(){A(new R(2),{})})),L=!!A&&!g(function(){if(m)return m<74;if(c)return c<67;if(h)return!0;if(x)return x<602;var F=new R(516),H=Array(516),P,V;for(P=0;P<516;P++)V=P%4,F[P]=515-P,H[P]=P-2*V+3;for(A(F,function(G,Q){return(G/4|0)-(Q/4|0)}),P=0;P<516;P++)if(F[P]!==H[P])return!0}),M=function(F){return function(H,P){return F!==void 0?+F(H,P)||0:P!==P?-1:H!==H?1:H===0&&P===0?1/H>0&&1/P<0?1:-1:H>P}};_("sort",function(H){return H!==void 0&&y(H),L?A(this,H):S(T(this),M(H))},!L||N)},{"../internals/a-callable":95,"../internals/array-buffer-view-core":103,"../internals/array-sort":118,"../internals/engine-ff-version":138,"../internals/engine-is-ie-or-edge":140,"../internals/engine-v8-version":146,"../internals/engine-webkit-version":147,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],335:[function(s,E,I){"use strict";var u=s("../internals/array-buffer-view-core"),d=s("../internals/to-length"),g=s("../internals/to-absolute-index"),y=s("../internals/typed-array-species-constructor"),S=u.aTypedArray,v=u.exportTypedArrayMethod;v("subarray",function(h,m){var x=S(this),T=x.length,_=g(h,T),R=y(x);return new R(x.buffer,x.byteOffset+_*x.BYTES_PER_ELEMENT,d((m===void 0?T:g(m,T))-_))})},{"../internals/array-buffer-view-core":103,"../internals/to-absolute-index":245,"../internals/to-length":249,"../internals/typed-array-species-constructor":262}],336:[function(s,E,I){"use strict";var u=s("../internals/global"),d=s("../internals/function-apply"),g=s("../internals/array-buffer-view-core"),y=s("../internals/fails"),S=s("../internals/array-slice"),v=u.Int8Array,c=g.aTypedArray,h=g.exportTypedArrayMethod,m=[].toLocaleString,x=!!v&&y(function(){m.call(new v(1))}),T=y(function(){return[1,2].toLocaleString()!=new v([1,2]).toLocaleString()})||!y(function(){v.prototype.toLocaleString.call([1,2])});h("toLocaleString",function(){return d(m,x?S(c(this)):c(this),S(arguments))},T)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/function-apply":152,"../internals/global":163}],337:[function(s,E,I){"use strict";var u=s("../internals/array-buffer-view-core").exportTypedArrayMethod,d=s("../internals/fails"),g=s("../internals/global"),y=s("../internals/function-uncurry-this"),S=g.Uint8Array,v=S&&S.prototype||{},c=[].toString,h=y([].join);d(function(){c.call({})})&&(c=function(){return h(this)});var m=v.toString!=c;u("toString",c,m)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],338:[function(s,E,I){var u=s("../internals/typed-array-constructor");u("Uint8",function(d){return function(y,S,v){return d(this,y,S,v)}})},{"../internals/typed-array-constructor":258}],339:[function(s,E,I){var u=s("../internals/global"),d=s("../internals/dom-iterables"),g=s("../internals/dom-token-list-prototype"),y=s("../internals/array-for-each"),S=s("../internals/create-non-enumerable-property"),v=function(h){if(h&&h.forEach!==y)try{S(h,"forEach",y)}catch(m){h.forEach=y}};for(var c in d)d[c]&&v(u[c]&&u[c].prototype);v(g)},{"../internals/array-for-each":107,"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163}],340:[function(s,E,I){var u=s("../internals/global"),d=s("../internals/dom-iterables"),g=s("../internals/dom-token-list-prototype"),y=s("../modules/es.array.iterator"),S=s("../internals/create-non-enumerable-property"),v=s("../internals/well-known-symbol"),c=v("iterator"),h=v("toStringTag"),m=y.values,x=function(_,R){if(_){if(_[c]!==m)try{S(_,c,m)}catch(N){_[c]=m}if(_[h]||S(_,h,R),d[R]){for(var A in y)if(_[A]!==y[A])try{S(_,A,y[A])}catch(N){_[A]=y[A]}}}};for(var T in d)x(u[T]&&u[T].prototype,T);x(g,"DOMTokenList")},{"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163,"../internals/well-known-symbol":268,"../modules/es.array.iterator":278}],341:[function(s,E,I){function u(L){return Array.isArray?Array.isArray(L):N(L)==="[object Array]"}I.isArray=u;function d(L){return typeof L=="boolean"}I.isBoolean=d;function g(L){return L===null}I.isNull=g;function y(L){return L==null}I.isNullOrUndefined=y;function S(L){return typeof L=="number"}I.isNumber=S;function v(L){return typeof L=="string"}I.isString=v;function c(L){return typeof L=="symbol"}I.isSymbol=c;function h(L){return L===void 0}I.isUndefined=h;function m(L){return N(L)==="[object RegExp]"}I.isRegExp=m;function x(L){return typeof L=="object"&&L!==null}I.isObject=x;function T(L){return N(L)==="[object Date]"}I.isDate=T;function _(L){return N(L)==="[object Error]"||L instanceof Error}I.isError=_;function R(L){return typeof L=="function"}I.isFunction=R;function A(L){return L===null||typeof L=="boolean"||typeof L=="number"||typeof L=="string"||typeof L=="symbol"||typeof L=="undefined"}I.isPrimitive=A,I.isBuffer=s("buffer").Buffer.isBuffer;function N(L){return Object.prototype.toString.call(L)}},{buffer:90}],342:[function(s,E,I){(function(u){"use strict";var d=function(){var c=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,h=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,m=/[^-+\dA-Z]/g;return function(x,T,_,R){if(arguments.length===1&&v(x)==="string"&&!/\d/.test(x)&&(T=x,x=void 0),x=x||new Date,x instanceof Date||(x=new Date(x)),isNaN(x))throw TypeError("Invalid date");T=String(d.masks[T]||T||d.masks.default);var A=T.slice(0,4);(A==="UTC:"||A==="GMT:")&&(T=T.slice(4),_=!0,A==="GMT:"&&(R=!0));var N=_?"getUTC":"get",L=x[N+"Date"](),M=x[N+"Day"](),F=x[N+"Month"](),H=x[N+"FullYear"](),P=x[N+"Hours"](),V=x[N+"Minutes"](),G=x[N+"Seconds"](),Q=x[N+"Milliseconds"](),ne=_?0:x.getTimezoneOffset(),ue=y(x),ae=S(x),he={d:L,dd:g(L),ddd:d.i18n.dayNames[M],dddd:d.i18n.dayNames[M+7],m:F+1,mm:g(F+1),mmm:d.i18n.monthNames[F],mmmm:d.i18n.monthNames[F+12],yy:String(H).slice(2),yyyy:H,h:P%12||12,hh:g(P%12||12),H:P,HH:g(P),M:V,MM:g(V),s:G,ss:g(G),l:g(Q,3),L:g(Math.round(Q/10)),t:P<12?"a":"p",tt:P<12?"am":"pm",T:P<12?"A":"P",TT:P<12?"AM":"PM",Z:R?"GMT":_?"UTC":(String(x).match(h)||[""]).pop().replace(m,""),o:(ne>0?"-":"+")+g(Math.floor(Math.abs(ne)/60)*100+Math.abs(ne)%60,4),S:["th","st","nd","rd"][L%10>3?0:(L%100-L%10!=10)*L%10],W:ue,N:ae};return T.replace(c,function(ce){return ce in he?he[ce]:ce.slice(1,ce.length-1)})}}();d.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"},d.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 g(c,h){for(c=String(c),h=h||2;c.length<h;)c="0"+c;return c}function y(c){var h=new Date(c.getFullYear(),c.getMonth(),c.getDate());h.setDate(h.getDate()-(h.getDay()+6)%7+3);var m=new Date(h.getFullYear(),0,4);m.setDate(m.getDate()-(m.getDay()+6)%7+3);var x=h.getTimezoneOffset()-m.getTimezoneOffset();h.setHours(h.getHours()-x);var T=(h-m)/(864e5*7);return 1+Math.floor(T)}function S(c){var h=c.getDay();return h===0&&(h=7),h}function v(c){return c===null?"null":c===void 0?"undefined":typeof c!="object"?typeof c:Array.isArray(c)?"array":{}.toString.call(c).slice(8,-1).toLowerCase()}typeof b=="function"&&b.amd?b(function(){return d}):typeof I=="object"?E.exports=d:u.dateFormat=d})(this)},{}],343:[function(s,E,I){"use strict";var u=/["'&<>]/;E.exports=d;function d(g){var y=""+g,S=u.exec(y);if(!S)return y;var v,c="",h=0,m=0;for(h=S.index;h<y.length;h++){switch(y.charCodeAt(h)){case 34:v="&quot;";break;case 38:v="&amp;";break;case 39:v="&#39;";break;case 60:v="&lt;";break;case 62:v="&gt;";break;default:continue}m!==h&&(c+=y.substring(m,h)),m=h+1,c+=v}return m!==h?c+y.substring(m,h):c}},{}],344:[function(s,E,I){"use strict";var u=typeof Reflect=="object"?Reflect:null,d=u&&typeof u.apply=="function"?u.apply:function(G,Q,ne){return Function.prototype.apply.call(G,Q,ne)},g;u&&typeof u.ownKeys=="function"?g=u.ownKeys:Object.getOwnPropertySymbols?g=function(G){return Object.getOwnPropertyNames(G).concat(Object.getOwnPropertySymbols(G))}:g=function(G){return Object.getOwnPropertyNames(G)};function y(V){console&&console.warn&&console.warn(V)}var S=Number.isNaN||function(G){return G!==G};function v(){v.init.call(this)}E.exports=v,E.exports.once=F,v.EventEmitter=v,v.prototype._events=void 0,v.prototype._eventsCount=0,v.prototype._maxListeners=void 0;var c=10;function h(V){if(typeof V!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof V)}Object.defineProperty(v,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(V){if(typeof V!="number"||V<0||S(V))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+V+".");c=V}}),v.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},v.prototype.setMaxListeners=function(G){if(typeof G!="number"||G<0||S(G))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+G+".");return this._maxListeners=G,this};function m(V){return V._maxListeners===void 0?v.defaultMaxListeners:V._maxListeners}v.prototype.getMaxListeners=function(){return m(this)},v.prototype.emit=function(G){for(var Q=[],ne=1;ne<arguments.length;ne++)Q.push(arguments[ne]);var ue=G==="error",ae=this._events;if(ae!==void 0)ue=ue&&ae.error===void 0;else if(!ue)return!1;if(ue){var he;if(Q.length>0&&(he=Q[0]),he instanceof Error)throw he;var ce=new Error("Unhandled error."+(he?" ("+he.message+")":""));throw ce.context=he,ce}var we=ae[G];if(we===void 0)return!1;if(typeof we=="function")d(we,this,Q);else for(var me=we.length,Le=N(we,me),ne=0;ne<me;++ne)d(Le[ne],this,Q);return!0};function x(V,G,Q,ne){var ue,ae,he;if(h(Q),ae=V._events,ae===void 0?(ae=V._events=Object.create(null),V._eventsCount=0):(ae.newListener!==void 0&&(V.emit("newListener",G,Q.listener?Q.listener:Q),ae=V._events),he=ae[G]),he===void 0)he=ae[G]=Q,++V._eventsCount;else if(typeof he=="function"?he=ae[G]=ne?[Q,he]:[he,Q]:ne?he.unshift(Q):he.push(Q),ue=m(V),ue>0&&he.length>ue&&!he.warned){he.warned=!0;var ce=new Error("Possible EventEmitter memory leak detected. "+he.length+" "+String(G)+" listeners added. Use emitter.setMaxListeners() to increase limit");ce.name="MaxListenersExceededWarning",ce.emitter=V,ce.type=G,ce.count=he.length,y(ce)}return V}v.prototype.addListener=function(G,Q){return x(this,G,Q,!1)},v.prototype.on=v.prototype.addListener,v.prototype.prependListener=function(G,Q){return x(this,G,Q,!0)};function T(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _(V,G,Q){var ne={fired:!1,wrapFn:void 0,target:V,type:G,listener:Q},ue=T.bind(ne);return ue.listener=Q,ne.wrapFn=ue,ue}v.prototype.once=function(G,Q){return h(Q),this.on(G,_(this,G,Q)),this},v.prototype.prependOnceListener=function(G,Q){return h(Q),this.prependListener(G,_(this,G,Q)),this},v.prototype.removeListener=function(G,Q){var ne,ue,ae,he,ce;if(h(Q),ue=this._events,ue===void 0)return this;if(ne=ue[G],ne===void 0)return this;if(ne===Q||ne.listener===Q)--this._eventsCount===0?this._events=Object.create(null):(delete ue[G],ue.removeListener&&this.emit("removeListener",G,ne.listener||Q));else if(typeof ne!="function"){for(ae=-1,he=ne.length-1;he>=0;he--)if(ne[he]===Q||ne[he].listener===Q){ce=ne[he].listener,ae=he;break}if(ae<0)return this;ae===0?ne.shift():L(ne,ae),ne.length===1&&(ue[G]=ne[0]),ue.removeListener!==void 0&&this.emit("removeListener",G,ce||Q)}return this},v.prototype.off=v.prototype.removeListener,v.prototype.removeAllListeners=function(G){var Q,ne,ue;if(ne=this._events,ne===void 0)return this;if(ne.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):ne[G]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete ne[G]),this;if(arguments.length===0){var ae=Object.keys(ne),he;for(ue=0;ue<ae.length;++ue)he=ae[ue],he!=="removeListener"&&this.removeAllListeners(he);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(Q=ne[G],typeof Q=="function")this.removeListener(G,Q);else if(Q!==void 0)for(ue=Q.length-1;ue>=0;ue--)this.removeListener(G,Q[ue]);return this};function R(V,G,Q){var ne=V._events;if(ne===void 0)return[];var ue=ne[G];return ue===void 0?[]:typeof ue=="function"?Q?[ue.listener||ue]:[ue]:Q?M(ue):N(ue,ue.length)}v.prototype.listeners=function(G){return R(this,G,!0)},v.prototype.rawListeners=function(G){return R(this,G,!1)},v.listenerCount=function(V,G){return typeof V.listenerCount=="function"?V.listenerCount(G):A.call(V,G)},v.prototype.listenerCount=A;function A(V){var G=this._events;if(G!==void 0){var Q=G[V];if(typeof Q=="function")return 1;if(Q!==void 0)return Q.length}return 0}v.prototype.eventNames=function(){return this._eventsCount>0?g(this._events):[]};function N(V,G){for(var Q=new Array(G),ne=0;ne<G;++ne)Q[ne]=V[ne];return Q}function L(V,G){for(;G+1<V.length;G++)V[G]=V[G+1];V.pop()}function M(V){for(var G=new Array(V.length),Q=0;Q<G.length;++Q)G[Q]=V[Q].listener||V[Q];return G}function F(V,G){return new Promise(function(Q,ne){function ue(he){V.removeListener(G,ae),ne(he)}function ae(){typeof V.removeListener=="function"&&V.removeListener("error",ue),Q([].slice.call(arguments))}P(V,G,ae,{once:!0}),G!=="error"&&H(V,ue,{once:!0})})}function H(V,G,Q){typeof V.on=="function"&&P(V,"error",G,Q)}function P(V,G,Q,ne){if(typeof V.on=="function")ne.once?V.once(G,Q):V.on(G,Q);else if(typeof V.addEventListener=="function")V.addEventListener(G,function ue(ae){ne.once&&V.removeEventListener(G,ue),Q(ae)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof V)}},{}],345:[function(s,E,I){"use strict";var u=s("is-callable"),d=Object.prototype.toString,g=Object.prototype.hasOwnProperty,y=function(m,x,T){for(var _=0,R=m.length;_<R;_++)g.call(m,_)&&(T==null?x(m[_],_,m):x.call(T,m[_],_,m))},S=function(m,x,T){for(var _=0,R=m.length;_<R;_++)T==null?x(m.charAt(_),_,m):x.call(T,m.charAt(_),_,m)},v=function(m,x,T){for(var _ in m)g.call(m,_)&&(T==null?x(m[_],_,m):x.call(T,m[_],_,m))},c=function(m,x,T){if(!u(x))throw new TypeError("iterator must be a function");var _;arguments.length>=3&&(_=T),d.call(m)==="[object Array]"?y(m,x,_):typeof m=="string"?S(m,x,_):v(m,x,_)};E.exports=c},{"is-callable":367}],346:[function(s,E,I){"use strict";var u="Function.prototype.bind called on incompatible ",d=Array.prototype.slice,g=Object.prototype.toString,y="[object Function]";E.exports=function(v){var c=this;if(typeof c!="function"||g.call(c)!==y)throw new TypeError(u+c);for(var h=d.call(arguments,1),m,x=function(){if(this instanceof m){var N=c.apply(this,h.concat(d.call(arguments)));return Object(N)===N?N:this}else return c.apply(v,h.concat(d.call(arguments)))},T=Math.max(0,c.length-h.length),_=[],R=0;R<T;R++)_.push("$"+R);if(m=Function("binder","return function ("+_.join(",")+"){ return binder.apply(this,arguments); }")(x),c.prototype){var A=function(){};A.prototype=c.prototype,m.prototype=new A,A.prototype=null}return m}},{}],347:[function(s,E,I){"use strict";var u=s("./implementation");E.exports=Function.prototype.bind||u},{"./implementation":346}],348:[function(s,E,I){"use strict";var u,d=SyntaxError,g=Function,y=TypeError,S=function(we){try{return g('"use strict"; return ('+we+").constructor;")()}catch(me){}},v=Object.getOwnPropertyDescriptor;if(v)try{v({},"")}catch(we){v=null}var c=function(){throw new y},h=v?function(){try{return arguments.callee,c}catch(we){try{return v(arguments,"callee").get}catch(me){return c}}}():c,m=s("has-symbols")(),x=s("has-proto")(),T=Object.getPrototypeOf||(x?function(we){return we.__proto__}:null),_={},R=typeof Uint8Array=="undefined"||!T?u:T(Uint8Array),A={"%AggregateError%":typeof AggregateError=="undefined"?u:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?u:ArrayBuffer,"%ArrayIteratorPrototype%":m&&T?T([][Symbol.iterator]()):u,"%AsyncFromSyncIteratorPrototype%":u,"%AsyncFunction%":_,"%AsyncGenerator%":_,"%AsyncGeneratorFunction%":_,"%AsyncIteratorPrototype%":_,"%Atomics%":typeof Atomics=="undefined"?u:Atomics,"%BigInt%":typeof BigInt=="undefined"?u:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?u:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?u:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?u:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?u:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?u:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?u:FinalizationRegistry,"%Function%":g,"%GeneratorFunction%":_,"%Int8Array%":typeof Int8Array=="undefined"?u:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?u:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?u:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":m&&T?T(T([][Symbol.iterator]())):u,"%JSON%":typeof JSON=="object"?JSON:u,"%Map%":typeof Map=="undefined"?u:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!m||!T?u:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?u:Promise,"%Proxy%":typeof Proxy=="undefined"?u:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?u:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?u:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!m||!T?u:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?u:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":m&&T?T(""[Symbol.iterator]()):u,"%Symbol%":m?Symbol:u,"%SyntaxError%":d,"%ThrowTypeError%":h,"%TypedArray%":R,"%TypeError%":y,"%Uint8Array%":typeof Uint8Array=="undefined"?u:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?u:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?u:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?u:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?u:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?u:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?u:WeakSet};if(T)try{null.error}catch(we){var N=T(T(we));A["%Error.prototype%"]=N}var L=function we(me){var Le;if(me==="%AsyncFunction%")Le=S("async function () {}");else if(me==="%GeneratorFunction%")Le=S("function* () {}");else if(me==="%AsyncGeneratorFunction%")Le=S("async function* () {}");else if(me==="%AsyncGenerator%"){var ee=we("%AsyncGeneratorFunction%");ee&&(Le=ee.prototype)}else if(me==="%AsyncIteratorPrototype%"){var se=we("%AsyncGenerator%");se&&T&&(Le=T(se.prototype))}return A[me]=Le,Le},M={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},F=s("function-bind"),H=s("has"),P=F.call(Function.call,Array.prototype.concat),V=F.call(Function.apply,Array.prototype.splice),G=F.call(Function.call,String.prototype.replace),Q=F.call(Function.call,String.prototype.slice),ne=F.call(Function.call,RegExp.prototype.exec),ue=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ae=/\\(\\)?/g,he=function(me){var Le=Q(me,0,1),ee=Q(me,-1);if(Le==="%"&&ee!=="%")throw new d("invalid intrinsic syntax, expected closing `%`");if(ee==="%"&&Le!=="%")throw new d("invalid intrinsic syntax, expected opening `%`");var se=[];return G(me,ue,function(le,ke,De,Be){se[se.length]=De?G(Be,ae,"$1"):ke||le}),se},ce=function(me,Le){var ee=me,se;if(H(M,ee)&&(se=M[ee],ee="%"+se[0]+"%"),H(A,ee)){var le=A[ee];if(le===_&&(le=L(ee)),typeof le=="undefined"&&!Le)throw new y("intrinsic "+me+" exists, but is not available. Please file an issue!");return{alias:se,name:ee,value:le}}throw new d("intrinsic "+me+" does not exist!")};E.exports=function(me,Le){if(typeof me!="string"||me.length===0)throw new y("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Le!="boolean")throw new y('"allowMissing" argument must be a boolean');if(ne(/^%?[^%]*%?$/,me)===null)throw new d("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var ee=he(me),se=ee.length>0?ee[0]:"",le=ce("%"+se+"%",Le),ke=le.name,De=le.value,Be=!1,He=le.alias;He&&(se=He[0],V(ee,P([0,1],He)));for(var Fe=1,Je=!0;Fe<ee.length;Fe+=1){var Me=ee[Fe],lt=Q(Me,0,1),Re=Q(Me,-1);if((lt==='"'||lt==="'"||lt==="`"||Re==='"'||Re==="'"||Re==="`")&&lt!==Re)throw new d("property names with quotes must have matching quotes");if((Me==="constructor"||!Je)&&(Be=!0),se+="."+Me,ke="%"+se+"%",H(A,ke))De=A[ke];else if(De!=null){if(!(Me in De)){if(!Le)throw new y("base intrinsic for "+me+" exists, but the property is not available.");return}if(v&&Fe+1>=ee.length){var Oe=v(De,Me);Je=!!Oe,Je&&"get"in Oe&&!("originalValue"in Oe.get)?De=Oe.get:De=De[Me]}else Je=H(De,Me),De=De[Me];Je&&!Be&&(A[ke]=De)}}return De}},{"function-bind":347,has:354,"has-proto":350,"has-symbols":351}],349:[function(s,E,I){"use strict";var u=s("get-intrinsic"),d=u("%Object.getOwnPropertyDescriptor%",!0);if(d)try{d([],"length")}catch(g){d=null}E.exports=d},{"get-intrinsic":348}],350:[function(s,E,I){"use strict";var u={foo:{}},d=Object;E.exports=function(){return{__proto__:u}.foo===u.foo&&!({__proto__:null}instanceof d)}},{}],351:[function(s,E,I){"use strict";var u=typeof Symbol!="undefined"&&Symbol,d=s("./shams");E.exports=function(){return typeof u!="function"||typeof Symbol!="function"||typeof u("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:d()}},{"./shams":352}],352:[function(s,E,I){"use strict";E.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var d={},g=Symbol("test"),y=Object(g);if(typeof g=="string"||Object.prototype.toString.call(g)!=="[object Symbol]"||Object.prototype.toString.call(y)!=="[object Symbol]")return!1;var S=42;d[g]=S;for(g in d)return!1;if(typeof Object.keys=="function"&&Object.keys(d).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(d).length!==0)return!1;var v=Object.getOwnPropertySymbols(d);if(v.length!==1||v[0]!==g||!Object.prototype.propertyIsEnumerable.call(d,g))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(d,g);if(c.value!==S||c.enumerable!==!0)return!1}return!0}},{}],353:[function(s,E,I){"use strict";var u=s("has-symbols/shams");E.exports=function(){return u()&&!!Symbol.toStringTag}},{"has-symbols/shams":352}],354:[function(s,E,I){"use strict";var u=s("function-bind");E.exports=u.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":347}],355:[function(s,E,I){var u=s("http"),d=s("url"),g=E.exports;for(var y in u)u.hasOwnProperty(y)&&(g[y]=u[y]);g.request=function(v,c){return v=S(v),u.request.call(this,v,c)},g.get=function(v,c){return v=S(v),u.get.call(this,v,c)};function S(v){if(typeof v=="string"&&(v=d.parse(v)),v.protocol||(v.protocol="https:"),v.protocol!=="https:")throw new Error('Protocol "'+v.protocol+'" not supported. Expected "https:"');return v}},{http:468,url:472}],356:[function(s,E,I){"use strict";var u=s("util"),d=s("ms");E.exports=function(g){if(typeof g=="number")return g;var y=d(g);if(y===void 0){var S=new Error(u.format("humanize-ms(%j) result undefined",g));console.warn(S.stack)}return y}},{ms:376,util:419}],357:[function(s,E,I){I.read=function(u,d,g,y,S){var v,c,h=S*8-y-1,m=(1<<h)-1,x=m>>1,T=-7,_=g?S-1:0,R=g?-1:1,A=u[d+_];for(_+=R,v=A&(1<<-T)-1,A>>=-T,T+=h;T>0;v=v*256+u[d+_],_+=R,T-=8);for(c=v&(1<<-T)-1,v>>=-T,T+=y;T>0;c=c*256+u[d+_],_+=R,T-=8);if(v===0)v=1-x;else{if(v===m)return c?NaN:(A?-1:1)*(1/0);c=c+Math.pow(2,y),v=v-x}return(A?-1:1)*c*Math.pow(2,v-y)},I.write=function(u,d,g,y,S,v){var c,h,m,x=v*8-S-1,T=(1<<x)-1,_=T>>1,R=S===23?Math.pow(2,-24)-Math.pow(2,-77):0,A=y?0:v-1,N=y?1:-1,L=d<0||d===0&&1/d<0?1:0;for(d=Math.abs(d),isNaN(d)||d===1/0?(h=isNaN(d)?1:0,c=T):(c=Math.floor(Math.log(d)/Math.LN2),d*(m=Math.pow(2,-c))<1&&(c--,m*=2),c+_>=1?d+=R/m:d+=R*Math.pow(2,1-_),d*m>=2&&(c++,m/=2),c+_>=T?(h=0,c=T):c+_>=1?(h=(d*m-1)*Math.pow(2,S),c=c+_):(h=d*Math.pow(2,_-1)*Math.pow(2,S),c=0));S>=8;u[g+A]=h&255,A+=N,h/=256,S-=8);for(c=c<<S|h,x+=S;x>0;u[g+A]=c&255,A+=N,c/=256,x-=8);u[g+A-N]|=L*128}},{}],358:[function(s,E,I){"use strict";var u=[s("./nextTick"),s("./queueMicrotask"),s("./mutation.js"),s("./messageChannel"),s("./stateChange"),s("./timeout")],d,g,y=-1,S=[],v=!1;function c(){!d||!g||(d=!1,g.length?S=g.concat(S):y=-1,S.length&&h())}function h(){if(!d){v=!1,d=!0;for(var A=S.length,N=setTimeout(c);A;){for(g=S,S=[];g&&++y<A;)g[y].run();y=-1,A=S.length}g=null,y=-1,d=!1,clearTimeout(N)}}for(var m,x=-1,T=u.length;++x<T;)if(u[x]&&u[x].test&&u[x].test()){m=u[x].install(h);break}function _(A,N){this.fun=A,this.array=N}_.prototype.run=function(){var A=this.fun,N=this.array;switch(N.length){case 0:return A();case 1:return A(N[0]);case 2:return A(N[0],N[1]);case 3:return A(N[0],N[1],N[2]);default:return A.apply(null,N)}},E.exports=R;function R(A){var N=new Array(arguments.length-1);if(arguments.length>1)for(var L=1;L<arguments.length;L++)N[L-1]=arguments[L];S.push(new _(A,N)),!v&&!d&&(v=!0,m())}},{"./messageChannel":359,"./mutation.js":360,"./nextTick":89,"./queueMicrotask":361,"./stateChange":362,"./timeout":363}],359:[function(s,E,I){(function(u){(function(){"use strict";I.test=function(){return u.setImmediate?!1:typeof u.MessageChannel!="undefined"},I.install=function(d){var g=new u.MessageChannel;return g.port1.onmessage=d,function(){g.port2.postMessage(0)}}}).call(this)}).call(this,typeof Z!="undefined"?Z:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],360:[function(s,E,I){(function(u){(function(){"use strict";var d=u.MutationObserver||u.WebKitMutationObserver;I.test=function(){return d},I.install=function(g){var y=0,S=new d(g),v=u.document.createTextNode("");return S.observe(v,{characterData:!0}),function(){v.data=y=++y%2}}}).call(this)}).call(this,typeof Z!="undefined"?Z:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],361:[function(s,E,I){(function(u){(function(){"use strict";I.test=function(){return typeof u.queueMicrotask=="function"},I.install=function(d){return function(){u.queueMicrotask(d)}}}).call(this)}).call(this,typeof Z!="undefined"?Z:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],362:[function(s,E,I){(function(u){(function(){"use strict";I.test=function(){return"document"in u&&"onreadystatechange"in u.document.createElement("script")},I.install=function(d){return function(){var g=u.document.createElement("script");return g.onreadystatechange=function(){d(),g.onreadystatechange=null,g.parentNode.removeChild(g),g=null},u.document.documentElement.appendChild(g),d}}}).call(this)}).call(this,typeof Z!="undefined"?Z:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],363:[function(s,E,I){"use strict";I.test=function(){return!0},I.install=function(u){return function(){setTimeout(u,0)}}},{}],364:[function(s,E,I){typeof Object.create=="function"?E.exports=function(d,g){g&&(d.super_=g,d.prototype=Object.create(g.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}))}:E.exports=function(d,g){if(g){d.super_=g;var y=function(){};y.prototype=g.prototype,d.prototype=new y,d.prototype.constructor=d}}},{}],365:[function(s,E,I){"use strict";var u=s("has-tostringtag/shams")(),d=s("call-bind/callBound"),g=d("Object.prototype.toString"),y=function(h){return u&&h&&typeof h=="object"&&Symbol.toStringTag in h?!1:g(h)==="[object Arguments]"},S=function(h){return y(h)?!0:h!==null&&typeof h=="object"&&typeof h.length=="number"&&h.length>=0&&g(h)!=="[object Array]"&&g(h.callee)==="[object Function]"},v=function(){return y(arguments)}();y.isLegacyArguments=S,E.exports=v?y:S},{"call-bind/callBound":92,"has-tostringtag/shams":353}],366:[function(s,E,I){E.exports=function(g){return g!=null&&(u(g)||d(g)||!!g._isBuffer)};function u(g){return!!g.constructor&&typeof g.constructor.isBuffer=="function"&&g.constructor.isBuffer(g)}function d(g){return typeof g.readFloatLE=="function"&&typeof g.slice=="function"&&u(g.slice(0,0))}},{}],367:[function(s,E,I){"use strict";var u=Function.prototype.toString,d=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,g,y;if(typeof d=="function"&&typeof Object.defineProperty=="function")try{g=Object.defineProperty({},"length",{get:function(){throw y}}),y={},d(function(){throw 42},null,g)}catch(H){H!==y&&(d=null)}else d=null;var S=/^\s*class\b/,v=function(P){try{var V=u.call(P);return S.test(V)}catch(G){return!1}},c=function(P){try{return v(P)?!1:(u.call(P),!0)}catch(V){return!1}},h=Object.prototype.toString,m="[object Object]",x="[object Function]",T="[object GeneratorFunction]",_="[object HTMLAllCollection]",R="[object HTML document.all class]",A="[object HTMLCollection]",N=typeof Symbol=="function"&&!!Symbol.toStringTag,L=!(0 in[,]),M=function(){return!1};if(typeof document=="object"){var F=document.all;h.call(F)===h.call(document.all)&&(M=function(P){if((L||!P)&&(typeof P=="undefined"||typeof P=="object"))try{var V=h.call(P);return(V===_||V===R||V===A||V===m)&&P("")==null}catch(G){}return!1})}E.exports=d?function(P){if(M(P))return!0;if(!P||typeof P!="function"&&typeof P!="object")return!1;try{d(P,null,g)}catch(V){if(V!==y)return!1}return!v(P)&&c(P)}:function(P){if(M(P))return!0;if(!P||typeof P!="function"&&typeof P!="object")return!1;if(N)return c(P);if(v(P))return!1;var V=h.call(P);return V!==x&&V!==T&&!/^\[object HTML/.test(V)?!1:c(P)}},{}],368:[function(s,E,I){"use strict";var u=Object.prototype.toString,d=Function.prototype.toString,g=/^\s*(?:function)?\*/,y=s("has-tostringtag/shams")(),S=Object.getPrototypeOf,v=function(){if(!y)return!1;try{return Function("return function*() {}")()}catch(h){}},c;E.exports=function(m){if(typeof m!="function")return!1;if(g.test(d.call(m)))return!0;if(!y){var x=u.call(m);return x==="[object GeneratorFunction]"}if(!S)return!1;if(typeof c=="undefined"){var T=v();c=T?S(T):!1}return S(m)===c}},{"has-tostringtag/shams":353}],369:[function(s,E,I){"use strict";var u=s("which-typed-array");E.exports=function(g){return!!u(g)}},{"which-typed-array":420}],370:[function(s,E,I){var u={}.toString;E.exports=Array.isArray||function(d){return u.call(d)=="[object Array]"}},{}],371:[function(s,E,I){(function(u){(function(){(function(d,g){typeof I=="object"&&typeof E!="undefined"?E.exports=g(d):typeof b=="function"&&b.amd?b(g):g(d)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof u!="undefined"?u:this,function(d){"use strict";d=d||{};var g=d.Base64,y="2.6.4",S="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",v=function(me){for(var Le={},ee=0,se=me.length;ee<se;ee++)Le[me.charAt(ee)]=ee;return Le}(S),c=String.fromCharCode,h=function(me){if(me.length<2){var Le=me.charCodeAt(0);return Le<128?me:Le<2048?c(192|Le>>>6)+c(128|Le&63):c(224|Le>>>12&15)+c(128|Le>>>6&63)+c(128|Le&63)}else{var Le=65536+(me.charCodeAt(0)-55296)*1024+(me.charCodeAt(1)-56320);return c(240|Le>>>18&7)+c(128|Le>>>12&63)+c(128|Le>>>6&63)+c(128|Le&63)}},m=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,x=function(me){return me.replace(m,h)},T=function(me){var Le=[0,2,1][me.length%3],ee=me.charCodeAt(0)<<16|(me.length>1?me.charCodeAt(1):0)<<8|(me.length>2?me.charCodeAt(2):0),se=[S.charAt(ee>>>18),S.charAt(ee>>>12&63),Le>=2?"=":S.charAt(ee>>>6&63),Le>=1?"=":S.charAt(ee&63)];return se.join("")},_=d.btoa&&typeof d.btoa=="function"?function(me){return d.btoa(me)}:function(me){if(me.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return me.replace(/[\s\S]{1,3}/g,T)},R=function(me){return _(x(String(me)))},A=function(me){return me.replace(/[+\/]/g,function(Le){return Le=="+"?"-":"_"}).replace(/=/g,"")},N=function(me,Le){return Le?A(R(me)):R(me)},L=function(me){return N(me,!0)},M;d.Uint8Array&&(M=function(me,Le){for(var ee="",se=0,le=me.length;se<le;se+=3){var ke=me[se],De=me[se+1],Be=me[se+2],He=ke<<16|De<<8|Be;ee+=S.charAt(He>>>18)+S.charAt(He>>>12&63)+(typeof De!="undefined"?S.charAt(He>>>6&63):"=")+(typeof Be!="undefined"?S.charAt(He&63):"=")}return Le?A(ee):ee});var F=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,H=function(me){switch(me.length){case 4:var Le=(7&me.charCodeAt(0))<<18|(63&me.charCodeAt(1))<<12|(63&me.charCodeAt(2))<<6|63&me.charCodeAt(3),ee=Le-65536;return c((ee>>>10)+55296)+c((ee&1023)+56320);case 3:return c((15&me.charCodeAt(0))<<12|(63&me.charCodeAt(1))<<6|63&me.charCodeAt(2));default:return c((31&me.charCodeAt(0))<<6|63&me.charCodeAt(1))}},P=function(me){return me.replace(F,H)},V=function(me){var Le=me.length,ee=Le%4,se=(Le>0?v[me.charAt(0)]<<18:0)|(Le>1?v[me.charAt(1)]<<12:0)|(Le>2?v[me.charAt(2)]<<6:0)|(Le>3?v[me.charAt(3)]:0),le=[c(se>>>16),c(se>>>8&255),c(se&255)];return le.length-=[0,0,2,1][ee],le.join("")},G=d.atob&&typeof d.atob=="function"?function(me){return d.atob(me)}:function(me){return me.replace(/\S{1,4}/g,V)},Q=function(me){return G(String(me).replace(/[^A-Za-z0-9\+\/]/g,""))},ne=function(me){return P(G(me))},ue=function(me){return String(me).replace(/[-_]/g,function(Le){return Le=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},ae=function(me){return ne(ue(me))},he;d.Uint8Array&&(he=function(me){return Uint8Array.from(Q(ue(me)),function(Le){return Le.charCodeAt(0)})});var ce=function(){var me=d.Base64;return d.Base64=g,me};if(d.Base64={VERSION:y,atob:Q,btoa:_,fromBase64:ae,toBase64:N,utob:x,encode:N,encodeURI:L,btou:P,decode:ae,noConflict:ce,fromUint8Array:M,toUint8Array:he},typeof Object.defineProperty=="function"){var we=function(me){return{value:me,enumerable:!1,writable:!0,configurable:!0}};d.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",we(function(){return ae(this)})),Object.defineProperty(String.prototype,"toBase64",we(function(me){return N(this,me)})),Object.defineProperty(String.prototype,"toBase64URI",we(function(){return N(this,!0)}))}}return d.Meteor&&(Base64=d.Base64),typeof E!="undefined"&&E.exports?E.exports.Base64=d.Base64:typeof b=="function"&&b.amd&&b([],function(){return d.Base64}),{Base64:d.Base64}})}).call(this)}).call(this,typeof Z!="undefined"?Z:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],372:[function(s,E,I){"use strict";E.exports=d;var u=Object.prototype.hasOwnProperty;function d(g,y,S){if(!g)throw new TypeError("argument dest is required");if(!y)throw new TypeError("argument src is required");return S===void 0&&(S=!0),Object.getOwnPropertyNames(y).forEach(function(c){if(!(!S&&u.call(g,c))){var h=Object.getOwnPropertyDescriptor(y,c);Object.defineProperty(g,c,h)}}),g}},{}],373:[function(s,E,I){"use strict";s("core-js/modules/es.array.map.js"),s("core-js/modules/es.regexp.exec.js"),s("core-js/modules/es.string.replace.js"),s("core-js/modules/es.regexp.constructor.js"),s("core-js/modules/es.regexp.to-string.js");function u(){this._types=Object.create(null),this._extensions=Object.create(null);for(var d=0;d<arguments.length;d++)this.define(arguments[d]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}u.prototype.define=function(d,g){for(var y in d){var S=d[y].map(function(m){return m.toLowerCase()});y=y.toLowerCase();for(var v=0;v<S.length;v++){var c=S[v];if(c[0]!=="*"){if(!g&&c in this._types)throw new Error('Attempt to change mapping for "'+c+'" extension from "'+this._types[c]+'" to "'+y+'". Pass `force=true` to allow this, otherwise remove "'+c+'" from the list of extensions for "'+y+'".');this._types[c]=y}}if(g||!this._extensions[y]){var h=S[0];this._extensions[y]=h[0]!=="*"?h:h.substr(1)}}},u.prototype.getType=function(d){d=String(d);var g=d.replace(/^.*[/\\]/,"").toLowerCase(),y=g.replace(/^.*\./,"").toLowerCase(),S=g.length<d.length,v=y.length<g.length-1;return(v||!S)&&this._types[y]||null},u.prototype.getExtension=function(d){return d=/^\s*([^;\s]*)/.test(d)&&RegExp.$1,d&&this._extensions[d.toLowerCase()]||null},E.exports=u},{"core-js/modules/es.array.map.js":280,"core-js/modules/es.regexp.constructor.js":299,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305}],374:[function(s,E,I){"use strict";var u=s("./Mime");E.exports=new u(s("./types/standard"))},{"./Mime":373,"./types/standard":375}],375:[function(s,E,I){"use strict";E.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":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"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/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/trig":["trig"],"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-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/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"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"]}},{}],376:[function(s,E,I){var u=1e3,d=u*60,g=d*60,y=g*24,S=y*7,v=y*365.25;E.exports=function(T,_){_=_||{};var R=typeof T;if(R==="string"&&T.length>0)return c(T);if(R==="number"&&isFinite(T))return _.long?m(T):h(T);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(T))};function c(T){if(T=String(T),!(T.length>100)){var _=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(T);if(_){var R=parseFloat(_[1]),A=(_[2]||"ms").toLowerCase();switch(A){case"years":case"year":case"yrs":case"yr":case"y":return R*v;case"weeks":case"week":case"w":return R*S;case"days":case"day":case"d":return R*y;case"hours":case"hour":case"hrs":case"hr":case"h":return R*g;case"minutes":case"minute":case"mins":case"min":case"m":return R*d;case"seconds":case"second":case"secs":case"sec":case"s":return R*u;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return R;default:return}}}}function h(T){var _=Math.abs(T);return _>=y?Math.round(T/y)+"d":_>=g?Math.round(T/g)+"h":_>=d?Math.round(T/d)+"m":_>=u?Math.round(T/u)+"s":T+"ms"}function m(T){var _=Math.abs(T);return _>=y?x(T,_,y,"day"):_>=g?x(T,_,g,"hour"):_>=d?x(T,_,d,"minute"):_>=u?x(T,_,u,"second"):T+" ms"}function x(T,_,R,A){var N=_>=R*1.5;return Math.round(T/R)+" "+A+(N?"s":"")}},{}],377:[function(s,E,I){"use strict";var u=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;function y(v){if(v==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(v)}function S(){try{if(!Object.assign)return!1;var v=new String("abc");if(v[5]="de",Object.getOwnPropertyNames(v)[0]==="5")return!1;for(var c={},h=0;h<10;h++)c["_"+String.fromCharCode(h)]=h;var m=Object.getOwnPropertyNames(c).map(function(T){return c[T]});if(m.join("")!=="0123456789")return!1;var x={};return"abcdefghijklmnopqrst".split("").forEach(function(T){x[T]=T}),Object.keys(Object.assign({},x)).join("")==="abcdefghijklmnopqrst"}catch(T){return!1}}E.exports=S()?Object.assign:function(v,c){for(var h,m=y(v),x,T=1;T<arguments.length;T++){h=Object(arguments[T]);for(var _ in h)d.call(h,_)&&(m[_]=h[_]);if(u){x=u(h);for(var R=0;R<x.length;R++)g.call(h,x[R])&&(m[x[R]]=h[x[R]])}}return m}},{}],378:[function(s,E,I){(function(u){(function(){"use strict";function d(v){if(typeof v!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(v))}function g(v,c){for(var h="",m=0,x=-1,T=0,_,R=0;R<=v.length;++R){if(R<v.length)_=v.charCodeAt(R);else{if(_===47)break;_=47}if(_===47){if(!(x===R-1||T===1))if(x!==R-1&&T===2){if(h.length<2||m!==2||h.charCodeAt(h.length-1)!==46||h.charCodeAt(h.length-2)!==46){if(h.length>2){var A=h.lastIndexOf("/");if(A!==h.length-1){A===-1?(h="",m=0):(h=h.slice(0,A),m=h.length-1-h.lastIndexOf("/")),x=R,T=0;continue}}else if(h.length===2||h.length===1){h="",m=0,x=R,T=0;continue}}c&&(h.length>0?h+="/..":h="..",m=2)}else h.length>0?h+="/"+v.slice(x+1,R):h=v.slice(x+1,R),m=R-x-1;x=R,T=0}else _===46&&T!==-1?++T:T=-1}return h}function y(v,c){var h=c.dir||c.root,m=c.base||(c.name||"")+(c.ext||"");return h?h===c.root?h+m:h+v+m:m}var S={resolve:function(){for(var c="",h=!1,m,x=arguments.length-1;x>=-1&&!h;x--){var T;x>=0?T=arguments[x]:(m===void 0&&(m=u.cwd()),T=m),d(T),T.length!==0&&(c=T+"/"+c,h=T.charCodeAt(0)===47)}return c=g(c,!h),h?c.length>0?"/"+c:"/":c.length>0?c:"."},normalize:function(c){if(d(c),c.length===0)return".";var h=c.charCodeAt(0)===47,m=c.charCodeAt(c.length-1)===47;return c=g(c,!h),c.length===0&&!h&&(c="."),c.length>0&&m&&(c+="/"),h?"/"+c:c},isAbsolute:function(c){return d(c),c.length>0&&c.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var c,h=0;h<arguments.length;++h){var m=arguments[h];d(m),m.length>0&&(c===void 0?c=m:c+="/"+m)}return c===void 0?".":S.normalize(c)},relative:function(c,h){if(d(c),d(h),c===h||(c=S.resolve(c),h=S.resolve(h),c===h))return"";for(var m=1;m<c.length&&c.charCodeAt(m)===47;++m);for(var x=c.length,T=x-m,_=1;_<h.length&&h.charCodeAt(_)===47;++_);for(var R=h.length,A=R-_,N=T<A?T:A,L=-1,M=0;M<=N;++M){if(M===N){if(A>N){if(h.charCodeAt(_+M)===47)return h.slice(_+M+1);if(M===0)return h.slice(_+M)}else T>N&&(c.charCodeAt(m+M)===47?L=M:M===0&&(L=0));break}var F=c.charCodeAt(m+M),H=h.charCodeAt(_+M);if(F!==H)break;F===47&&(L=M)}var P="";for(M=m+L+1;M<=x;++M)(M===x||c.charCodeAt(M)===47)&&(P.length===0?P+="..":P+="/..");return P.length>0?P+h.slice(_+L):(_+=L,h.charCodeAt(_)===47&&++_,h.slice(_))},_makeLong:function(c){return c},dirname:function(c){if(d(c),c.length===0)return".";for(var h=c.charCodeAt(0),m=h===47,x=-1,T=!0,_=c.length-1;_>=1;--_)if(h=c.charCodeAt(_),h===47){if(!T){x=_;break}}else T=!1;return x===-1?m?"/":".":m&&x===1?"//":c.slice(0,x)},basename:function(c,h){if(h!==void 0&&typeof h!="string")throw new TypeError('"ext" argument must be a string');d(c);var m=0,x=-1,T=!0,_;if(h!==void 0&&h.length>0&&h.length<=c.length){if(h.length===c.length&&h===c)return"";var R=h.length-1,A=-1;for(_=c.length-1;_>=0;--_){var N=c.charCodeAt(_);if(N===47){if(!T){m=_+1;break}}else A===-1&&(T=!1,A=_+1),R>=0&&(N===h.charCodeAt(R)?--R===-1&&(x=_):(R=-1,x=A))}return m===x?x=A:x===-1&&(x=c.length),c.slice(m,x)}else{for(_=c.length-1;_>=0;--_)if(c.charCodeAt(_)===47){if(!T){m=_+1;break}}else x===-1&&(T=!1,x=_+1);return x===-1?"":c.slice(m,x)}},extname:function(c){d(c);for(var h=-1,m=0,x=-1,T=!0,_=0,R=c.length-1;R>=0;--R){var A=c.charCodeAt(R);if(A===47){if(!T){m=R+1;break}continue}x===-1&&(T=!1,x=R+1),A===46?h===-1?h=R:_!==1&&(_=1):h!==-1&&(_=-1)}return h===-1||x===-1||_===0||_===1&&h===x-1&&h===m+1?"":c.slice(h,x)},format:function(c){if(c===null||typeof c!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof c);return y("/",c)},parse:function(c){d(c);var h={root:"",dir:"",base:"",ext:"",name:""};if(c.length===0)return h;var m=c.charCodeAt(0),x=m===47,T;x?(h.root="/",T=1):T=0;for(var _=-1,R=0,A=-1,N=!0,L=c.length-1,M=0;L>=T;--L){if(m=c.charCodeAt(L),m===47){if(!N){R=L+1;break}continue}A===-1&&(N=!1,A=L+1),m===46?_===-1?_=L:M!==1&&(M=1):_!==-1&&(M=-1)}return _===-1||A===-1||M===0||M===1&&_===A-1&&_===R+1?A!==-1&&(R===0&&x?h.base=h.name=c.slice(1,A):h.base=h.name=c.slice(R,A)):(R===0&&x?(h.name=c.slice(1,_),h.base=c.slice(1,A)):(h.name=c.slice(R,_),h.base=c.slice(R,A)),h.ext=c.slice(_,A)),R>0?h.dir=c.slice(0,R-1):x&&(h.dir="/"),h},sep:"/",delimiter:":",win32:null,posix:null};S.posix=S,E.exports=S}).call(this)}).call(this,s("_process"))},{_process:467}],379:[function(s,E,I){(function(u){(function(){(function(){"use strict";var d={function:!0,object:!0},g=d[typeof window]&&window||this,y=g,S=d[typeof I]&&I,v=d[typeof E]&&E&&!E.nodeType&&E,c=S&&v&&typeof u=="object"&&u;c&&(c.global===c||c.window===c||c.self===c)&&(g=c);var h=Math.pow(2,53)-1,m=/\bOpera/,x=this,T=Object.prototype,_=T.hasOwnProperty,R=T.toString;function A(ae){return ae=String(ae),ae.charAt(0).toUpperCase()+ae.slice(1)}function N(ae,he,ce){var we={"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 he&&ce&&/^Win/i.test(ae)&&!/^Windows Phone /i.test(ae)&&(we=we[/[\d.]+$/.exec(ae)])&&(ae="Windows "+we),ae=String(ae),he&&ce&&(ae=ae.replace(RegExp(he,"i"),ce)),ae=M(ae.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]),ae}function L(ae,he){var ce=-1,we=ae?ae.length:0;if(typeof we=="number"&&we>-1&&we<=h)for(;++ce<we;)he(ae[ce],ce,ae);else F(ae,he)}function M(ae){return ae=Q(ae),/^(?:webOS|i(?:OS|P))/.test(ae)?ae:A(ae)}function F(ae,he){for(var ce in ae)_.call(ae,ce)&&he(ae[ce],ce,ae)}function H(ae){return ae==null?A(ae):R.call(ae).slice(8,-1)}function P(ae,he){var ce=ae!=null?typeof ae[he]:"number";return!/^(?:boolean|number|string|undefined)$/.test(ce)&&(ce=="object"?!!ae[he]:!0)}function V(ae){return String(ae).replace(/([ -])(?!$)/g,"$1?")}function G(ae,he){var ce=null;return L(ae,function(we,me){ce=he(ce,we,me,ae)}),ce}function Q(ae){return String(ae).replace(/^ +| +$/g,"")}function ne(ae){var he=g,ce=ae&&typeof ae=="object"&&H(ae)!="String";ce&&(he=ae,ae=null);var we=he.navigator||{},me=we.userAgent||"";ae||(ae=me);var Le=ce||x==y,ee=ce?!!we.likeChrome:/\bChrome\b/.test(ae)&&!/internal|\n/i.test(R.toString()),se="Object",le=ce?se:"ScriptBridgingProxyObject",ke=ce?se:"Environment",De=ce&&he.java?"JavaPackage":H(he.java),Be=ce?se:"RuntimeObject",He=/\bJava/.test(De)&&he.java,Fe=He&&H(he.environment)==ke,Je=He?"a":"\u03B1",Me=He?"b":"\u03B2",lt=he.document||{},Re=he.operamini||he.opera,Oe=m.test(Oe=ce&&Re?Re["[[Class]]"]:H(Re))?Oe:Re=null,pe,fe=ae,z=[],J=null,be=ae==me,_e=be&&Re&&typeof Re.version=="function"&&Re.version(),oe,ie=yt([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),ve=St(["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"]),Ne=At([{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"]),ze=ct({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}}),Ve=_t(["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 yt(st){return G(st,function(ge,on){return ge||RegExp("\\b"+(on.pattern||V(on))+"\\b","i").exec(ae)&&(on.label||on)})}function ct(st){return G(st,function(ge,on,mn){return ge||(on[Ne]||on[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Ne)]||RegExp("\\b"+V(mn)+"(?:\\b|\\w*\\d)","i").exec(ae))&&mn})}function St(st){return G(st,function(ge,on){return ge||RegExp("\\b"+(on.pattern||V(on))+"\\b","i").exec(ae)&&(on.label||on)})}function _t(st){return G(st,function(ge,on){var mn=on.pattern||V(on);return!ge&&(ge=RegExp("\\b"+mn+"(?:/[\\d.]+|[ \\w.]*)","i").exec(ae))&&(ge=N(ge,mn,on.label||on)),ge})}function At(st){return G(st,function(ge,on){var mn=on.pattern||V(on);return!ge&&(ge=RegExp("\\b"+mn+" *\\d+[.\\w_]*","i").exec(ae)||RegExp("\\b"+mn+" *\\w+-[\\w]*","i").exec(ae)||RegExp("\\b"+mn+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(ae))&&((ge=String(on.label&&!RegExp(mn,"i").test(on.label)?on.label:ge).split("/"))[1]&&!/[\d.]+/.test(ge[0])&&(ge[0]+=" "+ge[1]),on=on.label||on,ge=M(ge[0].replace(RegExp(mn,"i"),on).replace(RegExp("; *(?:"+on+"[_-])?","i")," ").replace(RegExp("("+on+")[-_.]?(\\w)","i"),"$1 $2"))),ge})}function ht(st){return G(st,function(ge,on){return ge||(RegExp(on+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(ae)||0)[1]||null})}function wt(){return this.description||""}if(ie&&(ie=[ie]),/\bAndroid\b/.test(Ve)&&!Ne&&(pe=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(ae))&&(Ne=Q(pe[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),ze&&!Ne?Ne=At([ze]):ze&&Ne&&(Ne=Ne.replace(RegExp("^("+V(ze)+")[-_.\\s]","i"),ze+" ").replace(RegExp("^("+V(ze)+")[-_.]?(\\w)","i"),ze+" $2")),(pe=/\bGoogle TV\b/.exec(Ne))&&(Ne=pe[0]),/\bSimulator\b/i.test(ae)&&(Ne=(Ne?Ne+" ":"")+"Simulator"),ve=="Opera Mini"&&/\bOPiOS\b/.test(ae)&&z.push("running in Turbo/Uncompressed mode"),ve=="IE"&&/\blike iPhone OS\b/.test(ae)?(pe=ne(ae.replace(/like iPhone OS/,"")),ze=pe.manufacturer,Ne=pe.product):/^iP/.test(Ne)?(ve||(ve="Safari"),Ve="iOS"+((pe=/ OS ([\d_]+)/i.exec(ae))?" "+pe[1].replace(/_/g,"."):"")):ve=="Konqueror"&&/^Linux\b/i.test(Ve)?Ve="Kubuntu":ze&&ze!="Google"&&(/Chrome/.test(ve)&&!/\bMobile Safari\b/i.test(ae)||/\bVita\b/.test(Ne))||/\bAndroid\b/.test(Ve)&&/^Chrome/.test(ve)&&/\bVersion\//i.test(ae)?(ve="Android Browser",Ve=/\bAndroid\b/.test(Ve)?Ve:"Android"):ve=="Silk"?(/\bMobi/i.test(ae)||(Ve="Android",z.unshift("desktop mode")),/Accelerated *= *true/i.test(ae)&&z.unshift("accelerated")):ve=="UC Browser"&&/\bUCWEB\b/.test(ae)?z.push("speed mode"):ve=="PaleMoon"&&(pe=/\bFirefox\/([\d.]+)\b/.exec(ae))?z.push("identifying as Firefox "+pe[1]):ve=="Firefox"&&(pe=/\b(Mobile|Tablet|TV)\b/i.exec(ae))?(Ve||(Ve="Firefox OS"),Ne||(Ne=pe[1])):!ve||(pe=!/\bMinefield\b/i.test(ae)&&/\b(?:Firefox|Safari)\b/.exec(ve))?(ve&&!Ne&&/[\/,]|^[^(]+?\)/.test(ae.slice(ae.indexOf(pe+"/")+8))&&(ve=null),(pe=Ne||ze||Ve)&&(Ne||ze||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(Ve))&&(ve=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(Ve)?Ve:pe)+" Browser")):ve=="Electron"&&(pe=(/\bChrome\/([\d.]+)\b/.exec(ae)||0)[1])&&z.push("Chromium "+pe),_e||(_e=ht(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",V(ve),"(?:Firefox|Minefield|NetFront)"])),(pe=ie=="iCab"&&parseFloat(_e)>3&&"WebKit"||/\bOpera\b/.test(ve)&&(/\bOPR\b/.test(ae)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(ae)&&!/^(?:Trident|EdgeHTML)$/.test(ie)&&"WebKit"||!ie&&/\bMSIE\b/i.test(ae)&&(Ve=="Mac OS"?"Tasman":"Trident")||ie=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(ve)&&"NetFront")&&(ie=[pe]),ve=="IE"&&(pe=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(ae)||0)[1])?(ve+=" Mobile",Ve="Windows Phone "+(/\+$/.test(pe)?pe:pe+".x"),z.unshift("desktop mode")):/\bWPDesktop\b/i.test(ae)?(ve="IE Mobile",Ve="Windows Phone 8.x",z.unshift("desktop mode"),_e||(_e=(/\brv:([\d.]+)/.exec(ae)||0)[1])):ve!="IE"&&ie=="Trident"&&(pe=/\brv:([\d.]+)/.exec(ae))&&(ve&&z.push("identifying as "+ve+(_e?" "+_e:"")),ve="IE",_e=pe[1]),be){if(P(he,"global"))if(He&&(pe=He.lang.System,fe=pe.getProperty("os.arch"),Ve=Ve||pe.getProperty("os.name")+" "+pe.getProperty("os.version")),Fe){try{_e=he.require("ringo/engine").version.join("."),ve="RingoJS"}catch(st){(pe=he.system)&&pe.global.system==he.system&&(ve="Narwhal",Ve||(Ve=pe[0].os||null))}ve||(ve="Rhino")}else typeof he.process=="object"&&!he.process.browser&&(pe=he.process)&&(typeof pe.versions=="object"&&(typeof pe.versions.electron=="string"?(z.push("Node "+pe.versions.node),ve="Electron",_e=pe.versions.electron):typeof pe.versions.nw=="string"&&(z.push("Chromium "+_e,"Node "+pe.versions.node),ve="NW.js",_e=pe.versions.nw)),ve||(ve="Node.js",fe=pe.arch,Ve=pe.platform,_e=/[\d.]+/.exec(pe.version),_e=_e?_e[0]:null));else H(pe=he.runtime)==le?(ve="Adobe AIR",Ve=pe.flash.system.Capabilities.os):H(pe=he.phantom)==Be?(ve="PhantomJS",_e=(pe=pe.version||null)&&pe.major+"."+pe.minor+"."+pe.patch):typeof lt.documentMode=="number"&&(pe=/\bTrident\/(\d+)/i.exec(ae))?(_e=[_e,lt.documentMode],(pe=+pe[1]+4)!=_e[1]&&(z.push("IE "+_e[1]+" mode"),ie&&(ie[1]=""),_e[1]=pe),_e=ve=="IE"?String(_e[1].toFixed(1)):_e[0]):typeof lt.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(ve)&&(z.push("masking as "+ve+" "+_e),ve="IE",_e="11.0",ie=["Trident"],Ve="Windows");Ve=Ve&&M(Ve)}if(_e&&(pe=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(_e)||/(?:alpha|beta)(?: ?\d)?/i.exec(ae+";"+(be&&we.appMinorVersion))||/\bMinefield\b/i.test(ae)&&"a")&&(J=/b/i.test(pe)?"beta":"alpha",_e=_e.replace(RegExp(pe+"\\+?$"),"")+(J=="beta"?Me:Je)+(/\d+\+?/.exec(pe)||"")),ve=="Fennec"||ve=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(Ve))ve="Firefox Mobile";else if(ve=="Maxthon"&&_e)_e=_e.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Ne))Ne=="Xbox 360"&&(Ve=null),Ne=="Xbox 360"&&/\bIEMobile\b/.test(ae)&&z.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(ve)||ve&&!Ne&&!/Browser|Mobi/.test(ve))&&(Ve=="Windows CE"||/Mobi/i.test(ae)))ve+=" Mobile";else if(ve=="IE"&&be)try{he.external===null&&z.unshift("platform preview")}catch(st){z.unshift("embedded")}else(/\bBlackBerry\b/.test(Ne)||/\bBB10\b/.test(ae))&&(pe=(RegExp(Ne.replace(/ +/g," *")+"/([.\\d]+)","i").exec(ae)||0)[1]||_e)?(pe=[pe,/BB10/.test(ae)],Ve=(pe[1]?(Ne=null,ze="BlackBerry"):"Device Software")+" "+pe[0],_e=null):this!=F&&Ne!="Wii"&&(be&&Re||/Opera/.test(ve)&&/\b(?:MSIE|Firefox)\b/i.test(ae)||ve=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(Ve)||ve=="IE"&&(Ve&&!/^Win/.test(Ve)&&_e>5.5||/\bWindows XP\b/.test(Ve)&&_e>8||_e==8&&!/\bTrident\b/.test(ae)))&&!m.test(pe=ne.call(F,ae.replace(m,"")+";"))&&pe.name&&(pe="ing as "+pe.name+((pe=pe.version)?" "+pe:""),m.test(ve)?(/\bIE\b/.test(pe)&&Ve=="Mac OS"&&(Ve=null),pe="identify"+pe):(pe="mask"+pe,Oe?ve=M(Oe.replace(/([a-z])([A-Z])/g,"$1 $2")):ve="Opera",/\bIE\b/.test(pe)&&(Ve=null),be||(_e=null)),ie=["Presto"],z.push(pe));(pe=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(ae)||0)[1])&&(pe=[parseFloat(pe.replace(/\.(\d)$/,".0$1")),pe],ve=="Safari"&&pe[1].slice(-1)=="+"?(ve="WebKit Nightly",J="alpha",_e=pe[1].slice(0,-1)):(_e==pe[1]||_e==(pe[2]=(/\bSafari\/([\d.]+\+?)/i.exec(ae)||0)[1]))&&(_e=null),pe[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(ae)||0)[1],pe[0]==537.36&&pe[2]==537.36&&parseFloat(pe[1])>=28&&ie=="WebKit"&&(ie=["Blink"]),!be||!ee&&!pe[1]?(ie&&(ie[1]="like Safari"),pe=(pe=pe[0],pe<400?1:pe<500?2:pe<526?3:pe<533?4:pe<534?"4+":pe<535?5:pe<537?6:pe<538?7:pe<601?8:pe<602?9:pe<604?10:pe<606?11:pe<608?12:"12")):(ie&&(ie[1]="like Chrome"),pe=pe[1]||(pe=pe[0],pe<530?1:pe<532?2:pe<532.05?3:pe<533?4:pe<534.03?5:pe<534.07?6:pe<534.1?7:pe<534.13?8:pe<534.16?9:pe<534.24?10:pe<534.3?11:pe<535.01?12:pe<535.02?"13+":pe<535.07?15:pe<535.11?16:pe<535.19?17:pe<536.05?18:pe<536.1?19:pe<537.01?20:pe<537.11?"21+":pe<537.13?23:pe<537.18?24:pe<537.24?25:pe<537.36?26:ie!="Blink"?"27":"28")),ie&&(ie[1]+=" "+(pe+=typeof pe=="number"?".x":/[.+]/.test(pe)?"":"+")),ve=="Safari"&&(!_e||parseInt(_e)>45)?_e=pe:ve=="Chrome"&&/\bHeadlessChrome/i.test(ae)&&z.unshift("headless")),ve=="Opera"&&(pe=/\bzbov|zvav$/.exec(Ve))?(ve+=" ",z.unshift("desktop mode"),pe=="zvav"?(ve+="Mini",_e=null):ve+="Mobile",Ve=Ve.replace(RegExp(" *"+pe+"$"),"")):ve=="Safari"&&/\bChrome\b/.exec(ie&&ie[1])?(z.unshift("desktop mode"),ve="Chrome Mobile",_e=null,/\bOS X\b/.test(Ve)?(ze="Apple",Ve="iOS 4.3+"):Ve=null):/\bSRWare Iron\b/.test(ve)&&!_e&&(_e=ht("Chrome")),_e&&_e.indexOf(pe=/[\d.]+$/.exec(Ve))==0&&ae.indexOf("/"+pe+"-")>-1&&(Ve=Q(Ve.replace(pe,""))),Ve&&Ve.indexOf(ve)!=-1&&!RegExp(ve+" OS").test(Ve)&&(Ve=Ve.replace(RegExp(" *"+V(ve)+" *"),"")),ie&&!/\b(?:Avant|Nook)\b/.test(ve)&&(/Browser|Lunascape|Maxthon/.test(ve)||ve!="Safari"&&/^iOS/.test(Ve)&&/\bSafari\b/.test(ie[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(ve)&&ie[1])&&(pe=ie[ie.length-1])&&z.push(pe),z.length&&(z=["("+z.join("; ")+")"]),ze&&Ne&&Ne.indexOf(ze)<0&&z.push("on "+ze),Ne&&z.push((/^on /.test(z[z.length-1])?"":"on ")+Ne),Ve&&(pe=/ ([\d.+]+)$/.exec(Ve),oe=pe&&Ve.charAt(Ve.length-pe[0].length-1)=="/",Ve={architecture:32,family:pe&&!oe?Ve.replace(pe[0],""):Ve,version:pe?pe[1]:null,toString:function(){var st=this.version;return this.family+(st&&!oe?" "+st:"")+(this.architecture==64?" 64-bit":"")}}),(pe=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(fe))&&!/\bi686\b/i.test(fe)?(Ve&&(Ve.architecture=64,Ve.family=Ve.family.replace(RegExp(" *"+pe),"")),ve&&(/\bWOW64\b/i.test(ae)||be&&/\w(?:86|32)$/.test(we.cpuClass||we.platform)&&!/\bWin64; x64\b/i.test(ae))&&z.unshift("32-bit")):Ve&&/^OS X/.test(Ve.family)&&ve=="Chrome"&&parseFloat(_e)>=39&&(Ve.architecture=64),ae||(ae=null);var jt={};return jt.description=ae,jt.layout=ie&&ie[0],jt.manufacturer=ze,jt.name=ve,jt.prerelease=J,jt.product=Ne,jt.ua=ae,jt.version=ve&&_e,jt.os=Ve||{architecture:null,family:null,version:null,toString:function(){return"null"}},jt.parse=ne,jt.toString=wt,jt.version&&z.unshift(_e),jt.name&&z.unshift(ve),Ve&&ve&&!(Ve==String(Ve).split(" ")[0]&&(Ve==ve.split(" ")[0]||Ne))&&z.push(Ne?"("+Ve+")":"on "+Ve),z.length&&(jt.description=z.join(" ")),jt}var ue=ne();typeof b=="function"&&typeof b.amd=="object"&&b.amd?(g.platform=ue,b(function(){return ue})):S&&v?F(ue,function(ae,he){S[he]=ae}):g.platform=ue}).call(this)}).call(this)}).call(this,typeof Z!="undefined"?Z:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],380:[function(s,E,I){(function(u){(function(){"use strict";typeof u=="undefined"||!u.version||u.version.indexOf("v0.")===0||u.version.indexOf("v1.")===0&&u.version.indexOf("v1.8.")!==0?E.exports={nextTick:d}:E.exports=u;function d(g,y,S,v){if(typeof g!="function")throw new TypeError('"callback" argument must be a function');var c=arguments.length,h,m;switch(c){case 0:case 1:return u.nextTick(g);case 2:return u.nextTick(function(){g.call(null,y)});case 3:return u.nextTick(function(){g.call(null,y,S)});case 4:return u.nextTick(function(){g.call(null,y,S,v)});default:for(h=new Array(c-1),m=0;m<h.length;)h[m++]=arguments[m];return u.nextTick(function(){g.apply(null,h)})}}}).call(this)}).call(this,s("_process"))},{_process:467}],381:[function(s,E,I){var u=E.exports={},d,g;function y(){throw new Error("setTimeout has not been defined")}function S(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?d=setTimeout:d=y}catch(L){d=y}try{typeof clearTimeout=="function"?g=clearTimeout:g=S}catch(L){g=S}})();function v(L){if(d===setTimeout)return setTimeout(L,0);if((d===y||!d)&&setTimeout)return d=setTimeout,setTimeout(L,0);try{return d(L,0)}catch(M){try{return d.call(null,L,0)}catch(F){return d.call(this,L,0)}}}function c(L){if(g===clearTimeout)return clearTimeout(L);if((g===S||!g)&&clearTimeout)return g=clearTimeout,clearTimeout(L);try{return g(L)}catch(M){try{return g.call(null,L)}catch(F){return g.call(this,L)}}}var h=[],m=!1,x,T=-1;function _(){!m||!x||(m=!1,x.length?h=x.concat(h):T=-1,h.length&&R())}function R(){if(!m){var L=v(_);m=!0;for(var M=h.length;M;){for(x=h,h=[];++T<M;)x&&x[T].run();T=-1,M=h.length}x=null,m=!1,c(L)}}u.nextTick=function(L){var M=new Array(arguments.length-1);if(arguments.length>1)for(var F=1;F<arguments.length;F++)M[F-1]=arguments[F];h.push(new A(L,M)),h.length===1&&!m&&v(R)};function A(L,M){this.fun=L,this.array=M}A.prototype.run=function(){this.fun.apply(null,this.array)},u.title="browser",u.browser=!0,u.env={},u.argv=[],u.version="",u.versions={};function N(){}u.on=N,u.addListener=N,u.once=N,u.off=N,u.removeListener=N,u.removeAllListeners=N,u.emit=N,u.prependListener=N,u.prependOnceListener=N,u.listeners=function(L){return[]},u.binding=function(L){throw new Error("process.binding is not supported")},u.cwd=function(){return"/"},u.chdir=function(L){throw new Error("process.chdir is not supported")},u.umask=function(){return 0}},{}],382:[function(s,E,I){(function(u){(function(){(function(d){var g=typeof I=="object"&&I&&!I.nodeType&&I,y=typeof E=="object"&&E&&!E.nodeType&&E,S=typeof u=="object"&&u;(S.global===S||S.window===S||S.self===S)&&(d=S);var v,c=2147483647,h=36,m=1,x=26,T=38,_=700,R=72,A=128,N="-",L=/^xn--/,M=/[^\x20-\x7E]/,F=/[\x2E\u3002\uFF0E\uFF61]/g,H={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},P=h-m,V=Math.floor,G=String.fromCharCode,Q;function ne(De){throw new RangeError(H[De])}function ue(De,Be){for(var He=De.length,Fe=[];He--;)Fe[He]=Be(De[He]);return Fe}function ae(De,Be){var He=De.split("@"),Fe="";He.length>1&&(Fe=He[0]+"@",De=He[1]),De=De.replace(F,".");var Je=De.split("."),Me=ue(Je,Be).join(".");return Fe+Me}function he(De){for(var Be=[],He=0,Fe=De.length,Je,Me;He<Fe;)Je=De.charCodeAt(He++),Je>=55296&&Je<=56319&&He<Fe?(Me=De.charCodeAt(He++),(Me&64512)==56320?Be.push(((Je&1023)<<10)+(Me&1023)+65536):(Be.push(Je),He--)):Be.push(Je);return Be}function ce(De){return ue(De,function(Be){var He="";return Be>65535&&(Be-=65536,He+=G(Be>>>10&1023|55296),Be=56320|Be&1023),He+=G(Be),He}).join("")}function we(De){return De-48<10?De-22:De-65<26?De-65:De-97<26?De-97:h}function me(De,Be){return De+22+75*(De<26)-((Be!=0)<<5)}function Le(De,Be,He){var Fe=0;for(De=He?V(De/_):De>>1,De+=V(De/Be);De>P*x>>1;Fe+=h)De=V(De/P);return V(Fe+(P+1)*De/(De+T))}function ee(De){var Be=[],He=De.length,Fe,Je=0,Me=A,lt=R,Re,Oe,pe,fe,z,J,be,_e,oe;for(Re=De.lastIndexOf(N),Re<0&&(Re=0),Oe=0;Oe<Re;++Oe)De.charCodeAt(Oe)>=128&&ne("not-basic"),Be.push(De.charCodeAt(Oe));for(pe=Re>0?Re+1:0;pe<He;){for(fe=Je,z=1,J=h;pe>=He&&ne("invalid-input"),be=we(De.charCodeAt(pe++)),(be>=h||be>V((c-Je)/z))&&ne("overflow"),Je+=be*z,_e=J<=lt?m:J>=lt+x?x:J-lt,!(be<_e);J+=h)oe=h-_e,z>V(c/oe)&&ne("overflow"),z*=oe;Fe=Be.length+1,lt=Le(Je-fe,Fe,fe==0),V(Je/Fe)>c-Me&&ne("overflow"),Me+=V(Je/Fe),Je%=Fe,Be.splice(Je++,0,Me)}return ce(Be)}function se(De){var Be,He,Fe,Je,Me,lt,Re,Oe,pe,fe,z,J=[],be,_e,oe,ie;for(De=he(De),be=De.length,Be=A,He=0,Me=R,lt=0;lt<be;++lt)z=De[lt],z<128&&J.push(G(z));for(Fe=Je=J.length,Je&&J.push(N);Fe<be;){for(Re=c,lt=0;lt<be;++lt)z=De[lt],z>=Be&&z<Re&&(Re=z);for(_e=Fe+1,Re-Be>V((c-He)/_e)&&ne("overflow"),He+=(Re-Be)*_e,Be=Re,lt=0;lt<be;++lt)if(z=De[lt],z<Be&&++He>c&&ne("overflow"),z==Be){for(Oe=He,pe=h;fe=pe<=Me?m:pe>=Me+x?x:pe-Me,!(Oe<fe);pe+=h)ie=Oe-fe,oe=h-fe,J.push(G(me(fe+ie%oe,0))),Oe=V(ie/oe);J.push(G(me(Oe,0))),Me=Le(He,_e,Fe==Je),He=0,++Fe}++He,++Be}return J.join("")}function le(De){return ae(De,function(Be){return L.test(Be)?ee(Be.slice(4).toLowerCase()):Be})}function ke(De){return ae(De,function(Be){return M.test(Be)?"xn--"+se(Be):Be})}if(v={version:"1.4.1",ucs2:{decode:he,encode:ce},decode:ee,encode:se,toASCII:ke,toUnicode:le},typeof b=="function"&&typeof b.amd=="object"&&b.amd)b("punycode",function(){return v});else if(g&&y)if(E.exports==g)y.exports=v;else for(Q in v)v.hasOwnProperty(Q)&&(g[Q]=v[Q]);else d.punycode=v})(this)}).call(this)}).call(this,typeof Z!="undefined"?Z:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],383:[function(s,E,I){"use strict";function u(g,y){return Object.prototype.hasOwnProperty.call(g,y)}E.exports=function(g,y,S,v){y=y||"&",S=S||"=";var c={};if(typeof g!="string"||g.length===0)return c;var h=/\+/g;g=g.split(y);var m=1e3;v&&typeof v.maxKeys=="number"&&(m=v.maxKeys);var x=g.length;m>0&&x>m&&(x=m);for(var T=0;T<x;++T){var _=g[T].replace(h,"%20"),R=_.indexOf(S),A,N,L,M;R>=0?(A=_.substr(0,R),N=_.substr(R+1)):(A=_,N=""),L=decodeURIComponent(A),M=decodeURIComponent(N),u(c,L)?d(c[L])?c[L].push(M):c[L]=[c[L],M]:c[L]=M}return c};var d=Array.isArray||function(g){return Object.prototype.toString.call(g)==="[object Array]"}},{}],384:[function(s,E,I){"use strict";var u=function(S){switch(typeof S){case"string":return S;case"boolean":return S?"true":"false";case"number":return isFinite(S)?S:"";default:return""}};E.exports=function(S,v,c,h){return v=v||"&",c=c||"=",S===null&&(S=void 0),typeof S=="object"?g(y(S),function(m){var x=encodeURIComponent(u(m))+c;return d(S[m])?g(S[m],function(T){return x+encodeURIComponent(u(T))}).join(v):x+encodeURIComponent(u(S[m]))}).join(v):h?encodeURIComponent(u(h))+c+encodeURIComponent(u(S)):""};var d=Array.isArray||function(S){return Object.prototype.toString.call(S)==="[object Array]"};function g(S,v){if(S.map)return S.map(v);for(var c=[],h=0;h<S.length;h++)c.push(v(S[h],h));return c}var y=Object.keys||function(S){var v=[];for(var c in S)Object.prototype.hasOwnProperty.call(S,c)&&v.push(c);return v}},{}],385:[function(s,E,I){"use strict";I.decode=I.parse=s("./decode"),I.encode=I.stringify=s("./encode")},{"./decode":383,"./encode":384}],386:[function(s,E,I){"use strict";var u=s("process-nextick-args"),d=Object.keys||function(_){var R=[];for(var A in _)R.push(A);return R};E.exports=m;var g=Object.create(s("core-util-is"));g.inherits=s("inherits");var y=s("./_stream_readable"),S=s("./_stream_writable");g.inherits(m,y);for(var v=d(S.prototype),c=0;c<v.length;c++){var h=v[c];m.prototype[h]||(m.prototype[h]=S.prototype[h])}function m(_){if(!(this instanceof m))return new m(_);y.call(this,_),S.call(this,_),_&&_.readable===!1&&(this.readable=!1),_&&_.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,_&&_.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",x)}Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function x(){this.allowHalfOpen||this._writableState.ended||u.nextTick(T,this)}function T(_){_.end()}Object.defineProperty(m.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(_){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=_,this._writableState.destroyed=_)}}),m.prototype._destroy=function(_,R){this.push(null),this.end(),u.nextTick(R,_)}},{"./_stream_readable":388,"./_stream_writable":390,"core-util-is":341,inherits:364,"process-nextick-args":380}],387:[function(s,E,I){"use strict";E.exports=g;var u=s("./_stream_transform"),d=Object.create(s("core-util-is"));d.inherits=s("inherits"),d.inherits(g,u);function g(y){if(!(this instanceof g))return new g(y);u.call(this,y)}g.prototype._transform=function(y,S,v){v(null,y)}},{"./_stream_transform":389,"core-util-is":341,inherits:364}],388:[function(s,E,I){(function(u,d){(function(){"use strict";var g=s("process-nextick-args");E.exports=G;var y=s("isarray"),S;G.ReadableState=V;var v=s("events").EventEmitter,c=function(z,J){return z.listeners(J).length},h=s("./internal/streams/stream"),m=s("safe-buffer").Buffer,x=d.Uint8Array||function(){};function T(z){return m.from(z)}function _(z){return m.isBuffer(z)||z instanceof x}var R=Object.create(s("core-util-is"));R.inherits=s("inherits");var A=s("util"),N=void 0;A&&A.debuglog?N=A.debuglog("stream"):N=function(){};var L=s("./internal/streams/BufferList"),M=s("./internal/streams/destroy"),F;R.inherits(G,h);var H=["error","close","destroy","pause","resume"];function P(z,J,be){if(typeof z.prependListener=="function")return z.prependListener(J,be);!z._events||!z._events[J]?z.on(J,be):y(z._events[J])?z._events[J].unshift(be):z._events[J]=[be,z._events[J]]}function V(z,J){S=S||s("./_stream_duplex"),z=z||{};var be=J instanceof S;this.objectMode=!!z.objectMode,be&&(this.objectMode=this.objectMode||!!z.readableObjectMode);var _e=z.highWaterMark,oe=z.readableHighWaterMark,ie=this.objectMode?16:16*1024;_e||_e===0?this.highWaterMark=_e:be&&(oe||oe===0)?this.highWaterMark=oe:this.highWaterMark=ie,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new L,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=z.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,z.encoding&&(F||(F=s("string_decoder/").StringDecoder),this.decoder=new F(z.encoding),this.encoding=z.encoding)}function G(z){if(S=S||s("./_stream_duplex"),!(this instanceof G))return new G(z);this._readableState=new V(z,this),this.readable=!0,z&&(typeof z.read=="function"&&(this._read=z.read),typeof z.destroy=="function"&&(this._destroy=z.destroy)),h.call(this)}Object.defineProperty(G.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(z){this._readableState&&(this._readableState.destroyed=z)}}),G.prototype.destroy=M.destroy,G.prototype._undestroy=M.undestroy,G.prototype._destroy=function(z,J){this.push(null),J(z)},G.prototype.push=function(z,J){var be=this._readableState,_e;return be.objectMode?_e=!0:typeof z=="string"&&(J=J||be.defaultEncoding,J!==be.encoding&&(z=m.from(z,J),J=""),_e=!0),Q(this,z,J,!1,_e)},G.prototype.unshift=function(z){return Q(this,z,null,!0,!1)};function Q(z,J,be,_e,oe){var ie=z._readableState;if(J===null)ie.reading=!1,me(z,ie);else{var ve;oe||(ve=ue(ie,J)),ve?z.emit("error",ve):ie.objectMode||J&&J.length>0?(typeof J!="string"&&!ie.objectMode&&Object.getPrototypeOf(J)!==m.prototype&&(J=T(J)),_e?ie.endEmitted?z.emit("error",new Error("stream.unshift() after end event")):ne(z,ie,J,!0):ie.ended?z.emit("error",new Error("stream.push() after EOF")):(ie.reading=!1,ie.decoder&&!be?(J=ie.decoder.write(J),ie.objectMode||J.length!==0?ne(z,ie,J,!1):se(z,ie)):ne(z,ie,J,!1))):_e||(ie.reading=!1)}return ae(ie)}function ne(z,J,be,_e){J.flowing&&J.length===0&&!J.sync?(z.emit("data",be),z.read(0)):(J.length+=J.objectMode?1:be.length,_e?J.buffer.unshift(be):J.buffer.push(be),J.needReadable&&Le(z)),se(z,J)}function ue(z,J){var be;return!_(J)&&typeof J!="string"&&J!==void 0&&!z.objectMode&&(be=new TypeError("Invalid non-string/buffer chunk")),be}function ae(z){return!z.ended&&(z.needReadable||z.length<z.highWaterMark||z.length===0)}G.prototype.isPaused=function(){return this._readableState.flowing===!1},G.prototype.setEncoding=function(z){return F||(F=s("string_decoder/").StringDecoder),this._readableState.decoder=new F(z),this._readableState.encoding=z,this};var he=8388608;function ce(z){return z>=he?z=he:(z--,z|=z>>>1,z|=z>>>2,z|=z>>>4,z|=z>>>8,z|=z>>>16,z++),z}function we(z,J){return z<=0||J.length===0&&J.ended?0:J.objectMode?1:z!==z?J.flowing&&J.length?J.buffer.head.data.length:J.length:(z>J.highWaterMark&&(J.highWaterMark=ce(z)),z<=J.length?z:J.ended?J.length:(J.needReadable=!0,0))}G.prototype.read=function(z){N("read",z),z=parseInt(z,10);var J=this._readableState,be=z;if(z!==0&&(J.emittedReadable=!1),z===0&&J.needReadable&&(J.length>=J.highWaterMark||J.ended))return N("read: emitReadable",J.length,J.ended),J.length===0&&J.ended?Oe(this):Le(this),null;if(z=we(z,J),z===0&&J.ended)return J.length===0&&Oe(this),null;var _e=J.needReadable;N("need readable",_e),(J.length===0||J.length-z<J.highWaterMark)&&(_e=!0,N("length less than watermark",_e)),J.ended||J.reading?(_e=!1,N("reading or ended",_e)):_e&&(N("do read"),J.reading=!0,J.sync=!0,J.length===0&&(J.needReadable=!0),this._read(J.highWaterMark),J.sync=!1,J.reading||(z=we(be,J)));var oe;return z>0?oe=Je(z,J):oe=null,oe===null?(J.needReadable=!0,z=0):J.length-=z,J.length===0&&(J.ended||(J.needReadable=!0),be!==z&&J.ended&&Oe(this)),oe!==null&&this.emit("data",oe),oe};function me(z,J){if(!J.ended){if(J.decoder){var be=J.decoder.end();be&&be.length&&(J.buffer.push(be),J.length+=J.objectMode?1:be.length)}J.ended=!0,Le(z)}}function Le(z){var J=z._readableState;J.needReadable=!1,J.emittedReadable||(N("emitReadable",J.flowing),J.emittedReadable=!0,J.sync?g.nextTick(ee,z):ee(z))}function ee(z){N("emit readable"),z.emit("readable"),Fe(z)}function se(z,J){J.readingMore||(J.readingMore=!0,g.nextTick(le,z,J))}function le(z,J){for(var be=J.length;!J.reading&&!J.flowing&&!J.ended&&J.length<J.highWaterMark&&(N("maybeReadMore read 0"),z.read(0),be!==J.length);)be=J.length;J.readingMore=!1}G.prototype._read=function(z){this.emit("error",new Error("_read() is not implemented"))},G.prototype.pipe=function(z,J){var be=this,_e=this._readableState;switch(_e.pipesCount){case 0:_e.pipes=z;break;case 1:_e.pipes=[_e.pipes,z];break;default:_e.pipes.push(z);break}_e.pipesCount+=1,N("pipe count=%d opts=%j",_e.pipesCount,J);var oe=(!J||J.end!==!1)&&z!==u.stdout&&z!==u.stderr,ie=oe?Ne:wt;_e.endEmitted?g.nextTick(ie):be.once("end",ie),z.on("unpipe",ve);function ve(jt,st){N("onunpipe"),jt===be&&st&&st.hasUnpiped===!1&&(st.hasUnpiped=!0,yt())}function Ne(){N("onend"),z.end()}var ze=ke(be);z.on("drain",ze);var Ve=!1;function yt(){N("cleanup"),z.removeListener("close",At),z.removeListener("finish",ht),z.removeListener("drain",ze),z.removeListener("error",_t),z.removeListener("unpipe",ve),be.removeListener("end",Ne),be.removeListener("end",wt),be.removeListener("data",St),Ve=!0,_e.awaitDrain&&(!z._writableState||z._writableState.needDrain)&&ze()}var ct=!1;be.on("data",St);function St(jt){N("ondata"),ct=!1;var st=z.write(jt);st===!1&&!ct&&((_e.pipesCount===1&&_e.pipes===z||_e.pipesCount>1&&fe(_e.pipes,z)!==-1)&&!Ve&&(N("false write response, pause",be._readableState.awaitDrain),be._readableState.awaitDrain++,ct=!0),be.pause())}function _t(jt){N("onerror",jt),wt(),z.removeListener("error",_t),c(z,"error")===0&&z.emit("error",jt)}P(z,"error",_t);function At(){z.removeListener("finish",ht),wt()}z.once("close",At);function ht(){N("onfinish"),z.removeListener("close",At),wt()}z.once("finish",ht);function wt(){N("unpipe"),be.unpipe(z)}return z.emit("pipe",be),_e.flowing||(N("pipe resume"),be.resume()),z};function ke(z){return function(){var J=z._readableState;N("pipeOnDrain",J.awaitDrain),J.awaitDrain&&J.awaitDrain--,J.awaitDrain===0&&c(z,"data")&&(J.flowing=!0,Fe(z))}}G.prototype.unpipe=function(z){var J=this._readableState,be={hasUnpiped:!1};if(J.pipesCount===0)return this;if(J.pipesCount===1)return z&&z!==J.pipes?this:(z||(z=J.pipes),J.pipes=null,J.pipesCount=0,J.flowing=!1,z&&z.emit("unpipe",this,be),this);if(!z){var _e=J.pipes,oe=J.pipesCount;J.pipes=null,J.pipesCount=0,J.flowing=!1;for(var ie=0;ie<oe;ie++)_e[ie].emit("unpipe",this,be);return this}var ve=fe(J.pipes,z);return ve===-1?this:(J.pipes.splice(ve,1),J.pipesCount-=1,J.pipesCount===1&&(J.pipes=J.pipes[0]),z.emit("unpipe",this,be),this)},G.prototype.on=function(z,J){var be=h.prototype.on.call(this,z,J);if(z==="data")this._readableState.flowing!==!1&&this.resume();else if(z==="readable"){var _e=this._readableState;!_e.endEmitted&&!_e.readableListening&&(_e.readableListening=_e.needReadable=!0,_e.emittedReadable=!1,_e.reading?_e.length&&Le(this):g.nextTick(De,this))}return be},G.prototype.addListener=G.prototype.on;function De(z){N("readable nexttick read 0"),z.read(0)}G.prototype.resume=function(){var z=this._readableState;return z.flowing||(N("resume"),z.flowing=!0,Be(this,z)),this};function Be(z,J){J.resumeScheduled||(J.resumeScheduled=!0,g.nextTick(He,z,J))}function He(z,J){J.reading||(N("resume read 0"),z.read(0)),J.resumeScheduled=!1,J.awaitDrain=0,z.emit("resume"),Fe(z),J.flowing&&!J.reading&&z.read(0)}G.prototype.pause=function(){return N("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(N("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Fe(z){var J=z._readableState;for(N("flow",J.flowing);J.flowing&&z.read()!==null;);}G.prototype.wrap=function(z){var J=this,be=this._readableState,_e=!1;z.on("end",function(){if(N("wrapped end"),be.decoder&&!be.ended){var ve=be.decoder.end();ve&&ve.length&&J.push(ve)}J.push(null)}),z.on("data",function(ve){if(N("wrapped data"),be.decoder&&(ve=be.decoder.write(ve)),!(be.objectMode&&ve==null)&&!(!be.objectMode&&(!ve||!ve.length))){var Ne=J.push(ve);Ne||(_e=!0,z.pause())}});for(var oe in z)this[oe]===void 0&&typeof z[oe]=="function"&&(this[oe]=function(ve){return function(){return z[ve].apply(z,arguments)}}(oe));for(var ie=0;ie<H.length;ie++)z.on(H[ie],this.emit.bind(this,H[ie]));return this._read=function(ve){N("wrapped _read",ve),_e&&(_e=!1,z.resume())},this},Object.defineProperty(G.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),G._fromList=Je;function Je(z,J){if(J.length===0)return null;var be;return J.objectMode?be=J.buffer.shift():!z||z>=J.length?(J.decoder?be=J.buffer.join(""):J.buffer.length===1?be=J.buffer.head.data:be=J.buffer.concat(J.length),J.buffer.clear()):be=Me(z,J.buffer,J.decoder),be}function Me(z,J,be){var _e;return z<J.head.data.length?(_e=J.head.data.slice(0,z),J.head.data=J.head.data.slice(z)):z===J.head.data.length?_e=J.shift():_e=be?lt(z,J):Re(z,J),_e}function lt(z,J){var be=J.head,_e=1,oe=be.data;for(z-=oe.length;be=be.next;){var ie=be.data,ve=z>ie.length?ie.length:z;if(ve===ie.length?oe+=ie:oe+=ie.slice(0,z),z-=ve,z===0){ve===ie.length?(++_e,be.next?J.head=be.next:J.head=J.tail=null):(J.head=be,be.data=ie.slice(ve));break}++_e}return J.length-=_e,oe}function Re(z,J){var be=m.allocUnsafe(z),_e=J.head,oe=1;for(_e.data.copy(be),z-=_e.data.length;_e=_e.next;){var ie=_e.data,ve=z>ie.length?ie.length:z;if(ie.copy(be,be.length-z,0,ve),z-=ve,z===0){ve===ie.length?(++oe,_e.next?J.head=_e.next:J.head=J.tail=null):(J.head=_e,_e.data=ie.slice(ve));break}++oe}return J.length-=oe,be}function Oe(z){var J=z._readableState;if(J.length>0)throw new Error('"endReadable()" called on non-empty stream');J.endEmitted||(J.ended=!0,g.nextTick(pe,J,z))}function pe(z,J){!z.endEmitted&&z.length===0&&(z.endEmitted=!0,J.readable=!1,J.emit("end"))}function fe(z,J){for(var be=0,_e=z.length;be<_e;be++)if(z[be]===J)return be;return-1}}).call(this)}).call(this,s("_process"),typeof Z!="undefined"?Z:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":386,"./internal/streams/BufferList":391,"./internal/streams/destroy":392,"./internal/streams/stream":393,_process:467,"core-util-is":341,events:344,inherits:364,isarray:370,"process-nextick-args":380,"safe-buffer":396,"string_decoder/":413,util:89}],389:[function(s,E,I){"use strict";E.exports=y;var u=s("./_stream_duplex"),d=Object.create(s("core-util-is"));d.inherits=s("inherits"),d.inherits(y,u);function g(c,h){var m=this._transformState;m.transforming=!1;var x=m.writecb;if(!x)return this.emit("error",new Error("write callback called multiple times"));m.writechunk=null,m.writecb=null,h!=null&&this.push(h),x(c);var T=this._readableState;T.reading=!1,(T.needReadable||T.length<T.highWaterMark)&&this._read(T.highWaterMark)}function y(c){if(!(this instanceof y))return new y(c);u.call(this,c),this._transformState={afterTransform:g.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,c&&(typeof c.transform=="function"&&(this._transform=c.transform),typeof c.flush=="function"&&(this._flush=c.flush)),this.on("prefinish",S)}function S(){var c=this;typeof this._flush=="function"?this._flush(function(h,m){v(c,h,m)}):v(this,null,null)}y.prototype.push=function(c,h){return this._transformState.needTransform=!1,u.prototype.push.call(this,c,h)},y.prototype._transform=function(c,h,m){throw new Error("_transform() is not implemented")},y.prototype._write=function(c,h,m){var x=this._transformState;if(x.writecb=m,x.writechunk=c,x.writeencoding=h,!x.transforming){var T=this._readableState;(x.needTransform||T.needReadable||T.length<T.highWaterMark)&&this._read(T.highWaterMark)}},y.prototype._read=function(c){var h=this._transformState;h.writechunk!==null&&h.writecb&&!h.transforming?(h.transforming=!0,this._transform(h.writechunk,h.writeencoding,h.afterTransform)):h.needTransform=!0},y.prototype._destroy=function(c,h){var m=this;u.prototype._destroy.call(this,c,function(x){h(x),m.emit("close")})};function v(c,h,m){if(h)return c.emit("error",h);if(m!=null&&c.push(m),c._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(c._transformState.transforming)throw new Error("Calling transform done when still transforming");return c.push(null)}},{"./_stream_duplex":386,"core-util-is":341,inherits:364}],390:[function(s,E,I){(function(u,d,g){(function(){"use strict";var y=s("process-nextick-args");E.exports=P;function S(He,Fe,Je){this.chunk=He,this.encoding=Fe,this.callback=Je,this.next=null}function v(He){var Fe=this;this.next=null,this.entry=null,this.finish=function(){Be(Fe,He)}}var c=!u.browser&&["v0.10","v0.9."].indexOf(u.version.slice(0,5))>-1?g:y.nextTick,h;P.WritableState=F;var m=Object.create(s("core-util-is"));m.inherits=s("inherits");var x={deprecate:s("util-deprecate")},T=s("./internal/streams/stream"),_=s("safe-buffer").Buffer,R=d.Uint8Array||function(){};function A(He){return _.from(He)}function N(He){return _.isBuffer(He)||He instanceof R}var L=s("./internal/streams/destroy");m.inherits(P,T);function M(){}function F(He,Fe){h=h||s("./_stream_duplex"),He=He||{};var Je=Fe instanceof h;this.objectMode=!!He.objectMode,Je&&(this.objectMode=this.objectMode||!!He.writableObjectMode);var Me=He.highWaterMark,lt=He.writableHighWaterMark,Re=this.objectMode?16:16*1024;Me||Me===0?this.highWaterMark=Me:Je&&(lt||lt===0)?this.highWaterMark=lt:this.highWaterMark=Re,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 Oe=He.decodeStrings===!1;this.decodeStrings=!Oe,this.defaultEncoding=He.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(pe){ce(Fe,pe)},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 v(this)}F.prototype.getBuffer=function(){for(var Fe=this.bufferedRequest,Je=[];Fe;)Je.push(Fe),Fe=Fe.next;return Je},function(){try{Object.defineProperty(F.prototype,"buffer",{get:x.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(He){}}();var H;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(H=Function.prototype[Symbol.hasInstance],Object.defineProperty(P,Symbol.hasInstance,{value:function(He){return H.call(this,He)?!0:this!==P?!1:He&&He._writableState instanceof F}})):H=function(He){return He instanceof this};function P(He){if(h=h||s("./_stream_duplex"),!H.call(P,this)&&!(this instanceof h))return new P(He);this._writableState=new F(He,this),this.writable=!0,He&&(typeof He.write=="function"&&(this._write=He.write),typeof He.writev=="function"&&(this._writev=He.writev),typeof He.destroy=="function"&&(this._destroy=He.destroy),typeof He.final=="function"&&(this._final=He.final)),T.call(this)}P.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function V(He,Fe){var Je=new Error("write after end");He.emit("error",Je),y.nextTick(Fe,Je)}function G(He,Fe,Je,Me){var lt=!0,Re=!1;return Je===null?Re=new TypeError("May not write null values to stream"):typeof Je!="string"&&Je!==void 0&&!Fe.objectMode&&(Re=new TypeError("Invalid non-string/buffer chunk")),Re&&(He.emit("error",Re),y.nextTick(Me,Re),lt=!1),lt}P.prototype.write=function(He,Fe,Je){var Me=this._writableState,lt=!1,Re=!Me.objectMode&&N(He);return Re&&!_.isBuffer(He)&&(He=A(He)),typeof Fe=="function"&&(Je=Fe,Fe=null),Re?Fe="buffer":Fe||(Fe=Me.defaultEncoding),typeof Je!="function"&&(Je=M),Me.ended?V(this,Je):(Re||G(this,Me,He,Je))&&(Me.pendingcb++,lt=ne(this,Me,Re,He,Fe,Je)),lt},P.prototype.cork=function(){var He=this._writableState;He.corked++},P.prototype.uncork=function(){var He=this._writableState;He.corked&&(He.corked--,!He.writing&&!He.corked&&!He.finished&&!He.bufferProcessing&&He.bufferedRequest&&Le(this,He))},P.prototype.setDefaultEncoding=function(Fe){if(typeof Fe=="string"&&(Fe=Fe.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Fe+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+Fe);return this._writableState.defaultEncoding=Fe,this};function Q(He,Fe,Je){return!He.objectMode&&He.decodeStrings!==!1&&typeof Fe=="string"&&(Fe=_.from(Fe,Je)),Fe}Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function ne(He,Fe,Je,Me,lt,Re){if(!Je){var Oe=Q(Fe,Me,lt);Me!==Oe&&(Je=!0,lt="buffer",Me=Oe)}var pe=Fe.objectMode?1:Me.length;Fe.length+=pe;var fe=Fe.length<Fe.highWaterMark;if(fe||(Fe.needDrain=!0),Fe.writing||Fe.corked){var z=Fe.lastBufferedRequest;Fe.lastBufferedRequest={chunk:Me,encoding:lt,isBuf:Je,callback:Re,next:null},z?z.next=Fe.lastBufferedRequest:Fe.bufferedRequest=Fe.lastBufferedRequest,Fe.bufferedRequestCount+=1}else ue(He,Fe,!1,pe,Me,lt,Re);return fe}function ue(He,Fe,Je,Me,lt,Re,Oe){Fe.writelen=Me,Fe.writecb=Oe,Fe.writing=!0,Fe.sync=!0,Je?He._writev(lt,Fe.onwrite):He._write(lt,Re,Fe.onwrite),Fe.sync=!1}function ae(He,Fe,Je,Me,lt){--Fe.pendingcb,Je?(y.nextTick(lt,Me),y.nextTick(ke,He,Fe),He._writableState.errorEmitted=!0,He.emit("error",Me)):(lt(Me),He._writableState.errorEmitted=!0,He.emit("error",Me),ke(He,Fe))}function he(He){He.writing=!1,He.writecb=null,He.length-=He.writelen,He.writelen=0}function ce(He,Fe){var Je=He._writableState,Me=Je.sync,lt=Je.writecb;if(he(Je),Fe)ae(He,Je,Me,Fe,lt);else{var Re=ee(Je);!Re&&!Je.corked&&!Je.bufferProcessing&&Je.bufferedRequest&&Le(He,Je),Me?c(we,He,Je,Re,lt):we(He,Je,Re,lt)}}function we(He,Fe,Je,Me){Je||me(He,Fe),Fe.pendingcb--,Me(),ke(He,Fe)}function me(He,Fe){Fe.length===0&&Fe.needDrain&&(Fe.needDrain=!1,He.emit("drain"))}function Le(He,Fe){Fe.bufferProcessing=!0;var Je=Fe.bufferedRequest;if(He._writev&&Je&&Je.next){var Me=Fe.bufferedRequestCount,lt=new Array(Me),Re=Fe.corkedRequestsFree;Re.entry=Je;for(var Oe=0,pe=!0;Je;)lt[Oe]=Je,Je.isBuf||(pe=!1),Je=Je.next,Oe+=1;lt.allBuffers=pe,ue(He,Fe,!0,Fe.length,lt,"",Re.finish),Fe.pendingcb++,Fe.lastBufferedRequest=null,Re.next?(Fe.corkedRequestsFree=Re.next,Re.next=null):Fe.corkedRequestsFree=new v(Fe),Fe.bufferedRequestCount=0}else{for(;Je;){var fe=Je.chunk,z=Je.encoding,J=Je.callback,be=Fe.objectMode?1:fe.length;if(ue(He,Fe,!1,be,fe,z,J),Je=Je.next,Fe.bufferedRequestCount--,Fe.writing)break}Je===null&&(Fe.lastBufferedRequest=null)}Fe.bufferedRequest=Je,Fe.bufferProcessing=!1}P.prototype._write=function(He,Fe,Je){Je(new Error("_write() is not implemented"))},P.prototype._writev=null,P.prototype.end=function(He,Fe,Je){var Me=this._writableState;typeof He=="function"?(Je=He,He=null,Fe=null):typeof Fe=="function"&&(Je=Fe,Fe=null),He!=null&&this.write(He,Fe),Me.corked&&(Me.corked=1,this.uncork()),!Me.ending&&!Me.finished&&De(this,Me,Je)};function ee(He){return He.ending&&He.length===0&&He.bufferedRequest===null&&!He.finished&&!He.writing}function se(He,Fe){He._final(function(Je){Fe.pendingcb--,Je&&He.emit("error",Je),Fe.prefinished=!0,He.emit("prefinish"),ke(He,Fe)})}function le(He,Fe){!Fe.prefinished&&!Fe.finalCalled&&(typeof He._final=="function"?(Fe.pendingcb++,Fe.finalCalled=!0,y.nextTick(se,He,Fe)):(Fe.prefinished=!0,He.emit("prefinish")))}function ke(He,Fe){var Je=ee(Fe);return Je&&(le(He,Fe),Fe.pendingcb===0&&(Fe.finished=!0,He.emit("finish"))),Je}function De(He,Fe,Je){Fe.ending=!0,ke(He,Fe),Je&&(Fe.finished?y.nextTick(Je):He.once("finish",Je)),Fe.ended=!0,He.writable=!1}function Be(He,Fe,Je){var Me=He.entry;for(He.entry=null;Me;){var lt=Me.callback;Fe.pendingcb--,lt(Je),Me=Me.next}Fe.corkedRequestsFree?Fe.corkedRequestsFree.next=He:Fe.corkedRequestsFree=He}Object.defineProperty(P.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(He){this._writableState&&(this._writableState.destroyed=He)}}),P.prototype.destroy=L.destroy,P.prototype._undestroy=L.undestroy,P.prototype._destroy=function(He,Fe){this.end(),Fe(He)}}).call(this)}).call(this,s("_process"),typeof Z!="undefined"?Z:typeof self!="undefined"?self:typeof window!="undefined"?window:{},s("timers").setImmediate)},{"./_stream_duplex":386,"./internal/streams/destroy":392,"./internal/streams/stream":393,_process:467,"core-util-is":341,inherits:364,"process-nextick-args":380,"safe-buffer":396,timers:414,"util-deprecate":416}],391:[function(s,E,I){"use strict";function u(S,v){if(!(S instanceof v))throw new TypeError("Cannot call a class as a function")}var d=s("safe-buffer").Buffer,g=s("util");function y(S,v,c){S.copy(v,c)}E.exports=function(){function S(){u(this,S),this.head=null,this.tail=null,this.length=0}return S.prototype.push=function(c){var h={data:c,next:null};this.length>0?this.tail.next=h:this.head=h,this.tail=h,++this.length},S.prototype.unshift=function(c){var h={data:c,next:this.head};this.length===0&&(this.tail=h),this.head=h,++this.length},S.prototype.shift=function(){if(this.length!==0){var c=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,c}},S.prototype.clear=function(){this.head=this.tail=null,this.length=0},S.prototype.join=function(c){if(this.length===0)return"";for(var h=this.head,m=""+h.data;h=h.next;)m+=c+h.data;return m},S.prototype.concat=function(c){if(this.length===0)return d.alloc(0);if(this.length===1)return this.head.data;for(var h=d.allocUnsafe(c>>>0),m=this.head,x=0;m;)y(m.data,h,x),x+=m.data.length,m=m.next;return h},S}(),g&&g.inspect&&g.inspect.custom&&(E.exports.prototype[g.inspect.custom]=function(){var S=g.inspect({length:this.length});return this.constructor.name+" "+S})},{"safe-buffer":396,util:89}],392:[function(s,E,I){"use strict";var u=s("process-nextick-args");function d(S,v){var c=this,h=this._readableState&&this._readableState.destroyed,m=this._writableState&&this._writableState.destroyed;return h||m?(v?v(S):S&&(!this._writableState||!this._writableState.errorEmitted)&&u.nextTick(y,this,S),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(S||null,function(x){!v&&x?(u.nextTick(y,c,x),c._writableState&&(c._writableState.errorEmitted=!0)):v&&v(x)}),this)}function g(){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 y(S,v){S.emit("error",v)}E.exports={destroy:d,undestroy:g}},{"process-nextick-args":380}],393:[function(s,E,I){E.exports=s("events").EventEmitter},{events:344}],394:[function(s,E,I){I=E.exports=s("./lib/_stream_readable.js"),I.Stream=I,I.Readable=I,I.Writable=s("./lib/_stream_writable.js"),I.Duplex=s("./lib/_stream_duplex.js"),I.Transform=s("./lib/_stream_transform.js"),I.PassThrough=s("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":386,"./lib/_stream_passthrough.js":387,"./lib/_stream_readable.js":388,"./lib/_stream_transform.js":389,"./lib/_stream_writable.js":390}],395:[function(s,E,I){var u=function(d){"use strict";var g=Object.prototype,y=g.hasOwnProperty,S,v=typeof Symbol=="function"?Symbol:{},c=v.iterator||"@@iterator",h=v.asyncIterator||"@@asyncIterator",m=v.toStringTag||"@@toStringTag";function x(le,ke,De){return Object.defineProperty(le,ke,{value:De,enumerable:!0,configurable:!0,writable:!0}),le[ke]}try{x({},"")}catch(le){x=function(ke,De,Be){return ke[De]=Be}}function T(le,ke,De,Be){var He=ke&&ke.prototype instanceof F?ke:F,Fe=Object.create(He.prototype),Je=new Le(Be||[]);return Fe._invoke=he(le,De,Je),Fe}d.wrap=T;function _(le,ke,De){try{return{type:"normal",arg:le.call(ke,De)}}catch(Be){return{type:"throw",arg:Be}}}var R="suspendedStart",A="suspendedYield",N="executing",L="completed",M={};function F(){}function H(){}function P(){}var V={};x(V,c,function(){return this});var G=Object.getPrototypeOf,Q=G&&G(G(ee([])));Q&&Q!==g&&y.call(Q,c)&&(V=Q);var ne=P.prototype=F.prototype=Object.create(V);H.prototype=P,x(ne,"constructor",P),x(P,"constructor",H),H.displayName=x(P,m,"GeneratorFunction");function ue(le){["next","throw","return"].forEach(function(ke){x(le,ke,function(De){return this._invoke(ke,De)})})}d.isGeneratorFunction=function(le){var ke=typeof le=="function"&&le.constructor;return ke?ke===H||(ke.displayName||ke.name)==="GeneratorFunction":!1},d.mark=function(le){return Object.setPrototypeOf?Object.setPrototypeOf(le,P):(le.__proto__=P,x(le,m,"GeneratorFunction")),le.prototype=Object.create(ne),le},d.awrap=function(le){return{__await:le}};function ae(le,ke){function De(Fe,Je,Me,lt){var Re=_(le[Fe],le,Je);if(Re.type==="throw")lt(Re.arg);else{var Oe=Re.arg,pe=Oe.value;return pe&&typeof pe=="object"&&y.call(pe,"__await")?ke.resolve(pe.__await).then(function(fe){De("next",fe,Me,lt)},function(fe){De("throw",fe,Me,lt)}):ke.resolve(pe).then(function(fe){Oe.value=fe,Me(Oe)},function(fe){return De("throw",fe,Me,lt)})}}var Be;function He(Fe,Je){function Me(){return new ke(function(lt,Re){De(Fe,Je,lt,Re)})}return Be=Be?Be.then(Me,Me):Me()}this._invoke=He}ue(ae.prototype),x(ae.prototype,h,function(){return this}),d.AsyncIterator=ae,d.async=function(le,ke,De,Be,He){He===void 0&&(He=Promise);var Fe=new ae(T(le,ke,De,Be),He);return d.isGeneratorFunction(ke)?Fe:Fe.next().then(function(Je){return Je.done?Je.value:Fe.next()})};function he(le,ke,De){var Be=R;return function(Fe,Je){if(Be===N)throw new Error("Generator is already running");if(Be===L){if(Fe==="throw")throw Je;return se()}for(De.method=Fe,De.arg=Je;;){var Me=De.delegate;if(Me){var lt=ce(Me,De);if(lt){if(lt===M)continue;return lt}}if(De.method==="next")De.sent=De._sent=De.arg;else if(De.method==="throw"){if(Be===R)throw Be=L,De.arg;De.dispatchException(De.arg)}else De.method==="return"&&De.abrupt("return",De.arg);Be=N;var Re=_(le,ke,De);if(Re.type==="normal"){if(Be=De.done?L:A,Re.arg===M)continue;return{value:Re.arg,done:De.done}}else Re.type==="throw"&&(Be=L,De.method="throw",De.arg=Re.arg)}}}function ce(le,ke){var De=le.iterator[ke.method];if(De===S){if(ke.delegate=null,ke.method==="throw"){if(le.iterator.return&&(ke.method="return",ke.arg=S,ce(le,ke),ke.method==="throw"))return M;ke.method="throw",ke.arg=new TypeError("The iterator does not provide a 'throw' method")}return M}var Be=_(De,le.iterator,ke.arg);if(Be.type==="throw")return ke.method="throw",ke.arg=Be.arg,ke.delegate=null,M;var He=Be.arg;if(!He)return ke.method="throw",ke.arg=new TypeError("iterator result is not an object"),ke.delegate=null,M;if(He.done)ke[le.resultName]=He.value,ke.next=le.nextLoc,ke.method!=="return"&&(ke.method="next",ke.arg=S);else return He;return ke.delegate=null,M}ue(ne),x(ne,m,"Generator"),x(ne,c,function(){return this}),x(ne,"toString",function(){return"[object Generator]"});function we(le){var ke={tryLoc:le[0]};1 in le&&(ke.catchLoc=le[1]),2 in le&&(ke.finallyLoc=le[2],ke.afterLoc=le[3]),this.tryEntries.push(ke)}function me(le){var ke=le.completion||{};ke.type="normal",delete ke.arg,le.completion=ke}function Le(le){this.tryEntries=[{tryLoc:"root"}],le.forEach(we,this),this.reset(!0)}d.keys=function(le){var ke=[];for(var De in le)ke.push(De);return ke.reverse(),function Be(){for(;ke.length;){var He=ke.pop();if(He in le)return Be.value=He,Be.done=!1,Be}return Be.done=!0,Be}};function ee(le){if(le){var ke=le[c];if(ke)return ke.call(le);if(typeof le.next=="function")return le;if(!isNaN(le.length)){var De=-1,Be=function He(){for(;++De<le.length;)if(y.call(le,De))return He.value=le[De],He.done=!1,He;return He.value=S,He.done=!0,He};return Be.next=Be}}return{next:se}}d.values=ee;function se(){return{value:S,done:!0}}return Le.prototype={constructor:Le,reset:function(le){if(this.prev=0,this.next=0,this.sent=this._sent=S,this.done=!1,this.delegate=null,this.method="next",this.arg=S,this.tryEntries.forEach(me),!le)for(var ke in this)ke.charAt(0)==="t"&&y.call(this,ke)&&!isNaN(+ke.slice(1))&&(this[ke]=S)},stop:function(){this.done=!0;var le=this.tryEntries[0],ke=le.completion;if(ke.type==="throw")throw ke.arg;return this.rval},dispatchException:function(le){if(this.done)throw le;var ke=this;function De(lt,Re){return Fe.type="throw",Fe.arg=le,ke.next=lt,Re&&(ke.method="next",ke.arg=S),!!Re}for(var Be=this.tryEntries.length-1;Be>=0;--Be){var He=this.tryEntries[Be],Fe=He.completion;if(He.tryLoc==="root")return De("end");if(He.tryLoc<=this.prev){var Je=y.call(He,"catchLoc"),Me=y.call(He,"finallyLoc");if(Je&&Me){if(this.prev<He.catchLoc)return De(He.catchLoc,!0);if(this.prev<He.finallyLoc)return De(He.finallyLoc)}else if(Je){if(this.prev<He.catchLoc)return De(He.catchLoc,!0)}else if(Me){if(this.prev<He.finallyLoc)return De(He.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(le,ke){for(var De=this.tryEntries.length-1;De>=0;--De){var Be=this.tryEntries[De];if(Be.tryLoc<=this.prev&&y.call(Be,"finallyLoc")&&this.prev<Be.finallyLoc){var He=Be;break}}He&&(le==="break"||le==="continue")&&He.tryLoc<=ke&&ke<=He.finallyLoc&&(He=null);var Fe=He?He.completion:{};return Fe.type=le,Fe.arg=ke,He?(this.method="next",this.next=He.finallyLoc,M):this.complete(Fe)},complete:function(le,ke){if(le.type==="throw")throw le.arg;return le.type==="break"||le.type==="continue"?this.next=le.arg:le.type==="return"?(this.rval=this.arg=le.arg,this.method="return",this.next="end"):le.type==="normal"&&ke&&(this.next=ke),M},finish:function(le){for(var ke=this.tryEntries.length-1;ke>=0;--ke){var De=this.tryEntries[ke];if(De.finallyLoc===le)return this.complete(De.completion,De.afterLoc),me(De),M}},catch:function(le){for(var ke=this.tryEntries.length-1;ke>=0;--ke){var De=this.tryEntries[ke];if(De.tryLoc===le){var Be=De.completion;if(Be.type==="throw"){var He=Be.arg;me(De)}return He}}throw new Error("illegal catch attempt")},delegateYield:function(le,ke,De){return this.delegate={iterator:ee(le),resultName:ke,nextLoc:De},this.method==="next"&&(this.arg=S),M}},d}(typeof E=="object"?E.exports:{});try{regeneratorRuntime=u}catch(d){typeof globalThis=="object"?globalThis.regeneratorRuntime=u:Function("r","regeneratorRuntime = r")(u)}},{}],396:[function(s,E,I){var u=s("buffer"),d=u.Buffer;function g(S,v){for(var c in S)v[c]=S[c]}d.from&&d.alloc&&d.allocUnsafe&&d.allocUnsafeSlow?E.exports=u:(g(u,I),I.Buffer=y);function y(S,v,c){return d(S,v,c)}g(d,y),y.from=function(S,v,c){if(typeof S=="number")throw new TypeError("Argument must not be a number");return d(S,v,c)},y.alloc=function(S,v,c){if(typeof S!="number")throw new TypeError("Argument must be a number");var h=d(S);return v!==void 0?typeof c=="string"?h.fill(v,c):h.fill(v):h.fill(0),h},y.allocUnsafe=function(S){if(typeof S!="number")throw new TypeError("Argument must be a number");return d(S)},y.allocUnsafeSlow=function(S){if(typeof S!="number")throw new TypeError("Argument must be a number");return u.SlowBuffer(S)}},{buffer:90}],397:[function(s,E,I){(function(u){(function(){(function(d){d.parser=function(Oe,pe){return new y(Oe,pe)},d.SAXParser=y,d.SAXStream=T,d.createStream=x,d.MAX_BUFFER_LENGTH=64*1024;var g=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];d.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function y(Oe,pe){if(!(this instanceof y))return new y(Oe,pe);var fe=this;v(fe),fe.q=fe.c="",fe.bufferCheckPosition=d.MAX_BUFFER_LENGTH,fe.opt=pe||{},fe.opt.lowercase=fe.opt.lowercase||fe.opt.lowercasetags,fe.looseCase=fe.opt.lowercase?"toLowerCase":"toUpperCase",fe.tags=[],fe.closed=fe.closedRoot=fe.sawRoot=!1,fe.tag=fe.error=null,fe.strict=!!Oe,fe.noscript=!!(Oe||fe.opt.noscript),fe.state=ae.BEGIN,fe.strictEntities=fe.opt.strictEntities,fe.ENTITIES=fe.strictEntities?Object.create(d.XML_ENTITIES):Object.create(d.ENTITIES),fe.attribList=[],fe.opt.xmlns&&(fe.ns=Object.create(L)),fe.trackPosition=fe.opt.position!==!1,fe.trackPosition&&(fe.position=fe.line=fe.column=0),ce(fe,"onready")}Object.create||(Object.create=function(Oe){function pe(){}pe.prototype=Oe;var fe=new pe;return fe}),Object.keys||(Object.keys=function(Oe){var pe=[];for(var fe in Oe)Oe.hasOwnProperty(fe)&&pe.push(fe);return pe});function S(Oe){for(var pe=Math.max(d.MAX_BUFFER_LENGTH,10),fe=0,z=0,J=g.length;z<J;z++){var be=Oe[g[z]].length;if(be>pe)switch(g[z]){case"textNode":me(Oe);break;case"cdata":we(Oe,"oncdata",Oe.cdata),Oe.cdata="";break;case"script":we(Oe,"onscript",Oe.script),Oe.script="";break;default:ee(Oe,"Max buffer length exceeded: "+g[z])}fe=Math.max(fe,be)}var _e=d.MAX_BUFFER_LENGTH-fe;Oe.bufferCheckPosition=_e+Oe.position}function v(Oe){for(var pe=0,fe=g.length;pe<fe;pe++)Oe[g[pe]]=""}function c(Oe){me(Oe),Oe.cdata!==""&&(we(Oe,"oncdata",Oe.cdata),Oe.cdata=""),Oe.script!==""&&(we(Oe,"onscript",Oe.script),Oe.script="")}y.prototype={end:function(){se(this)},write:Re,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){c(this)}};var h;try{h=s("stream").Stream}catch(Oe){h=function(){}}var m=d.EVENTS.filter(function(Oe){return Oe!=="error"&&Oe!=="end"});function x(Oe,pe){return new T(Oe,pe)}function T(Oe,pe){if(!(this instanceof T))return new T(Oe,pe);h.apply(this),this._parser=new y(Oe,pe),this.writable=!0,this.readable=!0;var fe=this;this._parser.onend=function(){fe.emit("end")},this._parser.onerror=function(z){fe.emit("error",z),fe._parser.error=null},this._decoder=null,m.forEach(function(z){Object.defineProperty(fe,"on"+z,{get:function(){return fe._parser["on"+z]},set:function(J){if(!J)return fe.removeAllListeners(z),fe._parser["on"+z]=J,J;fe.on(z,J)},enumerable:!0,configurable:!1})})}T.prototype=Object.create(h.prototype,{constructor:{value:T}}),T.prototype.write=function(Oe){if(typeof u=="function"&&typeof u.isBuffer=="function"&&u.isBuffer(Oe)){if(!this._decoder){var pe=s("string_decoder").StringDecoder;this._decoder=new pe("utf8")}Oe=this._decoder.write(Oe)}return this._parser.write(Oe.toString()),this.emit("data",Oe),!0},T.prototype.end=function(Oe){return Oe&&Oe.length&&this.write(Oe),this._parser.end(),!0},T.prototype.on=function(Oe,pe){var fe=this;return!fe._parser["on"+Oe]&&m.indexOf(Oe)!==-1&&(fe._parser["on"+Oe]=function(){var z=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);z.splice(0,0,Oe),fe.emit.apply(fe,z)}),h.prototype.on.call(fe,Oe,pe)};var _="[CDATA[",R="DOCTYPE",A="http://www.w3.org/XML/1998/namespace",N="http://www.w3.org/2000/xmlns/",L={xml:A,xmlns:N},M=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,F=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,H=/[#:_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]/,P=/[#:_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 V(Oe){return Oe===" "||Oe===`
`||Oe==="\r"||Oe===" "}function G(Oe){return Oe==='"'||Oe==="'"}function Q(Oe){return Oe===">"||V(Oe)}function ne(Oe,pe){return Oe.test(pe)}function ue(Oe,pe){return!ne(Oe,pe)}var ae=0;d.STATE={BEGIN:ae++,BEGIN_WHITESPACE:ae++,TEXT:ae++,TEXT_ENTITY:ae++,OPEN_WAKA:ae++,SGML_DECL:ae++,SGML_DECL_QUOTED:ae++,DOCTYPE:ae++,DOCTYPE_QUOTED:ae++,DOCTYPE_DTD:ae++,DOCTYPE_DTD_QUOTED:ae++,COMMENT_STARTING:ae++,COMMENT:ae++,COMMENT_ENDING:ae++,COMMENT_ENDED:ae++,CDATA:ae++,CDATA_ENDING:ae++,CDATA_ENDING_2:ae++,PROC_INST:ae++,PROC_INST_BODY:ae++,PROC_INST_ENDING:ae++,OPEN_TAG:ae++,OPEN_TAG_SLASH:ae++,ATTRIB:ae++,ATTRIB_NAME:ae++,ATTRIB_NAME_SAW_WHITE:ae++,ATTRIB_VALUE:ae++,ATTRIB_VALUE_QUOTED:ae++,ATTRIB_VALUE_CLOSED:ae++,ATTRIB_VALUE_UNQUOTED:ae++,ATTRIB_VALUE_ENTITY_Q:ae++,ATTRIB_VALUE_ENTITY_U:ae++,CLOSE_TAG:ae++,CLOSE_TAG_SAW_WHITE:ae++,SCRIPT:ae++,SCRIPT_ENDING:ae++},d.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},d.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(d.ENTITIES).forEach(function(Oe){var pe=d.ENTITIES[Oe],fe=typeof pe=="number"?String.fromCharCode(pe):pe;d.ENTITIES[Oe]=fe});for(var he in d.STATE)d.STATE[d.STATE[he]]=he;ae=d.STATE;function ce(Oe,pe,fe){Oe[pe]&&Oe[pe](fe)}function we(Oe,pe,fe){Oe.textNode&&me(Oe),ce(Oe,pe,fe)}function me(Oe){Oe.textNode=Le(Oe.opt,Oe.textNode),Oe.textNode&&ce(Oe,"ontext",Oe.textNode),Oe.textNode=""}function Le(Oe,pe){return Oe.trim&&(pe=pe.trim()),Oe.normalize&&(pe=pe.replace(/\s+/g," ")),pe}function ee(Oe,pe){return me(Oe),Oe.trackPosition&&(pe+=`
Line: `+Oe.line+`
Column: `+Oe.column+`
Char: `+Oe.c),pe=new Error(pe),Oe.error=pe,ce(Oe,"onerror",pe),Oe}function se(Oe){return Oe.sawRoot&&!Oe.closedRoot&&le(Oe,"Unclosed root tag"),Oe.state!==ae.BEGIN&&Oe.state!==ae.BEGIN_WHITESPACE&&Oe.state!==ae.TEXT&&ee(Oe,"Unexpected end"),me(Oe),Oe.c="",Oe.closed=!0,ce(Oe,"onend"),y.call(Oe,Oe.strict,Oe.opt),Oe}function le(Oe,pe){if(typeof Oe!="object"||!(Oe instanceof y))throw new Error("bad call to strictFail");Oe.strict&&ee(Oe,pe)}function ke(Oe){Oe.strict||(Oe.tagName=Oe.tagName[Oe.looseCase]());var pe=Oe.tags[Oe.tags.length-1]||Oe,fe=Oe.tag={name:Oe.tagName,attributes:{}};Oe.opt.xmlns&&(fe.ns=pe.ns),Oe.attribList.length=0,we(Oe,"onopentagstart",fe)}function De(Oe,pe){var fe=Oe.indexOf(":"),z=fe<0?["",Oe]:Oe.split(":"),J=z[0],be=z[1];return pe&&Oe==="xmlns"&&(J="xmlns",be=""),{prefix:J,local:be}}function Be(Oe){if(Oe.strict||(Oe.attribName=Oe.attribName[Oe.looseCase]()),Oe.attribList.indexOf(Oe.attribName)!==-1||Oe.tag.attributes.hasOwnProperty(Oe.attribName)){Oe.attribName=Oe.attribValue="";return}if(Oe.opt.xmlns){var pe=De(Oe.attribName,!0),fe=pe.prefix,z=pe.local;if(fe==="xmlns")if(z==="xml"&&Oe.attribValue!==A)le(Oe,"xml: prefix must be bound to "+A+`
Actual: `+Oe.attribValue);else if(z==="xmlns"&&Oe.attribValue!==N)le(Oe,"xmlns: prefix must be bound to "+N+`
Actual: `+Oe.attribValue);else{var J=Oe.tag,be=Oe.tags[Oe.tags.length-1]||Oe;J.ns===be.ns&&(J.ns=Object.create(be.ns)),J.ns[z]=Oe.attribValue}Oe.attribList.push([Oe.attribName,Oe.attribValue])}else Oe.tag.attributes[Oe.attribName]=Oe.attribValue,we(Oe,"onattribute",{name:Oe.attribName,value:Oe.attribValue});Oe.attribName=Oe.attribValue=""}function He(Oe,pe){if(Oe.opt.xmlns){var fe=Oe.tag,z=De(Oe.tagName);fe.prefix=z.prefix,fe.local=z.local,fe.uri=fe.ns[z.prefix]||"",fe.prefix&&!fe.uri&&(le(Oe,"Unbound namespace prefix: "+JSON.stringify(Oe.tagName)),fe.uri=z.prefix);var J=Oe.tags[Oe.tags.length-1]||Oe;fe.ns&&J.ns!==fe.ns&&Object.keys(fe.ns).forEach(function(St){we(Oe,"onopennamespace",{prefix:St,uri:fe.ns[St]})});for(var be=0,_e=Oe.attribList.length;be<_e;be++){var oe=Oe.attribList[be],ie=oe[0],ve=oe[1],Ne=De(ie,!0),ze=Ne.prefix,Ve=Ne.local,yt=ze===""?"":fe.ns[ze]||"",ct={name:ie,value:ve,prefix:ze,local:Ve,uri:yt};ze&&ze!=="xmlns"&&!yt&&(le(Oe,"Unbound namespace prefix: "+JSON.stringify(ze)),ct.uri=ze),Oe.tag.attributes[ie]=ct,we(Oe,"onattribute",ct)}Oe.attribList.length=0}Oe.tag.isSelfClosing=!!pe,Oe.sawRoot=!0,Oe.tags.push(Oe.tag),we(Oe,"onopentag",Oe.tag),pe||(!Oe.noscript&&Oe.tagName.toLowerCase()==="script"?Oe.state=ae.SCRIPT:Oe.state=ae.TEXT,Oe.tag=null,Oe.tagName=""),Oe.attribName=Oe.attribValue="",Oe.attribList.length=0}function Fe(Oe){if(!Oe.tagName){le(Oe,"Weird empty close tag."),Oe.textNode+="</>",Oe.state=ae.TEXT;return}if(Oe.script){if(Oe.tagName!=="script"){Oe.script+="</"+Oe.tagName+">",Oe.tagName="",Oe.state=ae.SCRIPT;return}we(Oe,"onscript",Oe.script),Oe.script=""}var pe=Oe.tags.length,fe=Oe.tagName;Oe.strict||(fe=fe[Oe.looseCase]());for(var z=fe;pe--;){var J=Oe.tags[pe];if(J.name!==z)le(Oe,"Unexpected close tag");else break}if(pe<0){le(Oe,"Unmatched closing tag: "+Oe.tagName),Oe.textNode+="</"+Oe.tagName+">",Oe.state=ae.TEXT;return}Oe.tagName=fe;for(var be=Oe.tags.length;be-- >pe;){var _e=Oe.tag=Oe.tags.pop();Oe.tagName=Oe.tag.name,we(Oe,"onclosetag",Oe.tagName);var oe={};for(var ie in _e.ns)oe[ie]=_e.ns[ie];var ve=Oe.tags[Oe.tags.length-1]||Oe;Oe.opt.xmlns&&_e.ns!==ve.ns&&Object.keys(_e.ns).forEach(function(Ne){var ze=_e.ns[Ne];we(Oe,"onclosenamespace",{prefix:Ne,uri:ze})})}pe===0&&(Oe.closedRoot=!0),Oe.tagName=Oe.attribValue=Oe.attribName="",Oe.attribList.length=0,Oe.state=ae.TEXT}function Je(Oe){var pe=Oe.entity,fe=pe.toLowerCase(),z,J="";return Oe.ENTITIES[pe]?Oe.ENTITIES[pe]:Oe.ENTITIES[fe]?Oe.ENTITIES[fe]:(pe=fe,pe.charAt(0)==="#"&&(pe.charAt(1)==="x"?(pe=pe.slice(2),z=parseInt(pe,16),J=z.toString(16)):(pe=pe.slice(1),z=parseInt(pe,10),J=z.toString(10))),pe=pe.replace(/^0+/,""),isNaN(z)||J.toLowerCase()!==pe?(le(Oe,"Invalid character entity"),"&"+Oe.entity+";"):String.fromCodePoint(z))}function Me(Oe,pe){pe==="<"?(Oe.state=ae.OPEN_WAKA,Oe.startTagPosition=Oe.position):V(pe)||(le(Oe,"Non-whitespace before first tag."),Oe.textNode=pe,Oe.state=ae.TEXT)}function lt(Oe,pe){var fe="";return pe<Oe.length&&(fe=Oe.charAt(pe)),fe}function Re(Oe){var pe=this;if(this.error)throw this.error;if(pe.closed)return ee(pe,"Cannot write after close. Assign an onready handler.");if(Oe===null)return se(pe);typeof Oe=="object"&&(Oe=Oe.toString());for(var fe=0,z="";z=lt(Oe,fe++),pe.c=z,!!z;)switch(pe.trackPosition&&(pe.position++,z===`
`?(pe.line++,pe.column=0):pe.column++),pe.state){case ae.BEGIN:if(pe.state=ae.BEGIN_WHITESPACE,z==="\uFEFF")continue;Me(pe,z);continue;case ae.BEGIN_WHITESPACE:Me(pe,z);continue;case ae.TEXT:if(pe.sawRoot&&!pe.closedRoot){for(var J=fe-1;z&&z!=="<"&&z!=="&";)z=lt(Oe,fe++),z&&pe.trackPosition&&(pe.position++,z===`
`?(pe.line++,pe.column=0):pe.column++);pe.textNode+=Oe.substring(J,fe-1)}z==="<"&&!(pe.sawRoot&&pe.closedRoot&&!pe.strict)?(pe.state=ae.OPEN_WAKA,pe.startTagPosition=pe.position):(!V(z)&&(!pe.sawRoot||pe.closedRoot)&&le(pe,"Text data outside of root node."),z==="&"?pe.state=ae.TEXT_ENTITY:pe.textNode+=z);continue;case ae.SCRIPT:z==="<"?pe.state=ae.SCRIPT_ENDING:pe.script+=z;continue;case ae.SCRIPT_ENDING:z==="/"?pe.state=ae.CLOSE_TAG:(pe.script+="<"+z,pe.state=ae.SCRIPT);continue;case ae.OPEN_WAKA:if(z==="!")pe.state=ae.SGML_DECL,pe.sgmlDecl="";else if(!V(z))if(ne(M,z))pe.state=ae.OPEN_TAG,pe.tagName=z;else if(z==="/")pe.state=ae.CLOSE_TAG,pe.tagName="";else if(z==="?")pe.state=ae.PROC_INST,pe.procInstName=pe.procInstBody="";else{if(le(pe,"Unencoded <"),pe.startTagPosition+1<pe.position){var be=pe.position-pe.startTagPosition;z=new Array(be).join(" ")+z}pe.textNode+="<"+z,pe.state=ae.TEXT}continue;case ae.SGML_DECL:(pe.sgmlDecl+z).toUpperCase()===_?(we(pe,"onopencdata"),pe.state=ae.CDATA,pe.sgmlDecl="",pe.cdata=""):pe.sgmlDecl+z==="--"?(pe.state=ae.COMMENT,pe.comment="",pe.sgmlDecl=""):(pe.sgmlDecl+z).toUpperCase()===R?(pe.state=ae.DOCTYPE,(pe.doctype||pe.sawRoot)&&le(pe,"Inappropriately located doctype declaration"),pe.doctype="",pe.sgmlDecl=""):z===">"?(we(pe,"onsgmldeclaration",pe.sgmlDecl),pe.sgmlDecl="",pe.state=ae.TEXT):(G(z)&&(pe.state=ae.SGML_DECL_QUOTED),pe.sgmlDecl+=z);continue;case ae.SGML_DECL_QUOTED:z===pe.q&&(pe.state=ae.SGML_DECL,pe.q=""),pe.sgmlDecl+=z;continue;case ae.DOCTYPE:z===">"?(pe.state=ae.TEXT,we(pe,"ondoctype",pe.doctype),pe.doctype=!0):(pe.doctype+=z,z==="["?pe.state=ae.DOCTYPE_DTD:G(z)&&(pe.state=ae.DOCTYPE_QUOTED,pe.q=z));continue;case ae.DOCTYPE_QUOTED:pe.doctype+=z,z===pe.q&&(pe.q="",pe.state=ae.DOCTYPE);continue;case ae.DOCTYPE_DTD:pe.doctype+=z,z==="]"?pe.state=ae.DOCTYPE:G(z)&&(pe.state=ae.DOCTYPE_DTD_QUOTED,pe.q=z);continue;case ae.DOCTYPE_DTD_QUOTED:pe.doctype+=z,z===pe.q&&(pe.state=ae.DOCTYPE_DTD,pe.q="");continue;case ae.COMMENT:z==="-"?pe.state=ae.COMMENT_ENDING:pe.comment+=z;continue;case ae.COMMENT_ENDING:z==="-"?(pe.state=ae.COMMENT_ENDED,pe.comment=Le(pe.opt,pe.comment),pe.comment&&we(pe,"oncomment",pe.comment),pe.comment=""):(pe.comment+="-"+z,pe.state=ae.COMMENT);continue;case ae.COMMENT_ENDED:z!==">"?(le(pe,"Malformed comment"),pe.comment+="--"+z,pe.state=ae.COMMENT):pe.state=ae.TEXT;continue;case ae.CDATA:z==="]"?pe.state=ae.CDATA_ENDING:pe.cdata+=z;continue;case ae.CDATA_ENDING:z==="]"?pe.state=ae.CDATA_ENDING_2:(pe.cdata+="]"+z,pe.state=ae.CDATA);continue;case ae.CDATA_ENDING_2:z===">"?(pe.cdata&&we(pe,"oncdata",pe.cdata),we(pe,"onclosecdata"),pe.cdata="",pe.state=ae.TEXT):z==="]"?pe.cdata+="]":(pe.cdata+="]]"+z,pe.state=ae.CDATA);continue;case ae.PROC_INST:z==="?"?pe.state=ae.PROC_INST_ENDING:V(z)?pe.state=ae.PROC_INST_BODY:pe.procInstName+=z;continue;case ae.PROC_INST_BODY:if(!pe.procInstBody&&V(z))continue;z==="?"?pe.state=ae.PROC_INST_ENDING:pe.procInstBody+=z;continue;case ae.PROC_INST_ENDING:z===">"?(we(pe,"onprocessinginstruction",{name:pe.procInstName,body:pe.procInstBody}),pe.procInstName=pe.procInstBody="",pe.state=ae.TEXT):(pe.procInstBody+="?"+z,pe.state=ae.PROC_INST_BODY);continue;case ae.OPEN_TAG:ne(F,z)?pe.tagName+=z:(ke(pe),z===">"?He(pe):z==="/"?pe.state=ae.OPEN_TAG_SLASH:(V(z)||le(pe,"Invalid character in tag name"),pe.state=ae.ATTRIB));continue;case ae.OPEN_TAG_SLASH:z===">"?(He(pe,!0),Fe(pe)):(le(pe,"Forward-slash in opening tag not followed by >"),pe.state=ae.ATTRIB);continue;case ae.ATTRIB:if(V(z))continue;z===">"?He(pe):z==="/"?pe.state=ae.OPEN_TAG_SLASH:ne(M,z)?(pe.attribName=z,pe.attribValue="",pe.state=ae.ATTRIB_NAME):le(pe,"Invalid attribute name");continue;case ae.ATTRIB_NAME:z==="="?pe.state=ae.ATTRIB_VALUE:z===">"?(le(pe,"Attribute without value"),pe.attribValue=pe.attribName,Be(pe),He(pe)):V(z)?pe.state=ae.ATTRIB_NAME_SAW_WHITE:ne(F,z)?pe.attribName+=z:le(pe,"Invalid attribute name");continue;case ae.ATTRIB_NAME_SAW_WHITE:if(z==="=")pe.state=ae.ATTRIB_VALUE;else{if(V(z))continue;le(pe,"Attribute without value"),pe.tag.attributes[pe.attribName]="",pe.attribValue="",we(pe,"onattribute",{name:pe.attribName,value:""}),pe.attribName="",z===">"?He(pe):ne(M,z)?(pe.attribName=z,pe.state=ae.ATTRIB_NAME):(le(pe,"Invalid attribute name"),pe.state=ae.ATTRIB)}continue;case ae.ATTRIB_VALUE:if(V(z))continue;G(z)?(pe.q=z,pe.state=ae.ATTRIB_VALUE_QUOTED):(le(pe,"Unquoted attribute value"),pe.state=ae.ATTRIB_VALUE_UNQUOTED,pe.attribValue=z);continue;case ae.ATTRIB_VALUE_QUOTED:if(z!==pe.q){z==="&"?pe.state=ae.ATTRIB_VALUE_ENTITY_Q:pe.attribValue+=z;continue}Be(pe),pe.q="",pe.state=ae.ATTRIB_VALUE_CLOSED;continue;case ae.ATTRIB_VALUE_CLOSED:V(z)?pe.state=ae.ATTRIB:z===">"?He(pe):z==="/"?pe.state=ae.OPEN_TAG_SLASH:ne(M,z)?(le(pe,"No whitespace between attributes"),pe.attribName=z,pe.attribValue="",pe.state=ae.ATTRIB_NAME):le(pe,"Invalid attribute name");continue;case ae.ATTRIB_VALUE_UNQUOTED:if(!Q(z)){z==="&"?pe.state=ae.ATTRIB_VALUE_ENTITY_U:pe.attribValue+=z;continue}Be(pe),z===">"?He(pe):pe.state=ae.ATTRIB;continue;case ae.CLOSE_TAG:if(pe.tagName)z===">"?Fe(pe):ne(F,z)?pe.tagName+=z:pe.script?(pe.script+="</"+pe.tagName,pe.tagName="",pe.state=ae.SCRIPT):(V(z)||le(pe,"Invalid tagname in closing tag"),pe.state=ae.CLOSE_TAG_SAW_WHITE);else{if(V(z))continue;ue(M,z)?pe.script?(pe.script+="</"+z,pe.state=ae.SCRIPT):le(pe,"Invalid tagname in closing tag."):pe.tagName=z}continue;case ae.CLOSE_TAG_SAW_WHITE:if(V(z))continue;z===">"?Fe(pe):le(pe,"Invalid characters in closing tag");continue;case ae.TEXT_ENTITY:case ae.ATTRIB_VALUE_ENTITY_Q:case ae.ATTRIB_VALUE_ENTITY_U:var _e,oe;switch(pe.state){case ae.TEXT_ENTITY:_e=ae.TEXT,oe="textNode";break;case ae.ATTRIB_VALUE_ENTITY_Q:_e=ae.ATTRIB_VALUE_QUOTED,oe="attribValue";break;case ae.ATTRIB_VALUE_ENTITY_U:_e=ae.ATTRIB_VALUE_UNQUOTED,oe="attribValue";break}z===";"?(pe[oe]+=Je(pe),pe.entity="",pe.state=_e):ne(pe.entity.length?P:H,z)?pe.entity+=z:(le(pe,"Invalid character in entity name"),pe[oe]+="&"+pe.entity+z,pe.entity="",pe.state=_e);continue;default:throw new Error(pe,"Unknown state: "+pe.state)}return pe.position>=pe.bufferCheckPosition&&S(pe),pe}String.fromCodePoint||function(){var Oe=String.fromCharCode,pe=Math.floor,fe=function(){var z=16384,J=[],be,_e,oe=-1,ie=arguments.length;if(!ie)return"";for(var ve="";++oe<ie;){var Ne=Number(arguments[oe]);if(!isFinite(Ne)||Ne<0||Ne>1114111||pe(Ne)!==Ne)throw RangeError("Invalid code point: "+Ne);Ne<=65535?J.push(Ne):(Ne-=65536,be=(Ne>>10)+55296,_e=Ne%1024+56320,J.push(be,_e)),(oe+1===ie||J.length>z)&&(ve+=Oe.apply(null,J),J.length=0)}return ve};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:fe,configurable:!0,writable:!0}):String.fromCodePoint=fe}()})(typeof I=="undefined"?this.sax={}:I)}).call(this)}).call(this,s("buffer").Buffer)},{buffer:90,stream:398,string_decoder:413}],398:[function(s,E,I){E.exports=g;var u=s("events").EventEmitter,d=s("inherits");d(g,u),g.Readable=s("readable-stream/lib/_stream_readable.js"),g.Writable=s("readable-stream/lib/_stream_writable.js"),g.Duplex=s("readable-stream/lib/_stream_duplex.js"),g.Transform=s("readable-stream/lib/_stream_transform.js"),g.PassThrough=s("readable-stream/lib/_stream_passthrough.js"),g.finished=s("readable-stream/lib/internal/streams/end-of-stream.js"),g.pipeline=s("readable-stream/lib/internal/streams/pipeline.js"),g.Stream=g;function g(){u.call(this)}g.prototype.pipe=function(y,S){var v=this;function c(A){y.writable&&y.write(A)===!1&&v.pause&&v.pause()}v.on("data",c);function h(){v.readable&&v.resume&&v.resume()}y.on("drain",h),!y._isStdio&&(!S||S.end!==!1)&&(v.on("end",x),v.on("close",T));var m=!1;function x(){m||(m=!0,y.end())}function T(){m||(m=!0,typeof y.destroy=="function"&&y.destroy())}function _(A){if(R(),u.listenerCount(this,"error")===0)throw A}v.on("error",_),y.on("error",_);function R(){v.removeListener("data",c),y.removeListener("drain",h),v.removeListener("end",x),v.removeListener("close",T),v.removeListener("error",_),y.removeListener("error",_),v.removeListener("end",R),v.removeListener("close",R),y.removeListener("close",R)}return v.on("end",R),v.on("close",R),y.on("close",R),y.emit("pipe",v),y}},{events:344,inherits:364,"readable-stream/lib/_stream_duplex.js":400,"readable-stream/lib/_stream_passthrough.js":401,"readable-stream/lib/_stream_readable.js":402,"readable-stream/lib/_stream_transform.js":403,"readable-stream/lib/_stream_writable.js":404,"readable-stream/lib/internal/streams/end-of-stream.js":408,"readable-stream/lib/internal/streams/pipeline.js":410}],399:[function(s,E,I){"use strict";function u(h,m){h.prototype=Object.create(m.prototype),h.prototype.constructor=h,h.__proto__=m}var d={};function g(h,m,x){x||(x=Error);function T(R,A,N){return typeof m=="string"?m:m(R,A,N)}var _=function(R){u(A,R);function A(N,L,M){return R.call(this,T(N,L,M))||this}return A}(x);_.prototype.name=x.name,_.prototype.code=h,d[h]=_}function y(h,m){if(Array.isArray(h)){var x=h.length;return h=h.map(function(T){return String(T)}),x>2?"one of ".concat(m," ").concat(h.slice(0,x-1).join(", "),", or ")+h[x-1]:x===2?"one of ".concat(m," ").concat(h[0]," or ").concat(h[1]):"of ".concat(m," ").concat(h[0])}else return"of ".concat(m," ").concat(String(h))}function S(h,m,x){return h.substr(!x||x<0?0:+x,m.length)===m}function v(h,m,x){return(x===void 0||x>h.length)&&(x=h.length),h.substring(x-m.length,x)===m}function c(h,m,x){return typeof x!="number"&&(x=0),x+m.length>h.length?!1:h.indexOf(m,x)!==-1}g("ERR_INVALID_OPT_VALUE",function(h,m){return'The value "'+m+'" is invalid for option "'+h+'"'},TypeError),g("ERR_INVALID_ARG_TYPE",function(h,m,x){var T;typeof m=="string"&&S(m,"not ")?(T="must not be",m=m.replace(/^not /,"")):T="must be";var _;if(v(h," argument"))_="The ".concat(h," ").concat(T," ").concat(y(m,"type"));else{var R=c(h,".")?"property":"argument";_='The "'.concat(h,'" ').concat(R," ").concat(T," ").concat(y(m,"type"))}return _+=". Received type ".concat(typeof x),_},TypeError),g("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),g("ERR_METHOD_NOT_IMPLEMENTED",function(h){return"The "+h+" method is not implemented"}),g("ERR_STREAM_PREMATURE_CLOSE","Premature close"),g("ERR_STREAM_DESTROYED",function(h){return"Cannot call "+h+" after a stream was destroyed"}),g("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),g("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),g("ERR_STREAM_WRITE_AFTER_END","write after end"),g("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),g("ERR_UNKNOWN_ENCODING",function(h){return"Unknown encoding: "+h},TypeError),g("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),E.exports.codes=d},{}],400:[function(s,E,I){(function(u){(function(){"use strict";var d=Object.keys||function(T){var _=[];for(var R in T)_.push(R);return _};E.exports=h;var g=s("./_stream_readable"),y=s("./_stream_writable");s("inherits")(h,g);for(var S=d(y.prototype),v=0;v<S.length;v++){var c=S[v];h.prototype[c]||(h.prototype[c]=y.prototype[c])}function h(T){if(!(this instanceof h))return new h(T);g.call(this,T),y.call(this,T),this.allowHalfOpen=!0,T&&(T.readable===!1&&(this.readable=!1),T.writable===!1&&(this.writable=!1),T.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",m)))}Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(h.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function m(){this._writableState.ended||u.nextTick(x,this)}function x(T){T.end()}Object.defineProperty(h.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(_){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=_,this._writableState.destroyed=_)}})}).call(this)}).call(this,s("_process"))},{"./_stream_readable":402,"./_stream_writable":404,_process:467,inherits:364}],401:[function(s,E,I){"use strict";E.exports=d;var u=s("./_stream_transform");s("inherits")(d,u);function d(g){if(!(this instanceof d))return new d(g);u.call(this,g)}d.prototype._transform=function(g,y,S){S(null,g)}},{"./_stream_transform":403,inherits:364}],402:[function(s,E,I){(function(u,d){(function(){"use strict";E.exports=we;var g;we.ReadableState=ce;var y=s("events").EventEmitter,S=function(ie,ve){return ie.listeners(ve).length},v=s("./internal/streams/stream"),c=s("buffer").Buffer,h=(typeof d!="undefined"?d:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function m(oe){return c.from(oe)}function x(oe){return c.isBuffer(oe)||oe instanceof h}var T=s("util"),_;T&&T.debuglog?_=T.debuglog("stream"):_=function(){};var R=s("./internal/streams/buffer_list"),A=s("./internal/streams/destroy"),N=s("./internal/streams/state"),L=N.getHighWaterMark,M=s("../errors").codes,F=M.ERR_INVALID_ARG_TYPE,H=M.ERR_STREAM_PUSH_AFTER_EOF,P=M.ERR_METHOD_NOT_IMPLEMENTED,V=M.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,G,Q,ne;s("inherits")(we,v);var ue=A.errorOrDestroy,ae=["error","close","destroy","pause","resume"];function he(oe,ie,ve){if(typeof oe.prependListener=="function")return oe.prependListener(ie,ve);!oe._events||!oe._events[ie]?oe.on(ie,ve):Array.isArray(oe._events[ie])?oe._events[ie].unshift(ve):oe._events[ie]=[ve,oe._events[ie]]}function ce(oe,ie,ve){g=g||s("./_stream_duplex"),oe=oe||{},typeof ve!="boolean"&&(ve=ie instanceof g),this.objectMode=!!oe.objectMode,ve&&(this.objectMode=this.objectMode||!!oe.readableObjectMode),this.highWaterMark=L(this,oe,"readableHighWaterMark",ve),this.buffer=new R,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.paused=!0,this.emitClose=oe.emitClose!==!1,this.autoDestroy=!!oe.autoDestroy,this.destroyed=!1,this.defaultEncoding=oe.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,oe.encoding&&(G||(G=s("string_decoder/").StringDecoder),this.decoder=new G(oe.encoding),this.encoding=oe.encoding)}function we(oe){if(g=g||s("./_stream_duplex"),!(this instanceof we))return new we(oe);var ie=this instanceof g;this._readableState=new ce(oe,this,ie),this.readable=!0,oe&&(typeof oe.read=="function"&&(this._read=oe.read),typeof oe.destroy=="function"&&(this._destroy=oe.destroy)),v.call(this)}Object.defineProperty(we.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(ie){this._readableState&&(this._readableState.destroyed=ie)}}),we.prototype.destroy=A.destroy,we.prototype._undestroy=A.undestroy,we.prototype._destroy=function(oe,ie){ie(oe)},we.prototype.push=function(oe,ie){var ve=this._readableState,Ne;return ve.objectMode?Ne=!0:typeof oe=="string"&&(ie=ie||ve.defaultEncoding,ie!==ve.encoding&&(oe=c.from(oe,ie),ie=""),Ne=!0),me(this,oe,ie,!1,Ne)},we.prototype.unshift=function(oe){return me(this,oe,null,!0,!1)};function me(oe,ie,ve,Ne,ze){_("readableAddChunk",ie);var Ve=oe._readableState;if(ie===null)Ve.reading=!1,De(oe,Ve);else{var yt;if(ze||(yt=ee(Ve,ie)),yt)ue(oe,yt);else if(Ve.objectMode||ie&&ie.length>0)if(typeof ie!="string"&&!Ve.objectMode&&Object.getPrototypeOf(ie)!==c.prototype&&(ie=m(ie)),Ne)Ve.endEmitted?ue(oe,new V):Le(oe,Ve,ie,!0);else if(Ve.ended)ue(oe,new H);else{if(Ve.destroyed)return!1;Ve.reading=!1,Ve.decoder&&!ve?(ie=Ve.decoder.write(ie),Ve.objectMode||ie.length!==0?Le(oe,Ve,ie,!1):Fe(oe,Ve)):Le(oe,Ve,ie,!1)}else Ne||(Ve.reading=!1,Fe(oe,Ve))}return!Ve.ended&&(Ve.length<Ve.highWaterMark||Ve.length===0)}function Le(oe,ie,ve,Ne){ie.flowing&&ie.length===0&&!ie.sync?(ie.awaitDrain=0,oe.emit("data",ve)):(ie.length+=ie.objectMode?1:ve.length,Ne?ie.buffer.unshift(ve):ie.buffer.push(ve),ie.needReadable&&Be(oe)),Fe(oe,ie)}function ee(oe,ie){var ve;return!x(ie)&&typeof ie!="string"&&ie!==void 0&&!oe.objectMode&&(ve=new F("chunk",["string","Buffer","Uint8Array"],ie)),ve}we.prototype.isPaused=function(){return this._readableState.flowing===!1},we.prototype.setEncoding=function(oe){G||(G=s("string_decoder/").StringDecoder);var ie=new G(oe);this._readableState.decoder=ie,this._readableState.encoding=this._readableState.decoder.encoding;for(var ve=this._readableState.buffer.head,Ne="";ve!==null;)Ne+=ie.write(ve.data),ve=ve.next;return this._readableState.buffer.clear(),Ne!==""&&this._readableState.buffer.push(Ne),this._readableState.length=Ne.length,this};var se=1073741824;function le(oe){return oe>=se?oe=se:(oe--,oe|=oe>>>1,oe|=oe>>>2,oe|=oe>>>4,oe|=oe>>>8,oe|=oe>>>16,oe++),oe}function ke(oe,ie){return oe<=0||ie.length===0&&ie.ended?0:ie.objectMode?1:oe!==oe?ie.flowing&&ie.length?ie.buffer.head.data.length:ie.length:(oe>ie.highWaterMark&&(ie.highWaterMark=le(oe)),oe<=ie.length?oe:ie.ended?ie.length:(ie.needReadable=!0,0))}we.prototype.read=function(oe){_("read",oe),oe=parseInt(oe,10);var ie=this._readableState,ve=oe;if(oe!==0&&(ie.emittedReadable=!1),oe===0&&ie.needReadable&&((ie.highWaterMark!==0?ie.length>=ie.highWaterMark:ie.length>0)||ie.ended))return _("read: emitReadable",ie.length,ie.ended),ie.length===0&&ie.ended?J(this):Be(this),null;if(oe=ke(oe,ie),oe===0&&ie.ended)return ie.length===0&&J(this),null;var Ne=ie.needReadable;_("need readable",Ne),(ie.length===0||ie.length-oe<ie.highWaterMark)&&(Ne=!0,_("length less than watermark",Ne)),ie.ended||ie.reading?(Ne=!1,_("reading or ended",Ne)):Ne&&(_("do read"),ie.reading=!0,ie.sync=!0,ie.length===0&&(ie.needReadable=!0),this._read(ie.highWaterMark),ie.sync=!1,ie.reading||(oe=ke(ve,ie)));var ze;return oe>0?ze=z(oe,ie):ze=null,ze===null?(ie.needReadable=ie.length<=ie.highWaterMark,oe=0):(ie.length-=oe,ie.awaitDrain=0),ie.length===0&&(ie.ended||(ie.needReadable=!0),ve!==oe&&ie.ended&&J(this)),ze!==null&&this.emit("data",ze),ze};function De(oe,ie){if(_("onEofChunk"),!ie.ended){if(ie.decoder){var ve=ie.decoder.end();ve&&ve.length&&(ie.buffer.push(ve),ie.length+=ie.objectMode?1:ve.length)}ie.ended=!0,ie.sync?Be(oe):(ie.needReadable=!1,ie.emittedReadable||(ie.emittedReadable=!0,He(oe)))}}function Be(oe){var ie=oe._readableState;_("emitReadable",ie.needReadable,ie.emittedReadable),ie.needReadable=!1,ie.emittedReadable||(_("emitReadable",ie.flowing),ie.emittedReadable=!0,u.nextTick(He,oe))}function He(oe){var ie=oe._readableState;_("emitReadable_",ie.destroyed,ie.length,ie.ended),!ie.destroyed&&(ie.length||ie.ended)&&(oe.emit("readable"),ie.emittedReadable=!1),ie.needReadable=!ie.flowing&&!ie.ended&&ie.length<=ie.highWaterMark,fe(oe)}function Fe(oe,ie){ie.readingMore||(ie.readingMore=!0,u.nextTick(Je,oe,ie))}function Je(oe,ie){for(;!ie.reading&&!ie.ended&&(ie.length<ie.highWaterMark||ie.flowing&&ie.length===0);){var ve=ie.length;if(_("maybeReadMore read 0"),oe.read(0),ve===ie.length)break}ie.readingMore=!1}we.prototype._read=function(oe){ue(this,new P("_read()"))},we.prototype.pipe=function(oe,ie){var ve=this,Ne=this._readableState;switch(Ne.pipesCount){case 0:Ne.pipes=oe;break;case 1:Ne.pipes=[Ne.pipes,oe];break;default:Ne.pipes.push(oe);break}Ne.pipesCount+=1,_("pipe count=%d opts=%j",Ne.pipesCount,ie);var ze=(!ie||ie.end!==!1)&&oe!==u.stdout&&oe!==u.stderr,Ve=ze?ct:ge;Ne.endEmitted?u.nextTick(Ve):ve.once("end",Ve),oe.on("unpipe",yt);function yt(on,mn){_("onunpipe"),on===ve&&mn&&mn.hasUnpiped===!1&&(mn.hasUnpiped=!0,At())}function ct(){_("onend"),oe.end()}var St=Me(ve);oe.on("drain",St);var _t=!1;function At(){_("cleanup"),oe.removeListener("close",jt),oe.removeListener("finish",st),oe.removeListener("drain",St),oe.removeListener("error",wt),oe.removeListener("unpipe",yt),ve.removeListener("end",ct),ve.removeListener("end",ge),ve.removeListener("data",ht),_t=!0,Ne.awaitDrain&&(!oe._writableState||oe._writableState.needDrain)&&St()}ve.on("data",ht);function ht(on){_("ondata");var mn=oe.write(on);_("dest.write",mn),mn===!1&&((Ne.pipesCount===1&&Ne.pipes===oe||Ne.pipesCount>1&&_e(Ne.pipes,oe)!==-1)&&!_t&&(_("false write response, pause",Ne.awaitDrain),Ne.awaitDrain++),ve.pause())}function wt(on){_("onerror",on),ge(),oe.removeListener("error",wt),S(oe,"error")===0&&ue(oe,on)}he(oe,"error",wt);function jt(){oe.removeListener("finish",st),ge()}oe.once("close",jt);function st(){_("onfinish"),oe.removeListener("close",jt),ge()}oe.once("finish",st);function ge(){_("unpipe"),ve.unpipe(oe)}return oe.emit("pipe",ve),Ne.flowing||(_("pipe resume"),ve.resume()),oe};function Me(oe){return function(){var ve=oe._readableState;_("pipeOnDrain",ve.awaitDrain),ve.awaitDrain&&ve.awaitDrain--,ve.awaitDrain===0&&S(oe,"data")&&(ve.flowing=!0,fe(oe))}}we.prototype.unpipe=function(oe){var ie=this._readableState,ve={hasUnpiped:!1};if(ie.pipesCount===0)return this;if(ie.pipesCount===1)return oe&&oe!==ie.pipes?this:(oe||(oe=ie.pipes),ie.pipes=null,ie.pipesCount=0,ie.flowing=!1,oe&&oe.emit("unpipe",this,ve),this);if(!oe){var Ne=ie.pipes,ze=ie.pipesCount;ie.pipes=null,ie.pipesCount=0,ie.flowing=!1;for(var Ve=0;Ve<ze;Ve++)Ne[Ve].emit("unpipe",this,{hasUnpiped:!1});return this}var yt=_e(ie.pipes,oe);return yt===-1?this:(ie.pipes.splice(yt,1),ie.pipesCount-=1,ie.pipesCount===1&&(ie.pipes=ie.pipes[0]),oe.emit("unpipe",this,ve),this)},we.prototype.on=function(oe,ie){var ve=v.prototype.on.call(this,oe,ie),Ne=this._readableState;return oe==="data"?(Ne.readableListening=this.listenerCount("readable")>0,Ne.flowing!==!1&&this.resume()):oe==="readable"&&!Ne.endEmitted&&!Ne.readableListening&&(Ne.readableListening=Ne.needReadable=!0,Ne.flowing=!1,Ne.emittedReadable=!1,_("on readable",Ne.length,Ne.reading),Ne.length?Be(this):Ne.reading||u.nextTick(Re,this)),ve},we.prototype.addListener=we.prototype.on,we.prototype.removeListener=function(oe,ie){var ve=v.prototype.removeListener.call(this,oe,ie);return oe==="readable"&&u.nextTick(lt,this),ve},we.prototype.removeAllListeners=function(oe){var ie=v.prototype.removeAllListeners.apply(this,arguments);return(oe==="readable"||oe===void 0)&&u.nextTick(lt,this),ie};function lt(oe){var ie=oe._readableState;ie.readableListening=oe.listenerCount("readable")>0,ie.resumeScheduled&&!ie.paused?ie.flowing=!0:oe.listenerCount("data")>0&&oe.resume()}function Re(oe){_("readable nexttick read 0"),oe.read(0)}we.prototype.resume=function(){var oe=this._readableState;return oe.flowing||(_("resume"),oe.flowing=!oe.readableListening,Oe(this,oe)),oe.paused=!1,this};function Oe(oe,ie){ie.resumeScheduled||(ie.resumeScheduled=!0,u.nextTick(pe,oe,ie))}function pe(oe,ie){_("resume",ie.reading),ie.reading||oe.read(0),ie.resumeScheduled=!1,oe.emit("resume"),fe(oe),ie.flowing&&!ie.reading&&oe.read(0)}we.prototype.pause=function(){return _("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(_("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function fe(oe){var ie=oe._readableState;for(_("flow",ie.flowing);ie.flowing&&oe.read()!==null;);}we.prototype.wrap=function(oe){var ie=this,ve=this._readableState,Ne=!1;oe.on("end",function(){if(_("wrapped end"),ve.decoder&&!ve.ended){var yt=ve.decoder.end();yt&&yt.length&&ie.push(yt)}ie.push(null)}),oe.on("data",function(yt){if(_("wrapped data"),ve.decoder&&(yt=ve.decoder.write(yt)),!(ve.objectMode&&yt==null)&&!(!ve.objectMode&&(!yt||!yt.length))){var ct=ie.push(yt);ct||(Ne=!0,oe.pause())}});for(var ze in oe)this[ze]===void 0&&typeof oe[ze]=="function"&&(this[ze]=function(ct){return function(){return oe[ct].apply(oe,arguments)}}(ze));for(var Ve=0;Ve<ae.length;Ve++)oe.on(ae[Ve],this.emit.bind(this,ae[Ve]));return this._read=function(yt){_("wrapped _read",yt),Ne&&(Ne=!1,oe.resume())},this},typeof Symbol=="function"&&(we.prototype[Symbol.asyncIterator]=function(){return Q===void 0&&(Q=s("./internal/streams/async_iterator")),Q(this)}),Object.defineProperty(we.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(we.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(we.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(ie){this._readableState&&(this._readableState.flowing=ie)}}),we._fromList=z,Object.defineProperty(we.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function z(oe,ie){if(ie.length===0)return null;var ve;return ie.objectMode?ve=ie.buffer.shift():!oe||oe>=ie.length?(ie.decoder?ve=ie.buffer.join(""):ie.buffer.length===1?ve=ie.buffer.first():ve=ie.buffer.concat(ie.length),ie.buffer.clear()):ve=ie.buffer.consume(oe,ie.decoder),ve}function J(oe){var ie=oe._readableState;_("endReadable",ie.endEmitted),ie.endEmitted||(ie.ended=!0,u.nextTick(be,ie,oe))}function be(oe,ie){if(_("endReadableNT",oe.endEmitted,oe.length),!oe.endEmitted&&oe.length===0&&(oe.endEmitted=!0,ie.readable=!1,ie.emit("end"),oe.autoDestroy)){var ve=ie._writableState;(!ve||ve.autoDestroy&&ve.finished)&&ie.destroy()}}typeof Symbol=="function"&&(we.from=function(oe,ie){return ne===void 0&&(ne=s("./internal/streams/from")),ne(we,oe,ie)});function _e(oe,ie){for(var ve=0,Ne=oe.length;ve<Ne;ve++)if(oe[ve]===ie)return ve;return-1}}).call(this)}).call(this,s("_process"),typeof Z!="undefined"?Z:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"../errors":399,"./_stream_duplex":400,"./internal/streams/async_iterator":405,"./internal/streams/buffer_list":406,"./internal/streams/destroy":407,"./internal/streams/from":409,"./internal/streams/state":411,"./internal/streams/stream":412,_process:467,buffer:90,events:344,inherits:364,"string_decoder/":413,util:89}],403:[function(s,E,I){"use strict";E.exports=h;var u=s("../errors").codes,d=u.ERR_METHOD_NOT_IMPLEMENTED,g=u.ERR_MULTIPLE_CALLBACK,y=u.ERR_TRANSFORM_ALREADY_TRANSFORMING,S=u.ERR_TRANSFORM_WITH_LENGTH_0,v=s("./_stream_duplex");s("inherits")(h,v);function c(T,_){var R=this._transformState;R.transforming=!1;var A=R.writecb;if(A===null)return this.emit("error",new g);R.writechunk=null,R.writecb=null,_!=null&&this.push(_),A(T);var N=this._readableState;N.reading=!1,(N.needReadable||N.length<N.highWaterMark)&&this._read(N.highWaterMark)}function h(T){if(!(this instanceof h))return new h(T);v.call(this,T),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,T&&(typeof T.transform=="function"&&(this._transform=T.transform),typeof T.flush=="function"&&(this._flush=T.flush)),this.on("prefinish",m)}function m(){var T=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(_,R){x(T,_,R)}):x(this,null,null)}h.prototype.push=function(T,_){return this._transformState.needTransform=!1,v.prototype.push.call(this,T,_)},h.prototype._transform=function(T,_,R){R(new d("_transform()"))},h.prototype._write=function(T,_,R){var A=this._transformState;if(A.writecb=R,A.writechunk=T,A.writeencoding=_,!A.transforming){var N=this._readableState;(A.needTransform||N.needReadable||N.length<N.highWaterMark)&&this._read(N.highWaterMark)}},h.prototype._read=function(T){var _=this._transformState;_.writechunk!==null&&!_.transforming?(_.transforming=!0,this._transform(_.writechunk,_.writeencoding,_.afterTransform)):_.needTransform=!0},h.prototype._destroy=function(T,_){v.prototype._destroy.call(this,T,function(R){_(R)})};function x(T,_,R){if(_)return T.emit("error",_);if(R!=null&&T.push(R),T._writableState.length)throw new S;if(T._transformState.transforming)throw new y;return T.push(null)}},{"../errors":399,"./_stream_duplex":400,inherits:364}],404:[function(s,E,I){(function(u,d){(function(){"use strict";E.exports=ce;function g(fe,z,J){this.chunk=fe,this.encoding=z,this.callback=J,this.next=null}function y(fe){var z=this;this.next=null,this.entry=null,this.finish=function(){pe(z,fe)}}var S;ce.WritableState=ae;var v={deprecate:s("util-deprecate")},c=s("./internal/streams/stream"),h=s("buffer").Buffer,m=(typeof d!="undefined"?d:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function x(fe){return h.from(fe)}function T(fe){return h.isBuffer(fe)||fe instanceof m}var _=s("./internal/streams/destroy"),R=s("./internal/streams/state"),A=R.getHighWaterMark,N=s("../errors").codes,L=N.ERR_INVALID_ARG_TYPE,M=N.ERR_METHOD_NOT_IMPLEMENTED,F=N.ERR_MULTIPLE_CALLBACK,H=N.ERR_STREAM_CANNOT_PIPE,P=N.ERR_STREAM_DESTROYED,V=N.ERR_STREAM_NULL_VALUES,G=N.ERR_STREAM_WRITE_AFTER_END,Q=N.ERR_UNKNOWN_ENCODING,ne=_.errorOrDestroy;s("inherits")(ce,c);function ue(){}function ae(fe,z,J){S=S||s("./_stream_duplex"),fe=fe||{},typeof J!="boolean"&&(J=z instanceof S),this.objectMode=!!fe.objectMode,J&&(this.objectMode=this.objectMode||!!fe.writableObjectMode),this.highWaterMark=A(this,fe,"writableHighWaterMark",J),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var be=fe.decodeStrings===!1;this.decodeStrings=!be,this.defaultEncoding=fe.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(_e){De(z,_e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=fe.emitClose!==!1,this.autoDestroy=!!fe.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new y(this)}ae.prototype.getBuffer=function(){for(var z=this.bufferedRequest,J=[];z;)J.push(z),z=z.next;return J},function(){try{Object.defineProperty(ae.prototype,"buffer",{get:v.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(fe){}}();var he;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(he=Function.prototype[Symbol.hasInstance],Object.defineProperty(ce,Symbol.hasInstance,{value:function(z){return he.call(this,z)?!0:this!==ce?!1:z&&z._writableState instanceof ae}})):he=function(z){return z instanceof this};function ce(fe){S=S||s("./_stream_duplex");var z=this instanceof S;if(!z&&!he.call(ce,this))return new ce(fe);this._writableState=new ae(fe,this,z),this.writable=!0,fe&&(typeof fe.write=="function"&&(this._write=fe.write),typeof fe.writev=="function"&&(this._writev=fe.writev),typeof fe.destroy=="function"&&(this._destroy=fe.destroy),typeof fe.final=="function"&&(this._final=fe.final)),c.call(this)}ce.prototype.pipe=function(){ne(this,new H)};function we(fe,z){var J=new G;ne(fe,J),u.nextTick(z,J)}function me(fe,z,J,be){var _e;return J===null?_e=new V:typeof J!="string"&&!z.objectMode&&(_e=new L("chunk",["string","Buffer"],J)),_e?(ne(fe,_e),u.nextTick(be,_e),!1):!0}ce.prototype.write=function(fe,z,J){var be=this._writableState,_e=!1,oe=!be.objectMode&&T(fe);return oe&&!h.isBuffer(fe)&&(fe=x(fe)),typeof z=="function"&&(J=z,z=null),oe?z="buffer":z||(z=be.defaultEncoding),typeof J!="function"&&(J=ue),be.ending?we(this,J):(oe||me(this,be,fe,J))&&(be.pendingcb++,_e=ee(this,be,oe,fe,z,J)),_e},ce.prototype.cork=function(){this._writableState.corked++},ce.prototype.uncork=function(){var fe=this._writableState;fe.corked&&(fe.corked--,!fe.writing&&!fe.corked&&!fe.bufferProcessing&&fe.bufferedRequest&&Fe(this,fe))},ce.prototype.setDefaultEncoding=function(z){if(typeof z=="string"&&(z=z.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((z+"").toLowerCase())>-1))throw new Q(z);return this._writableState.defaultEncoding=z,this},Object.defineProperty(ce.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Le(fe,z,J){return!fe.objectMode&&fe.decodeStrings!==!1&&typeof z=="string"&&(z=h.from(z,J)),z}Object.defineProperty(ce.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function ee(fe,z,J,be,_e,oe){if(!J){var ie=Le(z,be,_e);be!==ie&&(J=!0,_e="buffer",be=ie)}var ve=z.objectMode?1:be.length;z.length+=ve;var Ne=z.length<z.highWaterMark;if(Ne||(z.needDrain=!0),z.writing||z.corked){var ze=z.lastBufferedRequest;z.lastBufferedRequest={chunk:be,encoding:_e,isBuf:J,callback:oe,next:null},ze?ze.next=z.lastBufferedRequest:z.bufferedRequest=z.lastBufferedRequest,z.bufferedRequestCount+=1}else se(fe,z,!1,ve,be,_e,oe);return Ne}function se(fe,z,J,be,_e,oe,ie){z.writelen=be,z.writecb=ie,z.writing=!0,z.sync=!0,z.destroyed?z.onwrite(new P("write")):J?fe._writev(_e,z.onwrite):fe._write(_e,oe,z.onwrite),z.sync=!1}function le(fe,z,J,be,_e){--z.pendingcb,J?(u.nextTick(_e,be),u.nextTick(Re,fe,z),fe._writableState.errorEmitted=!0,ne(fe,be)):(_e(be),fe._writableState.errorEmitted=!0,ne(fe,be),Re(fe,z))}function ke(fe){fe.writing=!1,fe.writecb=null,fe.length-=fe.writelen,fe.writelen=0}function De(fe,z){var J=fe._writableState,be=J.sync,_e=J.writecb;if(typeof _e!="function")throw new F;if(ke(J),z)le(fe,J,be,z,_e);else{var oe=Je(J)||fe.destroyed;!oe&&!J.corked&&!J.bufferProcessing&&J.bufferedRequest&&Fe(fe,J),be?u.nextTick(Be,fe,J,oe,_e):Be(fe,J,oe,_e)}}function Be(fe,z,J,be){J||He(fe,z),z.pendingcb--,be(),Re(fe,z)}function He(fe,z){z.length===0&&z.needDrain&&(z.needDrain=!1,fe.emit("drain"))}function Fe(fe,z){z.bufferProcessing=!0;var J=z.bufferedRequest;if(fe._writev&&J&&J.next){var be=z.bufferedRequestCount,_e=new Array(be),oe=z.corkedRequestsFree;oe.entry=J;for(var ie=0,ve=!0;J;)_e[ie]=J,J.isBuf||(ve=!1),J=J.next,ie+=1;_e.allBuffers=ve,se(fe,z,!0,z.length,_e,"",oe.finish),z.pendingcb++,z.lastBufferedRequest=null,oe.next?(z.corkedRequestsFree=oe.next,oe.next=null):z.corkedRequestsFree=new y(z),z.bufferedRequestCount=0}else{for(;J;){var Ne=J.chunk,ze=J.encoding,Ve=J.callback,yt=z.objectMode?1:Ne.length;if(se(fe,z,!1,yt,Ne,ze,Ve),J=J.next,z.bufferedRequestCount--,z.writing)break}J===null&&(z.lastBufferedRequest=null)}z.bufferedRequest=J,z.bufferProcessing=!1}ce.prototype._write=function(fe,z,J){J(new M("_write()"))},ce.prototype._writev=null,ce.prototype.end=function(fe,z,J){var be=this._writableState;return typeof fe=="function"?(J=fe,fe=null,z=null):typeof z=="function"&&(J=z,z=null),fe!=null&&this.write(fe,z),be.corked&&(be.corked=1,this.uncork()),be.ending||Oe(this,be,J),this},Object.defineProperty(ce.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Je(fe){return fe.ending&&fe.length===0&&fe.bufferedRequest===null&&!fe.finished&&!fe.writing}function Me(fe,z){fe._final(function(J){z.pendingcb--,J&&ne(fe,J),z.prefinished=!0,fe.emit("prefinish"),Re(fe,z)})}function lt(fe,z){!z.prefinished&&!z.finalCalled&&(typeof fe._final=="function"&&!z.destroyed?(z.pendingcb++,z.finalCalled=!0,u.nextTick(Me,fe,z)):(z.prefinished=!0,fe.emit("prefinish")))}function Re(fe,z){var J=Je(z);if(J&&(lt(fe,z),z.pendingcb===0&&(z.finished=!0,fe.emit("finish"),z.autoDestroy))){var be=fe._readableState;(!be||be.autoDestroy&&be.endEmitted)&&fe.destroy()}return J}function Oe(fe,z,J){z.ending=!0,Re(fe,z),J&&(z.finished?u.nextTick(J):fe.once("finish",J)),z.ended=!0,fe.writable=!1}function pe(fe,z,J){var be=fe.entry;for(fe.entry=null;be;){var _e=be.callback;z.pendingcb--,_e(J),be=be.next}z.corkedRequestsFree.next=fe}Object.defineProperty(ce.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(z){this._writableState&&(this._writableState.destroyed=z)}}),ce.prototype.destroy=_.destroy,ce.prototype._undestroy=_.undestroy,ce.prototype._destroy=function(fe,z){z(fe)}}).call(this)}).call(this,s("_process"),typeof Z!="undefined"?Z:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"../errors":399,"./_stream_duplex":400,"./internal/streams/destroy":407,"./internal/streams/state":411,"./internal/streams/stream":412,_process:467,buffer:90,inherits:364,"util-deprecate":416}],405:[function(s,E,I){(function(u){(function(){"use strict";var d;function g(V,G,Q){return G=y(G),G in V?Object.defineProperty(V,G,{value:Q,enumerable:!0,configurable:!0,writable:!0}):V[G]=Q,V}function y(V){var G=S(V,"string");return typeof G=="symbol"?G:String(G)}function S(V,G){if(typeof V!="object"||V===null)return V;var Q=V[Symbol.toPrimitive];if(Q!==void 0){var ne=Q.call(V,G||"default");if(typeof ne!="object")return ne;throw new TypeError("@@toPrimitive must return a primitive value.")}return(G==="string"?String:Number)(V)}var v=s("./end-of-stream"),c=Symbol("lastResolve"),h=Symbol("lastReject"),m=Symbol("error"),x=Symbol("ended"),T=Symbol("lastPromise"),_=Symbol("handlePromise"),R=Symbol("stream");function A(V,G){return{value:V,done:G}}function N(V){var G=V[c];if(G!==null){var Q=V[R].read();Q!==null&&(V[T]=null,V[c]=null,V[h]=null,G(A(Q,!1)))}}function L(V){u.nextTick(N,V)}function M(V,G){return function(Q,ne){V.then(function(){if(G[x]){Q(A(void 0,!0));return}G[_](Q,ne)},ne)}}var F=Object.getPrototypeOf(function(){}),H=Object.setPrototypeOf((d={get stream(){return this[R]},next:function(){var G=this,Q=this[m];if(Q!==null)return Promise.reject(Q);if(this[x])return Promise.resolve(A(void 0,!0));if(this[R].destroyed)return new Promise(function(he,ce){u.nextTick(function(){G[m]?ce(G[m]):he(A(void 0,!0))})});var ne=this[T],ue;if(ne)ue=new Promise(M(ne,this));else{var ae=this[R].read();if(ae!==null)return Promise.resolve(A(ae,!1));ue=new Promise(this[_])}return this[T]=ue,ue}},g(d,Symbol.asyncIterator,function(){return this}),g(d,"return",function(){var G=this;return new Promise(function(Q,ne){G[R].destroy(null,function(ue){if(ue){ne(ue);return}Q(A(void 0,!0))})})}),d),F),P=function(G){var Q,ne=Object.create(H,(Q={},g(Q,R,{value:G,writable:!0}),g(Q,c,{value:null,writable:!0}),g(Q,h,{value:null,writable:!0}),g(Q,m,{value:null,writable:!0}),g(Q,x,{value:G._readableState.endEmitted,writable:!0}),g(Q,_,{value:function(ae,he){var ce=ne[R].read();ce?(ne[T]=null,ne[c]=null,ne[h]=null,ae(A(ce,!1))):(ne[c]=ae,ne[h]=he)},writable:!0}),Q));return ne[T]=null,v(G,function(ue){if(ue&&ue.code!=="ERR_STREAM_PREMATURE_CLOSE"){var ae=ne[h];ae!==null&&(ne[T]=null,ne[c]=null,ne[h]=null,ae(ue)),ne[m]=ue;return}var he=ne[c];he!==null&&(ne[T]=null,ne[c]=null,ne[h]=null,he(A(void 0,!0))),ne[x]=!0}),G.on("readable",L.bind(null,ne)),ne};E.exports=P}).call(this)}).call(this,s("_process"))},{"./end-of-stream":408,_process:467}],406:[function(s,E,I){"use strict";function u(N,L){var M=Object.keys(N);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(N);L&&(F=F.filter(function(H){return Object.getOwnPropertyDescriptor(N,H).enumerable})),M.push.apply(M,F)}return M}function d(N){for(var L=1;L<arguments.length;L++){var M=arguments[L]!=null?arguments[L]:{};L%2?u(Object(M),!0).forEach(function(F){g(N,F,M[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(M)):u(Object(M)).forEach(function(F){Object.defineProperty(N,F,Object.getOwnPropertyDescriptor(M,F))})}return N}function g(N,L,M){return L=c(L),L in N?Object.defineProperty(N,L,{value:M,enumerable:!0,configurable:!0,writable:!0}):N[L]=M,N}function y(N,L){if(!(N instanceof L))throw new TypeError("Cannot call a class as a function")}function S(N,L){for(var M=0;M<L.length;M++){var F=L[M];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(N,c(F.key),F)}}function v(N,L,M){return L&&S(N.prototype,L),M&&S(N,M),Object.defineProperty(N,"prototype",{writable:!1}),N}function c(N){var L=h(N,"string");return typeof L=="symbol"?L:String(L)}function h(N,L){if(typeof N!="object"||N===null)return N;var M=N[Symbol.toPrimitive];if(M!==void 0){var F=M.call(N,L||"default");if(typeof F!="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return(L==="string"?String:Number)(N)}var m=s("buffer"),x=m.Buffer,T=s("util"),_=T.inspect,R=_&&_.custom||"inspect";function A(N,L,M){x.prototype.copy.call(N,L,M)}E.exports=function(){function N(){y(this,N),this.head=null,this.tail=null,this.length=0}return v(N,[{key:"push",value:function(M){var F={data:M,next:null};this.length>0?this.tail.next=F:this.head=F,this.tail=F,++this.length}},{key:"unshift",value:function(M){var F={data:M,next:this.head};this.length===0&&(this.tail=F),this.head=F,++this.length}},{key:"shift",value:function(){if(this.length!==0){var M=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,M}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(M){if(this.length===0)return"";for(var F=this.head,H=""+F.data;F=F.next;)H+=M+F.data;return H}},{key:"concat",value:function(M){if(this.length===0)return x.alloc(0);for(var F=x.allocUnsafe(M>>>0),H=this.head,P=0;H;)A(H.data,F,P),P+=H.data.length,H=H.next;return F}},{key:"consume",value:function(M,F){var H;return M<this.head.data.length?(H=this.head.data.slice(0,M),this.head.data=this.head.data.slice(M)):M===this.head.data.length?H=this.shift():H=F?this._getString(M):this._getBuffer(M),H}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(M){var F=this.head,H=1,P=F.data;for(M-=P.length;F=F.next;){var V=F.data,G=M>V.length?V.length:M;if(G===V.length?P+=V:P+=V.slice(0,M),M-=G,M===0){G===V.length?(++H,F.next?this.head=F.next:this.head=this.tail=null):(this.head=F,F.data=V.slice(G));break}++H}return this.length-=H,P}},{key:"_getBuffer",value:function(M){var F=x.allocUnsafe(M),H=this.head,P=1;for(H.data.copy(F),M-=H.data.length;H=H.next;){var V=H.data,G=M>V.length?V.length:M;if(V.copy(F,F.length-M,0,G),M-=G,M===0){G===V.length?(++P,H.next?this.head=H.next:this.head=this.tail=null):(this.head=H,H.data=V.slice(G));break}++P}return this.length-=P,F}},{key:R,value:function(M,F){return _(this,d(d({},F),{},{depth:0,customInspect:!1}))}}]),N}()},{buffer:90,util:89}],407:[function(s,E,I){(function(u){(function(){"use strict";function d(h,m){var x=this,T=this._readableState&&this._readableState.destroyed,_=this._writableState&&this._writableState.destroyed;return T||_?(m?m(h):h&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,u.nextTick(v,this,h)):u.nextTick(v,this,h)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(h||null,function(R){!m&&R?x._writableState?x._writableState.errorEmitted?u.nextTick(y,x):(x._writableState.errorEmitted=!0,u.nextTick(g,x,R)):u.nextTick(g,x,R):m?(u.nextTick(y,x),m(R)):u.nextTick(y,x)}),this)}function g(h,m){v(h,m),y(h)}function y(h){h._writableState&&!h._writableState.emitClose||h._readableState&&!h._readableState.emitClose||h.emit("close")}function S(){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.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function v(h,m){h.emit("error",m)}function c(h,m){var x=h._readableState,T=h._writableState;x&&x.autoDestroy||T&&T.autoDestroy?h.destroy(m):h.emit("error",m)}E.exports={destroy:d,undestroy:S,errorOrDestroy:c}}).call(this)}).call(this,s("_process"))},{_process:467}],408:[function(s,E,I){"use strict";var u=s("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function d(v){var c=!1;return function(){if(!c){c=!0;for(var h=arguments.length,m=new Array(h),x=0;x<h;x++)m[x]=arguments[x];v.apply(this,m)}}}function g(){}function y(v){return v.setHeader&&typeof v.abort=="function"}function S(v,c,h){if(typeof c=="function")return S(v,null,c);c||(c={}),h=d(h||g);var m=c.readable||c.readable!==!1&&v.readable,x=c.writable||c.writable!==!1&&v.writable,T=function(){v.writable||R()},_=v._writableState&&v._writableState.finished,R=function(){x=!1,_=!0,m||h.call(v)},A=v._readableState&&v._readableState.endEmitted,N=function(){m=!1,A=!0,x||h.call(v)},L=function(P){h.call(v,P)},M=function(){var P;if(m&&!A)return(!v._readableState||!v._readableState.ended)&&(P=new u),h.call(v,P);if(x&&!_)return(!v._writableState||!v._writableState.ended)&&(P=new u),h.call(v,P)},F=function(){v.req.on("finish",R)};return y(v)?(v.on("complete",R),v.on("abort",M),v.req?F():v.on("request",F)):x&&!v._writableState&&(v.on("end",T),v.on("close",T)),v.on("end",N),v.on("finish",R),c.error!==!1&&v.on("error",L),v.on("close",M),function(){v.removeListener("complete",R),v.removeListener("abort",M),v.removeListener("request",F),v.req&&v.req.removeListener("finish",R),v.removeListener("end",T),v.removeListener("close",T),v.removeListener("finish",R),v.removeListener("end",N),v.removeListener("error",L),v.removeListener("close",M)}}E.exports=S},{"../../../errors":399}],409:[function(s,E,I){E.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],410:[function(s,E,I){"use strict";var u;function d(R){var A=!1;return function(){A||(A=!0,R.apply(void 0,arguments))}}var g=s("../../../errors").codes,y=g.ERR_MISSING_ARGS,S=g.ERR_STREAM_DESTROYED;function v(R){if(R)throw R}function c(R){return R.setHeader&&typeof R.abort=="function"}function h(R,A,N,L){L=d(L);var M=!1;R.on("close",function(){M=!0}),u===void 0&&(u=s("./end-of-stream")),u(R,{readable:A,writable:N},function(H){if(H)return L(H);M=!0,L()});var F=!1;return function(H){if(!M&&!F){if(F=!0,c(R))return R.abort();if(typeof R.destroy=="function")return R.destroy();L(H||new S("pipe"))}}}function m(R){R()}function x(R,A){return R.pipe(A)}function T(R){return!R.length||typeof R[R.length-1]!="function"?v:R.pop()}function _(){for(var R=arguments.length,A=new Array(R),N=0;N<R;N++)A[N]=arguments[N];var L=T(A);if(Array.isArray(A[0])&&(A=A[0]),A.length<2)throw new y("streams");var M,F=A.map(function(H,P){var V=P<A.length-1,G=P>0;return h(H,V,G,function(Q){M||(M=Q),Q&&F.forEach(m),!V&&(F.forEach(m),L(M))})});return A.reduce(x)}E.exports=_},{"../../../errors":399,"./end-of-stream":408}],411:[function(s,E,I){"use strict";var u=s("../../../errors").codes.ERR_INVALID_OPT_VALUE;function d(y,S,v){return y.highWaterMark!=null?y.highWaterMark:S?y[v]:null}function g(y,S,v,c){var h=d(S,c,v);if(h!=null){if(!(isFinite(h)&&Math.floor(h)===h)||h<0){var m=c?v:"highWaterMark";throw new u(m,h)}return Math.floor(h)}return y.objectMode?16:16*1024}E.exports={getHighWaterMark:g}},{"../../../errors":399}],412:[function(s,E,I){arguments[4][393][0].apply(I,arguments)},{dup:393,events:344}],413:[function(s,E,I){"use strict";var u=s("safe-buffer").Buffer,d=u.isEncoding||function(F){switch(F=""+F,F&&F.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 g(F){if(!F)return"utf8";for(var H;;)switch(F){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 F;default:if(H)return;F=(""+F).toLowerCase(),H=!0}}function y(F){var H=g(F);if(typeof H!="string"&&(u.isEncoding===d||!d(F)))throw new Error("Unknown encoding: "+F);return H||F}I.StringDecoder=S;function S(F){this.encoding=y(F);var H;switch(this.encoding){case"utf16le":this.text=_,this.end=R,H=4;break;case"utf8":this.fillLast=m,H=4;break;case"base64":this.text=A,this.end=N,H=3;break;default:this.write=L,this.end=M;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=u.allocUnsafe(H)}S.prototype.write=function(F){if(F.length===0)return"";var H,P;if(this.lastNeed){if(H=this.fillLast(F),H===void 0)return"";P=this.lastNeed,this.lastNeed=0}else P=0;return P<F.length?H?H+this.text(F,P):this.text(F,P):H||""},S.prototype.end=T,S.prototype.text=x,S.prototype.fillLast=function(F){if(this.lastNeed<=F.length)return F.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);F.copy(this.lastChar,this.lastTotal-this.lastNeed,0,F.length),this.lastNeed-=F.length};function v(F){return F<=127?0:F>>5===6?2:F>>4===14?3:F>>3===30?4:F>>6===2?-1:-2}function c(F,H,P){var V=H.length-1;if(V<P)return 0;var G=v(H[V]);return G>=0?(G>0&&(F.lastNeed=G-1),G):--V<P||G===-2?0:(G=v(H[V]),G>=0?(G>0&&(F.lastNeed=G-2),G):--V<P||G===-2?0:(G=v(H[V]),G>=0?(G>0&&(G===2?G=0:F.lastNeed=G-3),G):0))}function h(F,H,P){if((H[0]&192)!==128)return F.lastNeed=0,"\uFFFD";if(F.lastNeed>1&&H.length>1){if((H[1]&192)!==128)return F.lastNeed=1,"\uFFFD";if(F.lastNeed>2&&H.length>2&&(H[2]&192)!==128)return F.lastNeed=2,"\uFFFD"}}function m(F){var H=this.lastTotal-this.lastNeed,P=h(this,F,H);if(P!==void 0)return P;if(this.lastNeed<=F.length)return F.copy(this.lastChar,H,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);F.copy(this.lastChar,H,0,F.length),this.lastNeed-=F.length}function x(F,H){var P=c(this,F,H);if(!this.lastNeed)return F.toString("utf8",H);this.lastTotal=P;var V=F.length-(P-this.lastNeed);return F.copy(this.lastChar,0,V),F.toString("utf8",H,V)}function T(F){var H=F&&F.length?this.write(F):"";return this.lastNeed?H+"\uFFFD":H}function _(F,H){if((F.length-H)%2===0){var P=F.toString("utf16le",H);if(P){var V=P.charCodeAt(P.length-1);if(V>=55296&&V<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=F[F.length-2],this.lastChar[1]=F[F.length-1],P.slice(0,-1)}return P}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=F[F.length-1],F.toString("utf16le",H,F.length-1)}function R(F){var H=F&&F.length?this.write(F):"";if(this.lastNeed){var P=this.lastTotal-this.lastNeed;return H+this.lastChar.toString("utf16le",0,P)}return H}function A(F,H){var P=(F.length-H)%3;return P===0?F.toString("base64",H):(this.lastNeed=3-P,this.lastTotal=3,P===1?this.lastChar[0]=F[F.length-1]:(this.lastChar[0]=F[F.length-2],this.lastChar[1]=F[F.length-1]),F.toString("base64",H,F.length-P))}function N(F){var H=F&&F.length?this.write(F):"";return this.lastNeed?H+this.lastChar.toString("base64",0,3-this.lastNeed):H}function L(F){return F.toString(this.encoding)}function M(F){return F&&F.length?this.write(F):""}},{"safe-buffer":396}],414:[function(s,E,I){(function(u,d){(function(){var g=s("process/browser.js").nextTick,y=Function.prototype.apply,S=Array.prototype.slice,v={},c=0;I.setTimeout=function(){return new h(y.call(setTimeout,window,arguments),clearTimeout)},I.setInterval=function(){return new h(y.call(setInterval,window,arguments),clearInterval)},I.clearTimeout=I.clearInterval=function(m){m.close()};function h(m,x){this._id=m,this._clearFn=x}h.prototype.unref=h.prototype.ref=function(){},h.prototype.close=function(){this._clearFn.call(window,this._id)},I.enroll=function(m,x){clearTimeout(m._idleTimeoutId),m._idleTimeout=x},I.unenroll=function(m){clearTimeout(m._idleTimeoutId),m._idleTimeout=-1},I._unrefActive=I.active=function(m){clearTimeout(m._idleTimeoutId);var x=m._idleTimeout;x>=0&&(m._idleTimeoutId=setTimeout(function(){m._onTimeout&&m._onTimeout()},x))},I.setImmediate=typeof u=="function"?u:function(m){var x=c++,T=arguments.length<2?!1:S.call(arguments,1);return v[x]=!0,g(function(){v[x]&&(T?m.apply(null,T):m.call(null),I.clearImmediate(x))}),x},I.clearImmediate=typeof d=="function"?d:function(m){delete v[m]}}).call(this)}).call(this,s("timers").setImmediate,s("timers").clearImmediate)},{"process/browser.js":381,timers:414}],415:[function(s,E,I){var u=s("buffer").Buffer;E.exports=function(d){if(d instanceof Uint8Array){if(d.byteOffset===0&&d.byteLength===d.buffer.byteLength)return d.buffer;if(typeof d.buffer.slice=="function")return d.buffer.slice(d.byteOffset,d.byteOffset+d.byteLength)}if(u.isBuffer(d)){for(var g=new Uint8Array(d.length),y=d.length,S=0;S<y;S++)g[S]=d[S];return g.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:90}],416:[function(s,E,I){(function(u){(function(){E.exports=d;function d(y,S){if(g("noDeprecation"))return y;var v=!1;function c(){if(!v){if(g("throwDeprecation"))throw new Error(S);g("traceDeprecation")?console.trace(S):console.warn(S),v=!0}return y.apply(this,arguments)}return c}function g(y){try{if(!u.localStorage)return!1}catch(v){return!1}var S=u.localStorage[y];return S==null?!1:String(S).toLowerCase()==="true"}}).call(this)}).call(this,typeof Z!="undefined"?Z:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],417:[function(s,E,I){arguments[4][84][0].apply(I,arguments)},{dup:84}],418:[function(s,E,I){"use strict";var u=s("is-arguments"),d=s("is-generator-function"),g=s("which-typed-array"),y=s("is-typed-array");function S(ze){return ze.call.bind(ze)}var v=typeof BigInt!="undefined",c=typeof Symbol!="undefined",h=S(Object.prototype.toString),m=S(Number.prototype.valueOf),x=S(String.prototype.valueOf),T=S(Boolean.prototype.valueOf);if(v)var _=S(BigInt.prototype.valueOf);if(c)var R=S(Symbol.prototype.valueOf);function A(ze,Ve){if(typeof ze!="object")return!1;try{return Ve(ze),!0}catch(yt){return!1}}I.isArgumentsObject=u,I.isGeneratorFunction=d,I.isTypedArray=y;function N(ze){return typeof Promise!="undefined"&&ze instanceof Promise||ze!==null&&typeof ze=="object"&&typeof ze.then=="function"&&typeof ze.catch=="function"}I.isPromise=N;function L(ze){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(ze):y(ze)||Fe(ze)}I.isArrayBufferView=L;function M(ze){return g(ze)==="Uint8Array"}I.isUint8Array=M;function F(ze){return g(ze)==="Uint8ClampedArray"}I.isUint8ClampedArray=F;function H(ze){return g(ze)==="Uint16Array"}I.isUint16Array=H;function P(ze){return g(ze)==="Uint32Array"}I.isUint32Array=P;function V(ze){return g(ze)==="Int8Array"}I.isInt8Array=V;function G(ze){return g(ze)==="Int16Array"}I.isInt16Array=G;function Q(ze){return g(ze)==="Int32Array"}I.isInt32Array=Q;function ne(ze){return g(ze)==="Float32Array"}I.isFloat32Array=ne;function ue(ze){return g(ze)==="Float64Array"}I.isFloat64Array=ue;function ae(ze){return g(ze)==="BigInt64Array"}I.isBigInt64Array=ae;function he(ze){return g(ze)==="BigUint64Array"}I.isBigUint64Array=he;function ce(ze){return h(ze)==="[object Map]"}ce.working=typeof Map!="undefined"&&ce(new Map);function we(ze){return typeof Map=="undefined"?!1:ce.working?ce(ze):ze instanceof Map}I.isMap=we;function me(ze){return h(ze)==="[object Set]"}me.working=typeof Set!="undefined"&&me(new Set);function Le(ze){return typeof Set=="undefined"?!1:me.working?me(ze):ze instanceof Set}I.isSet=Le;function ee(ze){return h(ze)==="[object WeakMap]"}ee.working=typeof WeakMap!="undefined"&&ee(new WeakMap);function se(ze){return typeof WeakMap=="undefined"?!1:ee.working?ee(ze):ze instanceof WeakMap}I.isWeakMap=se;function le(ze){return h(ze)==="[object WeakSet]"}le.working=typeof WeakSet!="undefined"&&le(new WeakSet);function ke(ze){return le(ze)}I.isWeakSet=ke;function De(ze){return h(ze)==="[object ArrayBuffer]"}De.working=typeof ArrayBuffer!="undefined"&&De(new ArrayBuffer);function Be(ze){return typeof ArrayBuffer=="undefined"?!1:De.working?De(ze):ze instanceof ArrayBuffer}I.isArrayBuffer=Be;function He(ze){return h(ze)==="[object DataView]"}He.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&He(new DataView(new ArrayBuffer(1),0,1));function Fe(ze){return typeof DataView=="undefined"?!1:He.working?He(ze):ze instanceof DataView}I.isDataView=Fe;var Je=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function Me(ze){return h(ze)==="[object SharedArrayBuffer]"}function lt(ze){return typeof Je=="undefined"?!1:(typeof Me.working=="undefined"&&(Me.working=Me(new Je)),Me.working?Me(ze):ze instanceof Je)}I.isSharedArrayBuffer=lt;function Re(ze){return h(ze)==="[object AsyncFunction]"}I.isAsyncFunction=Re;function Oe(ze){return h(ze)==="[object Map Iterator]"}I.isMapIterator=Oe;function pe(ze){return h(ze)==="[object Set Iterator]"}I.isSetIterator=pe;function fe(ze){return h(ze)==="[object Generator]"}I.isGeneratorObject=fe;function z(ze){return h(ze)==="[object WebAssembly.Module]"}I.isWebAssemblyCompiledModule=z;function J(ze){return A(ze,m)}I.isNumberObject=J;function be(ze){return A(ze,x)}I.isStringObject=be;function _e(ze){return A(ze,T)}I.isBooleanObject=_e;function oe(ze){return v&&A(ze,_)}I.isBigIntObject=oe;function ie(ze){return c&&A(ze,R)}I.isSymbolObject=ie;function ve(ze){return J(ze)||be(ze)||_e(ze)||oe(ze)||ie(ze)}I.isBoxedPrimitive=ve;function Ne(ze){return typeof Uint8Array!="undefined"&&(Be(ze)||lt(ze))}I.isAnyArrayBuffer=Ne,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(ze){Object.defineProperty(I,ze,{enumerable:!1,value:function(){throw new Error(ze+" is not supported in userland")}})})},{"is-arguments":365,"is-generator-function":368,"is-typed-array":369,"which-typed-array":420}],419:[function(s,E,I){(function(u){(function(){var d=Object.getOwnPropertyDescriptors||function(Je){for(var Me=Object.keys(Je),lt={},Re=0;Re<Me.length;Re++)lt[Me[Re]]=Object.getOwnPropertyDescriptor(Je,Me[Re]);return lt},g=/%[sdj%]/g;I.format=function(Fe){if(!G(Fe)){for(var Je=[],Me=0;Me<arguments.length;Me++)Je.push(c(arguments[Me]));return Je.join(" ")}for(var Me=1,lt=arguments,Re=lt.length,Oe=String(Fe).replace(g,function(fe){if(fe==="%%")return"%";if(Me>=Re)return fe;switch(fe){case"%s":return String(lt[Me++]);case"%d":return Number(lt[Me++]);case"%j":try{return JSON.stringify(lt[Me++])}catch(z){return"[Circular]"}default:return fe}}),pe=lt[Me];Me<Re;pe=lt[++Me])H(pe)||!ae(pe)?Oe+=" "+pe:Oe+=" "+c(pe);return Oe},I.deprecate=function(Fe,Je){if(typeof u!="undefined"&&u.noDeprecation===!0)return Fe;if(typeof u=="undefined")return function(){return I.deprecate(Fe,Je).apply(this,arguments)};var Me=!1;function lt(){if(!Me){if(u.throwDeprecation)throw new Error(Je);u.traceDeprecation?console.trace(Je):console.error(Je),Me=!0}return Fe.apply(this,arguments)}return lt};var y={},S=/^$/;if(u.env.NODE_DEBUG){var v=u.env.NODE_DEBUG;v=v.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),S=new RegExp("^"+v+"$","i")}I.debuglog=function(Fe){if(Fe=Fe.toUpperCase(),!y[Fe])if(S.test(Fe)){var Je=u.pid;y[Fe]=function(){var Me=I.format.apply(I,arguments);console.error("%s %d: %s",Fe,Je,Me)}}else y[Fe]=function(){};return y[Fe]};function c(Fe,Je){var Me={seen:[],stylize:m};return arguments.length>=3&&(Me.depth=arguments[2]),arguments.length>=4&&(Me.colors=arguments[3]),F(Je)?Me.showHidden=Je:Je&&I._extend(Me,Je),ne(Me.showHidden)&&(Me.showHidden=!1),ne(Me.depth)&&(Me.depth=2),ne(Me.colors)&&(Me.colors=!1),ne(Me.customInspect)&&(Me.customInspect=!0),Me.colors&&(Me.stylize=h),T(Me,Fe,Me.depth)}I.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function h(Fe,Je){var Me=c.styles[Je];return Me?"\x1B["+c.colors[Me][0]+"m"+Fe+"\x1B["+c.colors[Me][1]+"m":Fe}function m(Fe,Je){return Fe}function x(Fe){var Je={};return Fe.forEach(function(Me,lt){Je[Me]=!0}),Je}function T(Fe,Je,Me){if(Fe.customInspect&&Je&&we(Je.inspect)&&Je.inspect!==I.inspect&&!(Je.constructor&&Je.constructor.prototype===Je)){var lt=Je.inspect(Me,Fe);return G(lt)||(lt=T(Fe,lt,Me)),lt}var Re=_(Fe,Je);if(Re)return Re;var Oe=Object.keys(Je),pe=x(Oe);if(Fe.showHidden&&(Oe=Object.getOwnPropertyNames(Je)),ce(Je)&&(Oe.indexOf("message")>=0||Oe.indexOf("description")>=0))return R(Je);if(Oe.length===0){if(we(Je)){var fe=Je.name?": "+Je.name:"";return Fe.stylize("[Function"+fe+"]","special")}if(ue(Je))return Fe.stylize(RegExp.prototype.toString.call(Je),"regexp");if(he(Je))return Fe.stylize(Date.prototype.toString.call(Je),"date");if(ce(Je))return R(Je)}var z="",J=!1,be=["{","}"];if(M(Je)&&(J=!0,be=["[","]"]),we(Je)){var _e=Je.name?": "+Je.name:"";z=" [Function"+_e+"]"}if(ue(Je)&&(z=" "+RegExp.prototype.toString.call(Je)),he(Je)&&(z=" "+Date.prototype.toUTCString.call(Je)),ce(Je)&&(z=" "+R(Je)),Oe.length===0&&(!J||Je.length==0))return be[0]+z+be[1];if(Me<0)return ue(Je)?Fe.stylize(RegExp.prototype.toString.call(Je),"regexp"):Fe.stylize("[Object]","special");Fe.seen.push(Je);var oe;return J?oe=A(Fe,Je,Me,pe,Oe):oe=Oe.map(function(ie){return N(Fe,Je,Me,pe,ie,J)}),Fe.seen.pop(),L(oe,z,be)}function _(Fe,Je){if(ne(Je))return Fe.stylize("undefined","undefined");if(G(Je)){var Me="'"+JSON.stringify(Je).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Fe.stylize(Me,"string")}if(V(Je))return Fe.stylize(""+Je,"number");if(F(Je))return Fe.stylize(""+Je,"boolean");if(H(Je))return Fe.stylize("null","null")}function R(Fe){return"["+Error.prototype.toString.call(Fe)+"]"}function A(Fe,Je,Me,lt,Re){for(var Oe=[],pe=0,fe=Je.length;pe<fe;++pe)ke(Je,String(pe))?Oe.push(N(Fe,Je,Me,lt,String(pe),!0)):Oe.push("");return Re.forEach(function(z){z.match(/^\d+$/)||Oe.push(N(Fe,Je,Me,lt,z,!0))}),Oe}function N(Fe,Je,Me,lt,Re,Oe){var pe,fe,z;if(z=Object.getOwnPropertyDescriptor(Je,Re)||{value:Je[Re]},z.get?z.set?fe=Fe.stylize("[Getter/Setter]","special"):fe=Fe.stylize("[Getter]","special"):z.set&&(fe=Fe.stylize("[Setter]","special")),ke(lt,Re)||(pe="["+Re+"]"),fe||(Fe.seen.indexOf(z.value)<0?(H(Me)?fe=T(Fe,z.value,null):fe=T(Fe,z.value,Me-1),fe.indexOf(`
`)>-1&&(Oe?fe=fe.split(`
`).map(function(J){return" "+J}).join(`
`).slice(2):fe=`
`+fe.split(`
`).map(function(J){return" "+J}).join(`
`))):fe=Fe.stylize("[Circular]","special")),ne(pe)){if(Oe&&Re.match(/^\d+$/))return fe;pe=JSON.stringify(""+Re),pe.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(pe=pe.slice(1,-1),pe=Fe.stylize(pe,"name")):(pe=pe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),pe=Fe.stylize(pe,"string"))}return pe+": "+fe}function L(Fe,Je,Me){var lt=0,Re=Fe.reduce(function(Oe,pe){return lt++,pe.indexOf(`
`)>=0&&lt++,Oe+pe.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Re>60?Me[0]+(Je===""?"":Je+`
`)+" "+Fe.join(`,
`)+" "+Me[1]:Me[0]+Je+" "+Fe.join(", ")+" "+Me[1]}I.types=s("./support/types");function M(Fe){return Array.isArray(Fe)}I.isArray=M;function F(Fe){return typeof Fe=="boolean"}I.isBoolean=F;function H(Fe){return Fe===null}I.isNull=H;function P(Fe){return Fe==null}I.isNullOrUndefined=P;function V(Fe){return typeof Fe=="number"}I.isNumber=V;function G(Fe){return typeof Fe=="string"}I.isString=G;function Q(Fe){return typeof Fe=="symbol"}I.isSymbol=Q;function ne(Fe){return Fe===void 0}I.isUndefined=ne;function ue(Fe){return ae(Fe)&&Le(Fe)==="[object RegExp]"}I.isRegExp=ue,I.types.isRegExp=ue;function ae(Fe){return typeof Fe=="object"&&Fe!==null}I.isObject=ae;function he(Fe){return ae(Fe)&&Le(Fe)==="[object Date]"}I.isDate=he,I.types.isDate=he;function ce(Fe){return ae(Fe)&&(Le(Fe)==="[object Error]"||Fe instanceof Error)}I.isError=ce,I.types.isNativeError=ce;function we(Fe){return typeof Fe=="function"}I.isFunction=we;function me(Fe){return Fe===null||typeof Fe=="boolean"||typeof Fe=="number"||typeof Fe=="string"||typeof Fe=="symbol"||typeof Fe=="undefined"}I.isPrimitive=me,I.isBuffer=s("./support/isBuffer");function Le(Fe){return Object.prototype.toString.call(Fe)}function ee(Fe){return Fe<10?"0"+Fe.toString(10):Fe.toString(10)}var se=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function le(){var Fe=new Date,Je=[ee(Fe.getHours()),ee(Fe.getMinutes()),ee(Fe.getSeconds())].join(":");return[Fe.getDate(),se[Fe.getMonth()],Je].join(" ")}I.log=function(){console.log("%s - %s",le(),I.format.apply(I,arguments))},I.inherits=s("inherits"),I._extend=function(Fe,Je){if(!Je||!ae(Je))return Fe;for(var Me=Object.keys(Je),lt=Me.length;lt--;)Fe[Me[lt]]=Je[Me[lt]];return Fe};function ke(Fe,Je){return Object.prototype.hasOwnProperty.call(Fe,Je)}var De=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;I.promisify=function(Je){if(typeof Je!="function")throw new TypeError('The "original" argument must be of type Function');if(De&&Je[De]){var Me=Je[De];if(typeof Me!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Me,De,{value:Me,enumerable:!1,writable:!1,configurable:!0}),Me}function Me(){for(var lt,Re,Oe=new Promise(function(z,J){lt=z,Re=J}),pe=[],fe=0;fe<arguments.length;fe++)pe.push(arguments[fe]);pe.push(function(z,J){z?Re(z):lt(J)});try{Je.apply(this,pe)}catch(z){Re(z)}return Oe}return Object.setPrototypeOf(Me,Object.getPrototypeOf(Je)),De&&Object.defineProperty(Me,De,{value:Me,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Me,d(Je))},I.promisify.custom=De;function Be(Fe,Je){if(!Fe){var Me=new Error("Promise was rejected with a falsy value");Me.reason=Fe,Fe=Me}return Je(Fe)}function He(Fe){if(typeof Fe!="function")throw new TypeError('The "original" argument must be of type Function');function Je(){for(var Me=[],lt=0;lt<arguments.length;lt++)Me.push(arguments[lt]);var Re=Me.pop();if(typeof Re!="function")throw new TypeError("The last argument must be of type Function");var Oe=this,pe=function(){return Re.apply(Oe,arguments)};Fe.apply(this,Me).then(function(fe){u.nextTick(pe.bind(null,null,fe))},function(fe){u.nextTick(Be.bind(null,fe,pe))})}return Object.setPrototypeOf(Je,Object.getPrototypeOf(Fe)),Object.defineProperties(Je,d(Fe)),Je}I.callbackify=He}).call(this)}).call(this,s("_process"))},{"./support/isBuffer":417,"./support/types":418,_process:467,inherits:364}],420:[function(s,E,I){(function(u){(function(){"use strict";var d=s("for-each"),g=s("available-typed-arrays"),y=s("call-bind"),S=s("call-bind/callBound"),v=s("gopd"),c=S("Object.prototype.toString"),h=s("has-tostringtag/shams")(),m=typeof globalThis=="undefined"?u:globalThis,x=g(),T=S("String.prototype.slice"),_=Object.getPrototypeOf,R=S("Array.prototype.indexOf",!0)||function(F,H){for(var P=0;P<F.length;P+=1)if(F[P]===H)return P;return-1},A={__proto__:null};h&&v&&_?d(x,function(M){var F=new m[M];if(Symbol.toStringTag in F){var H=_(F),P=v(H,Symbol.toStringTag);if(!P){var V=_(H);P=v(V,Symbol.toStringTag)}A["$"+M]=y(P.get)}}):d(x,function(M){var F=new m[M];A["$"+M]=y(F.slice)});var N=function(F){var H=!1;return d(A,function(P,V){if(!H)try{"$"+P(F)===V&&(H=T(V,1))}catch(G){}}),H},L=function(F){var H=!1;return d(A,function(P,V){if(!H)try{P(F),H=T(V,1)}catch(G){}}),H};E.exports=function(F){if(!F||typeof F!="object")return!1;if(!h){var H=T(c(F),8,-1);return R(x,H)>-1?H:H!=="Object"?!1:L(F)}return v?N(F):null}}).call(this)}).call(this,typeof Z!="undefined"?Z:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"available-typed-arrays":86,"call-bind":93,"call-bind/callBound":92,"for-each":345,gopd:349,"has-tostringtag/shams":353}],421:[function(s,E,I){(function(){"use strict";I.stripBOM=function(u){return u[0]==="\uFEFF"?u.substring(1):u}}).call(this)},{}],422:[function(s,E,I){(function(){"use strict";var u,d,g,y,S,v={}.hasOwnProperty;u=s("xmlbuilder"),d=s("./defaults").defaults,y=function(c){return typeof c=="string"&&(c.indexOf("&")>=0||c.indexOf(">")>=0||c.indexOf("<")>=0)},S=function(c){return"<![CDATA["+g(c)+"]]>"},g=function(c){return c.replace("]]>","]]]]><![CDATA[>")},I.Builder=function(){function c(h){var m,x,T;this.options={},x=d["0.2"];for(m in x)v.call(x,m)&&(T=x[m],this.options[m]=T);for(m in h)v.call(h,m)&&(T=h[m],this.options[m]=T)}return c.prototype.buildObject=function(h){var m,x,T,_,R;return m=this.options.attrkey,x=this.options.charkey,Object.keys(h).length===1&&this.options.rootName===d["0.2"].rootName?(R=Object.keys(h)[0],h=h[R]):R=this.options.rootName,T=function(A){return function(N,L){var M,F,H,P,V,G;if(typeof L!="object")A.options.cdata&&y(L)?N.raw(S(L)):N.txt(L);else if(Array.isArray(L)){for(P in L)if(v.call(L,P)){F=L[P];for(V in F)H=F[V],N=T(N.ele(V),H).up()}}else for(V in L)if(v.call(L,V))if(F=L[V],V===m){if(typeof F=="object")for(M in F)G=F[M],N=N.att(M,G)}else if(V===x)A.options.cdata&&y(F)?N=N.raw(S(F)):N=N.txt(F);else if(Array.isArray(F))for(P in F)v.call(F,P)&&(H=F[P],typeof H=="string"?A.options.cdata&&y(H)?N=N.ele(V).raw(S(H)).up():N=N.ele(V,H).up():N=T(N.ele(V),H).up());else typeof F=="object"?N=T(N.ele(V),F).up():typeof F=="string"&&A.options.cdata&&y(F)?N=N.ele(V).raw(S(F)).up():(F==null&&(F=""),N=N.ele(V,F.toString()).up());return N}}(this),_=u.create(R,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),T(_,h).end(this.options.renderOpts)},c}()}).call(this)},{"./defaults":423,xmlbuilder:459}],423:[function(s,E,I){(function(){I.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)},{}],424:[function(s,E,I){(function(){"use strict";var u,d,g,y,S,v,c,h,m,x=function(R,A){return function(){return R.apply(A,arguments)}},T=function(R,A){for(var N in A)_.call(A,N)&&(R[N]=A[N]);function L(){this.constructor=R}return L.prototype=A.prototype,R.prototype=new L,R.__super__=A.prototype,R},_={}.hasOwnProperty;h=s("sax"),y=s("events"),u=s("./bom"),c=s("./processors"),m=s("timers").setImmediate,d=s("./defaults").defaults,S=function(R){return typeof R=="object"&&R!=null&&Object.keys(R).length===0},v=function(R,A,N){var L,M,F;for(L=0,M=R.length;L<M;L++)F=R[L],A=F(A,N);return A},g=function(R,A,N){var L;return L=Object.create(null),L.value=N,L.writable=!0,L.enumerable=!0,L.configurable=!0,Object.defineProperty(R,A,L)},I.Parser=function(R){T(A,R);function A(N){this.parseStringPromise=x(this.parseStringPromise,this),this.parseString=x(this.parseString,this),this.reset=x(this.reset,this),this.assignOrPush=x(this.assignOrPush,this),this.processAsync=x(this.processAsync,this);var L,M,F;if(!(this instanceof I.Parser))return new I.Parser(N);this.options={},M=d["0.2"];for(L in M)_.call(M,L)&&(F=M[L],this.options[L]=F);for(L in N)_.call(N,L)&&(F=N[L],this.options[L]=F);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(c.normalize)),this.reset()}return A.prototype.processAsync=function(){var N,L;try{return this.remaining.length<=this.options.chunkSize?(N=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(N),this.saxParser.close()):(N=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(N),m(this.processAsync))}catch(M){if(L=M,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(L)}},A.prototype.assignOrPush=function(N,L,M){return L in N?(N[L]instanceof Array||g(N,L,[N[L]]),N[L].push(M)):this.options.explicitArray?g(N,L,[M]):g(N,L,M)},A.prototype.reset=function(){var N,L,M,F;return this.removeAllListeners(),this.saxParser=h.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(H){return function(P){if(H.saxParser.resume(),!H.saxParser.errThrown)return H.saxParser.errThrown=!0,H.emit("error",P)}}(this),this.saxParser.onend=function(H){return function(){if(!H.saxParser.ended)return H.saxParser.ended=!0,H.emit("end",H.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,F=[],N=this.options.attrkey,L=this.options.charkey,this.saxParser.onopentag=function(H){return function(P){var V,G,Q,ne,ue;if(Q={},Q[L]="",!H.options.ignoreAttrs){ue=P.attributes;for(V in ue)_.call(ue,V)&&(!(N in Q)&&!H.options.mergeAttrs&&(Q[N]={}),G=H.options.attrValueProcessors?v(H.options.attrValueProcessors,P.attributes[V],V):P.attributes[V],ne=H.options.attrNameProcessors?v(H.options.attrNameProcessors,V):V,H.options.mergeAttrs?H.assignOrPush(Q,ne,G):g(Q[N],ne,G))}return Q["#name"]=H.options.tagNameProcessors?v(H.options.tagNameProcessors,P.name):P.name,H.options.xmlns&&(Q[H.options.xmlnskey]={uri:P.uri,local:P.local}),F.push(Q)}}(this),this.saxParser.onclosetag=function(H){return function(){var P,V,G,Q,ne,ue,ae,he,ce,we;if(ue=F.pop(),ne=ue["#name"],(!H.options.explicitChildren||!H.options.preserveChildrenOrder)&&delete ue["#name"],ue.cdata===!0&&(P=ue.cdata,delete ue.cdata),ce=F[F.length-1],ue[L].match(/^\s*$/)&&!P?(V=ue[L],delete ue[L]):(H.options.trim&&(ue[L]=ue[L].trim()),H.options.normalize&&(ue[L]=ue[L].replace(/\s{2,}/g," ").trim()),ue[L]=H.options.valueProcessors?v(H.options.valueProcessors,ue[L],ne):ue[L],Object.keys(ue).length===1&&L in ue&&!H.EXPLICIT_CHARKEY&&(ue=ue[L])),S(ue)&&(typeof H.options.emptyTag=="function"?ue=H.options.emptyTag():ue=H.options.emptyTag!==""?H.options.emptyTag:V),H.options.validator!=null&&(we="/"+function(){var me,Le,ee;for(ee=[],me=0,Le=F.length;me<Le;me++)Q=F[me],ee.push(Q["#name"]);return ee}().concat(ne).join("/"),function(){var me;try{return ue=H.options.validator(we,ce&&ce[ne],ue)}catch(Le){return me=Le,H.emit("error",me)}}()),H.options.explicitChildren&&!H.options.mergeAttrs&&typeof ue=="object"){if(!H.options.preserveChildrenOrder)Q={},H.options.attrkey in ue&&(Q[H.options.attrkey]=ue[H.options.attrkey],delete ue[H.options.attrkey]),!H.options.charsAsChildren&&H.options.charkey in ue&&(Q[H.options.charkey]=ue[H.options.charkey],delete ue[H.options.charkey]),Object.getOwnPropertyNames(ue).length>0&&(Q[H.options.childkey]=ue),ue=Q;else if(ce){ce[H.options.childkey]=ce[H.options.childkey]||[],ae={};for(G in ue)_.call(ue,G)&&g(ae,G,ue[G]);ce[H.options.childkey].push(ae),delete ue["#name"],Object.keys(ue).length===1&&L in ue&&!H.EXPLICIT_CHARKEY&&(ue=ue[L])}}return F.length>0?H.assignOrPush(ce,ne,ue):(H.options.explicitRoot&&(he=ue,ue={},g(ue,ne,he)),H.resultObject=ue,H.saxParser.ended=!0,H.emit("end",H.resultObject))}}(this),M=function(H){return function(P){var V,G;if(G=F[F.length-1],G)return G[L]+=P,H.options.explicitChildren&&H.options.preserveChildrenOrder&&H.options.charsAsChildren&&(H.options.includeWhiteChars||P.replace(/\\n/g,"").trim()!=="")&&(G[H.options.childkey]=G[H.options.childkey]||[],V={"#name":"__text__"},V[L]=P,H.options.normalize&&(V[L]=V[L].replace(/\s{2,}/g," ").trim()),G[H.options.childkey].push(V)),G}}(this),this.saxParser.ontext=M,this.saxParser.oncdata=function(H){return function(P){var V;if(V=M(P),V)return V.cdata=!0}}(this)},A.prototype.parseString=function(N,L){var M;L!=null&&typeof L=="function"&&(this.on("end",function(F){return this.reset(),L(null,F)}),this.on("error",function(F){return this.reset(),L(F)}));try{return N=N.toString(),N.trim()===""?(this.emit("end",null),!0):(N=u.stripBOM(N),this.options.async?(this.remaining=N,m(this.processAsync),this.saxParser):this.saxParser.write(N).close())}catch(F){if(M=F,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw M}else return this.emit("error",M),this.saxParser.errThrown=!0}},A.prototype.parseStringPromise=function(N){return new Promise(function(L){return function(M,F){return L.parseString(N,function(H,P){return H?F(H):M(P)})}}(this))},A}(y),I.parseString=function(R,A,N){var L,M,F;return N!=null?(typeof N=="function"&&(L=N),typeof A=="object"&&(M=A)):(typeof A=="function"&&(L=A),M={}),F=new I.Parser(M),F.parseString(R,L)},I.parseStringPromise=function(R,A){var N,L;return typeof A=="object"&&(N=A),L=new I.Parser(N),L.parseStringPromise(R)}}).call(this)},{"./bom":421,"./defaults":423,"./processors":425,events:344,sax:397,timers:414}],425:[function(s,E,I){(function(){"use strict";var u;u=new RegExp(/(?!xmlns)^.*:/),I.normalize=function(d){return d.toLowerCase()},I.firstCharLowerCase=function(d){return d.charAt(0).toLowerCase()+d.slice(1)},I.stripPrefix=function(d){return d.replace(u,"")},I.parseNumbers=function(d){return isNaN(d)||(d=d%1===0?parseInt(d,10):parseFloat(d)),d},I.parseBooleans=function(d){return/^(?:true|false)$/i.test(d)&&(d=d.toLowerCase()==="true"),d}}).call(this)},{}],426:[function(s,E,I){(function(){"use strict";var u,d,g,y,S=function(c,h){for(var m in h)v.call(h,m)&&(c[m]=h[m]);function x(){this.constructor=c}return x.prototype=h.prototype,c.prototype=new x,c.__super__=h.prototype,c},v={}.hasOwnProperty;d=s("./defaults"),u=s("./builder"),g=s("./parser"),y=s("./processors"),I.defaults=d.defaults,I.processors=y,I.ValidationError=function(c){S(h,c);function h(m){this.message=m}return h}(Error),I.Builder=u.Builder,I.Parser=g.Parser,I.parseString=g.parseString,I.parseStringPromise=g.parseStringPromise}).call(this)},{"./builder":422,"./defaults":423,"./parser":424,"./processors":425}],427:[function(s,E,I){(function(){E.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],428:[function(s,E,I){(function(){E.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)},{}],429:[function(s,E,I){(function(){var u,d,g,y,S,v,c,h=[].slice,m={}.hasOwnProperty;u=function(){var x,T,_,R,A,N;if(N=arguments[0],A=2<=arguments.length?h.call(arguments,1):[],S(Object.assign))Object.assign.apply(null,arguments);else for(x=0,_=A.length;x<_;x++)if(R=A[x],R!=null)for(T in R)m.call(R,T)&&(N[T]=R[T]);return N},S=function(x){return!!x&&Object.prototype.toString.call(x)==="[object Function]"},v=function(x){var T;return!!x&&((T=typeof x)=="function"||T==="object")},g=function(x){return S(Array.isArray)?Array.isArray(x):Object.prototype.toString.call(x)==="[object Array]"},y=function(x){var T;if(g(x))return!x.length;for(T in x)if(m.call(x,T))return!1;return!0},c=function(x){var T,_;return v(x)&&(_=Object.getPrototypeOf(x))&&(T=_.constructor)&&typeof T=="function"&&T instanceof T&&Function.prototype.toString.call(T)===Function.prototype.toString.call(Object)},d=function(x){return S(x.valueOf)?x.valueOf():x},E.exports.assign=u,E.exports.isFunction=S,E.exports.isObject=v,E.exports.isArray=g,E.exports.isEmpty=y,E.exports.isPlainObject=c,E.exports.getValue=d}).call(this)},{}],430:[function(s,E,I){(function(){E.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},{}],431:[function(s,E,I){(function(){var u,d,g;u=s("./NodeType"),g=s("./XMLNode"),E.exports=d=function(){function y(S,v,c){if(this.parent=S,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),v==null)throw new Error("Missing attribute name. "+this.debugInfo(v));this.name=this.stringify.name(v),this.value=this.stringify.attValue(c),this.type=u.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(y.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(y.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(y.prototype,"textContent",{get:function(){return this.value},set:function(S){return this.value=S||""}}),Object.defineProperty(y.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(y.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(y.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(y.prototype,"specified",{get:function(){return!0}}),y.prototype.clone=function(){return Object.create(this)},y.prototype.toString=function(S){return this.options.writer.attribute(this,this.options.writer.filterOptions(S))},y.prototype.debugInfo=function(S){return S=S||this.name,S==null?"parent: <"+this.parent.name+">":"attribute: {"+S+"}, parent: <"+this.parent.name+">"},y.prototype.isEqualNode=function(S){return!(S.namespaceURI!==this.namespaceURI||S.prefix!==this.prefix||S.localName!==this.localName||S.value!==this.value)},y}()}).call(this)},{"./NodeType":428,"./XMLNode":450}],432:[function(s,E,I){(function(){var u,d,g,y=function(v,c){for(var h in c)S.call(c,h)&&(v[h]=c[h]);function m(){this.constructor=v}return m.prototype=c.prototype,v.prototype=new m,v.__super__=c.prototype,v},S={}.hasOwnProperty;u=s("./NodeType"),g=s("./XMLCharacterData"),E.exports=d=function(v){y(c,v);function c(h,m){if(c.__super__.constructor.call(this,h),m==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=u.CData,this.value=this.stringify.cdata(m)}return c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(h){return this.options.writer.cdata(this,this.options.writer.filterOptions(h))},c}(g)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],433:[function(s,E,I){(function(){var u,d,g=function(S,v){for(var c in v)y.call(v,c)&&(S[c]=v[c]);function h(){this.constructor=S}return h.prototype=v.prototype,S.prototype=new h,S.__super__=v.prototype,S},y={}.hasOwnProperty;d=s("./XMLNode"),E.exports=u=function(S){g(v,S);function v(c){v.__super__.constructor.call(this,c),this.value=""}return Object.defineProperty(v.prototype,"data",{get:function(){return this.value},set:function(c){return this.value=c||""}}),Object.defineProperty(v.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(v.prototype,"textContent",{get:function(){return this.value},set:function(c){return this.value=c||""}}),v.prototype.clone=function(){return Object.create(this)},v.prototype.substringData=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.appendData=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.insertData=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.deleteData=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.replaceData=function(c,h,m){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.isEqualNode=function(c){return!(!v.__super__.isEqualNode.apply(this,arguments).isEqualNode(c)||c.data!==this.data)},v}(d)}).call(this)},{"./XMLNode":450}],434:[function(s,E,I){(function(){var u,d,g,y=function(v,c){for(var h in c)S.call(c,h)&&(v[h]=c[h]);function m(){this.constructor=v}return m.prototype=c.prototype,v.prototype=new m,v.__super__=c.prototype,v},S={}.hasOwnProperty;u=s("./NodeType"),d=s("./XMLCharacterData"),E.exports=g=function(v){y(c,v);function c(h,m){if(c.__super__.constructor.call(this,h),m==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=u.Comment,this.value=this.stringify.comment(m)}return c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(h){return this.options.writer.comment(this,this.options.writer.filterOptions(h))},c}(d)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],435:[function(s,E,I){(function(){var u,d,g;d=s("./XMLDOMErrorHandler"),g=s("./XMLDOMStringList"),E.exports=u=function(){function y(){var S;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new d,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=S=Object.create(this.defaultParams)}return Object.defineProperty(y.prototype,"parameterNames",{get:function(){return new g(Object.keys(this.defaultParams))}}),y.prototype.getParameter=function(S){return this.params.hasOwnProperty(S)?this.params[S]:null},y.prototype.canSetParameter=function(S,v){return!0},y.prototype.setParameter=function(S,v){return v!=null?this.params[S]=v:delete this.params[S]},y}()}).call(this)},{"./XMLDOMErrorHandler":436,"./XMLDOMStringList":438}],436:[function(s,E,I){(function(){var u;E.exports=u=function(){function d(){}return d.prototype.handleError=function(g){throw new Error(g)},d}()}).call(this)},{}],437:[function(s,E,I){(function(){var u;E.exports=u=function(){function d(){}return d.prototype.hasFeature=function(g,y){return!0},d.prototype.createDocumentType=function(g,y,S){throw new Error("This DOM method is not implemented.")},d.prototype.createDocument=function(g,y,S){throw new Error("This DOM method is not implemented.")},d.prototype.createHTMLDocument=function(g){throw new Error("This DOM method is not implemented.")},d.prototype.getFeature=function(g,y){throw new Error("This DOM method is not implemented.")},d}()}).call(this)},{}],438:[function(s,E,I){(function(){var u;E.exports=u=function(){function d(g){this.arr=g||[]}return Object.defineProperty(d.prototype,"length",{get:function(){return this.arr.length}}),d.prototype.item=function(g){return this.arr[g]||null},d.prototype.contains=function(g){return this.arr.indexOf(g)!==-1},d}()}).call(this)},{}],439:[function(s,E,I){(function(){var u,d,g,y=function(v,c){for(var h in c)S.call(c,h)&&(v[h]=c[h]);function m(){this.constructor=v}return m.prototype=c.prototype,v.prototype=new m,v.__super__=c.prototype,v},S={}.hasOwnProperty;g=s("./XMLNode"),u=s("./NodeType"),E.exports=d=function(v){y(c,v);function c(h,m,x,T,_,R){if(c.__super__.constructor.call(this,h),m==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(x==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(m));if(!T)throw new Error("Missing DTD attribute type. "+this.debugInfo(m));if(!_)throw new Error("Missing DTD attribute default. "+this.debugInfo(m));if(_.indexOf("#")!==0&&(_="#"+_),!_.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(m));if(R&&!_.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(m));this.elementName=this.stringify.name(m),this.type=u.AttributeDeclaration,this.attributeName=this.stringify.name(x),this.attributeType=this.stringify.dtdAttType(T),R&&(this.defaultValue=this.stringify.dtdAttDefault(R)),this.defaultValueType=_}return c.prototype.toString=function(h){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(h))},c}(g)}).call(this)},{"./NodeType":428,"./XMLNode":450}],440:[function(s,E,I){(function(){var u,d,g,y=function(v,c){for(var h in c)S.call(c,h)&&(v[h]=c[h]);function m(){this.constructor=v}return m.prototype=c.prototype,v.prototype=new m,v.__super__=c.prototype,v},S={}.hasOwnProperty;g=s("./XMLNode"),u=s("./NodeType"),E.exports=d=function(v){y(c,v);function c(h,m,x){if(c.__super__.constructor.call(this,h),m==null)throw new Error("Missing DTD element name. "+this.debugInfo());x||(x="(#PCDATA)"),Array.isArray(x)&&(x="("+x.join(",")+")"),this.name=this.stringify.name(m),this.type=u.ElementDeclaration,this.value=this.stringify.dtdElementValue(x)}return c.prototype.toString=function(h){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(h))},c}(g)}).call(this)},{"./NodeType":428,"./XMLNode":450}],441:[function(s,E,I){(function(){var u,d,g,y,S=function(c,h){for(var m in h)v.call(h,m)&&(c[m]=h[m]);function x(){this.constructor=c}return x.prototype=h.prototype,c.prototype=new x,c.__super__=h.prototype,c},v={}.hasOwnProperty;y=s("./Utility").isObject,g=s("./XMLNode"),u=s("./NodeType"),E.exports=d=function(c){S(h,c);function h(m,x,T,_){if(h.__super__.constructor.call(this,m),T==null)throw new Error("Missing DTD entity name. "+this.debugInfo(T));if(_==null)throw new Error("Missing DTD entity value. "+this.debugInfo(T));if(this.pe=!!x,this.name=this.stringify.name(T),this.type=u.EntityDeclaration,!y(_))this.value=this.stringify.dtdEntityValue(_),this.internal=!0;else{if(!_.pubID&&!_.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(T));if(_.pubID&&!_.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(T));if(this.internal=!1,_.pubID!=null&&(this.pubID=this.stringify.dtdPubID(_.pubID)),_.sysID!=null&&(this.sysID=this.stringify.dtdSysID(_.sysID)),_.nData!=null&&(this.nData=this.stringify.dtdNData(_.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(T))}}return Object.defineProperty(h.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(h.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(h.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(h.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(h.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(h.prototype,"xmlVersion",{get:function(){return null}}),h.prototype.toString=function(m){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(m))},h}(g)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],442:[function(s,E,I){(function(){var u,d,g,y=function(v,c){for(var h in c)S.call(c,h)&&(v[h]=c[h]);function m(){this.constructor=v}return m.prototype=c.prototype,v.prototype=new m,v.__super__=c.prototype,v},S={}.hasOwnProperty;g=s("./XMLNode"),u=s("./NodeType"),E.exports=d=function(v){y(c,v);function c(h,m,x){if(c.__super__.constructor.call(this,h),m==null)throw new Error("Missing DTD notation name. "+this.debugInfo(m));if(!x.pubID&&!x.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(m));this.name=this.stringify.name(m),this.type=u.NotationDeclaration,x.pubID!=null&&(this.pubID=this.stringify.dtdPubID(x.pubID)),x.sysID!=null&&(this.sysID=this.stringify.dtdSysID(x.sysID))}return Object.defineProperty(c.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(c.prototype,"systemId",{get:function(){return this.sysID}}),c.prototype.toString=function(h){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(h))},c}(g)}).call(this)},{"./NodeType":428,"./XMLNode":450}],443:[function(s,E,I){(function(){var u,d,g,y,S=function(c,h){for(var m in h)v.call(h,m)&&(c[m]=h[m]);function x(){this.constructor=c}return x.prototype=h.prototype,c.prototype=new x,c.__super__=h.prototype,c},v={}.hasOwnProperty;y=s("./Utility").isObject,g=s("./XMLNode"),u=s("./NodeType"),E.exports=d=function(c){S(h,c);function h(m,x,T,_){var R;h.__super__.constructor.call(this,m),y(x)&&(R=x,x=R.version,T=R.encoding,_=R.standalone),x||(x="1.0"),this.type=u.Declaration,this.version=this.stringify.xmlVersion(x),T!=null&&(this.encoding=this.stringify.xmlEncoding(T)),_!=null&&(this.standalone=this.stringify.xmlStandalone(_))}return h.prototype.toString=function(m){return this.options.writer.declaration(this,this.options.writer.filterOptions(m))},h}(g)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],444:[function(s,E,I){(function(){var u,d,g,y,S,v,c,h,m,x=function(_,R){for(var A in R)T.call(R,A)&&(_[A]=R[A]);function N(){this.constructor=_}return N.prototype=R.prototype,_.prototype=new N,_.__super__=R.prototype,_},T={}.hasOwnProperty;m=s("./Utility").isObject,h=s("./XMLNode"),u=s("./NodeType"),d=s("./XMLDTDAttList"),y=s("./XMLDTDEntity"),g=s("./XMLDTDElement"),S=s("./XMLDTDNotation"),c=s("./XMLNamedNodeMap"),E.exports=v=function(_){x(R,_);function R(A,N,L){var M,F,H,P,V,G;if(R.__super__.constructor.call(this,A),this.type=u.DocType,A.children){for(P=A.children,F=0,H=P.length;F<H;F++)if(M=P[F],M.type===u.Element){this.name=M.name;break}}this.documentObject=A,m(N)&&(V=N,N=V.pubID,L=V.sysID),L==null&&(G=[N,L],L=G[0],N=G[1]),N!=null&&(this.pubID=this.stringify.dtdPubID(N)),L!=null&&(this.sysID=this.stringify.dtdSysID(L))}return Object.defineProperty(R.prototype,"entities",{get:function(){var A,N,L,M,F;for(M={},F=this.children,N=0,L=F.length;N<L;N++)A=F[N],A.type===u.EntityDeclaration&&!A.pe&&(M[A.name]=A);return new c(M)}}),Object.defineProperty(R.prototype,"notations",{get:function(){var A,N,L,M,F;for(M={},F=this.children,N=0,L=F.length;N<L;N++)A=F[N],A.type===u.NotationDeclaration&&(M[A.name]=A);return new c(M)}}),Object.defineProperty(R.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(R.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(R.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),R.prototype.element=function(A,N){var L;return L=new g(this,A,N),this.children.push(L),this},R.prototype.attList=function(A,N,L,M,F){var H;return H=new d(this,A,N,L,M,F),this.children.push(H),this},R.prototype.entity=function(A,N){var L;return L=new y(this,!1,A,N),this.children.push(L),this},R.prototype.pEntity=function(A,N){var L;return L=new y(this,!0,A,N),this.children.push(L),this},R.prototype.notation=function(A,N){var L;return L=new S(this,A,N),this.children.push(L),this},R.prototype.toString=function(A){return this.options.writer.docType(this,this.options.writer.filterOptions(A))},R.prototype.ele=function(A,N){return this.element(A,N)},R.prototype.att=function(A,N,L,M,F){return this.attList(A,N,L,M,F)},R.prototype.ent=function(A,N){return this.entity(A,N)},R.prototype.pent=function(A,N){return this.pEntity(A,N)},R.prototype.not=function(A,N){return this.notation(A,N)},R.prototype.up=function(){return this.root()||this.documentObject},R.prototype.isEqualNode=function(A){return!(!R.__super__.isEqualNode.apply(this,arguments).isEqualNode(A)||A.name!==this.name||A.publicId!==this.publicId||A.systemId!==this.systemId)},R}(h)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLNamedNodeMap":449,"./XMLNode":450}],445:[function(s,E,I){(function(){var u,d,g,y,S,v,c,h,m=function(T,_){for(var R in _)x.call(_,R)&&(T[R]=_[R]);function A(){this.constructor=T}return A.prototype=_.prototype,T.prototype=new A,T.__super__=_.prototype,T},x={}.hasOwnProperty;h=s("./Utility").isPlainObject,g=s("./XMLDOMImplementation"),d=s("./XMLDOMConfiguration"),S=s("./XMLNode"),u=s("./NodeType"),c=s("./XMLStringifier"),v=s("./XMLStringWriter"),E.exports=y=function(T){m(_,T);function _(R){_.__super__.constructor.call(this,null),this.name="#document",this.type=u.Document,this.documentURI=null,this.domConfig=new d,R||(R={}),R.writer||(R.writer=new v),this.options=R,this.stringify=new c(R)}return Object.defineProperty(_.prototype,"implementation",{value:new g}),Object.defineProperty(_.prototype,"doctype",{get:function(){var R,A,N,L;for(L=this.children,A=0,N=L.length;A<N;A++)if(R=L[A],R.type===u.DocType)return R;return null}}),Object.defineProperty(_.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(_.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(_.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(_.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===u.Declaration?this.children[0].encoding:null}}),Object.defineProperty(_.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===u.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(_.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===u.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(_.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(_.prototype,"origin",{get:function(){return null}}),Object.defineProperty(_.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(_.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(_.prototype,"contentType",{get:function(){return null}}),_.prototype.end=function(R){var A;return A={},R?h(R)&&(A=R,R=this.options.writer):R=this.options.writer,R.document(this,R.filterOptions(A))},_.prototype.toString=function(R){return this.options.writer.document(this,this.options.writer.filterOptions(R))},_.prototype.createElement=function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())},_.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},_.prototype.createTextNode=function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())},_.prototype.createComment=function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())},_.prototype.createCDATASection=function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())},_.prototype.createProcessingInstruction=function(R,A){throw new Error("This DOM method is not implemented."+this.debugInfo())},_.prototype.createAttribute=function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())},_.prototype.createEntityReference=function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())},_.prototype.getElementsByTagName=function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())},_.prototype.importNode=function(R,A){throw new Error("This DOM method is not implemented."+this.debugInfo())},_.prototype.createElementNS=function(R,A){throw new Error("This DOM method is not implemented."+this.debugInfo())},_.prototype.createAttributeNS=function(R,A){throw new Error("This DOM method is not implemented."+this.debugInfo())},_.prototype.getElementsByTagNameNS=function(R,A){throw new Error("This DOM method is not implemented."+this.debugInfo())},_.prototype.getElementById=function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())},_.prototype.adoptNode=function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())},_.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},_.prototype.renameNode=function(R,A,N){throw new Error("This DOM method is not implemented."+this.debugInfo())},_.prototype.getElementsByClassName=function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())},_.prototype.createEvent=function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())},_.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},_.prototype.createNodeIterator=function(R,A,N){throw new Error("This DOM method is not implemented."+this.debugInfo())},_.prototype.createTreeWalker=function(R,A,N){throw new Error("This DOM method is not implemented."+this.debugInfo())},_}(S)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDOMConfiguration":435,"./XMLDOMImplementation":437,"./XMLNode":450,"./XMLStringWriter":455,"./XMLStringifier":456}],446:[function(s,E,I){(function(){var u,d,g,y,S,v,c,h,m,x,T,_,R,A,N,L,M,F,H,P,V,G,Q,ne,ue={}.hasOwnProperty;ne=s("./Utility"),G=ne.isObject,V=ne.isFunction,Q=ne.isPlainObject,P=ne.getValue,u=s("./NodeType"),_=s("./XMLDocument"),A=s("./XMLElement"),y=s("./XMLCData"),S=s("./XMLComment"),L=s("./XMLRaw"),H=s("./XMLText"),N=s("./XMLProcessingInstruction"),x=s("./XMLDeclaration"),T=s("./XMLDocType"),v=s("./XMLDTDAttList"),h=s("./XMLDTDEntity"),c=s("./XMLDTDElement"),m=s("./XMLDTDNotation"),g=s("./XMLAttribute"),F=s("./XMLStringifier"),M=s("./XMLStringWriter"),d=s("./WriterState"),E.exports=R=function(){function ae(he,ce,we){var me;this.name="?xml",this.type=u.Document,he||(he={}),me={},he.writer?Q(he.writer)&&(me=he.writer,he.writer=new M):he.writer=new M,this.options=he,this.writer=he.writer,this.writerOptions=this.writer.filterOptions(me),this.stringify=new F(he),this.onDataCallback=ce||function(){},this.onEndCallback=we||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return ae.prototype.createChildNode=function(he){var ce,we,me,Le,ee,se,le,ke;switch(he.type){case u.CData:this.cdata(he.value);break;case u.Comment:this.comment(he.value);break;case u.Element:me={},le=he.attribs;for(we in le)ue.call(le,we)&&(ce=le[we],me[we]=ce.value);this.node(he.name,me);break;case u.Dummy:this.dummy();break;case u.Raw:this.raw(he.value);break;case u.Text:this.text(he.value);break;case u.ProcessingInstruction:this.instruction(he.target,he.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+he.constructor.name)}for(ke=he.children,ee=0,se=ke.length;ee<se;ee++)Le=ke[ee],this.createChildNode(Le),Le.type===u.Element&&this.up();return this},ae.prototype.dummy=function(){return this},ae.prototype.node=function(he,ce,we){var me;if(he==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(he));return this.openCurrent(),he=P(he),ce==null&&(ce={}),ce=P(ce),G(ce)||(me=[ce,we],we=me[0],ce=me[1]),this.currentNode=new A(this,he,ce),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,we!=null&&this.text(we),this},ae.prototype.element=function(he,ce,we){var me,Le,ee,se,le,ke;if(this.currentNode&&this.currentNode.type===u.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(he)||G(he)||V(he))for(se=this.options.noValidation,this.options.noValidation=!0,ke=new _(this.options).element("TEMP_ROOT"),ke.element(he),this.options.noValidation=se,le=ke.children,Le=0,ee=le.length;Le<ee;Le++)me=le[Le],this.createChildNode(me),me.type===u.Element&&this.up();else this.node(he,ce,we);return this},ae.prototype.attribute=function(he,ce){var we,me;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(he));if(he!=null&&(he=P(he)),G(he))for(we in he)ue.call(he,we)&&(me=he[we],this.attribute(we,me));else V(ce)&&(ce=ce.apply()),this.options.keepNullAttributes&&ce==null?this.currentNode.attribs[he]=new g(this,he,""):ce!=null&&(this.currentNode.attribs[he]=new g(this,he,ce));return this},ae.prototype.text=function(he){var ce;return this.openCurrent(),ce=new H(this,he),this.onData(this.writer.text(ce,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ae.prototype.cdata=function(he){var ce;return this.openCurrent(),ce=new y(this,he),this.onData(this.writer.cdata(ce,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ae.prototype.comment=function(he){var ce;return this.openCurrent(),ce=new S(this,he),this.onData(this.writer.comment(ce,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ae.prototype.raw=function(he){var ce;return this.openCurrent(),ce=new L(this,he),this.onData(this.writer.raw(ce,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ae.prototype.instruction=function(he,ce){var we,me,Le,ee,se;if(this.openCurrent(),he!=null&&(he=P(he)),ce!=null&&(ce=P(ce)),Array.isArray(he))for(we=0,ee=he.length;we<ee;we++)me=he[we],this.instruction(me);else if(G(he))for(me in he)ue.call(he,me)&&(Le=he[me],this.instruction(me,Le));else V(ce)&&(ce=ce.apply()),se=new N(this,he,ce),this.onData(this.writer.processingInstruction(se,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},ae.prototype.declaration=function(he,ce,we){var me;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return me=new x(this,he,ce,we),this.onData(this.writer.declaration(me,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ae.prototype.doctype=function(he,ce,we){if(this.openCurrent(),he==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 T(this,ce,we),this.currentNode.rootNodeName=he,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},ae.prototype.dtdElement=function(he,ce){var we;return this.openCurrent(),we=new c(this,he,ce),this.onData(this.writer.dtdElement(we,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ae.prototype.attList=function(he,ce,we,me,Le){var ee;return this.openCurrent(),ee=new v(this,he,ce,we,me,Le),this.onData(this.writer.dtdAttList(ee,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ae.prototype.entity=function(he,ce){var we;return this.openCurrent(),we=new h(this,!1,he,ce),this.onData(this.writer.dtdEntity(we,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ae.prototype.pEntity=function(he,ce){var we;return this.openCurrent(),we=new h(this,!0,he,ce),this.onData(this.writer.dtdEntity(we,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ae.prototype.notation=function(he,ce){var we;return this.openCurrent(),we=new m(this,he,ce),this.onData(this.writer.dtdNotation(we,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ae.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},ae.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},ae.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},ae.prototype.openNode=function(he){var ce,we,me,Le;if(!he.isOpen){if(!this.root&&this.currentLevel===0&&he.type===u.Element&&(this.root=he),we="",he.type===u.Element){this.writerOptions.state=d.OpenTag,we=this.writer.indent(he,this.writerOptions,this.currentLevel)+"<"+he.name,Le=he.attribs;for(me in Le)ue.call(Le,me)&&(ce=Le[me],we+=this.writer.attribute(ce,this.writerOptions,this.currentLevel));we+=(he.children?">":"/>")+this.writer.endline(he,this.writerOptions,this.currentLevel),this.writerOptions.state=d.InsideTag}else this.writerOptions.state=d.OpenTag,we=this.writer.indent(he,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+he.rootNodeName,he.pubID&&he.sysID?we+=' PUBLIC "'+he.pubID+'" "'+he.sysID+'"':he.sysID&&(we+=' SYSTEM "'+he.sysID+'"'),he.children?(we+=" [",this.writerOptions.state=d.InsideTag):(this.writerOptions.state=d.CloseTag,we+=">"),we+=this.writer.endline(he,this.writerOptions,this.currentLevel);return this.onData(we,this.currentLevel),he.isOpen=!0}},ae.prototype.closeNode=function(he){var ce;if(!he.isClosed)return ce="",this.writerOptions.state=d.CloseTag,he.type===u.Element?ce=this.writer.indent(he,this.writerOptions,this.currentLevel)+"</"+he.name+">"+this.writer.endline(he,this.writerOptions,this.currentLevel):ce=this.writer.indent(he,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(he,this.writerOptions,this.currentLevel),this.writerOptions.state=d.None,this.onData(ce,this.currentLevel),he.isClosed=!0},ae.prototype.onData=function(he,ce){return this.documentStarted=!0,this.onDataCallback(he,ce+1)},ae.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},ae.prototype.debugInfo=function(he){return he==null?"":"node: <"+he+">"},ae.prototype.ele=function(){return this.element.apply(this,arguments)},ae.prototype.nod=function(he,ce,we){return this.node(he,ce,we)},ae.prototype.txt=function(he){return this.text(he)},ae.prototype.dat=function(he){return this.cdata(he)},ae.prototype.com=function(he){return this.comment(he)},ae.prototype.ins=function(he,ce){return this.instruction(he,ce)},ae.prototype.dec=function(he,ce,we){return this.declaration(he,ce,we)},ae.prototype.dtd=function(he,ce,we){return this.doctype(he,ce,we)},ae.prototype.e=function(he,ce,we){return this.element(he,ce,we)},ae.prototype.n=function(he,ce,we){return this.node(he,ce,we)},ae.prototype.t=function(he){return this.text(he)},ae.prototype.d=function(he){return this.cdata(he)},ae.prototype.c=function(he){return this.comment(he)},ae.prototype.r=function(he){return this.raw(he)},ae.prototype.i=function(he,ce){return this.instruction(he,ce)},ae.prototype.att=function(){return this.currentNode&&this.currentNode.type===u.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},ae.prototype.a=function(){return this.currentNode&&this.currentNode.type===u.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},ae.prototype.ent=function(he,ce){return this.entity(he,ce)},ae.prototype.pent=function(he,ce){return this.pEntity(he,ce)},ae.prototype.not=function(he,ce){return this.notation(he,ce)},ae}()}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLAttribute":431,"./XMLCData":432,"./XMLComment":434,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDocument":445,"./XMLElement":448,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLStringWriter":455,"./XMLStringifier":456,"./XMLText":457}],447:[function(s,E,I){(function(){var u,d,g,y=function(v,c){for(var h in c)S.call(c,h)&&(v[h]=c[h]);function m(){this.constructor=v}return m.prototype=c.prototype,v.prototype=new m,v.__super__=c.prototype,v},S={}.hasOwnProperty;g=s("./XMLNode"),u=s("./NodeType"),E.exports=d=function(v){y(c,v);function c(h){c.__super__.constructor.call(this,h),this.type=u.Dummy}return c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(h){return""},c}(g)}).call(this)},{"./NodeType":428,"./XMLNode":450}],448:[function(s,E,I){(function(){var u,d,g,y,S,v,c,h,m,x=function(_,R){for(var A in R)T.call(R,A)&&(_[A]=R[A]);function N(){this.constructor=_}return N.prototype=R.prototype,_.prototype=new N,_.__super__=R.prototype,_},T={}.hasOwnProperty;m=s("./Utility"),h=m.isObject,c=m.isFunction,v=m.getValue,S=s("./XMLNode"),u=s("./NodeType"),d=s("./XMLAttribute"),y=s("./XMLNamedNodeMap"),E.exports=g=function(_){x(R,_);function R(A,N,L){var M,F,H,P;if(R.__super__.constructor.call(this,A),N==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(N),this.type=u.Element,this.attribs={},this.schemaTypeInfo=null,L!=null&&this.attribute(L),A.type===u.Document&&(this.isRoot=!0,this.documentObject=A,A.rootObject=this,A.children)){for(P=A.children,F=0,H=P.length;F<H;F++)if(M=P[F],M.type===u.DocType){M.name=this.name;break}}}return Object.defineProperty(R.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(R.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(R.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(R.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(R.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(R.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(R.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(R.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new y(this.attribs)),this.attributeMap}}),R.prototype.clone=function(){var A,N,L,M;L=Object.create(this),L.isRoot&&(L.documentObject=null),L.attribs={},M=this.attribs;for(N in M)T.call(M,N)&&(A=M[N],L.attribs[N]=A.clone());return L.children=[],this.children.forEach(function(F){var H;return H=F.clone(),H.parent=L,L.children.push(H)}),L},R.prototype.attribute=function(A,N){var L,M;if(A!=null&&(A=v(A)),h(A))for(L in A)T.call(A,L)&&(M=A[L],this.attribute(L,M));else c(N)&&(N=N.apply()),this.options.keepNullAttributes&&N==null?this.attribs[A]=new d(this,A,""):N!=null&&(this.attribs[A]=new d(this,A,N));return this},R.prototype.removeAttribute=function(A){var N,L,M;if(A==null)throw new Error("Missing attribute name. "+this.debugInfo());if(A=v(A),Array.isArray(A))for(L=0,M=A.length;L<M;L++)N=A[L],delete this.attribs[N];else delete this.attribs[A];return this},R.prototype.toString=function(A){return this.options.writer.element(this,this.options.writer.filterOptions(A))},R.prototype.att=function(A,N){return this.attribute(A,N)},R.prototype.a=function(A,N){return this.attribute(A,N)},R.prototype.getAttribute=function(A){return this.attribs.hasOwnProperty(A)?this.attribs[A].value:null},R.prototype.setAttribute=function(A,N){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.getAttributeNode=function(A){return this.attribs.hasOwnProperty(A)?this.attribs[A]:null},R.prototype.setAttributeNode=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.removeAttributeNode=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.getElementsByTagName=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.getAttributeNS=function(A,N){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.setAttributeNS=function(A,N,L){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.removeAttributeNS=function(A,N){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.getAttributeNodeNS=function(A,N){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.setAttributeNodeNS=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.getElementsByTagNameNS=function(A,N){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.hasAttribute=function(A){return this.attribs.hasOwnProperty(A)},R.prototype.hasAttributeNS=function(A,N){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.setIdAttribute=function(A,N){return this.attribs.hasOwnProperty(A)?this.attribs[A].isId:N},R.prototype.setIdAttributeNS=function(A,N,L){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.setIdAttributeNode=function(A,N){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.getElementsByTagName=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.getElementsByTagNameNS=function(A,N){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.getElementsByClassName=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},R.prototype.isEqualNode=function(A){var N,L,M;if(!R.__super__.isEqualNode.apply(this,arguments).isEqualNode(A)||A.namespaceURI!==this.namespaceURI||A.prefix!==this.prefix||A.localName!==this.localName||A.attribs.length!==this.attribs.length)return!1;for(N=L=0,M=this.attribs.length-1;0<=M?L<=M:L>=M;N=0<=M?++L:--L)if(!this.attribs[N].isEqualNode(A.attribs[N]))return!1;return!0},R}(S)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLAttribute":431,"./XMLNamedNodeMap":449,"./XMLNode":450}],449:[function(s,E,I){(function(){var u;E.exports=u=function(){function d(g){this.nodes=g}return Object.defineProperty(d.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),d.prototype.clone=function(){return this.nodes=null},d.prototype.getNamedItem=function(g){return this.nodes[g]},d.prototype.setNamedItem=function(g){var y;return y=this.nodes[g.nodeName],this.nodes[g.nodeName]=g,y||null},d.prototype.removeNamedItem=function(g){var y;return y=this.nodes[g],delete this.nodes[g],y||null},d.prototype.item=function(g){return this.nodes[Object.keys(this.nodes)[g]]||null},d.prototype.getNamedItemNS=function(g,y){throw new Error("This DOM method is not implemented.")},d.prototype.setNamedItemNS=function(g){throw new Error("This DOM method is not implemented.")},d.prototype.removeNamedItemNS=function(g,y){throw new Error("This DOM method is not implemented.")},d}()}).call(this)},{}],450:[function(s,E,I){(function(){var u,d,g,y,S,v,c,h,m,x,T,_,R,A,N,L,M,F,H,P={}.hasOwnProperty;H=s("./Utility"),F=H.isObject,M=H.isFunction,L=H.isEmpty,N=H.getValue,h=null,g=null,y=null,S=null,v=null,R=null,A=null,_=null,c=null,d=null,T=null,m=null,u=null,E.exports=x=function(){function V(G){this.parent=G,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,h||(h=s("./XMLElement"),g=s("./XMLCData"),y=s("./XMLComment"),S=s("./XMLDeclaration"),v=s("./XMLDocType"),R=s("./XMLRaw"),A=s("./XMLText"),_=s("./XMLProcessingInstruction"),c=s("./XMLDummy"),d=s("./NodeType"),T=s("./XMLNodeList"),m=s("./XMLNamedNodeMap"),u=s("./DocumentPosition"))}return Object.defineProperty(V.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(V.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(V.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(V.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(V.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new T(this.children)),this.childNodeList}}),Object.defineProperty(V.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(V.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(V.prototype,"previousSibling",{get:function(){var G;return G=this.parent.children.indexOf(this),this.parent.children[G-1]||null}}),Object.defineProperty(V.prototype,"nextSibling",{get:function(){var G;return G=this.parent.children.indexOf(this),this.parent.children[G+1]||null}}),Object.defineProperty(V.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(V.prototype,"textContent",{get:function(){var G,Q,ne,ue,ae;if(this.nodeType===d.Element||this.nodeType===d.DocumentFragment){for(ae="",ue=this.children,Q=0,ne=ue.length;Q<ne;Q++)G=ue[Q],G.textContent&&(ae+=G.textContent);return ae}else return null},set:function(G){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),V.prototype.setParent=function(G){var Q,ne,ue,ae,he;for(this.parent=G,G&&(this.options=G.options,this.stringify=G.stringify),ae=this.children,he=[],ne=0,ue=ae.length;ne<ue;ne++)Q=ae[ne],he.push(Q.setParent(this));return he},V.prototype.element=function(G,Q,ne){var ue,ae,he,ce,we,me,Le,ee,se,le,ke;if(me=null,Q===null&&ne==null&&(se=[{},null],Q=se[0],ne=se[1]),Q==null&&(Q={}),Q=N(Q),F(Q)||(le=[Q,ne],ne=le[0],Q=le[1]),G!=null&&(G=N(G)),Array.isArray(G))for(he=0,Le=G.length;he<Le;he++)ae=G[he],me=this.element(ae);else if(M(G))me=this.element(G.apply());else if(F(G)){for(we in G)if(P.call(G,we))if(ke=G[we],M(ke)&&(ke=ke.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&we.indexOf(this.stringify.convertAttKey)===0)me=this.attribute(we.substr(this.stringify.convertAttKey.length),ke);else if(!this.options.separateArrayItems&&Array.isArray(ke)&&L(ke))me=this.dummy();else if(F(ke)&&L(ke))me=this.element(we);else if(!this.options.keepNullNodes&&ke==null)me=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(ke))for(ce=0,ee=ke.length;ce<ee;ce++)ae=ke[ce],ue={},ue[we]=ae,me=this.element(ue);else F(ke)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&we.indexOf(this.stringify.convertTextKey)===0?me=this.element(ke):(me=this.element(we),me.element(ke)):me=this.element(we,ke)}else!this.options.keepNullNodes&&ne===null?me=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&G.indexOf(this.stringify.convertTextKey)===0?me=this.text(ne):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&G.indexOf(this.stringify.convertCDataKey)===0?me=this.cdata(ne):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&G.indexOf(this.stringify.convertCommentKey)===0?me=this.comment(ne):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&G.indexOf(this.stringify.convertRawKey)===0?me=this.raw(ne):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&G.indexOf(this.stringify.convertPIKey)===0?me=this.instruction(G.substr(this.stringify.convertPIKey.length),ne):me=this.node(G,Q,ne);if(me==null)throw new Error("Could not create any elements with: "+G+". "+this.debugInfo());return me},V.prototype.insertBefore=function(G,Q,ne){var ue,ae,he,ce,we;if(G!=null&&G.type)return he=G,ce=Q,he.setParent(this),ce?(ae=children.indexOf(ce),we=children.splice(ae),children.push(he),Array.prototype.push.apply(children,we)):children.push(he),he;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(G));return ae=this.parent.children.indexOf(this),we=this.parent.children.splice(ae),ue=this.parent.element(G,Q,ne),Array.prototype.push.apply(this.parent.children,we),ue},V.prototype.insertAfter=function(G,Q,ne){var ue,ae,he;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(G));return ae=this.parent.children.indexOf(this),he=this.parent.children.splice(ae+1),ue=this.parent.element(G,Q,ne),Array.prototype.push.apply(this.parent.children,he),ue},V.prototype.remove=function(){var G,Q;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return G=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[G,G-G+1].concat(Q=[])),this.parent},V.prototype.node=function(G,Q,ne){var ue,ae;return G!=null&&(G=N(G)),Q||(Q={}),Q=N(Q),F(Q)||(ae=[Q,ne],ne=ae[0],Q=ae[1]),ue=new h(this,G,Q),ne!=null&&ue.text(ne),this.children.push(ue),ue},V.prototype.text=function(G){var Q;return F(G)&&this.element(G),Q=new A(this,G),this.children.push(Q),this},V.prototype.cdata=function(G){var Q;return Q=new g(this,G),this.children.push(Q),this},V.prototype.comment=function(G){var Q;return Q=new y(this,G),this.children.push(Q),this},V.prototype.commentBefore=function(G){var Q,ne,ue;return ne=this.parent.children.indexOf(this),ue=this.parent.children.splice(ne),Q=this.parent.comment(G),Array.prototype.push.apply(this.parent.children,ue),this},V.prototype.commentAfter=function(G){var Q,ne,ue;return ne=this.parent.children.indexOf(this),ue=this.parent.children.splice(ne+1),Q=this.parent.comment(G),Array.prototype.push.apply(this.parent.children,ue),this},V.prototype.raw=function(G){var Q;return Q=new R(this,G),this.children.push(Q),this},V.prototype.dummy=function(){var G;return G=new c(this),G},V.prototype.instruction=function(G,Q){var ne,ue,ae,he,ce;if(G!=null&&(G=N(G)),Q!=null&&(Q=N(Q)),Array.isArray(G))for(he=0,ce=G.length;he<ce;he++)ne=G[he],this.instruction(ne);else if(F(G))for(ne in G)P.call(G,ne)&&(ue=G[ne],this.instruction(ne,ue));else M(Q)&&(Q=Q.apply()),ae=new _(this,G,Q),this.children.push(ae);return this},V.prototype.instructionBefore=function(G,Q){var ne,ue,ae;return ue=this.parent.children.indexOf(this),ae=this.parent.children.splice(ue),ne=this.parent.instruction(G,Q),Array.prototype.push.apply(this.parent.children,ae),this},V.prototype.instructionAfter=function(G,Q){var ne,ue,ae;return ue=this.parent.children.indexOf(this),ae=this.parent.children.splice(ue+1),ne=this.parent.instruction(G,Q),Array.prototype.push.apply(this.parent.children,ae),this},V.prototype.declaration=function(G,Q,ne){var ue,ae;return ue=this.document(),ae=new S(ue,G,Q,ne),ue.children.length===0?ue.children.unshift(ae):ue.children[0].type===d.Declaration?ue.children[0]=ae:ue.children.unshift(ae),ue.root()||ue},V.prototype.dtd=function(G,Q){var ne,ue,ae,he,ce,we,me,Le,ee,se;for(ue=this.document(),ae=new v(ue,G,Q),ee=ue.children,he=ce=0,me=ee.length;ce<me;he=++ce)if(ne=ee[he],ne.type===d.DocType)return ue.children[he]=ae,ae;for(se=ue.children,he=we=0,Le=se.length;we<Le;he=++we)if(ne=se[he],ne.isRoot)return ue.children.splice(he,0,ae),ae;return ue.children.push(ae),ae},V.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},V.prototype.root=function(){var G;for(G=this;G;){if(G.type===d.Document)return G.rootObject;if(G.isRoot)return G;G=G.parent}},V.prototype.document=function(){var G;for(G=this;G;){if(G.type===d.Document)return G;G=G.parent}},V.prototype.end=function(G){return this.document().end(G)},V.prototype.prev=function(){var G;if(G=this.parent.children.indexOf(this),G<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[G-1]},V.prototype.next=function(){var G;if(G=this.parent.children.indexOf(this),G===-1||G===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[G+1]},V.prototype.importDocument=function(G){var Q;return Q=G.root().clone(),Q.parent=this,Q.isRoot=!1,this.children.push(Q),this},V.prototype.debugInfo=function(G){var Q,ne;return G=G||this.name,G==null&&!((Q=this.parent)!=null&&Q.name)?"":G==null?"parent: <"+this.parent.name+">":(ne=this.parent)!=null&&ne.name?"node: <"+G+">, parent: <"+this.parent.name+">":"node: <"+G+">"},V.prototype.ele=function(G,Q,ne){return this.element(G,Q,ne)},V.prototype.nod=function(G,Q,ne){return this.node(G,Q,ne)},V.prototype.txt=function(G){return this.text(G)},V.prototype.dat=function(G){return this.cdata(G)},V.prototype.com=function(G){return this.comment(G)},V.prototype.ins=function(G,Q){return this.instruction(G,Q)},V.prototype.doc=function(){return this.document()},V.prototype.dec=function(G,Q,ne){return this.declaration(G,Q,ne)},V.prototype.e=function(G,Q,ne){return this.element(G,Q,ne)},V.prototype.n=function(G,Q,ne){return this.node(G,Q,ne)},V.prototype.t=function(G){return this.text(G)},V.prototype.d=function(G){return this.cdata(G)},V.prototype.c=function(G){return this.comment(G)},V.prototype.r=function(G){return this.raw(G)},V.prototype.i=function(G,Q){return this.instruction(G,Q)},V.prototype.u=function(){return this.up()},V.prototype.importXMLBuilder=function(G){return this.importDocument(G)},V.prototype.replaceChild=function(G,Q){throw new Error("This DOM method is not implemented."+this.debugInfo())},V.prototype.removeChild=function(G){throw new Error("This DOM method is not implemented."+this.debugInfo())},V.prototype.appendChild=function(G){throw new Error("This DOM method is not implemented."+this.debugInfo())},V.prototype.hasChildNodes=function(){return this.children.length!==0},V.prototype.cloneNode=function(G){throw new Error("This DOM method is not implemented."+this.debugInfo())},V.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},V.prototype.isSupported=function(G,Q){return!0},V.prototype.hasAttributes=function(){return this.attribs.length!==0},V.prototype.compareDocumentPosition=function(G){var Q,ne;return Q=this,Q===G?0:this.document()!==G.document()?(ne=u.Disconnected|u.ImplementationSpecific,Math.random()<.5?ne|=u.Preceding:ne|=u.Following,ne):Q.isAncestor(G)?u.Contains|u.Preceding:Q.isDescendant(G)?u.Contains|u.Following:Q.isPreceding(G)?u.Preceding:u.Following},V.prototype.isSameNode=function(G){throw new Error("This DOM method is not implemented."+this.debugInfo())},V.prototype.lookupPrefix=function(G){throw new Error("This DOM method is not implemented."+this.debugInfo())},V.prototype.isDefaultNamespace=function(G){throw new Error("This DOM method is not implemented."+this.debugInfo())},V.prototype.lookupNamespaceURI=function(G){throw new Error("This DOM method is not implemented."+this.debugInfo())},V.prototype.isEqualNode=function(G){var Q,ne,ue;if(G.nodeType!==this.nodeType||G.children.length!==this.children.length)return!1;for(Q=ne=0,ue=this.children.length-1;0<=ue?ne<=ue:ne>=ue;Q=0<=ue?++ne:--ne)if(!this.children[Q].isEqualNode(G.children[Q]))return!1;return!0},V.prototype.getFeature=function(G,Q){throw new Error("This DOM method is not implemented."+this.debugInfo())},V.prototype.setUserData=function(G,Q,ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},V.prototype.getUserData=function(G){throw new Error("This DOM method is not implemented."+this.debugInfo())},V.prototype.contains=function(G){return G?G===this||this.isDescendant(G):!1},V.prototype.isDescendant=function(G){var Q,ne,ue,ae,he;for(he=this.children,ue=0,ae=he.length;ue<ae;ue++)if(Q=he[ue],G===Q||(ne=Q.isDescendant(G),ne))return!0;return!1},V.prototype.isAncestor=function(G){return G.isDescendant(this)},V.prototype.isPreceding=function(G){var Q,ne;return Q=this.treePosition(G),ne=this.treePosition(this),Q===-1||ne===-1?!1:Q<ne},V.prototype.isFollowing=function(G){var Q,ne;return Q=this.treePosition(G),ne=this.treePosition(this),Q===-1||ne===-1?!1:Q>ne},V.prototype.treePosition=function(G){var Q,ne;return ne=0,Q=!1,this.foreachTreeNode(this.document(),function(ue){if(ne++,!Q&&ue===G)return Q=!0}),Q?ne:-1},V.prototype.foreachTreeNode=function(G,Q){var ne,ue,ae,he,ce;for(G||(G=this.document()),he=G.children,ue=0,ae=he.length;ue<ae;ue++){if(ne=he[ue],ce=Q(ne))return ce;if(ce=this.foreachTreeNode(ne,Q),ce)return ce}},V}()}).call(this)},{"./DocumentPosition":427,"./NodeType":428,"./Utility":429,"./XMLCData":432,"./XMLComment":434,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDummy":447,"./XMLElement":448,"./XMLNamedNodeMap":449,"./XMLNodeList":451,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLText":457}],451:[function(s,E,I){(function(){var u;E.exports=u=function(){function d(g){this.nodes=g}return Object.defineProperty(d.prototype,"length",{get:function(){return this.nodes.length||0}}),d.prototype.clone=function(){return this.nodes=null},d.prototype.item=function(g){return this.nodes[g]||null},d}()}).call(this)},{}],452:[function(s,E,I){(function(){var u,d,g,y=function(v,c){for(var h in c)S.call(c,h)&&(v[h]=c[h]);function m(){this.constructor=v}return m.prototype=c.prototype,v.prototype=new m,v.__super__=c.prototype,v},S={}.hasOwnProperty;u=s("./NodeType"),d=s("./XMLCharacterData"),E.exports=g=function(v){y(c,v);function c(h,m,x){if(c.__super__.constructor.call(this,h),m==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=u.ProcessingInstruction,this.target=this.stringify.insTarget(m),this.name=this.target,x&&(this.value=this.stringify.insValue(x))}return c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(h){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(h))},c.prototype.isEqualNode=function(h){return!(!c.__super__.isEqualNode.apply(this,arguments).isEqualNode(h)||h.target!==this.target)},c}(d)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],453:[function(s,E,I){(function(){var u,d,g,y=function(v,c){for(var h in c)S.call(c,h)&&(v[h]=c[h]);function m(){this.constructor=v}return m.prototype=c.prototype,v.prototype=new m,v.__super__=c.prototype,v},S={}.hasOwnProperty;u=s("./NodeType"),d=s("./XMLNode"),E.exports=g=function(v){y(c,v);function c(h,m){if(c.__super__.constructor.call(this,h),m==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=u.Raw,this.value=this.stringify.raw(m)}return c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(h){return this.options.writer.raw(this,this.options.writer.filterOptions(h))},c}(d)}).call(this)},{"./NodeType":428,"./XMLNode":450}],454:[function(s,E,I){(function(){var u,d,g,y,S=function(c,h){for(var m in h)v.call(h,m)&&(c[m]=h[m]);function x(){this.constructor=c}return x.prototype=h.prototype,c.prototype=new x,c.__super__=h.prototype,c},v={}.hasOwnProperty;u=s("./NodeType"),y=s("./XMLWriterBase"),d=s("./WriterState"),E.exports=g=function(c){S(h,c);function h(m,x){this.stream=m,h.__super__.constructor.call(this,x)}return h.prototype.endline=function(m,x,T){return m.isLastRootNode&&x.state===d.CloseTag?"":h.__super__.endline.call(this,m,x,T)},h.prototype.document=function(m,x){var T,_,R,A,N,L,M,F,H;for(M=m.children,_=R=0,N=M.length;R<N;_=++R)T=M[_],T.isLastRootNode=_===m.children.length-1;for(x=this.filterOptions(x),F=m.children,H=[],A=0,L=F.length;A<L;A++)T=F[A],H.push(this.writeChildNode(T,x,0));return H},h.prototype.attribute=function(m,x,T){return this.stream.write(h.__super__.attribute.call(this,m,x,T))},h.prototype.cdata=function(m,x,T){return this.stream.write(h.__super__.cdata.call(this,m,x,T))},h.prototype.comment=function(m,x,T){return this.stream.write(h.__super__.comment.call(this,m,x,T))},h.prototype.declaration=function(m,x,T){return this.stream.write(h.__super__.declaration.call(this,m,x,T))},h.prototype.docType=function(m,x,T){var _,R,A,N;if(T||(T=0),this.openNode(m,x,T),x.state=d.OpenTag,this.stream.write(this.indent(m,x,T)),this.stream.write("<!DOCTYPE "+m.root().name),m.pubID&&m.sysID?this.stream.write(' PUBLIC "'+m.pubID+'" "'+m.sysID+'"'):m.sysID&&this.stream.write(' SYSTEM "'+m.sysID+'"'),m.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(m,x,T)),x.state=d.InsideTag,N=m.children,R=0,A=N.length;R<A;R++)_=N[R],this.writeChildNode(_,x,T+1);x.state=d.CloseTag,this.stream.write("]")}return x.state=d.CloseTag,this.stream.write(x.spaceBeforeSlash+">"),this.stream.write(this.endline(m,x,T)),x.state=d.None,this.closeNode(m,x,T)},h.prototype.element=function(m,x,T){var _,R,A,N,L,M,F,H,P,V;T||(T=0),this.openNode(m,x,T),x.state=d.OpenTag,this.stream.write(this.indent(m,x,T)+"<"+m.name),P=m.attribs;for(F in P)v.call(P,F)&&(_=P[F],this.attribute(_,x,T));if(A=m.children.length,N=A===0?null:m.children[0],A===0||m.children.every(function(G){return(G.type===u.Text||G.type===u.Raw)&&G.value===""}))x.allowEmpty?(this.stream.write(">"),x.state=d.CloseTag,this.stream.write("</"+m.name+">")):(x.state=d.CloseTag,this.stream.write(x.spaceBeforeSlash+"/>"));else if(x.pretty&&A===1&&(N.type===u.Text||N.type===u.Raw)&&N.value!=null)this.stream.write(">"),x.state=d.InsideTag,x.suppressPrettyCount++,H=!0,this.writeChildNode(N,x,T+1),x.suppressPrettyCount--,H=!1,x.state=d.CloseTag,this.stream.write("</"+m.name+">");else{for(this.stream.write(">"+this.endline(m,x,T)),x.state=d.InsideTag,V=m.children,L=0,M=V.length;L<M;L++)R=V[L],this.writeChildNode(R,x,T+1);x.state=d.CloseTag,this.stream.write(this.indent(m,x,T)+"</"+m.name+">")}return this.stream.write(this.endline(m,x,T)),x.state=d.None,this.closeNode(m,x,T)},h.prototype.processingInstruction=function(m,x,T){return this.stream.write(h.__super__.processingInstruction.call(this,m,x,T))},h.prototype.raw=function(m,x,T){return this.stream.write(h.__super__.raw.call(this,m,x,T))},h.prototype.text=function(m,x,T){return this.stream.write(h.__super__.text.call(this,m,x,T))},h.prototype.dtdAttList=function(m,x,T){return this.stream.write(h.__super__.dtdAttList.call(this,m,x,T))},h.prototype.dtdElement=function(m,x,T){return this.stream.write(h.__super__.dtdElement.call(this,m,x,T))},h.prototype.dtdEntity=function(m,x,T){return this.stream.write(h.__super__.dtdEntity.call(this,m,x,T))},h.prototype.dtdNotation=function(m,x,T){return this.stream.write(h.__super__.dtdNotation.call(this,m,x,T))},h}(y)}).call(this)},{"./NodeType":428,"./WriterState":430,"./XMLWriterBase":458}],455:[function(s,E,I){(function(){var u,d,g=function(S,v){for(var c in v)y.call(v,c)&&(S[c]=v[c]);function h(){this.constructor=S}return h.prototype=v.prototype,S.prototype=new h,S.__super__=v.prototype,S},y={}.hasOwnProperty;d=s("./XMLWriterBase"),E.exports=u=function(S){g(v,S);function v(c){v.__super__.constructor.call(this,c)}return v.prototype.document=function(c,h){var m,x,T,_,R;for(h=this.filterOptions(h),_="",R=c.children,x=0,T=R.length;x<T;x++)m=R[x],_+=this.writeChildNode(m,h,0);return h.pretty&&_.slice(-h.newline.length)===h.newline&&(_=_.slice(0,-h.newline.length)),_},v}(d)}).call(this)},{"./XMLWriterBase":458}],456:[function(s,E,I){(function(){var u,d=function(y,S){return function(){return y.apply(S,arguments)}},g={}.hasOwnProperty;E.exports=u=function(){function y(S){this.assertLegalName=d(this.assertLegalName,this),this.assertLegalChar=d(this.assertLegalChar,this);var v,c,h;S||(S={}),this.options=S,this.options.version||(this.options.version="1.0"),c=S.stringify||{};for(v in c)g.call(c,v)&&(h=c[v],this[v]=h)}return y.prototype.name=function(S){return this.options.noValidation?S:this.assertLegalName(""+S||"")},y.prototype.text=function(S){return this.options.noValidation?S:this.assertLegalChar(this.textEscape(""+S||""))},y.prototype.cdata=function(S){return this.options.noValidation?S:(S=""+S||"",S=S.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(S))},y.prototype.comment=function(S){if(this.options.noValidation)return S;if(S=""+S||"",S.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+S);return this.assertLegalChar(S)},y.prototype.raw=function(S){return this.options.noValidation?S:""+S||""},y.prototype.attValue=function(S){return this.options.noValidation?S:this.assertLegalChar(this.attEscape(S=""+S||""))},y.prototype.insTarget=function(S){return this.options.noValidation?S:this.assertLegalChar(""+S||"")},y.prototype.insValue=function(S){if(this.options.noValidation)return S;if(S=""+S||"",S.match(/\?>/))throw new Error("Invalid processing instruction value: "+S);return this.assertLegalChar(S)},y.prototype.xmlVersion=function(S){if(this.options.noValidation)return S;if(S=""+S||"",!S.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+S);return S},y.prototype.xmlEncoding=function(S){if(this.options.noValidation)return S;if(S=""+S||"",!S.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+S);return this.assertLegalChar(S)},y.prototype.xmlStandalone=function(S){return this.options.noValidation?S:S?"yes":"no"},y.prototype.dtdPubID=function(S){return this.options.noValidation?S:this.assertLegalChar(""+S||"")},y.prototype.dtdSysID=function(S){return this.options.noValidation?S:this.assertLegalChar(""+S||"")},y.prototype.dtdElementValue=function(S){return this.options.noValidation?S:this.assertLegalChar(""+S||"")},y.prototype.dtdAttType=function(S){return this.options.noValidation?S:this.assertLegalChar(""+S||"")},y.prototype.dtdAttDefault=function(S){return this.options.noValidation?S:this.assertLegalChar(""+S||"")},y.prototype.dtdEntityValue=function(S){return this.options.noValidation?S:this.assertLegalChar(""+S||"")},y.prototype.dtdNData=function(S){return this.options.noValidation?S:this.assertLegalChar(""+S||"")},y.prototype.convertAttKey="@",y.prototype.convertPIKey="?",y.prototype.convertTextKey="#text",y.prototype.convertCDataKey="#cdata",y.prototype.convertCommentKey="#comment",y.prototype.convertRawKey="#raw",y.prototype.assertLegalChar=function(S){var v,c;if(this.options.noValidation)return S;if(v="",this.options.version==="1.0"){if(v=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,c=S.match(v))throw new Error("Invalid character in string: "+S+" at index "+c.index)}else if(this.options.version==="1.1"&&(v=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,c=S.match(v)))throw new Error("Invalid character in string: "+S+" at index "+c.index);return S},y.prototype.assertLegalName=function(S){var v;if(this.options.noValidation)return S;if(this.assertLegalChar(S),v=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!S.match(v))throw new Error("Invalid character in name");return S},y.prototype.textEscape=function(S){var v;return this.options.noValidation?S:(v=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,S.replace(v,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},y.prototype.attEscape=function(S){var v;return this.options.noValidation?S:(v=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,S.replace(v,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},y}()}).call(this)},{}],457:[function(s,E,I){(function(){var u,d,g,y=function(v,c){for(var h in c)S.call(c,h)&&(v[h]=c[h]);function m(){this.constructor=v}return m.prototype=c.prototype,v.prototype=new m,v.__super__=c.prototype,v},S={}.hasOwnProperty;u=s("./NodeType"),d=s("./XMLCharacterData"),E.exports=g=function(v){y(c,v);function c(h,m){if(c.__super__.constructor.call(this,h),m==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=u.Text,this.value=this.stringify.text(m)}return Object.defineProperty(c.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(c.prototype,"wholeText",{get:function(){var h,m,x;for(x="",m=this.previousSibling;m;)x=m.data+x,m=m.previousSibling;for(x+=this.data,h=this.nextSibling;h;)x=x+h.data,h=h.nextSibling;return x}}),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(h){return this.options.writer.text(this,this.options.writer.filterOptions(h))},c.prototype.splitText=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.replaceWholeText=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},c}(d)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],458:[function(s,E,I){(function(){var u,d,g,y,S,v,c,h,m,x,T,_,R,A,N,L,M,F={}.hasOwnProperty;M=s("./Utility").assign,u=s("./NodeType"),m=s("./XMLDeclaration"),x=s("./XMLDocType"),g=s("./XMLCData"),y=s("./XMLComment"),_=s("./XMLElement"),A=s("./XMLRaw"),N=s("./XMLText"),R=s("./XMLProcessingInstruction"),T=s("./XMLDummy"),S=s("./XMLDTDAttList"),v=s("./XMLDTDElement"),c=s("./XMLDTDEntity"),h=s("./XMLDTDNotation"),d=s("./WriterState"),E.exports=L=function(){function H(P){var V,G,Q;P||(P={}),this.options=P,G=P.writer||{};for(V in G)F.call(G,V)&&(Q=G[V],this["_"+V]=this[V],this[V]=Q)}return H.prototype.filterOptions=function(P){var V,G,Q,ne,ue,ae,he,ce;return P||(P={}),P=M({},this.options,P),V={writer:this},V.pretty=P.pretty||!1,V.allowEmpty=P.allowEmpty||!1,V.indent=(G=P.indent)!=null?G:" ",V.newline=(Q=P.newline)!=null?Q:`
`,V.offset=(ne=P.offset)!=null?ne:0,V.dontPrettyTextNodes=(ue=(ae=P.dontPrettyTextNodes)!=null?ae:P.dontprettytextnodes)!=null?ue:0,V.spaceBeforeSlash=(he=(ce=P.spaceBeforeSlash)!=null?ce:P.spacebeforeslash)!=null?he:"",V.spaceBeforeSlash===!0&&(V.spaceBeforeSlash=" "),V.suppressPrettyCount=0,V.user={},V.state=d.None,V},H.prototype.indent=function(P,V,G){var Q;return!V.pretty||V.suppressPrettyCount?"":V.pretty&&(Q=(G||0)+V.offset+1,Q>0)?new Array(Q).join(V.indent):""},H.prototype.endline=function(P,V,G){return!V.pretty||V.suppressPrettyCount?"":V.newline},H.prototype.attribute=function(P,V,G){var Q;return this.openAttribute(P,V,G),Q=" "+P.name+'="'+P.value+'"',this.closeAttribute(P,V,G),Q},H.prototype.cdata=function(P,V,G){var Q;return this.openNode(P,V,G),V.state=d.OpenTag,Q=this.indent(P,V,G)+"<![CDATA[",V.state=d.InsideTag,Q+=P.value,V.state=d.CloseTag,Q+="]]>"+this.endline(P,V,G),V.state=d.None,this.closeNode(P,V,G),Q},H.prototype.comment=function(P,V,G){var Q;return this.openNode(P,V,G),V.state=d.OpenTag,Q=this.indent(P,V,G)+"<!-- ",V.state=d.InsideTag,Q+=P.value,V.state=d.CloseTag,Q+=" -->"+this.endline(P,V,G),V.state=d.None,this.closeNode(P,V,G),Q},H.prototype.declaration=function(P,V,G){var Q;return this.openNode(P,V,G),V.state=d.OpenTag,Q=this.indent(P,V,G)+"<?xml",V.state=d.InsideTag,Q+=' version="'+P.version+'"',P.encoding!=null&&(Q+=' encoding="'+P.encoding+'"'),P.standalone!=null&&(Q+=' standalone="'+P.standalone+'"'),V.state=d.CloseTag,Q+=V.spaceBeforeSlash+"?>",Q+=this.endline(P,V,G),V.state=d.None,this.closeNode(P,V,G),Q},H.prototype.docType=function(P,V,G){var Q,ne,ue,ae,he;if(G||(G=0),this.openNode(P,V,G),V.state=d.OpenTag,ae=this.indent(P,V,G),ae+="<!DOCTYPE "+P.root().name,P.pubID&&P.sysID?ae+=' PUBLIC "'+P.pubID+'" "'+P.sysID+'"':P.sysID&&(ae+=' SYSTEM "'+P.sysID+'"'),P.children.length>0){for(ae+=" [",ae+=this.endline(P,V,G),V.state=d.InsideTag,he=P.children,ne=0,ue=he.length;ne<ue;ne++)Q=he[ne],ae+=this.writeChildNode(Q,V,G+1);V.state=d.CloseTag,ae+="]"}return V.state=d.CloseTag,ae+=V.spaceBeforeSlash+">",ae+=this.endline(P,V,G),V.state=d.None,this.closeNode(P,V,G),ae},H.prototype.element=function(P,V,G){var Q,ne,ue,ae,he,ce,we,me,Le,ee,se,le,ke,De;G||(G=0),ee=!1,se="",this.openNode(P,V,G),V.state=d.OpenTag,se+=this.indent(P,V,G)+"<"+P.name,le=P.attribs;for(Le in le)F.call(le,Le)&&(Q=le[Le],se+=this.attribute(Q,V,G));if(ue=P.children.length,ae=ue===0?null:P.children[0],ue===0||P.children.every(function(Be){return(Be.type===u.Text||Be.type===u.Raw)&&Be.value===""}))V.allowEmpty?(se+=">",V.state=d.CloseTag,se+="</"+P.name+">"+this.endline(P,V,G)):(V.state=d.CloseTag,se+=V.spaceBeforeSlash+"/>"+this.endline(P,V,G));else if(V.pretty&&ue===1&&(ae.type===u.Text||ae.type===u.Raw)&&ae.value!=null)se+=">",V.state=d.InsideTag,V.suppressPrettyCount++,ee=!0,se+=this.writeChildNode(ae,V,G+1),V.suppressPrettyCount--,ee=!1,V.state=d.CloseTag,se+="</"+P.name+">"+this.endline(P,V,G);else{if(V.dontPrettyTextNodes){for(ke=P.children,he=0,we=ke.length;he<we;he++)if(ne=ke[he],(ne.type===u.Text||ne.type===u.Raw)&&ne.value!=null){V.suppressPrettyCount++,ee=!0;break}}for(se+=">"+this.endline(P,V,G),V.state=d.InsideTag,De=P.children,ce=0,me=De.length;ce<me;ce++)ne=De[ce],se+=this.writeChildNode(ne,V,G+1);V.state=d.CloseTag,se+=this.indent(P,V,G)+"</"+P.name+">",ee&&V.suppressPrettyCount--,se+=this.endline(P,V,G),V.state=d.None}return this.closeNode(P,V,G),se},H.prototype.writeChildNode=function(P,V,G){switch(P.type){case u.CData:return this.cdata(P,V,G);case u.Comment:return this.comment(P,V,G);case u.Element:return this.element(P,V,G);case u.Raw:return this.raw(P,V,G);case u.Text:return this.text(P,V,G);case u.ProcessingInstruction:return this.processingInstruction(P,V,G);case u.Dummy:return"";case u.Declaration:return this.declaration(P,V,G);case u.DocType:return this.docType(P,V,G);case u.AttributeDeclaration:return this.dtdAttList(P,V,G);case u.ElementDeclaration:return this.dtdElement(P,V,G);case u.EntityDeclaration:return this.dtdEntity(P,V,G);case u.NotationDeclaration:return this.dtdNotation(P,V,G);default:throw new Error("Unknown XML node type: "+P.constructor.name)}},H.prototype.processingInstruction=function(P,V,G){var Q;return this.openNode(P,V,G),V.state=d.OpenTag,Q=this.indent(P,V,G)+"<?",V.state=d.InsideTag,Q+=P.target,P.value&&(Q+=" "+P.value),V.state=d.CloseTag,Q+=V.spaceBeforeSlash+"?>",Q+=this.endline(P,V,G),V.state=d.None,this.closeNode(P,V,G),Q},H.prototype.raw=function(P,V,G){var Q;return this.openNode(P,V,G),V.state=d.OpenTag,Q=this.indent(P,V,G),V.state=d.InsideTag,Q+=P.value,V.state=d.CloseTag,Q+=this.endline(P,V,G),V.state=d.None,this.closeNode(P,V,G),Q},H.prototype.text=function(P,V,G){var Q;return this.openNode(P,V,G),V.state=d.OpenTag,Q=this.indent(P,V,G),V.state=d.InsideTag,Q+=P.value,V.state=d.CloseTag,Q+=this.endline(P,V,G),V.state=d.None,this.closeNode(P,V,G),Q},H.prototype.dtdAttList=function(P,V,G){var Q;return this.openNode(P,V,G),V.state=d.OpenTag,Q=this.indent(P,V,G)+"<!ATTLIST",V.state=d.InsideTag,Q+=" "+P.elementName+" "+P.attributeName+" "+P.attributeType,P.defaultValueType!=="#DEFAULT"&&(Q+=" "+P.defaultValueType),P.defaultValue&&(Q+=' "'+P.defaultValue+'"'),V.state=d.CloseTag,Q+=V.spaceBeforeSlash+">"+this.endline(P,V,G),V.state=d.None,this.closeNode(P,V,G),Q},H.prototype.dtdElement=function(P,V,G){var Q;return this.openNode(P,V,G),V.state=d.OpenTag,Q=this.indent(P,V,G)+"<!ELEMENT",V.state=d.InsideTag,Q+=" "+P.name+" "+P.value,V.state=d.CloseTag,Q+=V.spaceBeforeSlash+">"+this.endline(P,V,G),V.state=d.None,this.closeNode(P,V,G),Q},H.prototype.dtdEntity=function(P,V,G){var Q;return this.openNode(P,V,G),V.state=d.OpenTag,Q=this.indent(P,V,G)+"<!ENTITY",V.state=d.InsideTag,P.pe&&(Q+=" %"),Q+=" "+P.name,P.value?Q+=' "'+P.value+'"':(P.pubID&&P.sysID?Q+=' PUBLIC "'+P.pubID+'" "'+P.sysID+'"':P.sysID&&(Q+=' SYSTEM "'+P.sysID+'"'),P.nData&&(Q+=" NDATA "+P.nData)),V.state=d.CloseTag,Q+=V.spaceBeforeSlash+">"+this.endline(P,V,G),V.state=d.None,this.closeNode(P,V,G),Q},H.prototype.dtdNotation=function(P,V,G){var Q;return this.openNode(P,V,G),V.state=d.OpenTag,Q=this.indent(P,V,G)+"<!NOTATION",V.state=d.InsideTag,Q+=" "+P.name,P.pubID&&P.sysID?Q+=' PUBLIC "'+P.pubID+'" "'+P.sysID+'"':P.pubID?Q+=' PUBLIC "'+P.pubID+'"':P.sysID&&(Q+=' SYSTEM "'+P.sysID+'"'),V.state=d.CloseTag,Q+=V.spaceBeforeSlash+">"+this.endline(P,V,G),V.state=d.None,this.closeNode(P,V,G),Q},H.prototype.openNode=function(P,V,G){},H.prototype.closeNode=function(P,V,G){},H.prototype.openAttribute=function(P,V,G){},H.prototype.closeAttribute=function(P,V,G){},H}()}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLCData":432,"./XMLComment":434,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDummy":447,"./XMLElement":448,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLText":457}],459:[function(s,E,I){(function(){var u,d,g,y,S,v,c,h,m,x;x=s("./Utility"),h=x.assign,m=x.isFunction,g=s("./XMLDOMImplementation"),y=s("./XMLDocument"),S=s("./XMLDocumentCB"),c=s("./XMLStringWriter"),v=s("./XMLStreamWriter"),u=s("./NodeType"),d=s("./WriterState"),E.exports.create=function(T,_,R,A){var N,L;if(T==null)throw new Error("Root element needs a name.");return A=h({},_,R,A),N=new y(A),L=N.element(T),A.headless||(N.declaration(A),(A.pubID!=null||A.sysID!=null)&&N.dtd(A)),L},E.exports.begin=function(T,_,R){var A;return m(T)&&(A=[T,_],_=A[0],R=A[1],T={}),_?new S(T,_,R):new y(T)},E.exports.stringWriter=function(T){return new c(T)},E.exports.streamWriter=function(T,_){return new v(T,_)},E.exports.implementation=new g,E.exports.nodeType=u,E.exports.writerState=d}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLDOMImplementation":437,"./XMLDocument":445,"./XMLDocumentCB":446,"./XMLStreamWriter":454,"./XMLStringWriter":455}],460:[function(s,E,I){E.exports=d;var u=Object.prototype.hasOwnProperty;function d(){for(var g={},y=0;y<arguments.length;y++){var S=arguments[y];for(var v in S)u.call(S,v)&&(g[v]=S[v])}return g}},{}],461:[function(s,E,I){"use strict";s("core-js/modules/es.array.fill.js"),s("core-js/modules/es.array.concat.js"),s("core-js/modules/es.object.to-string.js"),s("core-js/modules/es.regexp.to-string.js"),s("core-js/modules/es.array.join.js"),s("core-js/modules/es.array.slice.js");var u=s("buffer").Buffer,d=s("./sha"),g=s("./md5"),y={sha1:d,md5:g},S=64,v=u.alloc(S);v.fill(0);function c(x,T,_){u.isBuffer(T)||(T=u.from(T)),u.isBuffer(_)||(_=u.from(_)),T.length>S?T=x(T):T.length<S&&(T=u.concat([T,v],S));for(var R=u.alloc(S),A=u.alloc(S),N=0;N<S;N++)R[N]=T[N]^54,A[N]=T[N]^92;var L=x(u.concat([R,_]));return x(u.concat([A,L]))}function h(x,T){x=x||"sha1";var _=y[x],R=[],A=0;return _||m("algorithm:",x,"is not yet supported"),{update:function(L){return u.isBuffer(L)||(L=u.from(L)),R.push(L),A+=L.length,this},digest:function(L){var M=u.concat(R),F=T?c(_,T,M):_(M);return R=null,L?F.toString(L):F}}}function m(){var x=[].slice.call(arguments).join(" ");throw new Error([x,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}I.createHash=function(x){return h(x)},I.createHmac=function(x,T){return h(x,T)},I.createCredentials=function(){m("sorry,createCredentials is not implemented yet")},I.createCipher=function(){m("sorry,createCipher is not implemented yet")},I.createCipheriv=function(){m("sorry,createCipheriv is not implemented yet")},I.createDecipher=function(){m("sorry,createDecipher is not implemented yet")},I.createDecipheriv=function(){m("sorry,createDecipheriv is not implemented yet")},I.createSign=function(){m("sorry,createSign is not implemented yet")},I.createVerify=function(){m("sorry,createVerify is not implemented yet")},I.createDiffieHellman=function(){m("sorry,createDiffieHellman is not implemented yet")},I.pbkdf2=function(){m("sorry,pbkdf2 is not implemented yet")}},{"./md5":463,"./sha":464,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],462:[function(s,E,I){"use strict";s("core-js/modules/es.array.fill.js"),s("core-js/modules/es.array.concat.js");var u=s("buffer").Buffer,d=4,g=u.alloc(d);g.fill(0);var y=8;function S(h,m){if(h.length%d!==0){var x=h.length+(d-h.length%d);h=u.concat([h,g],x)}for(var T=[],_=m?h.readInt32BE:h.readInt32LE,R=0;R<h.length;R+=d)T.push(_.call(h,R));return T}function v(h,m,x){for(var T=u.alloc(m),_=x?T.writeInt32BE:T.writeInt32LE,R=0;R<h.length;R++)_.call(T,h[R],R*4,!0);return T}function c(h,m,x,T){u.isBuffer(h)||(h=u.from(h));var _=m(S(h,T),h.length*y);return v(_,x,T)}E.exports={hash:c}},{buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273}],463:[function(s,E,I){"use strict";var u=s("./helpers");function d(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function g(T,_){T[_>>5]|=128<<_%32,T[(_+64>>>9<<4)+14]=_;for(var R=1732584193,A=-271733879,N=-1732584194,L=271733878,M=0;M<T.length;M+=16){var F=R,H=A,P=N,V=L;R=S(R,A,N,L,T[M+0],7,-680876936),L=S(L,R,A,N,T[M+1],12,-389564586),N=S(N,L,R,A,T[M+2],17,606105819),A=S(A,N,L,R,T[M+3],22,-1044525330),R=S(R,A,N,L,T[M+4],7,-176418897),L=S(L,R,A,N,T[M+5],12,1200080426),N=S(N,L,R,A,T[M+6],17,-1473231341),A=S(A,N,L,R,T[M+7],22,-45705983),R=S(R,A,N,L,T[M+8],7,1770035416),L=S(L,R,A,N,T[M+9],12,-1958414417),N=S(N,L,R,A,T[M+10],17,-42063),A=S(A,N,L,R,T[M+11],22,-1990404162),R=S(R,A,N,L,T[M+12],7,1804603682),L=S(L,R,A,N,T[M+13],12,-40341101),N=S(N,L,R,A,T[M+14],17,-1502002290),A=S(A,N,L,R,T[M+15],22,1236535329),R=v(R,A,N,L,T[M+1],5,-165796510),L=v(L,R,A,N,T[M+6],9,-1069501632),N=v(N,L,R,A,T[M+11],14,643717713),A=v(A,N,L,R,T[M+0],20,-373897302),R=v(R,A,N,L,T[M+5],5,-701558691),L=v(L,R,A,N,T[M+10],9,38016083),N=v(N,L,R,A,T[M+15],14,-660478335),A=v(A,N,L,R,T[M+4],20,-405537848),R=v(R,A,N,L,T[M+9],5,568446438),L=v(L,R,A,N,T[M+14],9,-1019803690),N=v(N,L,R,A,T[M+3],14,-187363961),A=v(A,N,L,R,T[M+8],20,1163531501),R=v(R,A,N,L,T[M+13],5,-1444681467),L=v(L,R,A,N,T[M+2],9,-51403784),N=v(N,L,R,A,T[M+7],14,1735328473),A=v(A,N,L,R,T[M+12],20,-1926607734),R=c(R,A,N,L,T[M+5],4,-378558),L=c(L,R,A,N,T[M+8],11,-2022574463),N=c(N,L,R,A,T[M+11],16,1839030562),A=c(A,N,L,R,T[M+14],23,-35309556),R=c(R,A,N,L,T[M+1],4,-1530992060),L=c(L,R,A,N,T[M+4],11,1272893353),N=c(N,L,R,A,T[M+7],16,-155497632),A=c(A,N,L,R,T[M+10],23,-1094730640),R=c(R,A,N,L,T[M+13],4,681279174),L=c(L,R,A,N,T[M+0],11,-358537222),N=c(N,L,R,A,T[M+3],16,-722521979),A=c(A,N,L,R,T[M+6],23,76029189),R=c(R,A,N,L,T[M+9],4,-640364487),L=c(L,R,A,N,T[M+12],11,-421815835),N=c(N,L,R,A,T[M+15],16,530742520),A=c(A,N,L,R,T[M+2],23,-995338651),R=h(R,A,N,L,T[M+0],6,-198630844),L=h(L,R,A,N,T[M+7],10,1126891415),N=h(N,L,R,A,T[M+14],15,-1416354905),A=h(A,N,L,R,T[M+5],21,-57434055),R=h(R,A,N,L,T[M+12],6,1700485571),L=h(L,R,A,N,T[M+3],10,-1894986606),N=h(N,L,R,A,T[M+10],15,-1051523),A=h(A,N,L,R,T[M+1],21,-2054922799),R=h(R,A,N,L,T[M+8],6,1873313359),L=h(L,R,A,N,T[M+15],10,-30611744),N=h(N,L,R,A,T[M+6],15,-1560198380),A=h(A,N,L,R,T[M+13],21,1309151649),R=h(R,A,N,L,T[M+4],6,-145523070),L=h(L,R,A,N,T[M+11],10,-1120210379),N=h(N,L,R,A,T[M+2],15,718787259),A=h(A,N,L,R,T[M+9],21,-343485551),R=m(R,F),A=m(A,H),N=m(N,P),L=m(L,V)}return Array(R,A,N,L)}function y(T,_,R,A,N,L){return m(x(m(m(_,T),m(A,L)),N),R)}function S(T,_,R,A,N,L,M){return y(_&R|~_&A,T,_,N,L,M)}function v(T,_,R,A,N,L,M){return y(_&A|R&~A,T,_,N,L,M)}function c(T,_,R,A,N,L,M){return y(_^R^A,T,_,N,L,M)}function h(T,_,R,A,N,L,M){return y(R^(_|~A),T,_,N,L,M)}function m(T,_){var R=(T&65535)+(_&65535),A=(T>>16)+(_>>16)+(R>>16);return A<<16|R&65535}function x(T,_){return T<<_|T>>>32-_}E.exports=function(_){return u.hash(_,g,16)}},{"./helpers":462}],464:[function(s,E,I){"use strict";var u=s("./helpers");function d(c,h){c[h>>5]|=128<<24-h%32,c[(h+64>>9<<4)+15]=h;for(var m=Array(80),x=1732584193,T=-271733879,_=-1732584194,R=271733878,A=-1009589776,N=0;N<c.length;N+=16){for(var L=x,M=T,F=_,H=R,P=A,V=0;V<80;V++){V<16?m[V]=c[N+V]:m[V]=v(m[V-3]^m[V-8]^m[V-14]^m[V-16],1);var G=S(S(v(x,5),g(V,T,_,R)),S(S(A,m[V]),y(V)));A=R,R=_,_=v(T,30),T=x,x=G}x=S(x,L),T=S(T,M),_=S(_,F),R=S(R,H),A=S(A,P)}return Array(x,T,_,R,A)}function g(c,h,m,x){return c<20?h&m|~h&x:c<40?h^m^x:c<60?h&m|h&x|m&x:h^m^x}function y(c){return c<20?1518500249:c<40?1859775393:c<60?-1894007588:-899497514}function S(c,h){var m=(c&65535)+(h&65535),x=(c>>16)+(h>>16)+(m>>16);return x<<16|m&65535}function v(c,h){return c<<h|c>>>32-h}E.exports=function(h){return u.hash(h,d,20,!0)}},{"./helpers":462}],465:[function(s,E,I){"use strict";E.exports=function(){return function(){}}},{}],466:[function(s,E,I){(function(u){(function(){"use strict";var d=s("@babel/runtime/helpers/interopRequireDefault"),g=d(s("@babel/runtime/helpers/typeof")),y=s("stream"),S=y.Stream,v=s("../lib/common/utils/isArray"),c=v.isArray;E.exports.string=function(x){return typeof x=="string"},E.exports.array=c,E.exports.buffer=u.isBuffer;function h(m){return m instanceof S}E.exports.writableStream=function(x){return h(x)&&typeof x._write=="function"&&(0,g.default)(x._writableState)==="object"}}).call(this)}).call(this,{isBuffer:s("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":63,"../node_modules/is-buffer/index.js":366,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,stream:398}],467:[function(s,E,I){"use strict";var u=s("immediate"),d=E.exports={};d.nextTick=u,d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={};function g(){}d.on=g,d.addListener=g,d.once=g,d.off=g,d.removeListener=g,d.removeAllListeners=g,d.emit=g,d.prependListener=g,d.prependOnceListener=g,d.listeners=function(y){return[]},d.binding=function(y){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(y){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},{immediate:358}],468:[function(s,E,I){(function(u){(function(){"use strict";s("core-js/modules/es.regexp.exec.js"),s("core-js/modules/es.string.search.js");var d=s("./lib/request"),g=s("./lib/response"),y=s("xtend"),S=s("builtin-status-codes"),v=s("url"),c=I;c.request=function(h,m){typeof h=="string"?h=v.parse(h):h=y(h);var x=u.location.protocol.search(/^https?:$/)===-1?"http:":"",T=h.protocol||x,_=h.hostname||h.host,R=h.port,A=h.path||"/";_&&_.indexOf(":")!==-1&&(_="["+_+"]"),h.url=(_?T+"//"+_:"")+(R?":"+R:"")+A,h.method=(h.method||"GET").toUpperCase(),h.headers=h.headers||{};var N=new d(h);return m&&N.on("response",m),N},c.get=function(m,x){var T=c.request(m,x);return T.end(),T},c.ClientRequest=d,c.IncomingMessage=g.IncomingMessage,c.Agent=function(){},c.Agent.defaultMaxSockets=4,c.globalAgent=new c.Agent,c.STATUS_CODES=S,c.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 Z!="undefined"?Z:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":470,"./lib/response":471,"builtin-status-codes":91,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.search.js":306,url:472,xtend:460}],469:[function(s,E,I){(function(u){(function(){"use strict";s("core-js/modules/es.object.to-string.js"),s("core-js/modules/es.promise.js"),s("core-js/modules/es.array-buffer.constructor.js"),s("core-js/modules/es.array-buffer.slice.js"),s("core-js/modules/es.array.slice.js"),I.fetch=c(u.fetch)&&c(u.ReadableStream),I.writableStream=c(u.WritableStream),I.abortController=c(u.AbortController),I.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),I.blobConstructor=!0}catch(h){}var d;function g(){if(d!==void 0)return d;if(u.XMLHttpRequest){d=new u.XMLHttpRequest;try{d.open("GET",u.XDomainRequest?"/":"https://example.com")}catch(h){d=null}}else d=null;return d}function y(h){var m=g();if(!m)return!1;try{return m.responseType=h,m.responseType===h}catch(x){}return!1}var S=typeof u.ArrayBuffer!="undefined",v=S&&c(u.ArrayBuffer.prototype.slice);I.arraybuffer=I.fetch||S&&y("arraybuffer"),I.msstream=!I.fetch&&v&&y("ms-stream"),I.mozchunkedarraybuffer=!I.fetch&&S&&y("moz-chunked-arraybuffer"),I.overrideMimeType=I.fetch||(g()?c(g().overrideMimeType):!1),I.vbArray=c(u.VBArray);function c(h){return typeof h=="function"}d=null}).call(this)}).call(this,typeof Z!="undefined"?Z:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"core-js/modules/es.array-buffer.constructor.js":270,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],470:[function(s,E,I){(function(u,d,g){(function(){"use strict";s("core-js/modules/es.object.to-string.js"),s("core-js/modules/es.regexp.to-string.js"),s("core-js/modules/web.dom-collections.for-each.js"),s("core-js/modules/es.object.keys.js"),s("core-js/modules/es.array.concat.js"),s("core-js/modules/es.array.map.js"),s("core-js/modules/es.function.name.js"),s("core-js/modules/es.promise.js"),s("core-js/modules/es.regexp.exec.js"),s("core-js/modules/es.string.split.js");var y=s("./capability"),S=s("inherits"),v=s("./response"),c=s("readable-stream"),h=s("to-arraybuffer"),m=v.IncomingMessage,x=v.readyStates;function T(N,L){return y.fetch&&L?"fetch":y.mozchunkedarraybuffer?"moz-chunked-arraybuffer":y.msstream?"ms-stream":y.arraybuffer&&N?"arraybuffer":y.vbArray&&N?"text:vbarray":"text"}var _=E.exports=function(N){var L=this;c.Writable.call(L),L._opts=N,L._body=[],L._headers={},N.auth&&L.setHeader("Authorization","Basic "+new g(N.auth).toString("base64")),Object.keys(N.headers).forEach(function(H){L.setHeader(H,N.headers[H])});var M,F=!0;if(N.mode==="disable-fetch"||"requestTimeout"in N&&!y.abortController)F=!1,M=!0;else if(N.mode==="prefer-streaming")M=!1;else if(N.mode==="allow-wrong-content-type")M=!y.overrideMimeType;else if(!N.mode||N.mode==="default"||N.mode==="prefer-fast")M=!0;else throw new Error("Invalid value for opts.mode");L._mode=T(M,F),L._fetchTimer=null,L.on("finish",function(){L._onFinish()})};S(_,c.Writable),_.prototype.setHeader=function(N,L){var M=this,F=N.toLowerCase();A.indexOf(F)===-1&&(M._headers[F]={name:N,value:L})},_.prototype.getHeader=function(N){var L=this._headers[N.toLowerCase()];return L?L.value:null},_.prototype.removeHeader=function(N){var L=this;delete L._headers[N.toLowerCase()]},_.prototype._onFinish=function(){var N=this;if(!N._destroyed){var L=N._opts,M=N._headers,F=null;L.method!=="GET"&&L.method!=="HEAD"&&(y.arraybuffer?F=h(g.concat(N._body)):y.blobConstructor?F=new d.Blob(N._body.map(function(ne){return h(ne)}),{type:(M["content-type"]||{}).value||""}):F=g.concat(N._body).toString());var H=[];if(Object.keys(M).forEach(function(ne){var ue=M[ne].name,ae=M[ne].value;Array.isArray(ae)?ae.forEach(function(he){H.push([ue,he])}):H.push([ue,ae])}),N._mode==="fetch"){var P=null,V=null;if(y.abortController){var G=new AbortController;P=G.signal,N._fetchAbortController=G,"requestTimeout"in L&&L.requestTimeout!==0&&(N._fetchTimer=d.setTimeout(function(){N.emit("requestTimeout"),N._fetchAbortController&&N._fetchAbortController.abort()},L.requestTimeout))}d.fetch(N._opts.url,{method:N._opts.method,headers:H,body:F||void 0,mode:"cors",credentials:L.withCredentials?"include":"same-origin",signal:P}).then(function(ne){N._fetchResponse=ne,N._connect()},function(ne){d.clearTimeout(N._fetchTimer),N._destroyed||N.emit("error",ne)})}else{var Q=N._xhr=new d.XMLHttpRequest;try{Q.open(N._opts.method,N._opts.url,!0)}catch(ne){u.nextTick(function(){N.emit("error",ne)});return}"responseType"in Q&&(Q.responseType=N._mode.split(":")[0]),"withCredentials"in Q&&(Q.withCredentials=!!L.withCredentials),N._mode==="text"&&"overrideMimeType"in Q&&Q.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in L&&(Q.timeout=L.requestTimeout,Q.ontimeout=function(){N.emit("requestTimeout")}),H.forEach(function(ne){Q.setRequestHeader(ne[0],ne[1])}),N._response=null,Q.onreadystatechange=function(){switch(Q.readyState){case x.LOADING:case x.DONE:N._onXHRProgress();break}},N._mode==="moz-chunked-arraybuffer"&&(Q.onprogress=function(){N._onXHRProgress()}),Q.onerror=function(){N._destroyed||N.emit("error",new Error("XHR error"))};try{Q.send(F)}catch(ne){u.nextTick(function(){N.emit("error",ne)});return}}}};function R(N){try{var L=N.status;return L!==null&&L!==0}catch(M){return!1}}_.prototype._onXHRProgress=function(){var N=this;!R(N._xhr)||N._destroyed||(N._response||N._connect(),N._response._onXHRProgress())},_.prototype._connect=function(){var N=this;N._destroyed||(N._response=new m(N._xhr,N._fetchResponse,N._mode,N._fetchTimer),N._response.on("error",function(L){N.emit("error",L)}),N.emit("response",N._response))},_.prototype._write=function(N,L,M){var F=this;F._body.push(N),M()},_.prototype.abort=_.prototype.destroy=function(){var N=this;N._destroyed=!0,d.clearTimeout(N._fetchTimer),N._response&&(N._response._destroyed=!0),N._xhr?N._xhr.abort():N._fetchAbortController&&N._fetchAbortController.abort()},_.prototype.end=function(N,L,M){var F=this;typeof N=="function"&&(M=N,N=void 0),c.Writable.prototype.end.call(F,N,L,M)},_.prototype.flushHeaders=function(){},_.prototype.setTimeout=function(){},_.prototype.setNoDelay=function(){},_.prototype.setSocketKeepAlive=function(){};var A=["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,s("_process"),typeof Z!="undefined"?Z:typeof self!="undefined"?self:typeof window!="undefined"?window:{},s("buffer").Buffer)},{"./capability":469,"./response":471,_process:467,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.split.js":307,"core-js/modules/web.dom-collections.for-each.js":339,inherits:364,"readable-stream":394,"to-arraybuffer":415}],471:[function(s,E,I){(function(u,d,g){(function(){"use strict";s("core-js/modules/es.object.to-string.js"),s("core-js/modules/web.dom-collections.for-each.js"),s("core-js/modules/es.promise.js"),s("core-js/modules/es.regexp.exec.js"),s("core-js/modules/es.string.split.js"),s("core-js/modules/es.string.match.js"),s("core-js/modules/es.array.iterator.js"),s("core-js/modules/es.array-buffer.slice.js"),s("core-js/modules/es.typed-array.uint8-array.js"),s("core-js/modules/es.typed-array.copy-within.js"),s("core-js/modules/es.typed-array.every.js"),s("core-js/modules/es.typed-array.fill.js"),s("core-js/modules/es.typed-array.filter.js"),s("core-js/modules/es.typed-array.find.js"),s("core-js/modules/es.typed-array.find-index.js"),s("core-js/modules/es.typed-array.for-each.js"),s("core-js/modules/es.typed-array.includes.js"),s("core-js/modules/es.typed-array.index-of.js"),s("core-js/modules/es.typed-array.iterator.js"),s("core-js/modules/es.typed-array.join.js"),s("core-js/modules/es.typed-array.last-index-of.js"),s("core-js/modules/es.typed-array.map.js"),s("core-js/modules/es.typed-array.reduce.js"),s("core-js/modules/es.typed-array.reduce-right.js"),s("core-js/modules/es.typed-array.reverse.js"),s("core-js/modules/es.typed-array.set.js"),s("core-js/modules/es.typed-array.slice.js"),s("core-js/modules/es.typed-array.some.js"),s("core-js/modules/es.typed-array.sort.js"),s("core-js/modules/es.typed-array.subarray.js"),s("core-js/modules/es.typed-array.to-locale-string.js"),s("core-js/modules/es.typed-array.to-string.js"),s("core-js/modules/es.array.slice.js");var y=s("./capability"),S=s("inherits"),v=s("readable-stream"),c=I.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},h=I.IncomingMessage=function(m,x,T,_){var R=this;if(v.Readable.call(R),R._mode=T,R.headers={},R.rawHeaders=[],R.trailers={},R.rawTrailers=[],R.on("end",function(){u.nextTick(function(){R.emit("close")})}),T==="fetch"){var A=function P(){L.read().then(function(V){if(!R._destroyed){if(V.done){d.clearTimeout(_),R.push(null);return}R.push(new g(V.value)),P()}}).catch(function(V){d.clearTimeout(_),R._destroyed||R.emit("error",V)})};if(R._fetchResponse=x,R.url=x.url,R.statusCode=x.status,R.statusMessage=x.statusText,x.headers.forEach(function(P,V){R.headers[V.toLowerCase()]=P,R.rawHeaders.push(V,P)}),y.writableStream){var N=new WritableStream({write:function(V){return new Promise(function(G,Q){R._destroyed?Q():R.push(new g(V))?G():R._resumeFetch=G})},close:function(){d.clearTimeout(_),R._destroyed||R.push(null)},abort:function(V){R._destroyed||R.emit("error",V)}});try{x.body.pipeTo(N).catch(function(P){d.clearTimeout(_),R._destroyed||R.emit("error",P)});return}catch(P){}}var L=x.body.getReader();A()}else{R._xhr=m,R._pos=0,R.url=m.responseURL,R.statusCode=m.status,R.statusMessage=m.statusText;var M=m.getAllResponseHeaders().split(/\r?\n/);if(M.forEach(function(P){var V=P.match(/^([^:]+):\s*(.*)/);if(V){var G=V[1].toLowerCase();G==="set-cookie"?(R.headers[G]===void 0&&(R.headers[G]=[]),R.headers[G].push(V[2])):R.headers[G]!==void 0?R.headers[G]+=", "+V[2]:R.headers[G]=V[2],R.rawHeaders.push(V[1],V[2])}}),R._charset="x-user-defined",!y.overrideMimeType){var F=R.rawHeaders["mime-type"];if(F){var H=F.match(/;\s*charset=([^;])(;|$)/);H&&(R._charset=H[1].toLowerCase())}R._charset||(R._charset="utf-8")}}};S(h,v.Readable),h.prototype._read=function(){var m=this,x=m._resumeFetch;x&&(m._resumeFetch=null,x())},h.prototype._onXHRProgress=function(){var m=this,x=m._xhr,T=null;switch(m._mode){case"text:vbarray":if(x.readyState!==c.DONE)break;try{T=new d.VBArray(x.responseBody).toArray()}catch(L){}if(T!==null){m.push(new g(T));break}case"text":try{T=x.responseText}catch(L){m._mode="text:vbarray";break}if(T.length>m._pos){var _=T.substr(m._pos);if(m._charset==="x-user-defined"){for(var R=new g(_.length),A=0;A<_.length;A++)R[A]=_.charCodeAt(A)&255;m.push(R)}else m.push(_,m._charset);m._pos=T.length}break;case"arraybuffer":if(x.readyState!==c.DONE||!x.response)break;T=x.response,m.push(new g(new Uint8Array(T)));break;case"moz-chunked-arraybuffer":if(T=x.response,x.readyState!==c.LOADING||!T)break;m.push(new g(new Uint8Array(T)));break;case"ms-stream":if(T=x.response,x.readyState!==c.LOADING)break;var N=new d.MSStreamReader;N.onprogress=function(){N.result.byteLength>m._pos&&(m.push(new g(new Uint8Array(N.result.slice(m._pos)))),m._pos=N.result.byteLength)},N.onload=function(){m.push(null)},N.readAsArrayBuffer(T);break}m._xhr.readyState===c.DONE&&m._mode!=="ms-stream"&&m.push(null)}}).call(this)}).call(this,s("_process"),typeof Z!="undefined"?Z:typeof self!="undefined"?self:typeof window!="undefined"?window:{},s("buffer").Buffer)},{"./capability":469,_process:467,buffer:90,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.match.js":304,"core-js/modules/es.string.split.js":307,"core-js/modules/es.typed-array.copy-within.js":315,"core-js/modules/es.typed-array.every.js":316,"core-js/modules/es.typed-array.fill.js":317,"core-js/modules/es.typed-array.filter.js":318,"core-js/modules/es.typed-array.find-index.js":319,"core-js/modules/es.typed-array.find.js":320,"core-js/modules/es.typed-array.for-each.js":321,"core-js/modules/es.typed-array.includes.js":322,"core-js/modules/es.typed-array.index-of.js":323,"core-js/modules/es.typed-array.iterator.js":324,"core-js/modules/es.typed-array.join.js":325,"core-js/modules/es.typed-array.last-index-of.js":326,"core-js/modules/es.typed-array.map.js":327,"core-js/modules/es.typed-array.reduce-right.js":328,"core-js/modules/es.typed-array.reduce.js":329,"core-js/modules/es.typed-array.reverse.js":330,"core-js/modules/es.typed-array.set.js":331,"core-js/modules/es.typed-array.slice.js":332,"core-js/modules/es.typed-array.some.js":333,"core-js/modules/es.typed-array.sort.js":334,"core-js/modules/es.typed-array.subarray.js":335,"core-js/modules/es.typed-array.to-locale-string.js":336,"core-js/modules/es.typed-array.to-string.js":337,"core-js/modules/es.typed-array.uint8-array.js":338,"core-js/modules/web.dom-collections.for-each.js":339,inherits:364,"readable-stream":394}],472:[function(s,E,I){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),d=u(s("@babel/runtime/helpers/typeof"));s("core-js/modules/es.regexp.exec.js"),s("core-js/modules/es.string.search.js"),s("core-js/modules/es.array.concat.js"),s("core-js/modules/es.string.split.js"),s("core-js/modules/es.string.replace.js"),s("core-js/modules/es.array.join.js"),s("core-js/modules/es.string.trim.js"),s("core-js/modules/es.string.match.js"),s("core-js/modules/es.array.slice.js"),s("core-js/modules/es.object.keys.js"),s("core-js/modules/es.array.splice.js");var g=s("punycode"),y=s("./util");I.parse=V,I.resolve=Q,I.resolveObject=ne,I.format=G,I.Url=S;function S(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var v=/^([a-z0-9.+-]+:)/i,c=/:[0-9]*$/,h=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,m=["<",">",'"',"`"," ","\r",`
`," "],x=["{","}","|","\\","^","`"].concat(m),T=["'"].concat(x),_=["%","/","?",";","#"].concat(T),R=["/","?","#"],A=255,N=/^[+a-z0-9A-Z_-]{0,63}$/,L=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,M={javascript:!0,"javascript:":!0},F={javascript:!0,"javascript:":!0},H={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},P=s("querystring");function V(ue,ae,he){if(ue&&y.isObject(ue)&&ue instanceof S)return ue;var ce=new S;return ce.parse(ue,ae,he),ce}S.prototype.parse=function(ue,ae,he){if(!y.isString(ue))throw new TypeError("Parameter 'url' must be a string, not "+(0,d.default)(ue));var ce=ue.indexOf("?"),we=ce!==-1&&ce<ue.indexOf("#")?"?":"#",me=ue.split(we),Le=/\\/g;me[0]=me[0].replace(Le,"/"),ue=me.join(we);var ee=ue;if(ee=ee.trim(),!he&&ue.split("#").length===1){var se=h.exec(ee);if(se)return this.path=ee,this.href=ee,this.pathname=se[1],se[2]?(this.search=se[2],ae?this.query=P.parse(this.search.substr(1)):this.query=this.search.substr(1)):ae&&(this.search="",this.query={}),this}var le=v.exec(ee);if(le){le=le[0];var ke=le.toLowerCase();this.protocol=ke,ee=ee.substr(le.length)}if(he||le||ee.match(/^\/\/[^@\/]+@[^@\/]+/)){var De=ee.substr(0,2)==="//";De&&!(le&&F[le])&&(ee=ee.substr(2),this.slashes=!0)}if(!F[le]&&(De||le&&!H[le])){for(var Be=-1,He=0;He<R.length;He++){var Fe=ee.indexOf(R[He]);Fe!==-1&&(Be===-1||Fe<Be)&&(Be=Fe)}var Je,Me;Be===-1?Me=ee.lastIndexOf("@"):Me=ee.lastIndexOf("@",Be),Me!==-1&&(Je=ee.slice(0,Me),ee=ee.slice(Me+1),this.auth=decodeURIComponent(Je)),Be=-1;for(var He=0;He<_.length;He++){var Fe=ee.indexOf(_[He]);Fe!==-1&&(Be===-1||Fe<Be)&&(Be=Fe)}Be===-1&&(Be=ee.length),this.host=ee.slice(0,Be),ee=ee.slice(Be),this.parseHost(),this.hostname=this.hostname||"";var lt=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!lt)for(var Re=this.hostname.split("."),He=0,Oe=Re.length;He<Oe;He++){var pe=Re[He];if(pe&&!pe.match(N)){for(var fe="",z=0,J=pe.length;z<J;z++)pe.charCodeAt(z)>127?fe+="x":fe+=pe[z];if(!fe.match(N)){var be=Re.slice(0,He),_e=Re.slice(He+1),oe=pe.match(L);oe&&(be.push(oe[1]),_e.unshift(oe[2])),_e.length&&(ee="/"+_e.join(".")+ee),this.hostname=be.join(".");break}}}this.hostname.length>A?this.hostname="":this.hostname=this.hostname.toLowerCase(),lt||(this.hostname=g.toASCII(this.hostname));var ie=this.port?":"+this.port:"",ve=this.hostname||"";this.host=ve+ie,this.href+=this.host,lt&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),ee[0]!=="/"&&(ee="/"+ee))}if(!M[ke])for(var He=0,Oe=T.length;He<Oe;He++){var Ne=T[He];if(ee.indexOf(Ne)!==-1){var ze=encodeURIComponent(Ne);ze===Ne&&(ze=escape(Ne)),ee=ee.split(Ne).join(ze)}}var Ve=ee.indexOf("#");Ve!==-1&&(this.hash=ee.substr(Ve),ee=ee.slice(0,Ve));var yt=ee.indexOf("?");if(yt!==-1?(this.search=ee.substr(yt),this.query=ee.substr(yt+1),ae&&(this.query=P.parse(this.query)),ee=ee.slice(0,yt)):ae&&(this.search="",this.query={}),ee&&(this.pathname=ee),H[ke]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var ie=this.pathname||"",ct=this.search||"";this.path=ie+ct}return this.href=this.format(),this};function G(ue){return y.isString(ue)&&(ue=V(ue)),ue instanceof S?ue.format():S.prototype.format.call(ue)}S.prototype.format=function(){var ue=this.auth||"";ue&&(ue=encodeURIComponent(ue),ue=ue.replace(/%3A/i,":"),ue+="@");var ae=this.protocol||"",he=this.pathname||"",ce=this.hash||"",we=!1,me="";this.host?we=ue+this.host:this.hostname&&(we=ue+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(we+=":"+this.port)),this.query&&y.isObject(this.query)&&Object.keys(this.query).length&&(me=P.stringify(this.query));var Le=this.search||me&&"?"+me||"";return ae&&ae.substr(-1)!==":"&&(ae+=":"),this.slashes||(!ae||H[ae])&&we!==!1?(we="//"+(we||""),he&&he.charAt(0)!=="/"&&(he="/"+he)):we||(we=""),ce&&ce.charAt(0)!=="#"&&(ce="#"+ce),Le&&Le.charAt(0)!=="?"&&(Le="?"+Le),he=he.replace(/[?#]/g,function(ee){return encodeURIComponent(ee)}),Le=Le.replace("#","%23"),ae+we+he+Le+ce};function Q(ue,ae){return V(ue,!1,!0).resolve(ae)}S.prototype.resolve=function(ue){return this.resolveObject(V(ue,!1,!0)).format()};function ne(ue,ae){return ue?V(ue,!1,!0).resolveObject(ae):ae}S.prototype.resolveObject=function(ue){if(y.isString(ue)){var ae=new S;ae.parse(ue,!1,!0),ue=ae}for(var he=new S,ce=Object.keys(this),we=0;we<ce.length;we++){var me=ce[we];he[me]=this[me]}if(he.hash=ue.hash,ue.href==="")return he.href=he.format(),he;if(ue.slashes&&!ue.protocol){for(var Le=Object.keys(ue),ee=0;ee<Le.length;ee++){var se=Le[ee];se!=="protocol"&&(he[se]=ue[se])}return H[he.protocol]&&he.hostname&&!he.pathname&&(he.path=he.pathname="/"),he.href=he.format(),he}if(ue.protocol&&ue.protocol!==he.protocol){if(!H[ue.protocol]){for(var le=Object.keys(ue),ke=0;ke<le.length;ke++){var De=le[ke];he[De]=ue[De]}return he.href=he.format(),he}if(he.protocol=ue.protocol,!ue.host&&!F[ue.protocol]){for(var Oe=(ue.pathname||"").split("/");Oe.length&&!(ue.host=Oe.shift()););ue.host||(ue.host=""),ue.hostname||(ue.hostname=""),Oe[0]!==""&&Oe.unshift(""),Oe.length<2&&Oe.unshift(""),he.pathname=Oe.join("/")}else he.pathname=ue.pathname;if(he.search=ue.search,he.query=ue.query,he.host=ue.host||"",he.auth=ue.auth,he.hostname=ue.hostname||ue.host,he.port=ue.port,he.pathname||he.search){var Be=he.pathname||"",He=he.search||"";he.path=Be+He}return he.slashes=he.slashes||ue.slashes,he.href=he.format(),he}var Fe=he.pathname&&he.pathname.charAt(0)==="/",Je=ue.host||ue.pathname&&ue.pathname.charAt(0)==="/",Me=Je||Fe||he.host&&ue.pathname,lt=Me,Re=he.pathname&&he.pathname.split("/")||[],Oe=ue.pathname&&ue.pathname.split("/")||[],pe=he.protocol&&!H[he.protocol];if(pe&&(he.hostname="",he.port=null,he.host&&(Re[0]===""?Re[0]=he.host:Re.unshift(he.host)),he.host="",ue.protocol&&(ue.hostname=null,ue.port=null,ue.host&&(Oe[0]===""?Oe[0]=ue.host:Oe.unshift(ue.host)),ue.host=null),Me=Me&&(Oe[0]===""||Re[0]==="")),Je)he.host=ue.host||ue.host===""?ue.host:he.host,he.hostname=ue.hostname||ue.hostname===""?ue.hostname:he.hostname,he.search=ue.search,he.query=ue.query,Re=Oe;else if(Oe.length)Re||(Re=[]),Re.pop(),Re=Re.concat(Oe),he.search=ue.search,he.query=ue.query;else if(!y.isNullOrUndefined(ue.search)){if(pe){he.hostname=he.host=Re.shift();var fe=he.host&&he.host.indexOf("@")>0?he.host.split("@"):!1;fe&&(he.auth=fe.shift(),he.host=he.hostname=fe.shift())}return he.search=ue.search,he.query=ue.query,(!y.isNull(he.pathname)||!y.isNull(he.search))&&(he.path=(he.pathname?he.pathname:"")+(he.search?he.search:"")),he.href=he.format(),he}if(!Re.length)return he.pathname=null,he.search?he.path="/"+he.search:he.path=null,he.href=he.format(),he;for(var z=Re.slice(-1)[0],J=(he.host||ue.host||Re.length>1)&&(z==="."||z==="..")||z==="",be=0,_e=Re.length;_e>=0;_e--)z=Re[_e],z==="."?Re.splice(_e,1):z===".."?(Re.splice(_e,1),be++):be&&(Re.splice(_e,1),be--);if(!Me&&!lt)for(;be--;be)Re.unshift("..");Me&&Re[0]!==""&&(!Re[0]||Re[0].charAt(0)!=="/")&&Re.unshift(""),J&&Re.join("/").substr(-1)!=="/"&&Re.push("");var oe=Re[0]===""||Re[0]&&Re[0].charAt(0)==="/";if(pe){he.hostname=he.host=oe?"":Re.length?Re.shift():"";var fe=he.host&&he.host.indexOf("@")>0?he.host.split("@"):!1;fe&&(he.auth=fe.shift(),he.host=he.hostname=fe.shift())}return Me=Me||he.host&&Re.length,Me&&!oe&&Re.unshift(""),Re.length?he.pathname=Re.join("/"):(he.pathname=null,he.path=null),(!y.isNull(he.pathname)||!y.isNull(he.search))&&(he.path=(he.pathname?he.pathname:"")+(he.search?he.search:"")),he.auth=ue.auth||he.auth,he.slashes=he.slashes||ue.slashes,he.href=he.format(),he},S.prototype.parseHost=function(){var ue=this.host,ae=c.exec(ue);ae&&(ae=ae[0],ae!==":"&&(this.port=ae.substr(1)),ue=ue.substr(0,ue.length-ae.length)),ue&&(this.hostname=ue)}},{"./util":473,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.array.splice.js":283,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.match.js":304,"core-js/modules/es.string.replace.js":305,"core-js/modules/es.string.search.js":306,"core-js/modules/es.string.split.js":307,"core-js/modules/es.string.trim.js":308,punycode:382,querystring:385}],473:[function(s,E,I){"use strict";var u=s("@babel/runtime/helpers/interopRequireDefault"),d=u(s("@babel/runtime/helpers/typeof"));E.exports={isString:function(y){return typeof y=="string"},isObject:function(y){return(0,d.default)(y)==="object"&&y!==null},isNull:function(y){return y===null},isNullOrUndefined:function(y){return y==null}}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79}],474:[function(s,E,I){"use strict";s("core-js/modules/es.number.constructor.js"),I.encodeURIComponent=function(u){try{return encodeURIComponent(u)}catch(d){return u}},I.escape=s("escape-html"),I.timestamp=function(d){if(d){var g=d;return typeof g=="string"&&(g=Number(g)),String(d).length===10&&(g*=1e3),new Date(g)}return Math.round(Date.now()/1e3)}},{"core-js/modules/es.number.constructor.js":286,"escape-html":343}],475:[function(s,E,I){(function(u,d){(function(){"use strict";var g=s("@babel/runtime/helpers/interopRequireDefault"),y=g(s("@babel/runtime/helpers/typeof"));s("core-js/modules/es.string.trim.js"),s("core-js/modules/es.regexp.exec.js"),s("core-js/modules/es.string.split.js"),s("core-js/modules/es.object.to-string.js"),s("core-js/modules/es.promise.js"),s("core-js/modules/es.function.name.js"),s("core-js/modules/es.array.concat.js");var S=s("util"),v=s("url"),c=s("http"),h=s("https"),m=s("debug")("urllib"),x=s("humanize-ms"),T=0,_=Math.pow(2,31)-10,R=/^https?:\/\//i;function A(F,H){return F===void 0?H:F}function N(F){return F?F.split(";")[0].trim().toLowerCase():""}function L(F,H){return function(P,V,G){if(P)return H(P);F({data:V,status:G.statusCode,headers:G.headers,res:G})}}I.TIMEOUTS=[x("300s"),x("300s")];var M=["json","text"];I.request=function(H,P,V){return arguments.length===2&&typeof P=="function"&&(V=P,P=null),typeof V=="function"?I.requestWithCallback(H,P,V):new Promise(function(G,Q){I.requestWithCallback(H,P,L(G,Q))})},I.requestWithCallback=function(H,P,V){if(!H||typeof H!="string"&&(0,y.default)(H)!=="object"){var G=S.format("expect request url to be a string or a http request options, but got %j",H);throw new Error(G)}arguments.length===2&&typeof P=="function"&&(V=P,P=null),P=P||{},T>=_&&(T=0);var Q=++T;P.requestUrls=P.requestUrls||[];var ne={requestId:Q,url:H,args:P,ctx:P.ctx};P.emitter&&P.emitter.emit("request",ne),P.timeout=P.timeout||I.TIMEOUTS,P.maxRedirects=P.maxRedirects||10,P.streaming=P.streaming||P.customResponse;var ue=Date.now(),ae;typeof H=="string"?(R.test(H)||(H="https://"+H),ae=v.parse(H)):ae=H;var he=(P.type||P.method||ae.method||"GET").toUpperCase(),ce=ae.port||80,we=c,me=A(P.agent,I.agent),Le=P.fixJSONCtlChars;ae.protocol==="https:"&&(we=h,me=A(P.httpsAgent,I.httpsAgent),ae.port||(ce=443));var ee={host:ae.hostname||ae.host||"localhost",path:ae.path||"/",method:he,port:ce,agent:me,headers:P.headers||{},lookup:P.lookup};Array.isArray(P.timeout)?ee.requestTimeout=P.timeout[P.timeout.length-1]:typeof P.timeout!="undefined"&&(ee.requestTimeout=P.timeout);var se=P.auth||ae.auth;se&&(ee.auth=se);var le=P.content||P.data,ke=he==="GET"||he==="HEAD"||P.dataAsQueryString;if(!P.content&&le&&!(typeof le=="string"||d.isBuffer(le)))if(ke)le=P.nestedQuerystring?qs.stringify(le):querystring.stringify(le);else{var De=ee.headers["Content-Type"]||ee.headers["content-type"];De||(P.contentType==="json"?De="application/json":De="application/x-www-form-urlencoded",ee.headers["Content-Type"]=De),N(De)==="application/json"?le=JSON.stringify(le):le=P.nestedQuerystring?qs.stringify(le):querystring.stringify(le)}ke&&le&&(ee.path+=(ae.query?"&":"?")+le,le=null);var Be=0;if(le){var He=le.length;d.isBuffer(le)||(He=d.byteLength(le)),Be=ee.headers["Content-Length"]=He}P.dataType==="json"&&(ee.headers.Accept="application/json"),typeof P.beforeRequest=="function"&&P.beforeRequest(ee);var Fe=null,Je=null,Me=null,lt=!1,Re=!1,Oe=0,pe=-1,fe=!1,z="",J="",be=null;P.timing&&(be={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function _e(){Fe&&(clearTimeout(Fe),Fe=null)}function oe(){Je&&(clearTimeout(Je),Je=null)}function ie(wt,jt,st){if(oe(),!V){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),Q,u.pid,ee.method,H),wt&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),Q,u.pid,wt.name,wt.message,wt.stack);return}var ge=V;V=null;var on={};st&&(pe=st.statusCode,on=st.headers);var mn=Date.now()-ue;be&&(be.contentDownload=mn),m("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",mn,Oe,pe,ee.method,ee.host,ee.path,Re,be);var Mt={status:pe,statusCode:pe,headers:on,size:Oe,aborted:fe,rt:mn,keepAliveSocket:Re,data:jt,requestUrls:P.requestUrls,timing:be,remoteAddress:z,remotePort:J};if(wt){var On="";me&&typeof me.getCurrentStatus=="function"&&(On=", agent status: "+JSON.stringify(me.getCurrentStatus())),wt.message+=", "+ee.method+" "+H+" "+pe+" (connected: "+lt+", keepalive socket: "+Re+On+`)
headers: `+JSON.stringify(on),wt.data=jt,wt.path=ee.path,wt.status=pe,wt.headers=on,wt.res=Mt}ge(wt,jt,P.streaming?st:Mt),P.emitter&&(ne.url=H,ne.socket=At&&At.connection,ne.options=ee,ne.size=Be,P.emitter.emit("response",{requestId:Q,error:wt,ctx:P.ctx,req:ne,res:Mt}))}function ve(wt){var jt=null;if(P.followRedirect&&statuses.redirect[wt.statusCode]){P._followRedirectCount=(P._followRedirectCount||0)+1;var st=wt.headers.location;if(!st)jt=new Error("Got statusCode "+wt.statusCode+" but cannot resolve next location from headers"),jt.name="FollowRedirectError";else if(P._followRedirectCount>P.maxRedirects)jt=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+H),jt.name="MaxRedirectError";else{var ge=P.formatRedirectUrl?P.formatRedirectUrl(H,st):v.resolve(H,st);m("Request#%d %s: `redirected` from %s to %s",Q,ee.path,H,ge),oe(),P.headers&&P.headers.Host&&R.test(st)&&(P.headers.Host=null);var on=V;return V=null,I.requestWithCallback(ge,P,on),{redirect:!0,error:null}}}return{redirect:!1,error:jt}}P.gzip&&!ee.headers["Accept-Encoding"]&&!ee.headers["accept-encoding"]&&(ee.headers["Accept-Encoding"]="gzip");function Ne(wt,jt,st){var ge=wt.headers["content-encoding"];return st(null,jt,ge)}var ze=P.writeStream;m("Request#%d %s %s with headers %j, options.path: %s",Q,he,H,ee.headers,ee.path),P.requestUrls.push(H);function Ve(wt){if(be&&(be.waiting=Date.now()-ue),m("Request#%d %s `req response` event emit: status %d, headers: %j",Q,H,wt.statusCode,wt.headers),P.streaming){var jt=ve(wt);if(jt.redirect){wt.resume();return}return jt.error?(wt.resume(),ie(jt.error,null,wt)):ie(null,null,wt)}if(wt.on("close",function(){m("Request#%d %s: `res close` event emit, total size %d",Q,H,Oe)}),wt.on("error",function(){m("Request#%d %s: `res error` event emit, total size %d",Q,H,Oe)}),wt.on("aborted",function(){fe=!0,m("Request#%d %s: `res aborted` event emit, total size %d",Q,H,Oe)}),ze){var st=ve(wt);if(st.redirect){wt.resume();return}return st.error?(wt.resume(),ze.end(),ie(st.error,null,wt)):(P.consumeWriteStream===!1?wt.on("end",ie.bind(null,null,null,wt)):ze.on("close",function(){m("Request#%d %s: writeStream close event emitted",Q,H),ie(Me||null,null,wt)}),wt.pipe(ze))}var ge=[];wt.on("data",function(on){m("Request#%d %s: `res data` event emit, size %d",Q,H,on.length),Oe+=on.length,ge.push(on)}),wt.on("end",function(){var on=d.concat(ge,Oe);if(m("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",Q,H,Oe,wt._dumped),Me)return ie(Me,on,wt);var mn=ve(wt);if(mn.error)return ie(mn.error,on,wt);mn.redirect||Ne(wt,on,function(Mt,On,Vn){if(Mt)return ie(Mt,on,wt);if(!Vn&&M.indexOf(P.dataType)>=0){try{On=decodeBodyByCharset(On,wt)}catch(Gn){return m("decodeBodyByCharset error: %s",Gn),ie(null,On,wt)}if(P.dataType==="json")if(Oe===0)On=null;else{var Fn=parseJSON(On,Le);Fn.error?Mt=Fn.error:On=Fn.data}}fe&&m("Request#%d %s: Remote socket was terminated before `response.end()` was called",Q,H),ie(Mt,On,wt)})})}var yt,ct;Array.isArray(P.timeout)?(yt=x(P.timeout[0]),ct=x(P.timeout[1])):yt=ct=x(P.timeout),m("ConnectTimeout: %d, ResponseTimeout: %d",yt,ct);function St(){m("Connect timer ticking, timeout: %d",yt),Fe=setTimeout(function(){Fe=null,pe===-1&&(pe=-2);var wt="Connect timeout for "+yt+"ms",jt="ConnectionTimeoutError";At.socket||(jt="SocketAssignTimeoutError",wt+=", working sockets is full"),Me=new Error(wt),Me.name=jt,Me.requestId=Q,m("ConnectTimeout: Request#%d %s %s: %s, connected: %s",Q,H,Me.name,wt,lt),ht()},yt)}function _t(){m("Response timer ticking, timeout: %d",ct),Je=setTimeout(function(){Je=null;var wt="Response timeout for "+ct+"ms",jt="ResponseTimeoutError";Me=new Error(wt),Me.name=jt,Me.requestId=Q,m("ResponseTimeout: Request#%d %s %s: %s, connected: %s",Q,H,Me.name,wt,lt),ht()},ct)}var At;ee.mode=P.mode?P.mode:"";try{At=we.request(ee,Ve)}catch(wt){return ie(wt)}typeof window=="undefined"?St():At.on("requestTimeout",function(){pe===-1&&(pe=-2);var wt="Connect timeout for "+yt+"ms",jt="ConnectionTimeoutError";Me=new Error(wt),Me.name=jt,Me.requestId=Q,ht()});function ht(){m("Request#%d %s abort, connected: %s",Q,H,lt),At.socket||(Me.noSocket=!0,ie(Me)),At.abort()}return be&&At.on("finish",function(){be.requestSent=Date.now()-ue}),At.once("socket",function(wt){be&&(be.queuing=Date.now()-ue);var jt=wt.readyState;if(jt==="opening"){wt.once("lookup",function(st,ge,on){m("Request#%d %s lookup: %s, %s, %s",Q,H,st,ge,on),be&&(be.dnslookup=Date.now()-ue),ge&&(z=ge)}),wt.once("connect",function(){be&&(be.connected=Date.now()-ue),_e(),_t(),m("Request#%d %s new socket connected",Q,H),lt=!0,z||(z=wt.remoteAddress),J=wt.remotePort});return}m("Request#%d %s reuse socket connected, readyState: %s",Q,H,jt),lt=!0,Re=!0,z||(z=wt.remoteAddress),J=wt.remotePort,_e(),_t()}),At.on("error",function(wt){(wt.name==="Error"||wt.name==="TypeError")&&(wt.name=lt?"ResponseError":"RequestError"),wt.message+=' (req "error")',m("Request#%d %s `req error` event emit, %s: %s",Q,H,wt.name,wt.message),ie(Me||wt)}),ze&&ze.once("error",function(wt){wt.message+=' (writeStream "error")',Me=wt,m("Request#%d %s `writeStream error` event emit, %s: %s",Q,H,wt.name,wt.message),ht()}),P.stream?(P.stream.pipe(At),P.stream.once("error",function(wt){wt.message+=' (stream "error")',Me=wt,m("Request#%d %s `readStream error` event emit, %s: %s",Q,H,wt.name,wt.message),ht()})):At.end(le),At.requestId=Q,At}}).call(this)}).call(this,s("_process"),s("buffer").Buffer)},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,_process:467,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.split.js":307,"core-js/modules/es.string.trim.js":308,debug:465,http:468,https:355,"humanize-ms":356,url:472,util:419}]},{},[1])(1)})})(window)},86010:function(Ie,Z,b){"use strict";b.r(Z),b.d(Z,{clsx:function(){return Y}});function B(s){var E,I,u="";if(typeof s=="string"||typeof s=="number")u+=s;else if(typeof s=="object")if(Array.isArray(s))for(E=0;E<s.length;E++)s[E]&&(I=B(s[E]))&&(u&&(u+=" "),u+=I);else for(E in s)s[E]&&(u&&(u+=" "),u+=E);return u}function Y(){for(var s,E,I=0,u="";I<arguments.length;)(s=arguments[I++])&&(E=B(s))&&(u&&(u+=" "),u+=E);return u}Z.default=Y},88386:function(Ie,Z,b){(function(B){B(b(4631))})(function(B){B.defineOption("placeholder","",function(g,y,S){var v=S&&S!=B.Init;if(y&&!v)g.on("blur",I),g.on("change",u),g.on("swapDoc",u),B.on(g.getInputField(),"compositionupdate",g.state.placeholderCompose=function(){E(g)}),u(g);else if(!y&&v){g.off("blur",I),g.off("change",u),g.off("swapDoc",u),B.off(g.getInputField(),"compositionupdate",g.state.placeholderCompose),Y(g);var c=g.getWrapperElement();c.className=c.className.replace(" CodeMirror-empty","")}y&&!g.hasFocus()&&I(g)});function Y(g){g.state.placeholder&&(g.state.placeholder.parentNode.removeChild(g.state.placeholder),g.state.placeholder=null)}function s(g){Y(g);var y=g.state.placeholder=document.createElement("pre");y.style.cssText="height: 0; overflow: visible",y.style.direction=g.getOption("direction"),y.className="CodeMirror-placeholder CodeMirror-line-like";var S=g.getOption("placeholder");typeof S=="string"&&(S=document.createTextNode(S)),y.appendChild(S),g.display.lineSpace.insertBefore(y,g.display.lineSpace.firstChild)}function E(g){setTimeout(function(){var y=!1,S=g.getInputField();S.nodeName=="TEXTAREA"?y=!S.value:g.lineCount()==1&&(y=!/[^\u200b]/.test(S.querySelector(".CodeMirror-line").textContent)),y?s(g):Y(g)},20)}function I(g){d(g)&&s(g)}function u(g){var y=g.getWrapperElement(),S=d(g);y.className=y.className.replace(" CodeMirror-empty","")+(S?" CodeMirror-empty":""),S?s(g):Y(g)}function d(g){return g.lineCount()===1&&g.getLine(0)===""}})},82801:function(Ie,Z,b){(function(B){B(b(4631))})(function(B){var Y={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},s=B.Pos;B.defineOption("autoCloseBrackets",!1,function(x,T,_){_&&_!=B.Init&&(x.removeKeyMap(I),x.state.closeBrackets=null),T&&(u(E(T,"pairs")),x.state.closeBrackets=T,x.addKeyMap(I))});function E(x,T){return T=="pairs"&&typeof x=="string"?x:typeof x=="object"&&x[T]!=null?x[T]:Y[T]}var I={Backspace:y,Enter:S};function u(x){for(var T=0;T<x.length;T++){var _=x.charAt(T),R="'"+_+"'";I[R]||(I[R]=d(_))}}u(Y.pairs+"`");function d(x){return function(T){return c(T,x)}}function g(x){var T=x.state.closeBrackets;if(!T||T.override)return T;var _=x.getModeAt(x.getCursor());return _.closeBrackets||T}function y(x){var T=g(x);if(!T||x.getOption("disableInput"))return B.Pass;for(var _=E(T,"pairs"),R=x.listSelections(),A=0;A<R.length;A++){if(!R[A].empty())return B.Pass;var N=h(x,R[A].head);if(!N||_.indexOf(N)%2!=0)return B.Pass}for(var A=R.length-1;A>=0;A--){var L=R[A].head;x.replaceRange("",s(L.line,L.ch-1),s(L.line,L.ch+1),"+delete")}}function S(x){var T=g(x),_=T&&E(T,"explode");if(!_||x.getOption("disableInput"))return B.Pass;for(var R=x.listSelections(),A=0;A<R.length;A++){if(!R[A].empty())return B.Pass;var N=h(x,R[A].head);if(!N||_.indexOf(N)%2!=0)return B.Pass}x.operation(function(){var L=x.lineSeparator()||`
`;x.replaceSelection(L+L,null),x.execCommand("goCharLeft"),R=x.listSelections();for(var M=0;M<R.length;M++){var F=R[M].head.line;x.indentLine(F,null,!0),x.indentLine(F+1,null,!0)}})}function v(x){var T=B.cmpPos(x.anchor,x.head)>0;return{anchor:new s(x.anchor.line,x.anchor.ch+(T?-1:1)),head:new s(x.head.line,x.head.ch+(T?1:-1))}}function c(x,T){var _=g(x);if(!_||x.getOption("disableInput"))return B.Pass;var R=E(_,"pairs"),A=R.indexOf(T);if(A==-1)return B.Pass;for(var N=E(_,"closeBefore"),L=E(_,"triples"),M=R.charAt(A+1)==T,F=x.listSelections(),H=A%2==0,P,V=0;V<F.length;V++){var G=F[V],Q=G.head,ne,ue=x.getRange(Q,s(Q.line,Q.ch+1));if(H&&!G.empty())ne="surround";else if((M||!H)&&ue==T)M&&m(x,Q)?ne="both":L.indexOf(T)>=0&&x.getRange(Q,s(Q.line,Q.ch+3))==T+T+T?ne="skipThree":ne="skip";else if(M&&Q.ch>1&&L.indexOf(T)>=0&&x.getRange(s(Q.line,Q.ch-2),Q)==T+T){if(Q.ch>2&&/\bstring/.test(x.getTokenTypeAt(s(Q.line,Q.ch-2))))return B.Pass;ne="addFour"}else if(M){var ae=Q.ch==0?" ":x.getRange(s(Q.line,Q.ch-1),Q);if(!B.isWordChar(ue)&&ae!=T&&!B.isWordChar(ae))ne="both";else return B.Pass}else if(H&&(ue.length===0||/\s/.test(ue)||N.indexOf(ue)>-1))ne="both";else return B.Pass;if(!P)P=ne;else if(P!=ne)return B.Pass}var he=A%2?R.charAt(A-1):T,ce=A%2?T:R.charAt(A+1);x.operation(function(){if(P=="skip")x.execCommand("goCharRight");else if(P=="skipThree")for(var we=0;we<3;we++)x.execCommand("goCharRight");else if(P=="surround"){for(var me=x.getSelections(),we=0;we<me.length;we++)me[we]=he+me[we]+ce;x.replaceSelections(me,"around"),me=x.listSelections().slice();for(var we=0;we<me.length;we++)me[we]=v(me[we]);x.setSelections(me)}else P=="both"?(x.replaceSelection(he+ce,null),x.triggerElectric(he+ce),x.execCommand("goCharLeft")):P=="addFour"&&(x.replaceSelection(he+he+he+he,"before"),x.execCommand("goCharRight"))})}function h(x,T){var _=x.getRange(s(T.line,T.ch-1),s(T.line,T.ch+1));return _.length==2?_:null}function m(x,T){var _=x.getTokenAt(s(T.line,T.ch+1));return/\bstring/.test(_.type)&&_.start==T.ch&&(T.ch==0||!/\bstring/.test(x.getTokenTypeAt(T)))}})},57341:function(Ie,Z,b){(function(B){B(b(4631),b(4786))})(function(B){B.defineOption("autoCloseTags",!1,function(y,S,v){if(v!=B.Init&&v&&y.removeKeyMap("autoCloseTags"),!!S){var c={name:"autoCloseTags"};(typeof S!="object"||S.whenClosing!==!1)&&(c["'/'"]=function(h){return u(h)}),(typeof S!="object"||S.whenOpening!==!1)&&(c["'>'"]=function(h){return E(h)}),y.addKeyMap(c)}});var Y=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],s=["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(y){if(y.getOption("disableInput"))return B.Pass;for(var S=y.listSelections(),v=[],c=y.getOption("autoCloseTags"),h=0;h<S.length;h++){if(!S[h].empty())return B.Pass;var m=S[h].head,x=y.getTokenAt(m),T=B.innerMode(y.getMode(),x.state),_=T.state,R=T.mode.xmlCurrentTag&&T.mode.xmlCurrentTag(_),A=R&&R.name;if(!A)return B.Pass;var N=T.mode.configuration=="html",L=typeof c=="object"&&c.dontCloseTags||N&&Y,M=typeof c=="object"&&c.indentTags||N&&s;x.end>m.ch&&(A=A.slice(0,A.length-x.end+m.ch));var F=A.toLowerCase();if(!A||x.type=="string"&&(x.end!=m.ch||!/[\"\']/.test(x.string.charAt(x.string.length-1))||x.string.length==1)||x.type=="tag"&&R.close||x.string.indexOf("/")==m.ch-x.start-1||L&&d(L,F)>-1||g(y,T.mode.xmlCurrentContext&&T.mode.xmlCurrentContext(_)||[],A,m,!0))return B.Pass;var H=typeof c=="object"&&c.emptyTags;if(H&&d(H,A)>-1){v[h]={text:"/>",newPos:B.Pos(m.line,m.ch+2)};continue}var P=M&&d(M,F)>-1;v[h]={indent:P,text:">"+(P?`
`:"")+"</"+A+">",newPos:P?B.Pos(m.line+1,0):B.Pos(m.line,m.ch+1)}}for(var V=typeof c=="object"&&c.dontIndentOnAutoClose,h=S.length-1;h>=0;h--){var G=v[h];y.replaceRange(G.text,S[h].head,S[h].anchor,"+insert");var Q=y.listSelections().slice(0);Q[h]={head:G.newPos,anchor:G.newPos},y.setSelections(Q),!V&&G.indent&&(y.indentLine(G.newPos.line,null,!0),y.indentLine(G.newPos.line+1,null,!0))}}function I(y,S){for(var v=y.listSelections(),c=[],h=S?"/":"</",m=y.getOption("autoCloseTags"),x=typeof m=="object"&&m.dontIndentOnSlash,T=0;T<v.length;T++){if(!v[T].empty())return B.Pass;var _=v[T].head,R=y.getTokenAt(_),A=B.innerMode(y.getMode(),R.state),N=A.state;if(S&&(R.type=="string"||R.string.charAt(0)!="<"||R.start!=_.ch-1))return B.Pass;var L,M=A.mode.name!="xml"&&y.getMode().name=="htmlmixed";if(M&&A.mode.name=="javascript")L=h+"script";else if(M&&A.mode.name=="css")L=h+"style";else{var F=A.mode.xmlCurrentContext&&A.mode.xmlCurrentContext(N);if(!F||F.length&&g(y,F,F[F.length-1],_))return B.Pass;L=h+F[F.length-1]}y.getLine(_.line).charAt(R.end)!=">"&&(L+=">"),c[T]=L}if(y.replaceSelections(c),v=y.listSelections(),!x)for(var T=0;T<v.length;T++)(T==v.length-1||v[T].head.line<v[T+1].head.line)&&y.indentLine(v[T].head.line)}function u(y){return y.getOption("disableInput")?B.Pass:I(y,!0)}B.commands.closeTag=function(y){return I(y)};function d(y,S){if(y.indexOf)return y.indexOf(S);for(var v=0,c=y.length;v<c;++v)if(y[v]==S)return v;return-1}function g(y,S,v,c,h){if(!B.scanForClosingTag)return!1;var m=Math.min(y.lastLine()+1,c.line+500),x=B.scanForClosingTag(y,c,null,m);if(!x||x.tag!=v)return!1;for(var T=h?1:0,_=S.length-1;_>=0&&S[_]==v;_--)++T;c=x.to;for(var _=1;_<T;_++){var R=B.scanForClosingTag(y,c,null,m);if(!R||R.tag!=v)return!1;c=R.to}return!0}})},4786:function(Ie,Z,b){(function(B){B(b(4631))})(function(B){"use strict";var Y=B.Pos;function s(_,R){return _.line-R.line||_.ch-R.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",u=new RegExp("<(/?)(["+E+"]["+I+"]*)","g");function d(_,R,A,N){this.line=R,this.ch=A,this.cm=_,this.text=_.getLine(R),this.min=N?Math.max(N.from,_.firstLine()):_.firstLine(),this.max=N?Math.min(N.to-1,_.lastLine()):_.lastLine()}function g(_,R){var A=_.cm.getTokenTypeAt(Y(_.line,R));return A&&/\btag\b/.test(A)}function y(_){if(!(_.line>=_.max))return _.ch=0,_.text=_.cm.getLine(++_.line),!0}function S(_){if(!(_.line<=_.min))return _.text=_.cm.getLine(--_.line),_.ch=_.text.length,!0}function v(_){for(;;){var R=_.text.indexOf(">",_.ch);if(R==-1){if(y(_))continue;return}if(!g(_,R+1)){_.ch=R+1;continue}var A=_.text.lastIndexOf("/",R),N=A>-1&&!/\S/.test(_.text.slice(A+1,R));return _.ch=R+1,N?"selfClose":"regular"}}function c(_){for(;;){var R=_.ch?_.text.lastIndexOf("<",_.ch-1):-1;if(R==-1){if(S(_))continue;return}if(!g(_,R+1)){_.ch=R;continue}u.lastIndex=R,_.ch=R;var A=u.exec(_.text);if(A&&A.index==R)return A}}function h(_){for(;;){u.lastIndex=_.ch;var R=u.exec(_.text);if(!R){if(y(_))continue;return}if(!g(_,R.index+1)){_.ch=R.index+1;continue}return _.ch=R.index+R[0].length,R}}function m(_){for(;;){var R=_.ch?_.text.lastIndexOf(">",_.ch-1):-1;if(R==-1){if(S(_))continue;return}if(!g(_,R+1)){_.ch=R;continue}var A=_.text.lastIndexOf("/",R),N=A>-1&&!/\S/.test(_.text.slice(A+1,R));return _.ch=R+1,N?"selfClose":"regular"}}function x(_,R){for(var A=[];;){var N=h(_),L,M=_.line,F=_.ch-(N?N[0].length:0);if(!N||!(L=v(_)))return;if(L!="selfClose")if(N[1]){for(var H=A.length-1;H>=0;--H)if(A[H]==N[2]){A.length=H;break}if(H<0&&(!R||R==N[2]))return{tag:N[2],from:Y(M,F),to:Y(_.line,_.ch)}}else A.push(N[2])}}function T(_,R){for(var A=[];;){var N=m(_);if(!N)return;if(N=="selfClose"){c(_);continue}var L=_.line,M=_.ch,F=c(_);if(!F)return;if(F[1])A.push(F[2]);else{for(var H=A.length-1;H>=0;--H)if(A[H]==F[2]){A.length=H;break}if(H<0&&(!R||R==F[2]))return{tag:F[2],from:Y(_.line,_.ch),to:Y(L,M)}}}}B.registerHelper("fold","xml",function(_,R){for(var A=new d(_,R.line,0);;){var N=h(A);if(!N||A.line!=R.line)return;var L=v(A);if(!L)return;if(!N[1]&&L!="selfClose"){var M=Y(A.line,A.ch),F=x(A,N[2]);return F&&s(F.from,M)>0?{from:M,to:F.from}:null}}}),B.findMatchingTag=function(_,R,A){var N=new d(_,R.line,R.ch,A);if(!(N.text.indexOf(">")==-1&&N.text.indexOf("<")==-1)){var L=v(N),M=L&&Y(N.line,N.ch),F=L&&c(N);if(!(!L||!F||s(N,R)>0)){var H={from:Y(N.line,N.ch),to:M,tag:F[2]};return L=="selfClose"?{open:H,close:null,at:"open"}:F[1]?{open:T(N,F[2]),close:H,at:"close"}:(N=new d(_,M.line,M.ch,A),{open:H,close:x(N,F[2]),at:"open"})}}},B.findEnclosingTag=function(_,R,A,N){for(var L=new d(_,R.line,R.ch,A);;){var M=T(L,N);if(!M)break;var F=new d(_,R.line,R.ch,A),H=x(F,M.tag);if(H)return{open:M,close:H}}},B.scanForClosingTag=function(_,R,A,N){var L=new d(_,R.line,R.ch,N?{from:0,to:N}:null);return x(L,A)}})},4631:function(Ie){(function(Z,b){Ie.exports=b()})(this,function(){"use strict";var Z=navigator.userAgent,b=navigator.platform,B=/gecko\/\d/i.test(Z),Y=/MSIE \d/.test(Z),s=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Z),E=/Edge\/(\d+)/.exec(Z),I=Y||s||E,u=I&&(Y?document.documentMode||6:+(E||s)[1]),d=!E&&/WebKit\//.test(Z),g=d&&/Qt\/\d+\.\d+/.test(Z),y=!E&&/Chrome\//.test(Z),S=/Opera\//.test(Z),v=/Apple Computer/.test(navigator.vendor),c=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Z),h=/PhantomJS/.test(Z),m=!E&&/AppleWebKit/.test(Z)&&/Mobile\/\w+/.test(Z),x=/Android/.test(Z),T=m||x||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Z),_=m||/Mac/.test(b),R=/\bCrOS\b/.test(Z),A=/win/i.test(b),N=S&&Z.match(/Version\/(\d*\.\d*)/);N&&(N=Number(N[1])),N&&N>=15&&(S=!1,d=!0);var L=_&&(g||S&&(N==null||N<12.11)),M=B||I&&u>=9;function F(l){return new RegExp("(^|\\s)"+l+"(?:$|\\s)\\s*")}var H=function(l,C){var K=l.className,W=F(C).exec(K);if(W){var q=K.slice(W.index+W[0].length);l.className=K.slice(0,W.index)+(q?W[1]+q:"")}};function P(l){for(var C=l.childNodes.length;C>0;--C)l.removeChild(l.firstChild);return l}function V(l,C){return P(l).appendChild(C)}function G(l,C,K,W){var q=document.createElement(l);if(K&&(q.className=K),W&&(q.style.cssText=W),typeof C=="string")q.appendChild(document.createTextNode(C));else if(C)for(var xe=0;xe<C.length;++xe)q.appendChild(C[xe]);return q}function Q(l,C,K,W){var q=G(l,C,K,W);return q.setAttribute("role","presentation"),q}var ne;document.createRange?ne=function(l,C,K,W){var q=document.createRange();return q.setEnd(W||l,K),q.setStart(l,C),q}:ne=function(l,C,K){var W=document.body.createTextRange();try{W.moveToElementText(l.parentNode)}catch(q){return W}return W.collapse(!0),W.moveEnd("character",K),W.moveStart("character",C),W};function ue(l,C){if(C.nodeType==3&&(C=C.parentNode),l.contains)return l.contains(C);do if(C.nodeType==11&&(C=C.host),C==l)return!0;while(C=C.parentNode)}function ae(){var l;try{l=document.activeElement}catch(C){l=document.body||null}for(;l&&l.shadowRoot&&l.shadowRoot.activeElement;)l=l.shadowRoot.activeElement;return l}function he(l,C){var K=l.className;F(C).test(K)||(l.className+=(K?" ":"")+C)}function ce(l,C){for(var K=l.split(" "),W=0;W<K.length;W++)K[W]&&!F(K[W]).test(C)&&(C+=" "+K[W]);return C}var we=function(l){l.select()};m?we=function(l){l.selectionStart=0,l.selectionEnd=l.value.length}:I&&(we=function(l){try{l.select()}catch(C){}});function me(l){var C=Array.prototype.slice.call(arguments,1);return function(){return l.apply(null,C)}}function Le(l,C,K){C||(C={});for(var W in l)l.hasOwnProperty(W)&&(K!==!1||!C.hasOwnProperty(W))&&(C[W]=l[W]);return C}function ee(l,C,K,W,q){C==null&&(C=l.search(/[^\s\u00a0]/),C==-1&&(C=l.length));for(var xe=W||0,je=q||0;;){var Ze=l.indexOf(" ",xe);if(Ze<0||Ze>=C)return je+(C-xe);je+=Ze-xe,je+=K-je%K,xe=Ze+1}}var se=function(){this.id=null,this.f=null,this.time=0,this.handler=me(this.onTimeout,this)};se.prototype.onTimeout=function(l){l.id=0,l.time<=+new Date?l.f():setTimeout(l.handler,l.time-+new Date)},se.prototype.set=function(l,C){this.f=C;var K=+new Date+l;(!this.id||K<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,l),this.time=K)};function le(l,C){for(var K=0;K<l.length;++K)if(l[K]==C)return K;return-1}var ke=50,De={toString:function(){return"CodeMirror.Pass"}},Be={scroll:!1},He={origin:"*mouse"},Fe={origin:"+move"};function Je(l,C,K){for(var W=0,q=0;;){var xe=l.indexOf(" ",W);xe==-1&&(xe=l.length);var je=xe-W;if(xe==l.length||q+je>=C)return W+Math.min(je,C-q);if(q+=xe-W,q+=K-q%K,W=xe+1,q>=C)return W}}var Me=[""];function lt(l){for(;Me.length<=l;)Me.push(Re(Me)+" ");return Me[l]}function Re(l){return l[l.length-1]}function Oe(l,C){for(var K=[],W=0;W<l.length;W++)K[W]=C(l[W],W);return K}function pe(l,C,K){for(var W=0,q=K(C);W<l.length&&K(l[W])<=q;)W++;l.splice(W,0,C)}function fe(){}function z(l,C){var K;return Object.create?K=Object.create(l):(fe.prototype=l,K=new fe),C&&Le(C,K),K}var J=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function be(l){return/\w/.test(l)||l>"\x80"&&(l.toUpperCase()!=l.toLowerCase()||J.test(l))}function _e(l,C){return C?C.source.indexOf("\\w")>-1&&be(l)?!0:C.test(l):be(l)}function oe(l){for(var C in l)if(l.hasOwnProperty(C)&&l[C])return!1;return!0}var ie=/[\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 ve(l){return l.charCodeAt(0)>=768&&ie.test(l)}function Ne(l,C,K){for(;(K<0?C>0:C<l.length)&&ve(l.charAt(C));)C+=K;return C}function ze(l,C,K){for(var W=C>K?-1:1;;){if(C==K)return C;var q=(C+K)/2,xe=W<0?Math.ceil(q):Math.floor(q);if(xe==C)return l(xe)?C:K;l(xe)?K=xe:C=xe+W}}function Ve(l,C,K,W){if(!l)return W(C,K,"ltr",0);for(var q=!1,xe=0;xe<l.length;++xe){var je=l[xe];(je.from<K&&je.to>C||C==K&&je.to==C)&&(W(Math.max(je.from,C),Math.min(je.to,K),je.level==1?"rtl":"ltr",xe),q=!0)}q||W(C,K,"ltr")}var yt=null;function ct(l,C,K){var W;yt=null;for(var q=0;q<l.length;++q){var xe=l[q];if(xe.from<C&&xe.to>C)return q;xe.to==C&&(xe.from!=xe.to&&K=="before"?W=q:yt=q),xe.from==C&&(xe.from!=xe.to&&K!="before"?W=q:yt=q)}return W!=null?W:yt}var St=function(){var l="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",C="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function K(ot){return ot<=247?l.charAt(ot):1424<=ot&&ot<=1524?"R":1536<=ot&&ot<=1785?C.charAt(ot-1536):1774<=ot&&ot<=2220?"r":8192<=ot&&ot<=8203?"w":ot==8204?"b":"L"}var W=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,q=/[stwN]/,xe=/[LRr]/,je=/[Lb1n]/,Ze=/[1n]/;function $e(ot,Ot,gt){this.level=ot,this.from=Ot,this.to=gt}return function(ot,Ot){var gt=Ot=="ltr"?"L":"R";if(ot.length==0||Ot=="ltr"&&!W.test(ot))return!1;for(var Xt=ot.length,Wt=[],Dn=0;Dn<Xt;++Dn)Wt.push(K(ot.charCodeAt(Dn)));for(var Bn=0,Kn=gt;Bn<Xt;++Bn){var cr=Wt[Bn];cr=="m"?Wt[Bn]=Kn:Kn=cr}for(var Hr=0,Er=gt;Hr<Xt;++Hr){var Kr=Wt[Hr];Kr=="1"&&Er=="r"?Wt[Hr]="n":xe.test(Kr)&&(Er=Kr,Kr=="r"&&(Wt[Hr]="R"))}for(var Ti=1,br=Wt[0];Ti<Xt-1;++Ti){var to=Wt[Ti];to=="+"&&br=="1"&&Wt[Ti+1]=="1"?Wt[Ti]="1":to==","&&br==Wt[Ti+1]&&(br=="1"||br=="n")&&(Wt[Ti]=br),br=to}for(var Ts=0;Ts<Xt;++Ts){var ga=Wt[Ts];if(ga==",")Wt[Ts]="N";else if(ga=="%"){var Ps=void 0;for(Ps=Ts+1;Ps<Xt&&Wt[Ps]=="%";++Ps);for(var xl=Ts&&Wt[Ts-1]=="!"||Ps<Xt&&Wt[Ps]=="1"?"1":"N",Xa=Ts;Xa<Ps;++Xa)Wt[Xa]=xl;Ts=Ps-1}}for(var aa=0,Dl=gt;aa<Xt;++aa){var Fa=Wt[aa];Dl=="L"&&Fa=="1"?Wt[aa]="L":xe.test(Fa)&&(Dl=Fa)}for(var la=0;la<Xt;++la)if(q.test(Wt[la])){var Ho=void 0;for(Ho=la+1;Ho<Xt&&q.test(Wt[Ho]);++Ho);for(var Us=(la?Wt[la-1]:gt)=="L",wa=(Ho<Xt?Wt[Ho]:gt)=="L",Ba=Us==wa?Us?"L":"R":gt,_u=la;_u<Ho;++_u)Wt[_u]=Ba;la=Ho-1}for(var Fs=[],du,Ws=0;Ws<Xt;)if(je.test(Wt[Ws])){var Mf=Ws;for(++Ws;Ws<Xt&&je.test(Wt[Ws]);++Ws);Fs.push(new $e(0,Mf,Ws))}else{var Jl=Ws,Pl=Fs.length,El=Ot=="rtl"?1:0;for(++Ws;Ws<Xt&&Wt[Ws]!="L";++Ws);for(var gs=Jl;gs<Ws;)if(Ze.test(Wt[gs])){Jl<gs&&(Fs.splice(Pl,0,new $e(1,Jl,gs)),Pl+=El);var Ca=gs;for(++gs;gs<Ws&&Ze.test(Wt[gs]);++gs);Fs.splice(Pl,0,new $e(2,Ca,gs)),Pl+=El,Jl=gs}else++gs;Jl<Ws&&Fs.splice(Pl,0,new $e(1,Jl,Ws))}return Ot=="ltr"&&(Fs[0].level==1&&(du=ot.match(/^\s+/))&&(Fs[0].from=du[0].length,Fs.unshift(new $e(0,0,du[0].length))),Re(Fs).level==1&&(du=ot.match(/\s+$/))&&(Re(Fs).to-=du[0].length,Fs.push(new $e(0,Xt-du[0].length,Xt)))),Ot=="rtl"?Fs.reverse():Fs}}();function _t(l,C){var K=l.order;return K==null&&(K=l.order=St(l.text,C)),K}var At=[],ht=function(l,C,K){if(l.addEventListener)l.addEventListener(C,K,!1);else if(l.attachEvent)l.attachEvent("on"+C,K);else{var W=l._handlers||(l._handlers={});W[C]=(W[C]||At).concat(K)}};function wt(l,C){return l._handlers&&l._handlers[C]||At}function jt(l,C,K){if(l.removeEventListener)l.removeEventListener(C,K,!1);else if(l.detachEvent)l.detachEvent("on"+C,K);else{var W=l._handlers,q=W&&W[C];if(q){var xe=le(q,K);xe>-1&&(W[C]=q.slice(0,xe).concat(q.slice(xe+1)))}}}function st(l,C){var K=wt(l,C);if(K.length)for(var W=Array.prototype.slice.call(arguments,2),q=0;q<K.length;++q)K[q].apply(null,W)}function ge(l,C,K){return typeof C=="string"&&(C={type:C,preventDefault:function(){this.defaultPrevented=!0}}),st(l,K||C.type,l,C),Fn(C)||C.codemirrorIgnore}function on(l){var C=l._handlers&&l._handlers.cursorActivity;if(C)for(var K=l.curOp.cursorActivityHandlers||(l.curOp.cursorActivityHandlers=[]),W=0;W<C.length;++W)le(K,C[W])==-1&&K.push(C[W])}function mn(l,C){return wt(l,C).length>0}function Mt(l){l.prototype.on=function(C,K){ht(this,C,K)},l.prototype.off=function(C,K){jt(this,C,K)}}function On(l){l.preventDefault?l.preventDefault():l.returnValue=!1}function Vn(l){l.stopPropagation?l.stopPropagation():l.cancelBubble=!0}function Fn(l){return l.defaultPrevented!=null?l.defaultPrevented:l.returnValue==!1}function Gn(l){On(l),Vn(l)}function sn(l){return l.target||l.srcElement}function xt(l){var C=l.which;return C==null&&(l.button&1?C=1:l.button&2?C=3:l.button&4&&(C=2)),_&&l.ctrlKey&&C==1&&(C=3),C}var gr=function(){if(I&&u<9)return!1;var l=G("div");return"draggable"in l||"dragDrop"in l}(),Pr;function tr(l){if(Pr==null){var C=G("span","\u200B");V(l,G("span",[C,document.createTextNode("x")])),l.firstChild.offsetHeight!=0&&(Pr=C.offsetWidth<=1&&C.offsetHeight>2&&!(I&&u<8))}var K=Pr?G("span","\u200B"):G("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return K.setAttribute("cm-text",""),K}var ii;function Ar(l){if(ii!=null)return ii;var C=V(l,document.createTextNode("A\u062EA")),K=ne(C,0,1).getBoundingClientRect(),W=ne(C,1,2).getBoundingClientRect();return P(l),!K||K.left==K.right?!1:ii=W.right-K.right<3}var Kt=`
b`.split(/\n/).length!=3?function(l){for(var C=0,K=[],W=l.length;C<=W;){var q=l.indexOf(`
`,C);q==-1&&(q=l.length);var xe=l.slice(C,l.charAt(q-1)=="\r"?q-1:q),je=xe.indexOf("\r");je!=-1?(K.push(xe.slice(0,je)),C+=je+1):(K.push(xe),C=q+1)}return K}:function(l){return l.split(/\r\n?|\n/)},ye=window.getSelection?function(l){try{return l.selectionStart!=l.selectionEnd}catch(C){return!1}}:function(l){var C;try{C=l.ownerDocument.selection.createRange()}catch(K){}return!C||C.parentElement()!=l?!1:C.compareEndPoints("StartToEnd",C)!=0},Vt=function(){var l=G("div");return"oncopy"in l?!0:(l.setAttribute("oncopy","return;"),typeof l.oncopy=="function")}(),rn=null;function Xn(l){if(rn!=null)return rn;var C=V(l,G("span","x")),K=C.getBoundingClientRect(),W=ne(C,0,1).getBoundingClientRect();return rn=Math.abs(K.left-W.left)>1}var Zn={},ir={};function Dr(l,C){arguments.length>2&&(C.dependencies=Array.prototype.slice.call(arguments,2)),Zn[l]=C}function ai(l,C){ir[l]=C}function li(l){if(typeof l=="string"&&ir.hasOwnProperty(l))l=ir[l];else if(l&&typeof l.name=="string"&&ir.hasOwnProperty(l.name)){var C=ir[l.name];typeof C=="string"&&(C={name:C}),l=z(C,l),l.name=C.name}else{if(typeof l=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(l))return li("application/xml");if(typeof l=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(l))return li("application/json")}return typeof l=="string"?{name:l}:l||{name:"null"}}function Zr(l,C){C=li(C);var K=Zn[C.name];if(!K)return Zr(l,"text/plain");var W=K(l,C);if(Tn.hasOwnProperty(C.name)){var q=Tn[C.name];for(var xe in q)q.hasOwnProperty(xe)&&(W.hasOwnProperty(xe)&&(W["_"+xe]=W[xe]),W[xe]=q[xe])}if(W.name=C.name,C.helperType&&(W.helperType=C.helperType),C.modeProps)for(var je in C.modeProps)W[je]=C.modeProps[je];return W}var Tn={};function kn(l,C){var K=Tn.hasOwnProperty(l)?Tn[l]:Tn[l]={};Le(C,K)}function Vr(l,C){if(C===!0)return C;if(l.copyState)return l.copyState(C);var K={};for(var W in C){var q=C[W];q instanceof Array&&(q=q.concat([])),K[W]=q}return K}function di(l,C){for(var K;l.innerMode&&(K=l.innerMode(C),!(!K||K.mode==l));)C=K.state,l=K.mode;return K||{mode:l,state:C}}function nr(l,C,K){return l.startState?l.startState(C,K):!0}var vn=function(l,C,K){this.pos=this.start=0,this.string=l,this.tabSize=C||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=K};vn.prototype.eol=function(){return this.pos>=this.string.length},vn.prototype.sol=function(){return this.pos==this.lineStart},vn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},vn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},vn.prototype.eat=function(l){var C=this.string.charAt(this.pos),K;if(typeof l=="string"?K=C==l:K=C&&(l.test?l.test(C):l(C)),K)return++this.pos,C},vn.prototype.eatWhile=function(l){for(var C=this.pos;this.eat(l););return this.pos>C},vn.prototype.eatSpace=function(){for(var l=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>l},vn.prototype.skipToEnd=function(){this.pos=this.string.length},vn.prototype.skipTo=function(l){var C=this.string.indexOf(l,this.pos);if(C>-1)return this.pos=C,!0},vn.prototype.backUp=function(l){this.pos-=l},vn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ee(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ee(this.string,this.lineStart,this.tabSize):0)},vn.prototype.indentation=function(){return ee(this.string,null,this.tabSize)-(this.lineStart?ee(this.string,this.lineStart,this.tabSize):0)},vn.prototype.match=function(l,C,K){if(typeof l=="string"){var W=function(je){return K?je.toLowerCase():je},q=this.string.substr(this.pos,l.length);if(W(q)==W(l))return C!==!1&&(this.pos+=l.length),!0}else{var xe=this.string.slice(this.pos).match(l);return xe&&xe.index>0?null:(xe&&C!==!1&&(this.pos+=xe[0].length),xe)}},vn.prototype.current=function(){return this.string.slice(this.start,this.pos)},vn.prototype.hideFirstChars=function(l,C){this.lineStart+=l;try{return C()}finally{this.lineStart-=l}},vn.prototype.lookAhead=function(l){var C=this.lineOracle;return C&&C.lookAhead(l)},vn.prototype.baseToken=function(){var l=this.lineOracle;return l&&l.baseToken(this.pos)};function Jn(l,C){if(C-=l.first,C<0||C>=l.size)throw new Error("There is no line "+(C+l.first)+" in the document.");for(var K=l;!K.lines;)for(var W=0;;++W){var q=K.children[W],xe=q.chunkSize();if(C<xe){K=q;break}C-=xe}return K.lines[C]}function bi(l,C,K){var W=[],q=C.line;return l.iter(C.line,K.line+1,function(xe){var je=xe.text;q==K.line&&(je=je.slice(0,K.ch)),q==C.line&&(je=je.slice(C.ch)),W.push(je),++q}),W}function gi(l,C,K){var W=[];return l.iter(C,K,function(q){W.push(q.text)}),W}function mi(l,C){var K=C-l.height;if(K)for(var W=l;W;W=W.parent)W.height+=K}function Lt(l){if(l.parent==null)return null;for(var C=l.parent,K=le(C.lines,l),W=C.parent;W;C=W,W=W.parent)for(var q=0;W.children[q]!=C;++q)K+=W.children[q].chunkSize();return K+C.first}function Yn(l,C){var K=l.first;e:do{for(var W=0;W<l.children.length;++W){var q=l.children[W],xe=q.height;if(C<xe){l=q;continue e}C-=xe,K+=q.chunkSize()}return K}while(!l.lines);for(var je=0;je<l.lines.length;++je){var Ze=l.lines[je],$e=Ze.height;if(C<$e)break;C-=$e}return K+je}function hr(l,C){return C>=l.first&&C<l.first+l.size}function zi(l,C){return String(l.lineNumberFormatter(C+l.firstLineNumber))}function bn(l,C,K){if(K===void 0&&(K=null),!(this instanceof bn))return new bn(l,C,K);this.line=l,this.ch=C,this.sticky=K}function or(l,C){return l.line-C.line||l.ch-C.ch}function Ei(l,C){return l.sticky==C.sticky&&or(l,C)==0}function Co(l){return bn(l.line,l.ch)}function ki(l,C){return or(l,C)<0?C:l}function yr(l,C){return or(l,C)<0?l:C}function Mr(l,C){return Math.max(l.first,Math.min(C,l.first+l.size-1))}function Fr(l,C){if(C.line<l.first)return bn(l.first,0);var K=l.first+l.size-1;return C.line>K?bn(K,Jn(l,K).text.length):Di(C,Jn(l,C.line).text.length)}function Di(l,C){var K=l.ch;return K==null||K>C?bn(l.line,C):K<0?bn(l.line,0):l}function so(l,C){for(var K=[],W=0;W<C.length;W++)K[W]=Fr(l,C[W]);return K}var Gi=function(l,C){this.state=l,this.lookAhead=C},sr=function(l,C,K,W){this.state=C,this.doc=l,this.line=K,this.maxLookAhead=W||0,this.baseTokens=null,this.baseTokenPos=1};sr.prototype.lookAhead=function(l){var C=this.doc.getLine(this.line+l);return C!=null&&l>this.maxLookAhead&&(this.maxLookAhead=l),C},sr.prototype.baseToken=function(l){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=l;)this.baseTokenPos+=2;var C=this.baseTokens[this.baseTokenPos+1];return{type:C&&C.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-l}},sr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},sr.fromSaved=function(l,C,K){return C instanceof Gi?new sr(l,Vr(l.mode,C.state),K,C.lookAhead):new sr(l,Vr(l.mode,C),K)},sr.prototype.save=function(l){var C=l!==!1?Vr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Gi(C,this.maxLookAhead):C};function ys(l,C,K,W){var q=[l.state.modeGen],xe={};eo(l,C.text,l.doc.mode,K,function(ot,Ot){return q.push(ot,Ot)},xe,W);for(var je=K.state,Ze=function(ot){K.baseTokens=q;var Ot=l.state.overlays[ot],gt=1,Xt=0;K.state=!0,eo(l,C.text,Ot.mode,K,function(Wt,Dn){for(var Bn=gt;Xt<Wt;){var Kn=q[gt];Kn>Wt&&q.splice(gt,1,Wt,q[gt+1],Kn),gt+=2,Xt=Math.min(Wt,Kn)}if(Dn)if(Ot.opaque)q.splice(Bn,gt-Bn,Wt,"overlay "+Dn),gt=Bn+2;else for(;Bn<gt;Bn+=2){var cr=q[Bn+1];q[Bn+1]=(cr?cr+" ":"")+"overlay "+Dn}},xe),K.state=je,K.baseTokens=null,K.baseTokenPos=1},$e=0;$e<l.state.overlays.length;++$e)Ze($e);return{styles:q,classes:xe.bgClass||xe.textClass?xe:null}}function Wo(l,C,K){if(!C.styles||C.styles[0]!=l.state.modeGen){var W=Ro(l,Lt(C)),q=C.text.length>l.options.maxHighlightLength&&Vr(l.doc.mode,W.state),xe=ys(l,C,W);q&&(W.state=q),C.stateAfter=W.save(!q),C.styles=xe.styles,xe.classes?C.styleClasses=xe.classes:C.styleClasses&&(C.styleClasses=null),K===l.doc.highlightFrontier&&(l.doc.modeFrontier=Math.max(l.doc.modeFrontier,++l.doc.highlightFrontier))}return C.styles}function Ro(l,C,K){var W=l.doc,q=l.display;if(!W.mode.startState)return new sr(W,!0,C);var xe=Oi(l,C,K),je=xe>W.first&&Jn(W,xe-1).stateAfter,Ze=je?sr.fromSaved(W,je,xe):new sr(W,nr(W.mode),xe);return W.iter(xe,C,function($e){hn(l,$e.text,Ze);var ot=Ze.line;$e.stateAfter=ot==C-1||ot%5==0||ot>=q.viewFrom&&ot<q.viewTo?Ze.save():null,Ze.nextLine()}),K&&(W.modeFrontier=Ze.line),Ze}function hn(l,C,K,W){var q=l.doc.mode,xe=new vn(C,l.options.tabSize,K);for(xe.start=xe.pos=W||0,C==""&&us(q,K.state);!xe.eol();)cs(q,xe,K.state),xe.start=xe.pos}function us(l,C){if(l.blankLine)return l.blankLine(C);if(l.innerMode){var K=di(l,C);if(K.mode.blankLine)return K.mode.blankLine(K.state)}}function cs(l,C,K,W){for(var q=0;q<10;q++){W&&(W[0]=di(l,K).mode);var xe=l.token(C,K);if(C.pos>C.start)return xe}throw new Error("Mode "+l.name+" failed to advance stream.")}var yo=function(l,C,K){this.start=l.start,this.end=l.pos,this.string=l.current(),this.type=C||null,this.state=K};function Bs(l,C,K,W){var q=l.doc,xe=q.mode,je;C=Fr(q,C);var Ze=Jn(q,C.line),$e=Ro(l,C.line,K),ot=new vn(Ze.text,l.options.tabSize,$e),Ot;for(W&&(Ot=[]);(W||ot.pos<C.ch)&&!ot.eol();)ot.start=ot.pos,je=cs(xe,ot,$e.state),W&&Ot.push(new yo(ot,je,Vr(q.mode,$e.state)));return W?Ot:new yo(ot,je,$e.state)}function Yi(l,C){if(l)for(;;){var K=l.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!K)break;l=l.slice(0,K.index)+l.slice(K.index+K[0].length);var W=K[1]?"bgClass":"textClass";C[W]==null?C[W]=K[2]:new RegExp("(?:^|\\s)"+K[2]+"(?:$|\\s)").test(C[W])||(C[W]+=" "+K[2])}return l}function eo(l,C,K,W,q,xe,je){var Ze=K.flattenSpans;Ze==null&&(Ze=l.options.flattenSpans);var $e=0,ot=null,Ot=new vn(C,l.options.tabSize,W),gt,Xt=l.options.addModeClass&&[null];for(C==""&&Yi(us(K,W.state),xe);!Ot.eol();){if(Ot.pos>l.options.maxHighlightLength?(Ze=!1,je&&hn(l,C,W,Ot.pos),Ot.pos=C.length,gt=null):gt=Yi(cs(K,Ot,W.state,Xt),xe),Xt){var Wt=Xt[0].name;Wt&&(gt="m-"+(gt?Wt+" "+gt:Wt))}if(!Ze||ot!=gt){for(;$e<Ot.start;)$e=Math.min(Ot.start,$e+5e3),q($e,ot);ot=gt}Ot.start=Ot.pos}for(;$e<Ot.pos;){var Dn=Math.min(Ot.pos,$e+5e3);q(Dn,ot),$e=Dn}}function Oi(l,C,K){for(var W,q,xe=l.doc,je=K?-1:C-(l.doc.mode.innerMode?1e3:100),Ze=C;Ze>je;--Ze){if(Ze<=xe.first)return xe.first;var $e=Jn(xe,Ze-1),ot=$e.stateAfter;if(ot&&(!K||Ze+(ot instanceof Gi?ot.lookAhead:0)<=xe.modeFrontier))return Ze;var Ot=ee($e.text,null,l.options.tabSize);(q==null||W>Ot)&&(q=Ze-1,W=Ot)}return q}function hi(l,C){if(l.modeFrontier=Math.min(l.modeFrontier,C),!(l.highlightFrontier<C-10)){for(var K=l.first,W=C-1;W>K;W--){var q=Jn(l,W).stateAfter;if(q&&(!(q instanceof Gi)||W+q.lookAhead<C)){K=W+1;break}}l.highlightFrontier=Math.min(l.highlightFrontier,K)}}var Ni=!1,tn=!1;function _i(){Ni=!0}function ut(){tn=!0}function Ge(l,C,K){this.marker=l,this.from=C,this.to=K}function an(l,C){if(l)for(var K=0;K<l.length;++K){var W=l[K];if(W.marker==C)return W}}function it(l,C){for(var K,W=0;W<l.length;++W)l[W]!=C&&(K||(K=[])).push(l[W]);return K}function dt(l,C){l.markedSpans=l.markedSpans?l.markedSpans.concat([C]):[C],C.marker.attachLine(l)}function Et(l,C,K){var W;if(l)for(var q=0;q<l.length;++q){var xe=l[q],je=xe.marker,Ze=xe.from==null||(je.inclusiveLeft?xe.from<=C:xe.from<C);if(Ze||xe.from==C&&je.type=="bookmark"&&(!K||!xe.marker.insertLeft)){var $e=xe.to==null||(je.inclusiveRight?xe.to>=C:xe.to>C);(W||(W=[])).push(new Ge(je,xe.from,$e?null:xe.to))}}return W}function Dt(l,C,K){var W;if(l)for(var q=0;q<l.length;++q){var xe=l[q],je=xe.marker,Ze=xe.to==null||(je.inclusiveRight?xe.to>=C:xe.to>C);if(Ze||xe.from==C&&je.type=="bookmark"&&(!K||xe.marker.insertLeft)){var $e=xe.from==null||(je.inclusiveLeft?xe.from<=C:xe.from<C);(W||(W=[])).push(new Ge(je,$e?null:xe.from-C,xe.to==null?null:xe.to-C))}}return W}function gn(l,C){if(C.full)return null;var K=hr(l,C.from.line)&&Jn(l,C.from.line).markedSpans,W=hr(l,C.to.line)&&Jn(l,C.to.line).markedSpans;if(!K&&!W)return null;var q=C.from.ch,xe=C.to.ch,je=or(C.from,C.to)==0,Ze=Et(K,q,je),$e=Dt(W,xe,je),ot=C.text.length==1,Ot=Re(C.text).length+(ot?q:0);if(Ze)for(var gt=0;gt<Ze.length;++gt){var Xt=Ze[gt];if(Xt.to==null){var Wt=an($e,Xt.marker);Wt?ot&&(Xt.to=Wt.to==null?null:Wt.to+Ot):Xt.to=q}}if($e)for(var Dn=0;Dn<$e.length;++Dn){var Bn=$e[Dn];if(Bn.to!=null&&(Bn.to+=Ot),Bn.from==null){var Kn=an(Ze,Bn.marker);Kn||(Bn.from=Ot,ot&&(Ze||(Ze=[])).push(Bn))}else Bn.from+=Ot,ot&&(Ze||(Ze=[])).push(Bn)}Ze&&(Ze=Mn(Ze)),$e&&$e!=Ze&&($e=Mn($e));var cr=[Ze];if(!ot){var Hr=C.text.length-2,Er;if(Hr>0&&Ze)for(var Kr=0;Kr<Ze.length;++Kr)Ze[Kr].to==null&&(Er||(Er=[])).push(new Ge(Ze[Kr].marker,null,null));for(var Ti=0;Ti<Hr;++Ti)cr.push(Er);cr.push($e)}return cr}function Mn(l){for(var C=0;C<l.length;++C){var K=l[C];K.from!=null&&K.from==K.to&&K.marker.clearWhenEmpty!==!1&&l.splice(C--,1)}return l.length?l:null}function In(l,C,K){var W=null;if(l.iter(C.line,K.line+1,function(Wt){if(Wt.markedSpans)for(var Dn=0;Dn<Wt.markedSpans.length;++Dn){var Bn=Wt.markedSpans[Dn].marker;Bn.readOnly&&(!W||le(W,Bn)==-1)&&(W||(W=[])).push(Bn)}}),!W)return null;for(var q=[{from:C,to:K}],xe=0;xe<W.length;++xe)for(var je=W[xe],Ze=je.find(0),$e=0;$e<q.length;++$e){var ot=q[$e];if(!(or(ot.to,Ze.from)<0||or(ot.from,Ze.to)>0)){var Ot=[$e,1],gt=or(ot.from,Ze.from),Xt=or(ot.to,Ze.to);(gt<0||!je.inclusiveLeft&&!gt)&&Ot.push({from:ot.from,to:Ze.from}),(Xt>0||!je.inclusiveRight&&!Xt)&&Ot.push({from:Ze.to,to:ot.to}),q.splice.apply(q,Ot),$e+=Ot.length-3}}return q}function nn(l){var C=l.markedSpans;if(C){for(var K=0;K<C.length;++K)C[K].marker.detachLine(l);l.markedSpans=null}}function Ue(l,C){if(C){for(var K=0;K<C.length;++K)C[K].marker.attachLine(l);l.markedSpans=C}}function kr(l){return l.inclusiveLeft?-1:0}function Br(l){return l.inclusiveRight?1:0}function ei(l,C){var K=l.lines.length-C.lines.length;if(K!=0)return K;var W=l.find(),q=C.find(),xe=or(W.from,q.from)||kr(l)-kr(C);if(xe)return-xe;var je=or(W.to,q.to)||Br(l)-Br(C);return je||C.id-l.id}function ti(l,C){var K=tn&&l.markedSpans,W;if(K)for(var q=void 0,xe=0;xe<K.length;++xe)q=K[xe],q.marker.collapsed&&(C?q.from:q.to)==null&&(!W||ei(W,q.marker)<0)&&(W=q.marker);return W}function Jr(l){return ti(l,!0)}function Wr(l){return ti(l,!1)}function Ri(l,C){var K=tn&&l.markedSpans,W;if(K)for(var q=0;q<K.length;++q){var xe=K[q];xe.marker.collapsed&&(xe.from==null||xe.from<C)&&(xe.to==null||xe.to>C)&&(!W||ei(W,xe.marker)<0)&&(W=xe.marker)}return W}function ri(l,C,K,W,q){var xe=Jn(l,C),je=tn&&xe.markedSpans;if(je)for(var Ze=0;Ze<je.length;++Ze){var $e=je[Ze];if($e.marker.collapsed){var ot=$e.marker.find(0),Ot=or(ot.from,K)||kr($e.marker)-kr(q),gt=or(ot.to,W)||Br($e.marker)-Br(q);if(!(Ot>=0&&gt<=0||Ot<=0&&gt>=0)&&(Ot<=0&&($e.marker.inclusiveRight&&q.inclusiveLeft?or(ot.to,K)>=0:or(ot.to,K)>0)||Ot>=0&&($e.marker.inclusiveRight&&q.inclusiveLeft?or(ot.from,W)<=0:or(ot.from,W)<0)))return!0}}}function wr(l){for(var C;C=Jr(l);)l=C.find(-1,!0).line;return l}function rr(l){for(var C;C=Wr(l);)l=C.find(1,!0).line;return l}function Ir(l){for(var C,K;C=Wr(l);)l=C.find(1,!0).line,(K||(K=[])).push(l);return K}function Nr(l,C){var K=Jn(l,C),W=wr(K);return K==W?C:Lt(W)}function $r(l,C){if(C>l.lastLine())return C;var K=Jn(l,C),W;if(!Yt(l,K))return C;for(;W=Wr(K);)K=W.find(1,!0).line;return Lt(K)+1}function Yt(l,C){var K=tn&&C.markedSpans;if(K){for(var W=void 0,q=0;q<K.length;++q)if(W=K[q],!!W.marker.collapsed){if(W.from==null)return!0;if(!W.marker.widgetNode&&W.from==0&&W.marker.inclusiveLeft&&Sr(l,C,W))return!0}}}function Sr(l,C,K){if(K.to==null){var W=K.marker.find(1,!0);return Sr(l,W.line,an(W.line.markedSpans,K.marker))}if(K.marker.inclusiveRight&&K.to==C.text.length)return!0;for(var q=void 0,xe=0;xe<C.markedSpans.length;++xe)if(q=C.markedSpans[xe],q.marker.collapsed&&!q.marker.widgetNode&&q.from==K.to&&(q.to==null||q.to!=K.from)&&(q.marker.inclusiveLeft||K.marker.inclusiveRight)&&Sr(l,C,q))return!0}function fr(l){l=wr(l);for(var C=0,K=l.parent,W=0;W<K.lines.length;++W){var q=K.lines[W];if(q==l)break;C+=q.height}for(var xe=K.parent;xe;K=xe,xe=K.parent)for(var je=0;je<xe.children.length;++je){var Ze=xe.children[je];if(Ze==K)break;C+=Ze.height}return C}function pi(l){if(l.height==0)return 0;for(var C=l.text.length,K,W=l;K=Jr(W);){var q=K.find(0,!0);W=q.from.line,C+=q.from.ch-q.to.ch}for(W=l;K=Wr(W);){var xe=K.find(0,!0);C-=W.text.length-xe.from.ch,W=xe.to.line,C+=W.text.length-xe.to.ch}return C}function Pi(l){var C=l.display,K=l.doc;C.maxLine=Jn(K,K.first),C.maxLineLength=pi(C.maxLine),C.maxLineChanged=!0,K.iter(function(W){var q=pi(W);q>C.maxLineLength&&(C.maxLineLength=q,C.maxLine=W)})}var Ai=function(l,C,K){this.text=l,Ue(this,C),this.height=K?K(this):1};Ai.prototype.lineNo=function(){return Lt(this)},Mt(Ai);function Ji(l,C,K,W){l.text=C,l.stateAfter&&(l.stateAfter=null),l.styles&&(l.styles=null),l.order!=null&&(l.order=null),nn(l),Ue(l,K);var q=W?W(l):1;q!=l.height&&mi(l,q)}function To(l){l.parent=null,nn(l)}var _o={},bo={};function Vo(l,C){if(!l||/^\s*$/.test(l))return null;var K=C.addModeClass?bo:_o;return K[l]||(K[l]=l.replace(/\S+/g,"cm-$&"))}function Nt(l,C){var K=Q("span",null,null,d?"padding-right: .1px":null),W={pre:Q("pre",[K],"CodeMirror-line"),content:K,col:0,pos:0,cm:l,trailingSpace:!1,splitSpaces:l.getOption("lineWrapping")};C.measure={};for(var q=0;q<=(C.rest?C.rest.length:0);q++){var xe=q?C.rest[q-1]:C.line,je=void 0;W.pos=0,W.addToken=Fo,Ar(l.display.measure)&&(je=_t(xe,l.doc.direction))&&(W.addToken=ho(W.addToken,je)),W.map=[];var Ze=C!=l.display.externalMeasured&&Lt(xe);ko(xe,W,Wo(l,xe,Ze)),xe.styleClasses&&(xe.styleClasses.bgClass&&(W.bgClass=ce(xe.styleClasses.bgClass,W.bgClass||"")),xe.styleClasses.textClass&&(W.textClass=ce(xe.styleClasses.textClass,W.textClass||""))),W.map.length==0&&W.map.push(0,0,W.content.appendChild(tr(l.display.measure))),q==0?(C.measure.map=W.map,C.measure.cache={}):((C.measure.maps||(C.measure.maps=[])).push(W.map),(C.measure.caches||(C.measure.caches=[])).push({}))}if(d){var $e=W.content.lastChild;(/\bcm-tab\b/.test($e.className)||$e.querySelector&&$e.querySelector(".cm-tab"))&&(W.content.className="cm-tab-wrap-hack")}return st(l,"renderLine",l,C.line,W.pre),W.pre.className&&(W.textClass=ce(W.pre.className,W.textClass||"")),W}function no(l){var C=G("span","\u2022","cm-invalidchar");return C.title="\\u"+l.charCodeAt(0).toString(16),C.setAttribute("aria-label",C.title),C}function Fo(l,C,K,W,q,xe,je){if(C){var Ze=l.splitSpaces?Xo(C,l.trailingSpace):C,$e=l.cm.state.specialChars,ot=!1,Ot;if(!$e.test(C))l.col+=C.length,Ot=document.createTextNode(Ze),l.map.push(l.pos,l.pos+C.length,Ot),I&&u<9&&(ot=!0),l.pos+=C.length;else{Ot=document.createDocumentFragment();for(var gt=0;;){$e.lastIndex=gt;var Xt=$e.exec(C),Wt=Xt?Xt.index-gt:C.length-gt;if(Wt){var Dn=document.createTextNode(Ze.slice(gt,gt+Wt));I&&u<9?Ot.appendChild(G("span",[Dn])):Ot.appendChild(Dn),l.map.push(l.pos,l.pos+Wt,Dn),l.col+=Wt,l.pos+=Wt}if(!Xt)break;gt+=Wt+1;var Bn=void 0;if(Xt[0]==" "){var Kn=l.cm.options.tabSize,cr=Kn-l.col%Kn;Bn=Ot.appendChild(G("span",lt(cr),"cm-tab")),Bn.setAttribute("role","presentation"),Bn.setAttribute("cm-text"," "),l.col+=cr}else Xt[0]=="\r"||Xt[0]==`
`?(Bn=Ot.appendChild(G("span",Xt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Bn.setAttribute("cm-text",Xt[0]),l.col+=1):(Bn=l.cm.options.specialCharPlaceholder(Xt[0]),Bn.setAttribute("cm-text",Xt[0]),I&&u<9?Ot.appendChild(G("span",[Bn])):Ot.appendChild(Bn),l.col+=1);l.map.push(l.pos,l.pos+1,Bn),l.pos++}}if(l.trailingSpace=Ze.charCodeAt(C.length-1)==32,K||W||q||ot||xe||je){var Hr=K||"";W&&(Hr+=W),q&&(Hr+=q);var Er=G("span",[Ot],Hr,xe);if(je)for(var Kr in je)je.hasOwnProperty(Kr)&&Kr!="style"&&Kr!="class"&&Er.setAttribute(Kr,je[Kr]);return l.content.appendChild(Er)}l.content.appendChild(Ot)}}function Xo(l,C){if(l.length>1&&!/ /.test(l))return l;for(var K=C,W="",q=0;q<l.length;q++){var xe=l.charAt(q);xe==" "&&K&&(q==l.length-1||l.charCodeAt(q+1)==32)&&(xe="\xA0"),W+=xe,K=xe==" "}return W}function ho(l,C){return function(K,W,q,xe,je,Ze,$e){q=q?q+" cm-force-border":"cm-force-border";for(var ot=K.pos,Ot=ot+W.length;;){for(var gt=void 0,Xt=0;Xt<C.length&&(gt=C[Xt],!(gt.to>ot&&gt.from<=ot));Xt++);if(gt.to>=Ot)return l(K,W,q,xe,je,Ze,$e);l(K,W.slice(0,gt.to-ot),q,xe,null,Ze,$e),xe=null,W=W.slice(gt.to-ot),ot=gt.to}}}function Zo(l,C,K,W){var q=!W&&K.widgetNode;q&&l.map.push(l.pos,l.pos+C,q),!W&&l.cm.display.input.needsContentAttribute&&(q||(q=l.content.appendChild(document.createElement("span"))),q.setAttribute("cm-marker",K.id)),q&&(l.cm.display.input.setUneditable(q),l.content.appendChild(q)),l.pos+=C,l.trailingSpace=!1}function ko(l,C,K){var W=l.markedSpans,q=l.text,xe=0;if(!W){for(var je=1;je<K.length;je+=2)C.addToken(C,q.slice(xe,xe=K[je]),Vo(K[je+1],C.cm.options));return}for(var Ze=q.length,$e=0,ot=1,Ot="",gt,Xt,Wt=0,Dn,Bn,Kn,cr,Hr;;){if(Wt==$e){Dn=Bn=Kn=Xt="",Hr=null,cr=null,Wt=1/0;for(var Er=[],Kr=void 0,Ti=0;Ti<W.length;++Ti){var br=W[Ti],to=br.marker;if(to.type=="bookmark"&&br.from==$e&&to.widgetNode)Er.push(to);else if(br.from<=$e&&(br.to==null||br.to>$e||to.collapsed&&br.to==$e&&br.from==$e)){if(br.to!=null&&br.to!=$e&&Wt>br.to&&(Wt=br.to,Bn=""),to.className&&(Dn+=" "+to.className),to.css&&(Xt=(Xt?Xt+";":"")+to.css),to.startStyle&&br.from==$e&&(Kn+=" "+to.startStyle),to.endStyle&&br.to==Wt&&(Kr||(Kr=[])).push(to.endStyle,br.to),to.title&&((Hr||(Hr={})).title=to.title),to.attributes)for(var Ts in to.attributes)(Hr||(Hr={}))[Ts]=to.attributes[Ts];to.collapsed&&(!cr||ei(cr.marker,to)<0)&&(cr=br)}else br.from>$e&&Wt>br.from&&(Wt=br.from)}if(Kr)for(var ga=0;ga<Kr.length;ga+=2)Kr[ga+1]==Wt&&(Bn+=" "+Kr[ga]);if(!cr||cr.from==$e)for(var Ps=0;Ps<Er.length;++Ps)Zo(C,0,Er[Ps]);if(cr&&(cr.from||0)==$e){if(Zo(C,(cr.to==null?Ze+1:cr.to)-$e,cr.marker,cr.from==null),cr.to==null)return;cr.to==$e&&(cr=!1)}}if($e>=Ze)break;for(var xl=Math.min(Ze,Wt);;){if(Ot){var Xa=$e+Ot.length;if(!cr){var aa=Xa>xl?Ot.slice(0,xl-$e):Ot;C.addToken(C,aa,gt?gt+Dn:Dn,Kn,$e+aa.length==Wt?Bn:"",Xt,Hr)}if(Xa>=xl){Ot=Ot.slice(xl-$e),$e=xl;break}$e=Xa,Kn=""}Ot=q.slice(xe,xe=K[ot++]),gt=Vo(K[ot++],C.cm.options)}}}function hs(l,C,K){this.line=C,this.rest=Ir(C),this.size=this.rest?Lt(Re(this.rest))-K+1:1,this.node=this.text=null,this.hidden=Yt(l,C)}function fi(l,C,K){for(var W=[],q,xe=C;xe<K;xe=q){var je=new hs(l.doc,Jn(l.doc,xe),xe);q=xe+je.size,W.push(je)}return W}var $i=null;function Rr(l){$i?$i.ops.push(l):l.ownsGroup=$i={ops:[l],delayedCallbacks:[]}}function Yr(l){var C=l.delayedCallbacks,K=0;do{for(;K<C.length;K++)C[K].call(null);for(var W=0;W<l.ops.length;W++){var q=l.ops[W];if(q.cursorActivityHandlers)for(;q.cursorActivityCalled<q.cursorActivityHandlers.length;)q.cursorActivityHandlers[q.cursorActivityCalled++].call(null,q.cm)}}while(K<C.length)}function ui(l,C){var K=l.ownsGroup;if(K)try{Yr(K)}finally{$i=null,C(K)}}var ji=null;function Wn(l,C){var K=wt(l,C);if(K.length){var W=Array.prototype.slice.call(arguments,2),q;$i?q=$i.delayedCallbacks:ji?q=ji:(q=ji=[],setTimeout(mo,0));for(var xe=function(Ze){q.push(function(){return K[Ze].apply(null,W)})},je=0;je<K.length;++je)xe(je)}}function mo(){var l=ji;ji=null;for(var C=0;C<l.length;++C)l[C]()}function ao(l,C,K,W){for(var q=0;q<C.changes.length;q++){var xe=C.changes[q];xe=="text"?Nn(l,C):xe=="gutter"?No(l,C,K,W):xe=="class"?So(l,C):xe=="widget"&&Es(l,C,W)}C.changes=null}function fo(l){return l.node==l.text&&(l.node=G("div",null,null,"position: relative"),l.text.parentNode&&l.text.parentNode.replaceChild(l.node,l.text),l.node.appendChild(l.text),I&&u<8&&(l.node.style.zIndex=2)),l.node}function ns(l,C){var K=C.bgClass?C.bgClass+" "+(C.line.bgClass||""):C.line.bgClass;if(K&&(K+=" CodeMirror-linebackground"),C.background)K?C.background.className=K:(C.background.parentNode.removeChild(C.background),C.background=null);else if(K){var W=fo(C);C.background=W.insertBefore(G("div",null,K),W.firstChild),l.display.input.setUneditable(C.background)}}function fs(l,C){var K=l.display.externalMeasured;return K&&K.line==C.line?(l.display.externalMeasured=null,C.measure=K.measure,K.built):Nt(l,C)}function Nn(l,C){var K=C.text.className,W=fs(l,C);C.text==C.node&&(C.node=W.pre),C.text.parentNode.replaceChild(W.pre,C.text),C.text=W.pre,W.bgClass!=C.bgClass||W.textClass!=C.textClass?(C.bgClass=W.bgClass,C.textClass=W.textClass,So(l,C)):K&&(C.text.className=K)}function So(l,C){ns(l,C),C.line.wrapClass?fo(C).className=C.line.wrapClass:C.node!=C.text&&(C.node.className="");var K=C.textClass?C.textClass+" "+(C.line.textClass||""):C.line.textClass;C.text.className=K||""}function No(l,C,K,W){if(C.gutter&&(C.node.removeChild(C.gutter),C.gutter=null),C.gutterBackground&&(C.node.removeChild(C.gutterBackground),C.gutterBackground=null),C.line.gutterClass){var q=fo(C);C.gutterBackground=G("div",null,"CodeMirror-gutter-background "+C.line.gutterClass,"left: "+(l.options.fixedGutter?W.fixedPos:-W.gutterTotalWidth)+"px; width: "+W.gutterTotalWidth+"px"),l.display.input.setUneditable(C.gutterBackground),q.insertBefore(C.gutterBackground,C.text)}var xe=C.line.gutterMarkers;if(l.options.lineNumbers||xe){var je=fo(C),Ze=C.gutter=G("div",null,"CodeMirror-gutter-wrapper","left: "+(l.options.fixedGutter?W.fixedPos:-W.gutterTotalWidth)+"px");if(l.display.input.setUneditable(Ze),je.insertBefore(Ze,C.text),C.line.gutterClass&&(Ze.className+=" "+C.line.gutterClass),l.options.lineNumbers&&(!xe||!xe["CodeMirror-linenumbers"])&&(C.lineNumber=Ze.appendChild(G("div",zi(l.options,K),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+W.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+l.display.lineNumInnerWidth+"px"))),xe)for(var $e=0;$e<l.display.gutterSpecs.length;++$e){var ot=l.display.gutterSpecs[$e].className,Ot=xe.hasOwnProperty(ot)&&xe[ot];Ot&&Ze.appendChild(G("div",[Ot],"CodeMirror-gutter-elt","left: "+W.gutterLeft[ot]+"px; width: "+W.gutterWidth[ot]+"px"))}}}function Es(l,C,K){C.alignable&&(C.alignable=null);for(var W=F("CodeMirror-linewidget"),q=C.node.firstChild,xe=void 0;q;q=xe)xe=q.nextSibling,W.test(q.className)&&C.node.removeChild(q);bs(l,C,K)}function go(l,C,K,W){var q=fs(l,C);return C.text=C.node=q.pre,q.bgClass&&(C.bgClass=q.bgClass),q.textClass&&(C.textClass=q.textClass),So(l,C),No(l,C,K,W),bs(l,C,W),C.node}function bs(l,C,K){if(jr(l,C.line,C,K,!0),C.rest)for(var W=0;W<C.rest.length;W++)jr(l,C.rest[W],C,K,!1)}function jr(l,C,K,W,q){if(C.widgets)for(var xe=fo(K),je=0,Ze=C.widgets;je<Ze.length;++je){var $e=Ze[je],ot=G("div",[$e.node],"CodeMirror-linewidget"+($e.className?" "+$e.className:""));$e.handleMouseEvents||ot.setAttribute("cm-ignore-events","true"),Zs($e,ot,K,W),l.display.input.setUneditable(ot),q&&$e.above?xe.insertBefore(ot,K.gutter||K.text):xe.appendChild(ot),Wn($e,"redraw")}}function Zs(l,C,K,W){if(l.noHScroll){(K.alignable||(K.alignable=[])).push(C);var q=W.wrapperWidth;C.style.left=W.fixedPos+"px",l.coverGutter||(q-=W.gutterTotalWidth,C.style.paddingLeft=W.gutterTotalWidth+"px"),C.style.width=q+"px"}l.coverGutter&&(C.style.zIndex=5,C.style.position="relative",l.noHScroll||(C.style.marginLeft=-W.gutterTotalWidth+"px"))}function Jo(l){if(l.height!=null)return l.height;var C=l.doc.cm;if(!C)return 0;if(!ue(document.body,l.node)){var K="position: relative;";l.coverGutter&&(K+="margin-left: -"+C.display.gutters.offsetWidth+"px;"),l.noHScroll&&(K+="width: "+C.display.wrapper.clientWidth+"px;"),V(C.display.measure,G("div",[l.node],null,K))}return l.height=l.node.parentNode.offsetHeight}function Qo(l,C){for(var K=sn(C);K!=l.wrapper;K=K.parentNode)if(!K||K.nodeType==1&&K.getAttribute("cm-ignore-events")=="true"||K.parentNode==l.sizer&&K!=l.mover)return!0}function ks(l){return l.lineSpace.offsetTop}function Ma(l){return l.mover.offsetHeight-l.lineSpace.offsetHeight}function tl(l){if(l.cachedPaddingH)return l.cachedPaddingH;var C=V(l.measure,G("pre","x","CodeMirror-line-like")),K=window.getComputedStyle?window.getComputedStyle(C):C.currentStyle,W={left:parseInt(K.paddingLeft),right:parseInt(K.paddingRight)};return!isNaN(W.left)&&!isNaN(W.right)&&(l.cachedPaddingH=W),W}function rs(l){return ke-l.display.nativeBarWidth}function Bo(l){return l.display.scroller.clientWidth-rs(l)-l.display.barWidth}function ou(l){return l.display.scroller.clientHeight-rs(l)-l.display.barHeight}function Eu(l,C,K){var W=l.options.lineWrapping,q=W&&Bo(l);if(!C.measure.heights||W&&C.measure.width!=q){var xe=C.measure.heights=[];if(W){C.measure.width=q;for(var je=C.text.firstChild.getClientRects(),Ze=0;Ze<je.length-1;Ze++){var $e=je[Ze],ot=je[Ze+1];Math.abs($e.bottom-ot.bottom)>2&&xe.push(($e.bottom+ot.top)/2-K.top)}}xe.push(K.bottom-K.top)}}function su(l,C,K){if(l.line==C)return{map:l.measure.map,cache:l.measure.cache};for(var W=0;W<l.rest.length;W++)if(l.rest[W]==C)return{map:l.measure.maps[W],cache:l.measure.caches[W]};for(var q=0;q<l.rest.length;q++)if(Lt(l.rest[q])>K)return{map:l.measure.maps[q],cache:l.measure.caches[q],before:!0}}function Al(l,C){C=wr(C);var K=Lt(C),W=l.display.externalMeasured=new hs(l.doc,C,K);W.lineN=K;var q=W.built=Nt(l,W);return W.text=q.pre,V(l.display.lineMeasure,q.pre),W}function Js(l,C,K,W){return nl(l,Da(l,C),K,W)}function Ns(l,C){if(C>=l.display.viewFrom&&C<l.display.viewTo)return l.display.view[Sa(l,C)];var K=l.display.externalMeasured;if(K&&C>=K.lineN&&C<K.lineN+K.size)return K}function Da(l,C){var K=Lt(C),W=Ns(l,K);W&&!W.text?W=null:W&&W.changes&&(ao(l,W,K,Rl(l)),l.curOp.forceUpdate=!0),W||(W=Al(l,C));var q=su(W,C,K);return{line:C,view:W,rect:null,map:q.map,cache:q.cache,before:q.before,hasHeights:!1}}function nl(l,C,K,W,q){C.before&&(K=-1);var xe=K+(W||""),je;return C.cache.hasOwnProperty(xe)?je=C.cache[xe]:(C.rect||(C.rect=C.view.text.getBoundingClientRect()),C.hasHeights||(Eu(l,C.view,C.rect),C.hasHeights=!0),je=is(l,C,K,W),je.bogus||(C.cache[xe]=je)),{left:je.left,right:je.right,top:q?je.rtop:je.top,bottom:q?je.rbottom:je.bottom}}var Pu={left:0,right:0,top:0,bottom:0};function Fu(l,C,K){for(var W,q,xe,je,Ze,$e,ot=0;ot<l.length;ot+=3)if(Ze=l[ot],$e=l[ot+1],C<Ze?(q=0,xe=1,je="left"):C<$e?(q=C-Ze,xe=q+1):(ot==l.length-3||C==$e&&l[ot+3]>C)&&(xe=$e-Ze,q=xe-1,C>=$e&&(je="right")),q!=null){if(W=l[ot+2],Ze==$e&&K==(W.insertLeft?"left":"right")&&(je=K),K=="left"&&q==0)for(;ot&&l[ot-2]==l[ot-3]&&l[ot-1].insertLeft;)W=l[(ot-=3)+2],je="left";if(K=="right"&&q==$e-Ze)for(;ot<l.length-3&&l[ot+3]==l[ot+4]&&!l[ot+5].insertLeft;)W=l[(ot+=3)+2],je="right";break}return{node:W,start:q,end:xe,collapse:je,coverStart:Ze,coverEnd:$e}}function tc(l,C){var K=Pu;if(C=="left")for(var W=0;W<l.length&&(K=l[W]).left==K.right;W++);else for(var q=l.length-1;q>=0&&(K=l[q]).left==K.right;q--);return K}function is(l,C,K,W){var q=Fu(C.map,K,W),xe=q.node,je=q.start,Ze=q.end,$e=q.collapse,ot;if(xe.nodeType==3){for(var Ot=0;Ot<4;Ot++){for(;je&&ve(C.line.text.charAt(q.coverStart+je));)--je;for(;q.coverStart+Ze<q.coverEnd&&ve(C.line.text.charAt(q.coverStart+Ze));)++Ze;if(I&&u<9&&je==0&&Ze==q.coverEnd-q.coverStart?ot=xe.parentNode.getBoundingClientRect():ot=tc(ne(xe,je,Ze).getClientRects(),W),ot.left||ot.right||je==0)break;Ze=je,je=je-1,$e="right"}I&&u<11&&(ot=Uc(l.display.measure,ot))}else{je>0&&($e=W="right");var gt;l.options.lineWrapping&&(gt=xe.getClientRects()).length>1?ot=gt[W=="right"?gt.length-1:0]:ot=xe.getBoundingClientRect()}if(I&&u<9&&!je&&(!ot||!ot.left&&!ot.right)){var Xt=xe.parentNode.getClientRects()[0];Xt?ot={left:Xt.left,right:Xt.left+Vl(l.display),top:Xt.top,bottom:Xt.bottom}:ot=Pu}for(var Wt=ot.top-C.rect.top,Dn=ot.bottom-C.rect.top,Bn=(Wt+Dn)/2,Kn=C.view.measure.heights,cr=0;cr<Kn.length-1&&!(Bn<Kn[cr]);cr++);var Hr=cr?Kn[cr-1]:0,Er=Kn[cr],Kr={left:($e=="right"?ot.right:ot.left)-C.rect.left,right:($e=="left"?ot.left:ot.right)-C.rect.left,top:Hr,bottom:Er};return!ot.left&&!ot.right&&(Kr.bogus=!0),l.options.singleCursorHeightPerLine||(Kr.rtop=Wt,Kr.rbottom=Dn),Kr}function Uc(l,C){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Xn(l))return C;var K=screen.logicalXDPI/screen.deviceXDPI,W=screen.logicalYDPI/screen.deviceYDPI;return{left:C.left*K,right:C.right*K,top:C.top*W,bottom:C.bottom*W}}function yc(l){if(l.measure&&(l.measure.cache={},l.measure.heights=null,l.rest))for(var C=0;C<l.rest.length;C++)l.measure.caches[C]={}}function Bu(l){l.display.externalMeasure=null,P(l.display.lineMeasure);for(var C=0;C<l.display.view.length;C++)yc(l.display.view[C])}function kl(l){Bu(l),l.display.cachedCharWidth=l.display.cachedTextHeight=l.display.cachedPaddingH=null,l.options.lineWrapping||(l.display.maxLineChanged=!0),l.display.lineNumChars=null}function Vs(){return y&&x?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Ks(){return y&&x?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function ws(l){var C=0;if(l.widgets)for(var K=0;K<l.widgets.length;++K)l.widgets[K].above&&(C+=Jo(l.widgets[K]));return C}function js(l,C,K,W,q){if(!q){var xe=ws(C);K.top+=xe,K.bottom+=xe}if(W=="line")return K;W||(W="local");var je=fr(C);if(W=="local"?je+=ks(l.display):je-=l.display.viewOffset,W=="page"||W=="window"){var Ze=l.display.lineSpace.getBoundingClientRect();je+=Ze.top+(W=="window"?0:Ks());var $e=Ze.left+(W=="window"?0:Vs());K.left+=$e,K.right+=$e}return K.top+=je,K.bottom+=je,K}function ju(l,C,K){if(K=="div")return C;var W=C.left,q=C.top;if(K=="page")W-=Vs(),q-=Ks();else if(K=="local"||!K){var xe=l.display.sizer.getBoundingClientRect();W+=xe.left,q+=xe.top}var je=l.display.lineSpace.getBoundingClientRect();return{left:W-je.left,top:q-je.top}}function ba(l,C,K,W,q){return W||(W=Jn(l.doc,C.line)),js(l,W,Js(l,W,C.ch,q),K)}function os(l,C,K,W,q,xe){W=W||Jn(l.doc,C.line),q||(q=Da(l,W));function je(Dn,Bn){var Kn=nl(l,q,Dn,Bn?"right":"left",xe);return Bn?Kn.left=Kn.right:Kn.right=Kn.left,js(l,W,Kn,K)}var Ze=_t(W,l.doc.direction),$e=C.ch,ot=C.sticky;if($e>=W.text.length?($e=W.text.length,ot="before"):$e<=0&&($e=0,ot="after"),!Ze)return je(ot=="before"?$e-1:$e,ot=="before");function Ot(Dn,Bn,Kn){var cr=Ze[Bn],Hr=cr.level==1;return je(Kn?Dn-1:Dn,Hr!=Kn)}var gt=ct(Ze,$e,ot),Xt=yt,Wt=Ot($e,gt,ot=="before");return Xt!=null&&(Wt.other=Ot($e,Xt,ot!="before")),Wt}function Uu(l,C){var K=0;C=Fr(l.doc,C),l.options.lineWrapping||(K=Vl(l.display)*C.ch);var W=Jn(l.doc,C.line),q=fr(W)+ks(l.display);return{left:K,right:K,top:q,bottom:q+W.height}}function dl(l,C,K,W,q){var xe=bn(l,C,K);return xe.xRel=q,W&&(xe.outside=W),xe}function Wl(l,C,K){var W=l.doc;if(K+=l.display.viewOffset,K<0)return dl(W.first,0,null,-1,-1);var q=Yn(W,K),xe=W.first+W.size-1;if(q>xe)return dl(W.first+W.size-1,Jn(W,xe).text.length,null,1,1);C<0&&(C=0);for(var je=Jn(W,q);;){var Ze=un(l,je,q,C,K),$e=Ri(je,Ze.ch+(Ze.xRel>0||Ze.outside>0?1:0));if(!$e)return Ze;var ot=$e.find(1);if(ot.line==q)return ot;je=Jn(W,q=ot.line)}}function dr(l,C,K,W){W-=ws(C);var q=C.text.length,xe=ze(function(je){return nl(l,K,je-1).bottom<=W},q,0);return q=ze(function(je){return nl(l,K,je).top>W},xe,q),{begin:xe,end:q}}function nc(l,C,K,W){K||(K=Da(l,C));var q=js(l,C,nl(l,K,W),"line").top;return dr(l,C,K,q)}function vt(l,C,K,W){return l.bottom<=K?!1:l.top>K?!0:(W?l.left:l.right)>C}function un(l,C,K,W,q){q-=fr(C);var xe=Da(l,C),je=ws(C),Ze=0,$e=C.text.length,ot=!0,Ot=_t(C,l.doc.direction);if(Ot){var gt=(l.options.lineWrapping?Sc:bc)(l,C,K,xe,Ot,W,q);ot=gt.level!=1,Ze=ot?gt.from:gt.to-1,$e=ot?gt.to:gt.from-1}var Xt=null,Wt=null,Dn=ze(function(Ti){var br=nl(l,xe,Ti);return br.top+=je,br.bottom+=je,vt(br,W,q,!1)?(br.top<=q&&br.left<=W&&(Xt=Ti,Wt=br),!0):!1},Ze,$e),Bn,Kn,cr=!1;if(Wt){var Hr=W-Wt.left<Wt.right-W,Er=Hr==ot;Dn=Xt+(Er?0:1),Kn=Er?"after":"before",Bn=Hr?Wt.left:Wt.right}else{!ot&&(Dn==$e||Dn==Ze)&&Dn++,Kn=Dn==0?"after":Dn==C.text.length?"before":nl(l,xe,Dn-(ot?1:0)).bottom+je<=q==ot?"after":"before";var Kr=os(l,bn(K,Dn,Kn),"line",C,xe);Bn=Kr.left,cr=q<Kr.top?-1:q>=Kr.bottom?1:0}return Dn=Ne(C.text,Dn,1),dl(K,Dn,Kn,cr,W-Bn)}function bc(l,C,K,W,q,xe,je){var Ze=ze(function(gt){var Xt=q[gt],Wt=Xt.level!=1;return vt(os(l,bn(K,Wt?Xt.to:Xt.from,Wt?"before":"after"),"line",C,W),xe,je,!0)},0,q.length-1),$e=q[Ze];if(Ze>0){var ot=$e.level!=1,Ot=os(l,bn(K,ot?$e.from:$e.to,ot?"after":"before"),"line",C,W);vt(Ot,xe,je,!0)&&Ot.top>je&&($e=q[Ze-1])}return $e}function Sc(l,C,K,W,q,xe,je){var Ze=dr(l,C,W,je),$e=Ze.begin,ot=Ze.end;/\s/.test(C.text.charAt(ot-1))&&ot--;for(var Ot=null,gt=null,Xt=0;Xt<q.length;Xt++){var Wt=q[Xt];if(!(Wt.from>=ot||Wt.to<=$e)){var Dn=Wt.level!=1,Bn=nl(l,W,Dn?Math.min(ot,Wt.to)-1:Math.max($e,Wt.from)).right,Kn=Bn<xe?xe-Bn+1e9:Bn-xe;(!Ot||gt>Kn)&&(Ot=Wt,gt=Kn)}}return Ot||(Ot=q[q.length-1]),Ot.from<$e&&(Ot={from:$e,to:Ot.to,level:Ot.level}),Ot.to>ot&&(Ot={from:Ot.from,to:ot,level:Ot.level}),Ot}var Nl;function Ga(l){if(l.cachedTextHeight!=null)return l.cachedTextHeight;if(Nl==null){Nl=G("pre",null,"CodeMirror-line-like");for(var C=0;C<49;++C)Nl.appendChild(document.createTextNode("x")),Nl.appendChild(G("br"));Nl.appendChild(document.createTextNode("x"))}V(l.measure,Nl);var K=Nl.offsetHeight/50;return K>3&&(l.cachedTextHeight=K),P(l.measure),K||1}function Vl(l){if(l.cachedCharWidth!=null)return l.cachedCharWidth;var C=G("span","xxxxxxxxxx"),K=G("pre",[C],"CodeMirror-line-like");V(l.measure,K);var W=C.getBoundingClientRect(),q=(W.right-W.left)/10;return q>2&&(l.cachedCharWidth=q),q||10}function Rl(l){for(var C=l.display,K={},W={},q=C.gutters.clientLeft,xe=C.gutters.firstChild,je=0;xe;xe=xe.nextSibling,++je){var Ze=l.display.gutterSpecs[je].className;K[Ze]=xe.offsetLeft+xe.clientLeft+q,W[Ze]=xe.clientWidth}return{fixedPos:pl(C),gutterTotalWidth:C.gutters.offsetWidth,gutterLeft:K,gutterWidth:W,wrapperWidth:C.wrapper.clientWidth}}function pl(l){return l.scroller.getBoundingClientRect().left-l.sizer.getBoundingClientRect().left}function jo(l){var C=Ga(l.display),K=l.options.lineWrapping,W=K&&Math.max(5,l.display.scroller.clientWidth/Vl(l.display)-3);return function(q){if(Yt(l.doc,q))return 0;var xe=0;if(q.widgets)for(var je=0;je<q.widgets.length;je++)q.widgets[je].height&&(xe+=q.widgets[je].height);return K?xe+(Math.ceil(q.text.length/W)||1)*C:xe+C}}function zr(l){var C=l.doc,K=jo(l);C.iter(function(W){var q=K(W);q!=W.height&&mi(W,q)})}function Ys(l,C,K,W){var q=l.display;if(!K&&sn(C).getAttribute("cm-not-content")=="true")return null;var xe,je,Ze=q.lineSpace.getBoundingClientRect();try{xe=C.clientX-Ze.left,je=C.clientY-Ze.top}catch(gt){return null}var $e=Wl(l,xe,je),ot;if(W&&$e.xRel>0&&(ot=Jn(l.doc,$e.line).text).length==$e.ch){var Ot=ee(ot,ot.length,l.options.tabSize)-ot.length;$e=bn($e.line,Math.max(0,Math.round((xe-tl(l.display).left)/Vl(l.display))-Ot))}return $e}function Sa(l,C){if(C>=l.display.viewTo||(C-=l.display.viewFrom,C<0))return null;for(var K=l.display.view,W=0;W<K.length;W++)if(C-=K[W].size,C<0)return W}function Io(l,C,K,W){C==null&&(C=l.doc.first),K==null&&(K=l.doc.first+l.doc.size),W||(W=0);var q=l.display;if(W&&K<q.viewTo&&(q.updateLineNumbers==null||q.updateLineNumbers>C)&&(q.updateLineNumbers=C),l.curOp.viewChanged=!0,C>=q.viewTo)tn&&Nr(l.doc,C)<q.viewTo&&ds(l);else if(K<=q.viewFrom)tn&&$r(l.doc,K+W)>q.viewFrom?ds(l):(q.viewFrom+=W,q.viewTo+=W);else if(C<=q.viewFrom&&K>=q.viewTo)ds(l);else if(C<=q.viewFrom){var xe=na(l,K,K+W,1);xe?(q.view=q.view.slice(xe.index),q.viewFrom=xe.lineN,q.viewTo+=W):ds(l)}else if(K>=q.viewTo){var je=na(l,C,C,-1);je?(q.view=q.view.slice(0,je.index),q.viewTo=je.lineN):ds(l)}else{var Ze=na(l,C,C,-1),$e=na(l,K,K+W,1);Ze&&$e?(q.view=q.view.slice(0,Ze.index).concat(fi(l,Ze.lineN,$e.lineN)).concat(q.view.slice($e.index)),q.viewTo+=W):ds(l)}var ot=q.externalMeasured;ot&&(K<ot.lineN?ot.lineN+=W:C<ot.lineN+ot.size&&(q.externalMeasured=null))}function Ci(l,C,K){l.curOp.viewChanged=!0;var W=l.display,q=l.display.externalMeasured;if(q&&C>=q.lineN&&C<q.lineN+q.size&&(W.externalMeasured=null),!(C<W.viewFrom||C>=W.viewTo)){var xe=W.view[Sa(l,C)];if(xe.node!=null){var je=xe.changes||(xe.changes=[]);le(je,K)==-1&&je.push(K)}}}function ds(l){l.display.viewFrom=l.display.viewTo=l.doc.first,l.display.view=[],l.display.viewOffset=0}function na(l,C,K,W){var q=Sa(l,C),xe,je=l.display.view;if(!tn||K==l.doc.first+l.doc.size)return{index:q,lineN:K};for(var Ze=l.display.viewFrom,$e=0;$e<q;$e++)Ze+=je[$e].size;if(Ze!=C){if(W>0){if(q==je.length-1)return null;xe=Ze+je[q].size-C,q++}else xe=Ze-C;C+=xe,K+=xe}for(;Nr(l.doc,K)!=K;){if(q==(W<0?0:je.length-1))return null;K+=W*je[q-(W<0?1:0)].size,q+=W}return{index:q,lineN:K}}function Oo(l,C,K){var W=l.display,q=W.view;q.length==0||C>=W.viewTo||K<=W.viewFrom?(W.view=fi(l,C,K),W.viewFrom=C):(W.viewFrom>C?W.view=fi(l,C,W.viewFrom).concat(W.view):W.viewFrom<C&&(W.view=W.view.slice(Sa(l,C))),W.viewFrom=C,W.viewTo<K?W.view=W.view.concat(fi(l,W.viewTo,K)):W.viewTo>K&&(W.view=W.view.slice(0,Sa(l,K)))),W.viewTo=K}function ca(l){for(var C=l.display.view,K=0,W=0;W<C.length;W++){var q=C[W];!q.hidden&&(!q.node||q.changes)&&++K}return K}function Ds(l){l.display.input.showSelection(l.display.input.prepareSelection())}function gl(l,C){C===void 0&&(C=!0);for(var K=l.doc,W={},q=W.cursors=document.createDocumentFragment(),xe=W.selection=document.createDocumentFragment(),je=0;je<K.sel.ranges.length;je++)if(!(!C&&je==K.sel.primIndex)){var Ze=K.sel.ranges[je];if(!(Ze.from().line>=l.display.viewTo||Ze.to().line<l.display.viewFrom)){var $e=Ze.empty();($e||l.options.showCursorWhenSelecting)&&Qi(l,Ze.head,q),$e||Fi(l,Ze,xe)}}return W}function Qi(l,C,K){var W=os(l,C,"div",null,null,!l.options.singleCursorHeightPerLine),q=K.appendChild(G("div","\xA0","CodeMirror-cursor"));if(q.style.left=W.left+"px",q.style.top=W.top+"px",q.style.height=Math.max(0,W.bottom-W.top)*l.options.cursorHeight+"px",W.other){var xe=K.appendChild(G("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));xe.style.display="",xe.style.left=W.other.left+"px",xe.style.top=W.other.top+"px",xe.style.height=(W.other.bottom-W.other.top)*.85+"px"}}function Gs(l,C){return l.top-C.top||l.left-C.left}function Fi(l,C,K){var W=l.display,q=l.doc,xe=document.createDocumentFragment(),je=tl(l.display),Ze=je.left,$e=Math.max(W.sizerWidth,Bo(l)-W.sizer.offsetLeft)-je.right,ot=q.direction=="ltr";function Ot(Er,Kr,Ti,br){Kr<0&&(Kr=0),Kr=Math.round(Kr),br=Math.round(br),xe.appendChild(G("div",null,"CodeMirror-selected","position: absolute; left: "+Er+`px;
top: `+Kr+"px; width: "+(Ti==null?$e-Er:Ti)+`px;
height: `+(br-Kr)+"px"))}function gt(Er,Kr,Ti){var br=Jn(q,Er),to=br.text.length,Ts,ga;function Ps(aa,Dl){return ba(l,bn(Er,aa),"div",br,Dl)}function xl(aa,Dl,Fa){var la=nc(l,br,null,aa),Ho=Dl=="ltr"==(Fa=="after")?"left":"right",Us=Fa=="after"?la.begin:la.end-(/\s/.test(br.text.charAt(la.end-1))?2:1);return Ps(Us,Ho)[Ho]}var Xa=_t(br,q.direction);return Ve(Xa,Kr||0,Ti==null?to:Ti,function(aa,Dl,Fa,la){var Ho=Fa=="ltr",Us=Ps(aa,Ho?"left":"right"),wa=Ps(Dl-1,Ho?"right":"left"),Ba=Kr==null&&aa==0,_u=Ti==null&&Dl==to,Fs=la==0,du=!Xa||la==Xa.length-1;if(wa.top-Us.top<=3){var Ws=(ot?Ba:_u)&&Fs,Mf=(ot?_u:Ba)&&du,Jl=Ws?Ze:(Ho?Us:wa).left,Pl=Mf?$e:(Ho?wa:Us).right;Ot(Jl,Us.top,Pl-Jl,Us.bottom)}else{var El,gs,Ca,ic;Ho?(El=ot&&Ba&&Fs?Ze:Us.left,gs=ot?$e:xl(aa,Fa,"before"),Ca=ot?Ze:xl(Dl,Fa,"after"),ic=ot&&_u&&du?$e:wa.right):(El=ot?xl(aa,Fa,"before"):Ze,gs=!ot&&Ba&&Fs?$e:Us.right,Ca=!ot&&_u&&du?Ze:wa.left,ic=ot?xl(Dl,Fa,"after"):$e),Ot(El,Us.top,gs-El,Us.bottom),Us.bottom<wa.top&&Ot(Ze,Us.bottom,null,wa.top),Ot(Ca,wa.top,ic-Ca,wa.bottom)}(!Ts||Gs(Us,Ts)<0)&&(Ts=Us),Gs(wa,Ts)<0&&(Ts=wa),(!ga||Gs(Us,ga)<0)&&(ga=Us),Gs(wa,ga)<0&&(ga=wa)}),{start:Ts,end:ga}}var Xt=C.from(),Wt=C.to();if(Xt.line==Wt.line)gt(Xt.line,Xt.ch,Wt.ch);else{var Dn=Jn(q,Xt.line),Bn=Jn(q,Wt.line),Kn=wr(Dn)==wr(Bn),cr=gt(Xt.line,Xt.ch,Kn?Dn.text.length+1:null).end,Hr=gt(Wt.line,Kn?0:null,Wt.ch).start;Kn&&(cr.top<Hr.top-2?(Ot(cr.right,cr.top,null,cr.bottom),Ot(Ze,Hr.top,Hr.left,Hr.bottom)):Ot(cr.right,cr.top,Hr.left-cr.right,cr.bottom)),cr.bottom<Hr.top&&Ot(Ze,cr.bottom,null,Hr.top)}K.appendChild(xe)}function xo(l){if(l.state.focused){var C=l.display;clearInterval(C.blinker);var K=!0;C.cursorDiv.style.visibility="",l.options.cursorBlinkRate>0?C.blinker=setInterval(function(){l.hasFocus()||au(l),C.cursorDiv.style.visibility=(K=!K)?"":"hidden"},l.options.cursorBlinkRate):l.options.cursorBlinkRate<0&&(C.cursorDiv.style.visibility="hidden")}}function Lo(l){l.state.focused||(l.display.input.focus(),ro(l))}function Go(l){l.state.delayingBlurEvent=!0,setTimeout(function(){l.state.delayingBlurEvent&&(l.state.delayingBlurEvent=!1,au(l))},100)}function ro(l,C){l.state.delayingBlurEvent&&(l.state.delayingBlurEvent=!1),l.options.readOnly!="nocursor"&&(l.state.focused||(st(l,"focus",l,C),l.state.focused=!0,he(l.display.wrapper,"CodeMirror-focused"),!l.curOp&&l.display.selForContextMenu!=l.doc.sel&&(l.display.input.reset(),d&&setTimeout(function(){return l.display.input.reset(!0)},20)),l.display.input.receivedFocus()),xo(l))}function au(l,C){l.state.delayingBlurEvent||(l.state.focused&&(st(l,"blur",l,C),l.state.focused=!1,H(l.display.wrapper,"CodeMirror-focused")),clearInterval(l.display.blinker),setTimeout(function(){l.state.focused||(l.display.shift=!1)},150))}function xr(l){for(var C=l.display,K=C.lineDiv.offsetTop,W=0;W<C.view.length;W++){var q=C.view[W],xe=l.options.lineWrapping,je=void 0,Ze=0;if(!q.hidden){if(I&&u<8){var $e=q.node.offsetTop+q.node.offsetHeight;je=$e-K,K=$e}else{var ot=q.node.getBoundingClientRect();je=ot.bottom-ot.top,!xe&&q.text.firstChild&&(Ze=q.text.firstChild.getBoundingClientRect().right-ot.left-1)}var Ot=q.line.height-je;if((Ot>.005||Ot<-.005)&&(mi(q.line,je),Hc(q.line),q.rest))for(var gt=0;gt<q.rest.length;gt++)Hc(q.rest[gt]);if(Ze>l.display.sizerWidth){var Xt=Math.ceil(Ze/Vl(l.display));Xt>l.display.maxLineLength&&(l.display.maxLineLength=Xt,l.display.maxLine=q.line,l.display.maxLineChanged=!0)}}}}function Hc(l){if(l.widgets)for(var C=0;C<l.widgets.length;++C){var K=l.widgets[C],W=K.node.parentNode;W&&(K.height=W.offsetHeight)}}function Wi(l,C,K){var W=K&&K.top!=null?Math.max(0,K.top):l.scroller.scrollTop;W=Math.floor(W-ks(l));var q=K&&K.bottom!=null?K.bottom:W+l.wrapper.clientHeight,xe=Yn(C,W),je=Yn(C,q);if(K&&K.ensure){var Ze=K.ensure.from.line,$e=K.ensure.to.line;Ze<xe?(xe=Ze,je=Yn(C,fr(Jn(C,Ze))+l.wrapper.clientHeight)):Math.min($e,C.lastLine())>=je&&(xe=Yn(C,fr(Jn(C,$e))-l.wrapper.clientHeight),je=$e)}return{from:xe,to:Math.max(je,xe+1)}}function zc(l,C){if(!ge(l,"scrollCursorIntoView")){var K=l.display,W=K.sizer.getBoundingClientRect(),q=null;if(C.top+W.top<0?q=!0:C.bottom+W.top>(window.innerHeight||document.documentElement.clientHeight)&&(q=!1),q!=null&&!h){var xe=G("div","\u200B",null,`position: absolute;
top: `+(C.top-K.viewOffset-ks(l.display))+`px;
height: `+(C.bottom-C.top+rs(l)+K.barHeight)+`px;
left: `+C.left+"px; width: "+Math.max(2,C.right-C.left)+"px;");l.display.lineSpace.appendChild(xe),xe.scrollIntoView(q),l.display.lineSpace.removeChild(xe)}}}function lu(l,C,K,W){W==null&&(W=0);var q;!l.options.lineWrapping&&C==K&&(C=C.ch?bn(C.line,C.sticky=="before"?C.ch-1:C.ch,"after"):C,K=C.sticky=="before"?bn(C.line,C.ch+1,"before"):C);for(var xe=0;xe<5;xe++){var je=!1,Ze=os(l,C),$e=!K||K==C?Ze:os(l,K);q={left:Math.min(Ze.left,$e.left),top:Math.min(Ze.top,$e.top)-W,right:Math.max(Ze.left,$e.left),bottom:Math.max(Ze.bottom,$e.bottom)+W};var ot=xc(l,q),Ot=l.doc.scrollTop,gt=l.doc.scrollLeft;if(ot.scrollTop!=null&&(at(l,ot.scrollTop),Math.abs(l.doc.scrollTop-Ot)>1&&(je=!0)),ot.scrollLeft!=null&&(mt(l,ot.scrollLeft),Math.abs(l.doc.scrollLeft-gt)>1&&(je=!0)),!je)break}return q}function Hu(l,C){var K=xc(l,C);K.scrollTop!=null&&at(l,K.scrollTop),K.scrollLeft!=null&&mt(l,K.scrollLeft)}function xc(l,C){var K=l.display,W=Ga(l.display);C.top<0&&(C.top=0);var q=l.curOp&&l.curOp.scrollTop!=null?l.curOp.scrollTop:K.scroller.scrollTop,xe=ou(l),je={};C.bottom-C.top>xe&&(C.bottom=C.top+xe);var Ze=l.doc.height+Ma(K),$e=C.top<W,ot=C.bottom>Ze-W;if(C.top<q)je.scrollTop=$e?0:C.top;else if(C.bottom>q+xe){var Ot=Math.min(C.top,(ot?Ze:C.bottom)-xe);Ot!=q&&(je.scrollTop=Ot)}var gt=l.options.fixedGutter?0:K.gutters.offsetWidth,Xt=l.curOp&&l.curOp.scrollLeft!=null?l.curOp.scrollLeft:K.scroller.scrollLeft-gt,Wt=Bo(l)-K.gutters.offsetWidth,Dn=C.right-C.left>Wt;return Dn&&(C.right=C.left+Wt),C.left<10?je.scrollLeft=0:C.left<Xt?je.scrollLeft=Math.max(0,C.left+gt-(Dn?0:10)):C.right>Wt+Xt-3&&(je.scrollLeft=C.right+(Dn?0:10)-Wt),je}function Il(l,C){C!=null&&(Yl(l),l.curOp.scrollTop=(l.curOp.scrollTop==null?l.doc.scrollTop:l.curOp.scrollTop)+C)}function ml(l){Yl(l);var C=l.getCursor();l.curOp.scrollToPos={from:C,to:C,margin:l.options.cursorScrollMargin}}function Kl(l,C,K){(C!=null||K!=null)&&Yl(l),C!=null&&(l.curOp.scrollLeft=C),K!=null&&(l.curOp.scrollTop=K)}function io(l,C){Yl(l),l.curOp.scrollToPos=C}function Yl(l){var C=l.curOp.scrollToPos;if(C){l.curOp.scrollToPos=null;var K=Uu(l,C.from),W=Uu(l,C.to);Ke(l,K,W,C.margin)}}function Ke(l,C,K,W){var q=xc(l,{left:Math.min(C.left,K.left),top:Math.min(C.top,K.top)-W,right:Math.max(C.right,K.right),bottom:Math.max(C.bottom,K.bottom)+W});Kl(l,q.scrollLeft,q.scrollTop)}function at(l,C){Math.abs(l.doc.scrollTop-C)<2||(B||Qe(l,{top:C}),pt(l,C,!0),B&&Qe(l),wi(l,100))}function pt(l,C,K){C=Math.max(0,Math.min(l.display.scroller.scrollHeight-l.display.scroller.clientHeight,C)),!(l.display.scroller.scrollTop==C&&!K)&&(l.doc.scrollTop=C,l.display.scrollbars.setScrollTop(C),l.display.scroller.scrollTop!=C&&(l.display.scroller.scrollTop=C))}function mt(l,C,K,W){C=Math.max(0,Math.min(C,l.display.scroller.scrollWidth-l.display.scroller.clientWidth)),!((K?C==l.doc.scrollLeft:Math.abs(l.doc.scrollLeft-C)<2)&&!W)&&(l.doc.scrollLeft=C,Bt(l),l.display.scroller.scrollLeft!=C&&(l.display.scroller.scrollLeft=C),l.display.scrollbars.setScrollLeft(C))}function kt(l){var C=l.display,K=C.gutters.offsetWidth,W=Math.round(l.doc.height+Ma(l.display));return{clientHeight:C.scroller.clientHeight,viewHeight:C.wrapper.clientHeight,scrollWidth:C.scroller.scrollWidth,clientWidth:C.scroller.clientWidth,viewWidth:C.wrapper.clientWidth,barLeft:l.options.fixedGutter?K:0,docHeight:W,scrollHeight:W+rs(l)+C.barHeight,nativeBarWidth:C.nativeBarWidth,gutterWidth:K}}var Pt=function(l,C,K){this.cm=K;var W=this.vert=G("div",[G("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),q=this.horiz=G("div",[G("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");W.tabIndex=q.tabIndex=-1,l(W),l(q),ht(W,"scroll",function(){W.clientHeight&&C(W.scrollTop,"vertical")}),ht(q,"scroll",function(){q.clientWidth&&C(q.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,I&&u<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Pt.prototype.update=function(l){var C=l.scrollWidth>l.clientWidth+1,K=l.scrollHeight>l.clientHeight+1,W=l.nativeBarWidth;if(K){this.vert.style.display="block",this.vert.style.bottom=C?W+"px":"0";var q=l.viewHeight-(C?W:0);this.vert.firstChild.style.height=Math.max(0,l.scrollHeight-l.clientHeight+q)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(C){this.horiz.style.display="block",this.horiz.style.right=K?W+"px":"0",this.horiz.style.left=l.barLeft+"px";var xe=l.viewWidth-l.barLeft-(K?W:0);this.horiz.firstChild.style.width=Math.max(0,l.scrollWidth-l.clientWidth+xe)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&l.clientHeight>0&&(W==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:K?W:0,bottom:C?W:0}},Pt.prototype.setScrollLeft=function(l){this.horiz.scrollLeft!=l&&(this.horiz.scrollLeft=l),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Pt.prototype.setScrollTop=function(l){this.vert.scrollTop!=l&&(this.vert.scrollTop=l),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Pt.prototype.zeroWidthHack=function(){var l=_&&!c?"12px":"18px";this.horiz.style.height=this.vert.style.width=l,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new se,this.disableVert=new se},Pt.prototype.enableZeroWidthBar=function(l,C,K){l.style.pointerEvents="auto";function W(){var q=l.getBoundingClientRect(),xe=K=="vert"?document.elementFromPoint(q.right-1,(q.top+q.bottom)/2):document.elementFromPoint((q.right+q.left)/2,q.bottom-1);xe!=l?l.style.pointerEvents="none":C.set(1e3,W)}C.set(1e3,W)},Pt.prototype.clear=function(){var l=this.horiz.parentNode;l.removeChild(this.horiz),l.removeChild(this.vert)};var Ht=function(){};Ht.prototype.update=function(){return{bottom:0,right:0}},Ht.prototype.setScrollLeft=function(){},Ht.prototype.setScrollTop=function(){},Ht.prototype.clear=function(){};function Qt(l,C){C||(C=kt(l));var K=l.display.barWidth,W=l.display.barHeight;xn(l,C);for(var q=0;q<4&&K!=l.display.barWidth||W!=l.display.barHeight;q++)K!=l.display.barWidth&&l.options.lineWrapping&&xr(l),xn(l,kt(l)),K=l.display.barWidth,W=l.display.barHeight}function xn(l,C){var K=l.display,W=K.scrollbars.update(C);K.sizer.style.paddingRight=(K.barWidth=W.right)+"px",K.sizer.style.paddingBottom=(K.barHeight=W.bottom)+"px",K.heightForcer.style.borderBottom=W.bottom+"px solid transparent",W.right&&W.bottom?(K.scrollbarFiller.style.display="block",K.scrollbarFiller.style.height=W.bottom+"px",K.scrollbarFiller.style.width=W.right+"px"):K.scrollbarFiller.style.display="",W.bottom&&l.options.coverGutterNextToScrollbar&&l.options.fixedGutter?(K.gutterFiller.style.display="block",K.gutterFiller.style.height=W.bottom+"px",K.gutterFiller.style.width=C.gutterWidth+"px"):K.gutterFiller.style.display=""}var dn={native:Pt,null:Ht};function Ln(l){l.display.scrollbars&&(l.display.scrollbars.clear(),l.display.scrollbars.addClass&&H(l.display.wrapper,l.display.scrollbars.addClass)),l.display.scrollbars=new dn[l.options.scrollbarStyle](function(C){l.display.wrapper.insertBefore(C,l.display.scrollbarFiller),ht(C,"mousedown",function(){l.state.focused&&setTimeout(function(){return l.display.input.focus()},0)}),C.setAttribute("cm-not-content","true")},function(C,K){K=="horizontal"?mt(l,C):at(l,C)},l),l.display.scrollbars.addClass&&he(l.display.wrapper,l.display.scrollbars.addClass)}var yn=0;function An(l){l.curOp={cm:l,viewChanged:!1,startHeight:l.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:++yn},Rr(l.curOp)}function Cn(l){var C=l.curOp;C&&ui(C,function(K){for(var W=0;W<K.ops.length;W++)K.ops[W].cm.curOp=null;jn(K)})}function jn(l){for(var C=l.ops,K=0;K<C.length;K++)qn(C[K]);for(var W=0;W<C.length;W++)mr(C[W]);for(var q=0;q<C.length;q++)Or(C[q]);for(var xe=0;xe<C.length;xe++)Hn(C[xe]);for(var je=0;je<C.length;je++)ur(C[je])}function qn(l){var C=l.cm,K=C.display;te(C),l.updateMaxLine&&Pi(C),l.mustUpdate=l.viewChanged||l.forceUpdate||l.scrollTop!=null||l.scrollToPos&&(l.scrollToPos.from.line<K.viewFrom||l.scrollToPos.to.line>=K.viewTo)||K.maxLineChanged&&C.options.lineWrapping,l.update=l.mustUpdate&&new Bi(C,l.mustUpdate&&{top:l.scrollTop,ensure:l.scrollToPos},l.forceUpdate)}function mr(l){l.updatedDisplay=l.mustUpdate&&Pe(l.cm,l.update)}function Or(l){var C=l.cm,K=C.display;l.updatedDisplay&&xr(C),l.barMeasure=kt(C),K.maxLineChanged&&!C.options.lineWrapping&&(l.adjustWidthTo=Js(C,K.maxLine,K.maxLine.text.length).left+3,C.display.sizerWidth=l.adjustWidthTo,l.barMeasure.scrollWidth=Math.max(K.scroller.clientWidth,K.sizer.offsetLeft+l.adjustWidthTo+rs(C)+C.display.barWidth),l.maxScrollLeft=Math.max(0,K.sizer.offsetLeft+l.adjustWidthTo-Bo(C))),(l.updatedDisplay||l.selectionChanged)&&(l.preparedSelection=K.input.prepareSelection())}function Hn(l){var C=l.cm;l.adjustWidthTo!=null&&(C.display.sizer.style.minWidth=l.adjustWidthTo+"px",l.maxScrollLeft<C.doc.scrollLeft&&mt(C,Math.min(C.display.scroller.scrollLeft,l.maxScrollLeft),!0),C.display.maxLineChanged=!1);var K=l.focus&&l.focus==ae();l.preparedSelection&&C.display.input.showSelection(l.preparedSelection,K),(l.updatedDisplay||l.startHeight!=C.doc.height)&&Qt(C,l.barMeasure),l.updatedDisplay&&Ft(C,l.barMeasure),l.selectionChanged&&xo(C),C.state.focused&&l.updateInput&&C.display.input.reset(l.typing),K&&Lo(l.cm)}function ur(l){var C=l.cm,K=C.display,W=C.doc;if(l.updatedDisplay&&Ye(C,l.update),K.wheelStartX!=null&&(l.scrollTop!=null||l.scrollLeft!=null||l.scrollToPos)&&(K.wheelStartX=K.wheelStartY=null),l.scrollTop!=null&&pt(C,l.scrollTop,l.forceScroll),l.scrollLeft!=null&&mt(C,l.scrollLeft,!0,!0),l.scrollToPos){var q=lu(C,Fr(W,l.scrollToPos.from),Fr(W,l.scrollToPos.to),l.scrollToPos.margin);zc(C,q)}var xe=l.maybeHiddenMarkers,je=l.maybeUnhiddenMarkers;if(xe)for(var Ze=0;Ze<xe.length;++Ze)xe[Ze].lines.length||st(xe[Ze],"hide");if(je)for(var $e=0;$e<je.length;++$e)je[$e].lines.length&&st(je[$e],"unhide");K.wrapper.offsetHeight&&(W.scrollTop=C.display.scroller.scrollTop),l.changeObjs&&st(C,"changes",C,l.changeObjs),l.update&&l.update.finish()}function Qn(l,C){if(l.curOp)return C();An(l);try{return C()}finally{Cn(l)}}function _r(l,C){return function(){if(l.curOp)return C.apply(l,arguments);An(l);try{return C.apply(l,arguments)}finally{Cn(l)}}}function Xr(l){return function(){if(this.curOp)return l.apply(this,arguments);An(this);try{return l.apply(this,arguments)}finally{Cn(this)}}}function Cr(l){return function(){var C=this.cm;if(!C||C.curOp)return l.apply(this,arguments);An(C);try{return l.apply(this,arguments)}finally{Cn(C)}}}function wi(l,C){l.doc.highlightFrontier<l.display.viewTo&&l.state.highlight.set(C,me(ni,l))}function ni(l){var C=l.doc;if(!(C.highlightFrontier>=l.display.viewTo)){var K=+new Date+l.options.workTime,W=Ro(l,C.highlightFrontier),q=[];C.iter(W.line,Math.min(C.first+C.size,l.display.viewTo+500),function(xe){if(W.line>=l.display.viewFrom){var je=xe.styles,Ze=xe.text.length>l.options.maxHighlightLength?Vr(C.mode,W.state):null,$e=ys(l,xe,W,!0);Ze&&(W.state=Ze),xe.styles=$e.styles;var ot=xe.styleClasses,Ot=$e.classes;Ot?xe.styleClasses=Ot:ot&&(xe.styleClasses=null);for(var gt=!je||je.length!=xe.styles.length||ot!=Ot&&(!ot||!Ot||ot.bgClass!=Ot.bgClass||ot.textClass!=Ot.textClass),Xt=0;!gt&&Xt<je.length;++Xt)gt=je[Xt]!=xe.styles[Xt];gt&&q.push(W.line),xe.stateAfter=W.save(),W.nextLine()}else xe.text.length<=l.options.maxHighlightLength&&hn(l,xe.text,W),xe.stateAfter=W.line%5==0?W.save():null,W.nextLine();if(+new Date>K)return wi(l,l.options.workDelay),!0}),C.highlightFrontier=W.line,C.modeFrontier=Math.max(C.modeFrontier,W.line),q.length&&Qn(l,function(){for(var xe=0;xe<q.length;xe++)Ci(l,q[xe],"text")})}}var Bi=function(l,C,K){var W=l.display;this.viewport=C,this.visible=Wi(W,l.doc,C),this.editorIsHidden=!W.wrapper.offsetWidth,this.wrapperHeight=W.wrapper.clientHeight,this.wrapperWidth=W.wrapper.clientWidth,this.oldDisplayWidth=Bo(l),this.force=K,this.dims=Rl(l),this.events=[]};Bi.prototype.signal=function(l,C){mn(l,C)&&this.events.push(arguments)},Bi.prototype.finish=function(){for(var l=0;l<this.events.length;l++)st.apply(null,this.events[l])};function te(l){var C=l.display;!C.scrollbarsClipped&&C.scroller.offsetWidth&&(C.nativeBarWidth=C.scroller.offsetWidth-C.scroller.clientWidth,C.heightForcer.style.height=rs(l)+"px",C.sizer.style.marginBottom=-C.nativeBarWidth+"px",C.sizer.style.borderRightWidth=rs(l)+"px",C.scrollbarsClipped=!0)}function Ee(l){if(l.hasFocus())return null;var C=ae();if(!C||!ue(l.display.lineDiv,C))return null;var K={activeElt:C};if(window.getSelection){var W=window.getSelection();W.anchorNode&&W.extend&&ue(l.display.lineDiv,W.anchorNode)&&(K.anchorNode=W.anchorNode,K.anchorOffset=W.anchorOffset,K.focusNode=W.focusNode,K.focusOffset=W.focusOffset)}return K}function Ae(l){if(!(!l||!l.activeElt||l.activeElt==ae())&&(l.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(l.activeElt.nodeName)&&l.anchorNode&&ue(document.body,l.anchorNode)&&ue(document.body,l.focusNode))){var C=window.getSelection(),K=document.createRange();K.setEnd(l.anchorNode,l.anchorOffset),K.collapse(!1),C.removeAllRanges(),C.addRange(K),C.extend(l.focusNode,l.focusOffset)}}function Pe(l,C){var K=l.display,W=l.doc;if(C.editorIsHidden)return ds(l),!1;if(!C.force&&C.visible.from>=K.viewFrom&&C.visible.to<=K.viewTo&&(K.updateLineNumbers==null||K.updateLineNumbers>=K.viewTo)&&K.renderedView==K.view&&ca(l)==0)return!1;Rt(l)&&(ds(l),C.dims=Rl(l));var q=W.first+W.size,xe=Math.max(C.visible.from-l.options.viewportMargin,W.first),je=Math.min(q,C.visible.to+l.options.viewportMargin);K.viewFrom<xe&&xe-K.viewFrom<20&&(xe=Math.max(W.first,K.viewFrom)),K.viewTo>je&&K.viewTo-je<20&&(je=Math.min(q,K.viewTo)),tn&&(xe=Nr(l.doc,xe),je=$r(l.doc,je));var Ze=xe!=K.viewFrom||je!=K.viewTo||K.lastWrapHeight!=C.wrapperHeight||K.lastWrapWidth!=C.wrapperWidth;Oo(l,xe,je),K.viewOffset=fr(Jn(l.doc,K.viewFrom)),l.display.mover.style.top=K.viewOffset+"px";var $e=ca(l);if(!Ze&&$e==0&&!C.force&&K.renderedView==K.view&&(K.updateLineNumbers==null||K.updateLineNumbers>=K.viewTo))return!1;var ot=Ee(l);return $e>4&&(K.lineDiv.style.display="none"),nt(l,K.updateLineNumbers,C.dims),$e>4&&(K.lineDiv.style.display=""),K.renderedView=K.view,Ae(ot),P(K.cursorDiv),P(K.selectionDiv),K.gutters.style.height=K.sizer.style.minHeight=0,Ze&&(K.lastWrapHeight=C.wrapperHeight,K.lastWrapWidth=C.wrapperWidth,wi(l,400)),K.updateLineNumbers=null,!0}function Ye(l,C){for(var K=C.viewport,W=!0;;W=!1){if(!W||!l.options.lineWrapping||C.oldDisplayWidth==Bo(l)){if(K&&K.top!=null&&(K={top:Math.min(l.doc.height+Ma(l.display)-ou(l),K.top)}),C.visible=Wi(l.display,l.doc,K),C.visible.from>=l.display.viewFrom&&C.visible.to<=l.display.viewTo)break}else W&&(C.visible=Wi(l.display,l.doc,K));if(!Pe(l,C))break;xr(l);var q=kt(l);Ds(l),Qt(l,q),Ft(l,q),C.force=!1}C.signal(l,"update",l),(l.display.viewFrom!=l.display.reportedViewFrom||l.display.viewTo!=l.display.reportedViewTo)&&(C.signal(l,"viewportChange",l,l.display.viewFrom,l.display.viewTo),l.display.reportedViewFrom=l.display.viewFrom,l.display.reportedViewTo=l.display.viewTo)}function Qe(l,C){var K=new Bi(l,C);if(Pe(l,K)){xr(l),Ye(l,K);var W=kt(l);Ds(l),Qt(l,W),Ft(l,W),K.finish()}}function nt(l,C,K){var W=l.display,q=l.options.lineNumbers,xe=W.lineDiv,je=xe.firstChild;function Ze(Dn){var Bn=Dn.nextSibling;return d&&_&&l.display.currentWheelTarget==Dn?Dn.style.display="none":Dn.parentNode.removeChild(Dn),Bn}for(var $e=W.view,ot=W.viewFrom,Ot=0;Ot<$e.length;Ot++){var gt=$e[Ot];if(!gt.hidden)if(!gt.node||gt.node.parentNode!=xe){var Xt=go(l,gt,ot,K);xe.insertBefore(Xt,je)}else{for(;je!=gt.node;)je=Ze(je);var Wt=q&&C!=null&&C<=ot&&gt.lineNumber;gt.changes&&(le(gt.changes,"gutter")>-1&&(Wt=!1),ao(l,gt,ot,K)),Wt&&(P(gt.lineNumber),gt.lineNumber.appendChild(document.createTextNode(zi(l.options,ot)))),je=gt.node.nextSibling}ot+=gt.size}for(;je;)je=Ze(je)}function bt(l){var C=l.gutters.offsetWidth;l.sizer.style.marginLeft=C+"px"}function Ft(l,C){l.display.sizer.style.minHeight=C.docHeight+"px",l.display.heightForcer.style.top=C.docHeight+"px",l.display.gutters.style.height=C.docHeight+l.display.barHeight+rs(l)+"px"}function Bt(l){var C=l.display,K=C.view;if(!(!C.alignWidgets&&(!C.gutters.firstChild||!l.options.fixedGutter))){for(var W=pl(C)-C.scroller.scrollLeft+l.doc.scrollLeft,q=C.gutters.offsetWidth,xe=W+"px",je=0;je<K.length;je++)if(!K[je].hidden){l.options.fixedGutter&&(K[je].gutter&&(K[je].gutter.style.left=xe),K[je].gutterBackground&&(K[je].gutterBackground.style.left=xe));var Ze=K[je].alignable;if(Ze)for(var $e=0;$e<Ze.length;$e++)Ze[$e].style.left=xe}l.options.fixedGutter&&(C.gutters.style.left=W+q+"px")}}function Rt(l){if(!l.options.lineNumbers)return!1;var C=l.doc,K=zi(l.options,C.first+C.size-1),W=l.display;if(K.length!=W.lineNumChars){var q=W.measure.appendChild(G("div",[G("div",K)],"CodeMirror-linenumber CodeMirror-gutter-elt")),xe=q.firstChild.offsetWidth,je=q.offsetWidth-xe;return W.lineGutter.style.width="",W.lineNumInnerWidth=Math.max(xe,W.lineGutter.offsetWidth-je)+1,W.lineNumWidth=W.lineNumInnerWidth+je,W.lineNumChars=W.lineNumInnerWidth?K.length:-1,W.lineGutter.style.width=W.lineNumWidth+"px",bt(l.display),!0}return!1}function Zt(l,C){for(var K=[],W=!1,q=0;q<l.length;q++){var xe=l[q],je=null;if(typeof xe!="string"&&(je=xe.style,xe=xe.className),xe=="CodeMirror-linenumbers")if(C)W=!0;else continue;K.push({className:xe,style:je})}return C&&!W&&K.push({className:"CodeMirror-linenumbers",style:null}),K}function Jt(l){var C=l.gutters,K=l.gutterSpecs;P(C),l.lineGutter=null;for(var W=0;W<K.length;++W){var q=K[W],xe=q.className,je=q.style,Ze=C.appendChild(G("div",null,"CodeMirror-gutter "+xe));je&&(Ze.style.cssText=je),xe=="CodeMirror-linenumbers"&&(l.lineGutter=Ze,Ze.style.width=(l.lineNumWidth||1)+"px")}C.style.display=K.length?"":"none",bt(l)}function zt(l){Jt(l.display),Io(l),Bt(l)}function k(l,C,K,W){var q=this;this.input=K,q.scrollbarFiller=G("div",null,"CodeMirror-scrollbar-filler"),q.scrollbarFiller.setAttribute("cm-not-content","true"),q.gutterFiller=G("div",null,"CodeMirror-gutter-filler"),q.gutterFiller.setAttribute("cm-not-content","true"),q.lineDiv=Q("div",null,"CodeMirror-code"),q.selectionDiv=G("div",null,null,"position: relative; z-index: 1"),q.cursorDiv=G("div",null,"CodeMirror-cursors"),q.measure=G("div",null,"CodeMirror-measure"),q.lineMeasure=G("div",null,"CodeMirror-measure"),q.lineSpace=Q("div",[q.measure,q.lineMeasure,q.selectionDiv,q.cursorDiv,q.lineDiv],null,"position: relative; outline: none");var xe=Q("div",[q.lineSpace],"CodeMirror-lines");q.mover=G("div",[xe],null,"position: relative"),q.sizer=G("div",[q.mover],"CodeMirror-sizer"),q.sizerWidth=null,q.heightForcer=G("div",null,null,"position: absolute; height: "+ke+"px; width: 1px;"),q.gutters=G("div",null,"CodeMirror-gutters"),q.lineGutter=null,q.scroller=G("div",[q.sizer,q.heightForcer,q.gutters],"CodeMirror-scroll"),q.scroller.setAttribute("tabIndex","-1"),q.wrapper=G("div",[q.scrollbarFiller,q.gutterFiller,q.scroller],"CodeMirror"),I&&u<8&&(q.gutters.style.zIndex=-1,q.scroller.style.paddingRight=0),!d&&!(B&&T)&&(q.scroller.draggable=!0),l&&(l.appendChild?l.appendChild(q.wrapper):l(q.wrapper)),q.viewFrom=q.viewTo=C.first,q.reportedViewFrom=q.reportedViewTo=C.first,q.view=[],q.renderedView=null,q.externalMeasured=null,q.viewOffset=0,q.lastWrapHeight=q.lastWrapWidth=0,q.updateLineNumbers=null,q.nativeBarWidth=q.barHeight=q.barWidth=0,q.scrollbarsClipped=!1,q.lineNumWidth=q.lineNumInnerWidth=q.lineNumChars=null,q.alignWidgets=!1,q.cachedCharWidth=q.cachedTextHeight=q.cachedPaddingH=null,q.maxLine=null,q.maxLineLength=0,q.maxLineChanged=!1,q.wheelDX=q.wheelDY=q.wheelStartX=q.wheelStartY=null,q.shift=!1,q.selForContextMenu=null,q.activeTouch=null,q.gutterSpecs=Zt(W.gutters,W.lineNumbers),Jt(q),K.init(q)}var U=0,Ce=null;I?Ce=-.53:B?Ce=15:y?Ce=-.7:v&&(Ce=-1/3);function et(l){var C=l.wheelDeltaX,K=l.wheelDeltaY;return C==null&&l.detail&&l.axis==l.HORIZONTAL_AXIS&&(C=l.detail),K==null&&l.detail&&l.axis==l.VERTICAL_AXIS?K=l.detail:K==null&&(K=l.wheelDelta),{x:C,y:K}}function It(l){var C=et(l);return C.x*=Ce,C.y*=Ce,C}function Ut(l,C){var K=et(C),W=K.x,q=K.y,xe=l.display,je=xe.scroller,Ze=je.scrollWidth>je.clientWidth,$e=je.scrollHeight>je.clientHeight;if(W&&Ze||q&&$e){if(q&&_&&d){e:for(var ot=C.target,Ot=xe.view;ot!=je;ot=ot.parentNode)for(var gt=0;gt<Ot.length;gt++)if(Ot[gt].node==ot){l.display.currentWheelTarget=ot;break e}}if(W&&!B&&!S&&Ce!=null){q&&$e&&at(l,Math.max(0,je.scrollTop+q*Ce)),mt(l,Math.max(0,je.scrollLeft+W*Ce)),(!q||q&&$e)&&On(C),xe.wheelStartX=null;return}if(q&&Ce!=null){var Xt=q*Ce,Wt=l.doc.scrollTop,Dn=Wt+xe.wrapper.clientHeight;Xt<0?Wt=Math.max(0,Wt+Xt-50):Dn=Math.min(l.doc.height,Dn+Xt+50),Qe(l,{top:Wt,bottom:Dn})}U<20&&(xe.wheelStartX==null?(xe.wheelStartX=je.scrollLeft,xe.wheelStartY=je.scrollTop,xe.wheelDX=W,xe.wheelDY=q,setTimeout(function(){if(xe.wheelStartX!=null){var Bn=je.scrollLeft-xe.wheelStartX,Kn=je.scrollTop-xe.wheelStartY,cr=Kn&&xe.wheelDY&&Kn/xe.wheelDY||Bn&&xe.wheelDX&&Bn/xe.wheelDX;xe.wheelStartX=xe.wheelStartY=null,cr&&(Ce=(Ce*U+cr)/(U+1),++U)}},200)):(xe.wheelDX+=W,xe.wheelDY+=q))}}var pn=function(l,C){this.ranges=l,this.primIndex=C};pn.prototype.primary=function(){return this.ranges[this.primIndex]},pn.prototype.equals=function(l){if(l==this)return!0;if(l.primIndex!=this.primIndex||l.ranges.length!=this.ranges.length)return!1;for(var C=0;C<this.ranges.length;C++){var K=this.ranges[C],W=l.ranges[C];if(!Ei(K.anchor,W.anchor)||!Ei(K.head,W.head))return!1}return!0},pn.prototype.deepCopy=function(){for(var l=[],C=0;C<this.ranges.length;C++)l[C]=new wn(Co(this.ranges[C].anchor),Co(this.ranges[C].head));return new pn(l,this.primIndex)},pn.prototype.somethingSelected=function(){for(var l=0;l<this.ranges.length;l++)if(!this.ranges[l].empty())return!0;return!1},pn.prototype.contains=function(l,C){C||(C=l);for(var K=0;K<this.ranges.length;K++){var W=this.ranges[K];if(or(C,W.from())>=0&&or(l,W.to())<=0)return K}return-1};var wn=function(l,C){this.anchor=l,this.head=C};wn.prototype.from=function(){return yr(this.anchor,this.head)},wn.prototype.to=function(){return ki(this.anchor,this.head)},wn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function fn(l,C,K){var W=l&&l.options.selectionsMayTouch,q=C[K];C.sort(function(Xt,Wt){return or(Xt.from(),Wt.from())}),K=le(C,q);for(var xe=1;xe<C.length;xe++){var je=C[xe],Ze=C[xe-1],$e=or(Ze.to(),je.from());if(W&&!je.empty()?$e>0:$e>=0){var ot=yr(Ze.from(),je.from()),Ot=ki(Ze.to(),je.to()),gt=Ze.empty()?je.from()==je.head:Ze.from()==Ze.head;xe<=K&&--K,C.splice(--xe,2,new wn(gt?Ot:ot,gt?ot:Ot))}}return new pn(C,K)}function Tr(l,C){return new pn([new wn(l,C||l)],0)}function Li(l){return l.text?bn(l.from.line+l.text.length-1,Re(l.text).length+(l.text.length==1?l.from.ch:0)):l.to}function ci(l,C){if(or(l,C.from)<0)return l;if(or(l,C.to)<=0)return Li(C);var K=l.line+C.text.length-(C.to.line-C.from.line)-1,W=l.ch;return l.line==C.to.line&&(W+=Li(C).ch-C.to.ch),bn(K,W)}function qi(l,C){for(var K=[],W=0;W<l.sel.ranges.length;W++){var q=l.sel.ranges[W];K.push(new wn(ci(q.anchor,C),ci(q.head,C)))}return fn(l.cm,K,l.sel.primIndex)}function Uo(l,C,K){return l.line==C.line?bn(K.line,l.ch-C.ch+K.ch):bn(K.line+(l.line-C.line),l.ch)}function lo(l,C,K){for(var W=[],q=bn(l.first,0),xe=q,je=0;je<C.length;je++){var Ze=C[je],$e=Uo(Ze.from,q,xe),ot=Uo(Li(Ze),q,xe);if(q=Ze.to,xe=ot,K=="around"){var Ot=l.sel.ranges[je],gt=or(Ot.head,Ot.anchor)<0;W[je]=new wn(gt?ot:$e,gt?$e:ot)}else W[je]=new wn($e,$e)}return new pn(W,l.sel.primIndex)}function $n(l){l.doc.mode=Zr(l.options,l.doc.modeOption),Mi(l)}function Mi(l){l.doc.iter(function(C){C.stateAfter&&(C.stateAfter=null),C.styles&&(C.styles=null)}),l.doc.modeFrontier=l.doc.highlightFrontier=l.doc.first,wi(l,100),l.state.modeGen++,l.curOp&&Io(l)}function Ur(l,C){return C.from.ch==0&&C.to.ch==0&&Re(C.text)==""&&(!l.cm||l.cm.options.wholeLineUpdateBefore)}function uo(l,C,K,W){function q(Hr){return K?K[Hr]:null}function xe(Hr,Er,Kr){Ji(Hr,Er,Kr,W),Wn(Hr,"change",Hr,C)}function je(Hr,Er){for(var Kr=[],Ti=Hr;Ti<Er;++Ti)Kr.push(new Ai(ot[Ti],q(Ti),W));return Kr}var Ze=C.from,$e=C.to,ot=C.text,Ot=Jn(l,Ze.line),gt=Jn(l,$e.line),Xt=Re(ot),Wt=q(ot.length-1),Dn=$e.line-Ze.line;if(C.full)l.insert(0,je(0,ot.length)),l.remove(ot.length,l.size-ot.length);else if(Ur(l,C)){var Bn=je(0,ot.length-1);xe(gt,gt.text,Wt),Dn&&l.remove(Ze.line,Dn),Bn.length&&l.insert(Ze.line,Bn)}else if(Ot==gt)if(ot.length==1)xe(Ot,Ot.text.slice(0,Ze.ch)+Xt+Ot.text.slice($e.ch),Wt);else{var Kn=je(1,ot.length-1);Kn.push(new Ai(Xt+Ot.text.slice($e.ch),Wt,W)),xe(Ot,Ot.text.slice(0,Ze.ch)+ot[0],q(0)),l.insert(Ze.line+1,Kn)}else if(ot.length==1)xe(Ot,Ot.text.slice(0,Ze.ch)+ot[0]+gt.text.slice($e.ch),q(0)),l.remove(Ze.line+1,Dn);else{xe(Ot,Ot.text.slice(0,Ze.ch)+ot[0],q(0)),xe(gt,Xt+gt.text.slice($e.ch),Wt);var cr=je(1,ot.length-1);Dn>1&&l.remove(Ze.line+1,Dn-1),l.insert(Ze.line+1,cr)}Wn(l,"change",l,C)}function Eo(l,C,K){function W(q,xe,je){if(q.linked)for(var Ze=0;Ze<q.linked.length;++Ze){var $e=q.linked[Ze];if($e.doc!=xe){var ot=je&&$e.sharedHist;K&&!ot||(C($e.doc,ot),W($e.doc,q,ot))}}}W(l,null,!0)}function Mo(l,C){if(C.cm)throw new Error("This document is already in use.");l.doc=C,C.cm=l,zr(l),$n(l),Qs(l),l.options.lineWrapping||Pi(l),l.options.mode=C.modeOption,Io(l)}function Qs(l){(l.doc.direction=="rtl"?he:H)(l.display.lineDiv,"CodeMirror-rtl")}function $t(l){Qn(l,function(){Qs(l),Io(l)})}function Rs(l){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=l||1}function Ao(l,C){var K={from:Co(C.from),to:Li(C),text:bi(l,C.from,C.to)};return Va(l,K,C.from.line,C.to.line+1),Eo(l,function(W){return Va(W,K,C.from.line,C.to.line+1)},!0),K}function en(l){for(;l.length;){var C=Re(l);if(C.ranges)l.pop();else break}}function Is(l,C){if(C)return en(l.done),Re(l.done);if(l.done.length&&!Re(l.done).ranges)return Re(l.done);if(l.done.length>1&&!l.done[l.done.length-2].ranges)return l.done.pop(),Re(l.done)}function Wa(l,C,K,W){var q=l.history;q.undone.length=0;var xe=+new Date,je,Ze;if((q.lastOp==W||q.lastOrigin==C.origin&&C.origin&&(C.origin.charAt(0)=="+"&&q.lastModTime>xe-(l.cm?l.cm.options.historyEventDelay:500)||C.origin.charAt(0)=="*"))&&(je=Is(q,q.lastOp==W)))Ze=Re(je.changes),or(C.from,C.to)==0&&or(C.from,Ze.to)==0?Ze.to=Li(C):je.changes.push(Ao(l,C));else{var $e=Re(q.done);for((!$e||!$e.ranges)&&Do(l.sel,q.done),je={changes:[Ao(l,C)],generation:q.generation},q.done.push(je);q.done.length>q.undoDepth;)q.done.shift(),q.done[0].ranges||q.done.shift()}q.done.push(K),q.generation=++q.maxGeneration,q.lastModTime=q.lastSelTime=xe,q.lastOp=q.lastSelOp=W,q.lastOrigin=q.lastSelOrigin=C.origin,Ze||st(l,"historyAdded")}function wu(l,C,K,W){var q=C.charAt(0);return q=="*"||q=="+"&&K.ranges.length==W.ranges.length&&K.somethingSelected()==W.somethingSelected()&&new Date-l.history.lastSelTime<=(l.cm?l.cm.options.historyEventDelay:500)}function Ol(l,C,K,W){var q=l.history,xe=W&&W.origin;K==q.lastSelOp||xe&&q.lastSelOrigin==xe&&(q.lastModTime==q.lastSelTime&&q.lastOrigin==xe||wu(l,xe,Re(q.done),C))?q.done[q.done.length-1]=C:Do(C,q.done),q.lastSelTime=+new Date,q.lastSelOrigin=xe,q.lastSelOp=K,W&&W.clearRedo!==!1&&en(q.undone)}function Do(l,C){var K=Re(C);K&&K.ranges&&K.equals(l)||C.push(l)}function Va(l,C,K,W){var q=C["spans_"+l.id],xe=0;l.iter(Math.max(l.first,K),Math.min(l.first+l.size,W),function(je){je.markedSpans&&((q||(q=C["spans_"+l.id]={}))[xe]=je.markedSpans),++xe})}function ss(l){if(!l)return null;for(var C,K=0;K<l.length;++K)l[K].marker.explicitlyCleared?C||(C=l.slice(0,K)):C&&C.push(l[K]);return C?C.length?C:null:l}function ra(l,C){var K=C["spans_"+l.id];if(!K)return null;for(var W=[],q=0;q<C.text.length;++q)W.push(ss(K[q]));return W}function Pa(l,C){var K=ra(l,C),W=gn(l,C);if(!K)return W;if(!W)return K;for(var q=0;q<K.length;++q){var xe=K[q],je=W[q];if(xe&&je)e:for(var Ze=0;Ze<je.length;++Ze){for(var $e=je[Ze],ot=0;ot<xe.length;++ot)if(xe[ot].marker==$e.marker)continue e;xe.push($e)}else je&&(K[q]=je)}return K}function rl(l,C,K){for(var W=[],q=0;q<l.length;++q){var xe=l[q];if(xe.ranges){W.push(K?pn.prototype.deepCopy.call(xe):xe);continue}var je=xe.changes,Ze=[];W.push({changes:Ze});for(var $e=0;$e<je.length;++$e){var ot=je[$e],Ot=void 0;if(Ze.push({from:ot.from,to:ot.to,text:ot.text}),C)for(var gt in ot)(Ot=gt.match(/^spans_(\d+)$/))&&le(C,Number(Ot[1]))>-1&&(Re(Ze)[gt]=ot[gt],delete ot[gt])}}return W}function Cu(l,C,K,W){if(W){var q=l.anchor;if(K){var xe=or(C,q)<0;xe!=or(K,q)<0?(q=C,C=K):xe!=or(C,K)<0&&(C=K)}return new wn(q,C)}else return new wn(K||C,C)}function uu(l,C,K,W,q){q==null&&(q=l.cm&&(l.cm.display.shift||l.extend)),Ko(l,new pn([Cu(l.sel.primary(),C,K,q)],0),W)}function zu(l,C,K){for(var W=[],q=l.cm&&(l.cm.display.shift||l.extend),xe=0;xe<l.sel.ranges.length;xe++)W[xe]=Cu(l.sel.ranges[xe],C[xe],null,q);var je=fn(l.cm,W,l.sel.primIndex);Ko(l,je,K)}function $l(l,C,K,W){var q=l.sel.ranges.slice(0);q[C]=K,Ko(l,fn(l.cm,q,l.sel.primIndex),W)}function Ka(l,C,K,W){Ko(l,Tr(C,K),W)}function cu(l,C,K){var W={ranges:C.ranges,update:function(q){this.ranges=[];for(var xe=0;xe<q.length;xe++)this.ranges[xe]=new wn(Fr(l,q[xe].anchor),Fr(l,q[xe].head))},origin:K&&K.origin};return st(l,"beforeSelectionChange",l,W),l.cm&&st(l.cm,"beforeSelectionChange",l.cm,W),W.ranges!=C.ranges?fn(l.cm,W.ranges,W.ranges.length-1):C}function Xl(l,C,K){var W=l.history.done,q=Re(W);q&&q.ranges?(W[W.length-1]=C,ia(l,C,K)):Ko(l,C,K)}function Ko(l,C,K){ia(l,C,K),Ol(l,l.sel,l.cm?l.cm.curOp.id:NaN,K)}function ia(l,C,K){(mn(l,"beforeSelectionChange")||l.cm&&mn(l.cm,"beforeSelectionChange"))&&(C=cu(l,C,K));var W=K&&K.bias||(or(C.primary().head,l.sel.primary().head)<0?-1:1);vl(l,Un(l,C,W,!0)),!(K&&K.scroll===!1)&&l.cm&&ml(l.cm)}function vl(l,C){C.equals(l.sel)||(l.sel=C,l.cm&&(l.cm.curOp.updateInput=1,l.cm.curOp.selectionChanged=!0,on(l.cm)),Wn(l,"cursorActivity",l))}function Ll(l){vl(l,Un(l,l.sel,null,!1))}function Un(l,C,K,W){for(var q,xe=0;xe<C.ranges.length;xe++){var je=C.ranges[xe],Ze=C.ranges.length==l.sel.ranges.length&&l.sel.ranges[xe],$e=Ui(l,je.anchor,Ze&&Ze.anchor,K,W),ot=Ui(l,je.head,Ze&&Ze.head,K,W);(q||$e!=je.anchor||ot!=je.head)&&(q||(q=C.ranges.slice(0,xe)),q[xe]=new wn($e,ot))}return q?fn(l.cm,q,C.primIndex):C}function pr(l,C,K,W,q){var xe=Jn(l,C.line);if(xe.markedSpans)for(var je=0;je<xe.markedSpans.length;++je){var Ze=xe.markedSpans[je],$e=Ze.marker,ot="selectLeft"in $e?!$e.selectLeft:$e.inclusiveLeft,Ot="selectRight"in $e?!$e.selectRight:$e.inclusiveRight;if((Ze.from==null||(ot?Ze.from<=C.ch:Ze.from<C.ch))&&(Ze.to==null||(Ot?Ze.to>=C.ch:Ze.to>C.ch))){if(q&&(st($e,"beforeCursorEnter"),$e.explicitlyCleared))if(xe.markedSpans){--je;continue}else break;if(!$e.atomic)continue;if(K){var gt=$e.find(W<0?1:-1),Xt=void 0;if((W<0?Ot:ot)&&(gt=po(l,gt,-W,gt&&gt.line==C.line?xe:null)),gt&&gt.line==C.line&&(Xt=or(gt,K))&&(W<0?Xt<0:Xt>0))return pr(l,gt,C,W,q)}var Wt=$e.find(W<0?-1:1);return(W<0?ot:Ot)&&(Wt=po(l,Wt,W,Wt.line==C.line?xe:null)),Wt?pr(l,Wt,C,W,q):null}}return C}function Ui(l,C,K,W,q){var xe=W||1,je=pr(l,C,K,xe,q)||!q&&pr(l,C,K,xe,!0)||pr(l,C,K,-xe,q)||!q&&pr(l,C,K,-xe,!0);return je||(l.cantEdit=!0,bn(l.first,0))}function po(l,C,K,W){return K<0&&C.ch==0?C.line>l.first?Fr(l,bn(C.line-1)):null:K>0&&C.ch==(W||Jn(l,C.line)).text.length?C.line<l.first+l.size-1?bn(C.line+1,0):null:new bn(C.line,C.ch+K)}function Ii(l){l.setSelection(bn(l.firstLine(),0),bn(l.lastLine()),Be)}function ha(l,C,K){var W={canceled:!1,from:C.from,to:C.to,text:C.text,origin:C.origin,cancel:function(){return W.canceled=!0}};return K&&(W.update=function(q,xe,je,Ze){q&&(W.from=Fr(l,q)),xe&&(W.to=Fr(l,xe)),je&&(W.text=je),Ze!==void 0&&(W.origin=Ze)}),st(l,"beforeChange",l,W),l.cm&&st(l.cm,"beforeChange",l.cm,W),W.canceled?(l.cm&&(l.cm.curOp.updateInput=2),null):{from:W.from,to:W.to,text:W.text,origin:W.origin}}function fa(l,C,K){if(l.cm){if(!l.cm.curOp)return _r(l.cm,fa)(l,C,K);if(l.cm.state.suppressEdits)return}if(!((mn(l,"beforeChange")||l.cm&&mn(l.cm,"beforeChange"))&&(C=ha(l,C,!0),!C))){var W=Ni&&!K&&In(l,C.from,C.to);if(W)for(var q=W.length-1;q>=0;--q)as(l,{from:W[q].from,to:W[q].to,text:q?[""]:C.text,origin:C.origin});else as(l,C)}}function as(l,C){if(!(C.text.length==1&&C.text[0]==""&&or(C.from,C.to)==0)){var K=qi(l,C);Wa(l,C,K,l.cm?l.cm.curOp.id:NaN),Os(l,C,K,gn(l,C));var W=[];Eo(l,function(q,xe){!xe&&le(W,q.history)==-1&&(Gc(q.history,C),W.push(q.history)),Os(q,C,null,gn(q,C))})}}function xa(l,C,K){var W=l.cm&&l.cm.state.suppressEdits;if(!(W&&!K)){for(var q=l.history,xe,je=l.sel,Ze=C=="undo"?q.done:q.undone,$e=C=="undo"?q.undone:q.done,ot=0;ot<Ze.length&&(xe=Ze[ot],!(K?xe.ranges&&!xe.equals(l.sel):!xe.ranges));ot++);if(ot!=Ze.length){for(q.lastOrigin=q.lastSelOrigin=null;;)if(xe=Ze.pop(),xe.ranges){if(Do(xe,$e),K&&!xe.equals(l.sel)){Ko(l,xe,{clearRedo:!1});return}je=xe}else if(W){Ze.push(xe);return}else break;var Ot=[];Do(je,$e),$e.push({changes:Ot,generation:q.generation}),q.generation=xe.generation||++q.maxGeneration;for(var gt=mn(l,"beforeChange")||l.cm&&mn(l.cm,"beforeChange"),Xt=function(Bn){var Kn=xe.changes[Bn];if(Kn.origin=C,gt&&!ha(l,Kn,!1))return Ze.length=0,{};Ot.push(Ao(l,Kn));var cr=Bn?qi(l,Kn):Re(Ze);Os(l,Kn,cr,Pa(l,Kn)),!Bn&&l.cm&&l.cm.scrollIntoView({from:Kn.from,to:Li(Kn)});var Hr=[];Eo(l,function(Er,Kr){!Kr&&le(Hr,Er.history)==-1&&(Gc(Er.history,Kn),Hr.push(Er.history)),Os(Er,Kn,null,Pa(Er,Kn))})},Wt=xe.changes.length-1;Wt>=0;--Wt){var Dn=Xt(Wt);if(Dn)return Dn.v}}}}function yl(l,C){if(C!=0&&(l.first+=C,l.sel=new pn(Oe(l.sel.ranges,function(q){return new wn(bn(q.anchor.line+C,q.anchor.ch),bn(q.head.line+C,q.head.ch))}),l.sel.primIndex),l.cm)){Io(l.cm,l.first,l.first-C,C);for(var K=l.cm.display,W=K.viewFrom;W<K.viewTo;W++)Ci(l.cm,W,"gutter")}}function Os(l,C,K,W){if(l.cm&&!l.cm.curOp)return _r(l.cm,Os)(l,C,K,W);if(C.to.line<l.first){yl(l,C.text.length-1-(C.to.line-C.from.line));return}if(!(C.from.line>l.lastLine())){if(C.from.line<l.first){var q=C.text.length-1-(l.first-C.from.line);yl(l,q),C={from:bn(l.first,0),to:bn(C.to.line+q,C.to.ch),text:[Re(C.text)],origin:C.origin}}var xe=l.lastLine();C.to.line>xe&&(C={from:C.from,to:bn(xe,Jn(l,xe).text.length),text:[C.text[0]],origin:C.origin}),C.removed=bi(l,C.from,C.to),K||(K=qi(l,C)),l.cm?Ml(l.cm,C,W):uo(l,C,W),ia(l,K,Be),l.cantEdit&&Ui(l,bn(l.firstLine(),0))&&(l.cantEdit=!1)}}function Ml(l,C,K){var W=l.doc,q=l.display,xe=C.from,je=C.to,Ze=!1,$e=xe.line;l.options.lineWrapping||($e=Lt(wr(Jn(W,xe.line))),W.iter($e,je.line+1,function(Wt){if(Wt==q.maxLine)return Ze=!0,!0})),W.sel.contains(C.from,C.to)>-1&&on(l),uo(W,C,K,jo(l)),l.options.lineWrapping||(W.iter($e,xe.line+C.text.length,function(Wt){var Dn=pi(Wt);Dn>q.maxLineLength&&(q.maxLine=Wt,q.maxLineLength=Dn,q.maxLineChanged=!0,Ze=!1)}),Ze&&(l.curOp.updateMaxLine=!0)),hi(W,xe.line),wi(l,400);var ot=C.text.length-(je.line-xe.line)-1;C.full?Io(l):xe.line==je.line&&C.text.length==1&&!Ur(l.doc,C)?Ci(l,xe.line,"text"):Io(l,xe.line,je.line+1,ot);var Ot=mn(l,"changes"),gt=mn(l,"change");if(gt||Ot){var Xt={from:xe,to:je,text:C.text,removed:C.removed,origin:C.origin};gt&&Wn(l,"change",l,Xt),Ot&&(l.curOp.changeObjs||(l.curOp.changeObjs=[])).push(Xt)}l.display.selForContextMenu=null}function oa(l,C,K,W,q){var xe;W||(W=K),or(W,K)<0&&(xe=[W,K],K=xe[0],W=xe[1]),typeof C=="string"&&(C=l.splitLines(C)),fa(l,{from:K,to:W,text:C,origin:q})}function il(l,C,K,W){K<l.line?l.line+=W:C<l.line&&(l.line=C,l.ch=0)}function Gu(l,C,K,W){for(var q=0;q<l.length;++q){var xe=l[q],je=!0;if(xe.ranges){xe.copied||(xe=l[q]=xe.deepCopy(),xe.copied=!0);for(var Ze=0;Ze<xe.ranges.length;Ze++)il(xe.ranges[Ze].anchor,C,K,W),il(xe.ranges[Ze].head,C,K,W);continue}for(var $e=0;$e<xe.changes.length;++$e){var ot=xe.changes[$e];if(K<ot.from.line)ot.from=bn(ot.from.line+W,ot.from.ch),ot.to=bn(ot.to.line+W,ot.to.ch);else if(C<=ot.to.line){je=!1;break}}je||(l.splice(0,q+1),q=0)}}function Gc(l,C){var K=C.from.line,W=C.to.line,q=C.text.length-(W-K)-1;Gu(l.done,K,W,q),Gu(l.undone,K,W,q)}function vi(l,C,K,W){var q=C,xe=C;return typeof C=="number"?xe=Jn(l,Mr(l,C)):q=Lt(C),q==null?null:(W(xe,q)&&l.cm&&Ci(l.cm,q,K),xe)}function oi(l){this.lines=l,this.parent=null;for(var C=0,K=0;K<l.length;++K)l[K].parent=this,C+=l[K].height;this.height=C}oi.prototype={chunkSize:function(){return this.lines.length},removeInner:function(l,C){for(var K=l,W=l+C;K<W;++K){var q=this.lines[K];this.height-=q.height,To(q),Wn(q,"delete")}this.lines.splice(l,C)},collapse:function(l){l.push.apply(l,this.lines)},insertInner:function(l,C,K){this.height+=K,this.lines=this.lines.slice(0,l).concat(C).concat(this.lines.slice(l));for(var W=0;W<C.length;++W)C[W].parent=this},iterN:function(l,C,K){for(var W=l+C;l<W;++l)if(K(this.lines[l]))return!0}};function Qr(l){this.children=l;for(var C=0,K=0,W=0;W<l.length;++W){var q=l[W];C+=q.chunkSize(),K+=q.height,q.parent=this}this.size=C,this.height=K,this.parent=null}Qr.prototype={chunkSize:function(){return this.size},removeInner:function(l,C){this.size-=C;for(var K=0;K<this.children.length;++K){var W=this.children[K],q=W.chunkSize();if(l<q){var xe=Math.min(C,q-l),je=W.height;if(W.removeInner(l,xe),this.height-=je-W.height,q==xe&&(this.children.splice(K--,1),W.parent=null),(C-=xe)==0)break;l=0}else l-=q}if(this.size-C<25&&(this.children.length>1||!(this.children[0]instanceof oi))){var Ze=[];this.collapse(Ze),this.children=[new oi(Ze)],this.children[0].parent=this}},collapse:function(l){for(var C=0;C<this.children.length;++C)this.children[C].collapse(l)},insertInner:function(l,C,K){this.size+=C.length,this.height+=K;for(var W=0;W<this.children.length;++W){var q=this.children[W],xe=q.chunkSize();if(l<=xe){if(q.insertInner(l,C,K),q.lines&&q.lines.length>50){for(var je=q.lines.length%25+25,Ze=je;Ze<q.lines.length;){var $e=new oi(q.lines.slice(Ze,Ze+=25));q.height-=$e.height,this.children.splice(++W,0,$e),$e.parent=this}q.lines=q.lines.slice(0,je),this.maybeSpill()}break}l-=xe}},maybeSpill:function(){if(!(this.children.length<=10)){var l=this;do{var C=l.children.splice(l.children.length-5,5),K=new Qr(C);if(l.parent){l.size-=K.size,l.height-=K.height;var q=le(l.parent.children,l);l.parent.children.splice(q+1,0,K)}else{var W=new Qr(l.children);W.parent=l,l.children=[W,K],l=W}K.parent=l.parent}while(l.children.length>10);l.parent.maybeSpill()}},iterN:function(l,C,K){for(var W=0;W<this.children.length;++W){var q=this.children[W],xe=q.chunkSize();if(l<xe){var je=Math.min(C,xe-l);if(q.iterN(l,je,K))return!0;if((C-=je)==0)break;l=0}else l-=xe}}};var Yo=function(l,C,K){if(K)for(var W in K)K.hasOwnProperty(W)&&(this[W]=K[W]);this.doc=l,this.node=C};Yo.prototype.clear=function(){var l=this.doc.cm,C=this.line.widgets,K=this.line,W=Lt(K);if(!(W==null||!C)){for(var q=0;q<C.length;++q)C[q]==this&&C.splice(q--,1);C.length||(K.widgets=null);var xe=Jo(this);mi(K,Math.max(0,K.height-xe)),l&&(Qn(l,function(){ea(l,K,-xe),Ci(l,W,"widget")}),Wn(l,"lineWidgetCleared",l,this,W))}},Yo.prototype.changed=function(){var l=this,C=this.height,K=this.doc.cm,W=this.line;this.height=null;var q=Jo(this)-C;q&&(Yt(this.doc,W)||mi(W,W.height+q),K&&Qn(K,function(){K.curOp.forceUpdate=!0,ea(K,W,q),Wn(K,"lineWidgetChanged",K,l,Lt(W))}))},Mt(Yo);function ea(l,C,K){fr(C)<(l.curOp&&l.curOp.scrollTop||l.doc.scrollTop)&&Il(l,K)}function Wu(l,C,K,W){var q=new Yo(l,K,W),xe=l.cm;return xe&&q.noHScroll&&(xe.display.alignWidgets=!0),vi(l,C,"widget",function(je){var Ze=je.widgets||(je.widgets=[]);if(q.insertAt==null?Ze.push(q):Ze.splice(Math.min(Ze.length-1,Math.max(0,q.insertAt)),0,q),q.line=je,xe&&!Yt(l,je)){var $e=fr(je)<l.scrollTop;mi(je,je.height+Jo(q)),$e&&Il(xe,q.height),xe.curOp.forceUpdate=!0}return!0}),xe&&Wn(xe,"lineWidgetAdded",xe,q,typeof C=="number"?C:Lt(C)),q}var hu=0,Ct=function(l,C){this.lines=[],this.type=C,this.doc=l,this.id=++hu};Ct.prototype.clear=function(){if(!this.explicitlyCleared){var l=this.doc.cm,C=l&&!l.curOp;if(C&&An(l),mn(this,"clear")){var K=this.find();K&&Wn(this,"clear",K.from,K.to)}for(var W=null,q=null,xe=0;xe<this.lines.length;++xe){var je=this.lines[xe],Ze=an(je.markedSpans,this);l&&!this.collapsed?Ci(l,Lt(je),"text"):l&&(Ze.to!=null&&(q=Lt(je)),Ze.from!=null&&(W=Lt(je))),je.markedSpans=it(je.markedSpans,Ze),Ze.from==null&&this.collapsed&&!Yt(this.doc,je)&&l&&mi(je,Ga(l.display))}if(l&&this.collapsed&&!l.options.lineWrapping)for(var $e=0;$e<this.lines.length;++$e){var ot=wr(this.lines[$e]),Ot=pi(ot);Ot>l.display.maxLineLength&&(l.display.maxLine=ot,l.display.maxLineLength=Ot,l.display.maxLineChanged=!0)}W!=null&&l&&this.collapsed&&Io(l,W,q+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,l&&Ll(l.doc)),l&&Wn(l,"markerCleared",l,this,W,q),C&&Cn(l),this.parent&&this.parent.clear()}},Ct.prototype.find=function(l,C){l==null&&this.type=="bookmark"&&(l=1);for(var K,W,q=0;q<this.lines.length;++q){var xe=this.lines[q],je=an(xe.markedSpans,this);if(je.from!=null&&(K=bn(C?xe:Lt(xe),je.from),l==-1))return K;if(je.to!=null&&(W=bn(C?xe:Lt(xe),je.to),l==1))return W}return K&&{from:K,to:W}},Ct.prototype.changed=function(){var l=this,C=this.find(-1,!0),K=this,W=this.doc.cm;!C||!W||Qn(W,function(){var q=C.line,xe=Lt(C.line),je=Ns(W,xe);if(je&&(yc(je),W.curOp.selectionChanged=W.curOp.forceUpdate=!0),W.curOp.updateMaxLine=!0,!Yt(K.doc,q)&&K.height!=null){var Ze=K.height;K.height=null;var $e=Jo(K)-Ze;$e&&mi(q,q.height+$e)}Wn(W,"markerChanged",W,l)})},Ct.prototype.attachLine=function(l){if(!this.lines.length&&this.doc.cm){var C=this.doc.cm.curOp;(!C.maybeHiddenMarkers||le(C.maybeHiddenMarkers,this)==-1)&&(C.maybeUnhiddenMarkers||(C.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(l)},Ct.prototype.detachLine=function(l){if(this.lines.splice(le(this.lines,l),1),!this.lines.length&&this.doc.cm){var C=this.doc.cm.curOp;(C.maybeHiddenMarkers||(C.maybeHiddenMarkers=[])).push(this)}},Mt(Ct);function Tu(l,C,K,W,q){if(W&&W.shared)return Ec(l,C,K,W,q);if(l.cm&&!l.cm.curOp)return _r(l.cm,Tu)(l,C,K,W,q);var xe=new Ct(l,q),je=or(C,K);if(W&&Le(W,xe,!1),je>0||je==0&&xe.clearWhenEmpty!==!1)return xe;if(xe.replacedWith&&(xe.collapsed=!0,xe.widgetNode=Q("span",[xe.replacedWith],"CodeMirror-widget"),W.handleMouseEvents||xe.widgetNode.setAttribute("cm-ignore-events","true"),W.insertLeft&&(xe.widgetNode.insertLeft=!0)),xe.collapsed){if(ri(l,C.line,C,K,xe)||C.line!=K.line&&ri(l,K.line,C,K,xe))throw new Error("Inserting collapsed marker partially overlapping an existing one");ut()}xe.addToHistory&&Wa(l,{from:C,to:K,origin:"markText"},l.sel,NaN);var Ze=C.line,$e=l.cm,ot;if(l.iter(Ze,K.line+1,function(gt){$e&&xe.collapsed&&!$e.options.lineWrapping&&wr(gt)==$e.display.maxLine&&(ot=!0),xe.collapsed&&Ze!=C.line&&mi(gt,0),dt(gt,new Ge(xe,Ze==C.line?C.ch:null,Ze==K.line?K.ch:null)),++Ze}),xe.collapsed&&l.iter(C.line,K.line+1,function(gt){Yt(l,gt)&&mi(gt,0)}),xe.clearOnEnter&&ht(xe,"beforeCursorEnter",function(){return xe.clear()}),xe.readOnly&&(_i(),(l.history.done.length||l.history.undone.length)&&l.clearHistory()),xe.collapsed&&(xe.id=++hu,xe.atomic=!0),$e){if(ot&&($e.curOp.updateMaxLine=!0),xe.collapsed)Io($e,C.line,K.line+1);else if(xe.className||xe.startStyle||xe.endStyle||xe.css||xe.attributes||xe.title)for(var Ot=C.line;Ot<=K.line;Ot++)Ci($e,Ot,"text");xe.atomic&&Ll($e.doc),Wn($e,"markerAdded",$e,xe)}return xe}var Ya=function(l,C){this.markers=l,this.primary=C;for(var K=0;K<l.length;++K)l[K].parent=this};Ya.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var l=0;l<this.markers.length;++l)this.markers[l].clear();Wn(this,"clear")}},Ya.prototype.find=function(l,C){return this.primary.find(l,C)},Mt(Ya);function Ec(l,C,K,W,q){W=Le(W),W.shared=!1;var xe=[Tu(l,C,K,W,q)],je=xe[0],Ze=W.widgetNode;return Eo(l,function($e){Ze&&(W.widgetNode=Ze.cloneNode(!0)),xe.push(Tu($e,Fr($e,C),Fr($e,K),W,q));for(var ot=0;ot<$e.linked.length;++ot)if($e.linked[ot].isParent)return;je=Re(xe)}),new Ya(xe,je)}function Cf(l){return l.findMarks(bn(l.first,0),l.clipPos(bn(l.lastLine())),function(C){return C.parent})}function Tf(l,C){for(var K=0;K<C.length;K++){var W=C[K],q=W.find(),xe=l.clipPos(q.from),je=l.clipPos(q.to);if(or(xe,je)){var Ze=Tu(l,xe,je,W.primary,W.primary.type);W.markers.push(Ze),Ze.parent=W}}}function Kh(l){for(var C=function(W){var q=l[W],xe=[q.primary.doc];Eo(q.primary.doc,function($e){return xe.push($e)});for(var je=0;je<q.markers.length;je++){var Ze=q.markers[je];le(xe,Ze.doc)==-1&&(Ze.parent=null,q.markers.splice(je--,1))}},K=0;K<l.length;K++)C(K)}var ep=0,da=function(l,C,K,W,q){if(!(this instanceof da))return new da(l,C,K,W,q);K==null&&(K=0),Qr.call(this,[new oi([new Ai("",null)])]),this.first=K,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=K;var xe=bn(K,0);this.sel=Tr(xe),this.history=new Rs(null),this.id=++ep,this.modeOption=C,this.lineSep=W,this.direction=q=="rtl"?"rtl":"ltr",this.extend=!1,typeof l=="string"&&(l=this.splitLines(l)),uo(this,{from:xe,to:xe,text:l}),Ko(this,Tr(xe),Be)};da.prototype=z(Qr.prototype,{constructor:da,iter:function(l,C,K){K?this.iterN(l-this.first,C-l,K):this.iterN(this.first,this.first+this.size,l)},insert:function(l,C){for(var K=0,W=0;W<C.length;++W)K+=C[W].height;this.insertInner(l-this.first,C,K)},remove:function(l,C){this.removeInner(l-this.first,C)},getValue:function(l){var C=gi(this,this.first,this.first+this.size);return l===!1?C:C.join(l||this.lineSeparator())},setValue:Cr(function(l){var C=bn(this.first,0),K=this.first+this.size-1;fa(this,{from:C,to:bn(K,Jn(this,K).text.length),text:this.splitLines(l),origin:"setValue",full:!0},!0),this.cm&&Kl(this.cm,0,0),Ko(this,Tr(C),Be)}),replaceRange:function(l,C,K,W){C=Fr(this,C),K=K?Fr(this,K):C,oa(this,l,C,K,W)},getRange:function(l,C,K){var W=bi(this,Fr(this,l),Fr(this,C));return K===!1?W:W.join(K||this.lineSeparator())},getLine:function(l){var C=this.getLineHandle(l);return C&&C.text},getLineHandle:function(l){if(hr(this,l))return Jn(this,l)},getLineNumber:function(l){return Lt(l)},getLineHandleVisualStart:function(l){return typeof l=="number"&&(l=Jn(this,l)),wr(l)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(l){return Fr(this,l)},getCursor:function(l){var C=this.sel.primary(),K;return l==null||l=="head"?K=C.head:l=="anchor"?K=C.anchor:l=="end"||l=="to"||l===!1?K=C.to():K=C.from(),K},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Cr(function(l,C,K){Ka(this,Fr(this,typeof l=="number"?bn(l,C||0):l),null,K)}),setSelection:Cr(function(l,C,K){Ka(this,Fr(this,l),Fr(this,C||l),K)}),extendSelection:Cr(function(l,C,K){uu(this,Fr(this,l),C&&Fr(this,C),K)}),extendSelections:Cr(function(l,C){zu(this,so(this,l),C)}),extendSelectionsBy:Cr(function(l,C){var K=Oe(this.sel.ranges,l);zu(this,so(this,K),C)}),setSelections:Cr(function(l,C,K){if(l.length){for(var W=[],q=0;q<l.length;q++)W[q]=new wn(Fr(this,l[q].anchor),Fr(this,l[q].head));C==null&&(C=Math.min(l.length-1,this.sel.primIndex)),Ko(this,fn(this.cm,W,C),K)}}),addSelection:Cr(function(l,C,K){var W=this.sel.ranges.slice(0);W.push(new wn(Fr(this,l),Fr(this,C||l))),Ko(this,fn(this.cm,W,W.length-1),K)}),getSelection:function(l){for(var C=this.sel.ranges,K,W=0;W<C.length;W++){var q=bi(this,C[W].from(),C[W].to());K=K?K.concat(q):q}return l===!1?K:K.join(l||this.lineSeparator())},getSelections:function(l){for(var C=[],K=this.sel.ranges,W=0;W<K.length;W++){var q=bi(this,K[W].from(),K[W].to());l!==!1&&(q=q.join(l||this.lineSeparator())),C[W]=q}return C},replaceSelection:function(l,C,K){for(var W=[],q=0;q<this.sel.ranges.length;q++)W[q]=l;this.replaceSelections(W,C,K||"+input")},replaceSelections:Cr(function(l,C,K){for(var W=[],q=this.sel,xe=0;xe<q.ranges.length;xe++){var je=q.ranges[xe];W[xe]={from:je.from(),to:je.to(),text:this.splitLines(l[xe]),origin:K}}for(var Ze=C&&C!="end"&&lo(this,W,C),$e=W.length-1;$e>=0;$e--)fa(this,W[$e]);Ze?Xl(this,Ze):this.cm&&ml(this.cm)}),undo:Cr(function(){xa(this,"undo")}),redo:Cr(function(){xa(this,"redo")}),undoSelection:Cr(function(){xa(this,"undo",!0)}),redoSelection:Cr(function(){xa(this,"redo",!0)}),setExtending:function(l){this.extend=l},getExtending:function(){return this.extend},historySize:function(){for(var l=this.history,C=0,K=0,W=0;W<l.done.length;W++)l.done[W].ranges||++C;for(var q=0;q<l.undone.length;q++)l.undone[q].ranges||++K;return{undo:C,redo:K}},clearHistory:function(){var l=this;this.history=new Rs(this.history.maxGeneration),Eo(this,function(C){return C.history=l.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(l){return l&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(l){return this.history.generation==(l||this.cleanGeneration)},getHistory:function(){return{done:rl(this.history.done),undone:rl(this.history.undone)}},setHistory:function(l){var C=this.history=new Rs(this.history.maxGeneration);C.done=rl(l.done.slice(0),null,!0),C.undone=rl(l.undone.slice(0),null,!0)},setGutterMarker:Cr(function(l,C,K){return vi(this,l,"gutter",function(W){var q=W.gutterMarkers||(W.gutterMarkers={});return q[C]=K,!K&&oe(q)&&(W.gutterMarkers=null),!0})}),clearGutter:Cr(function(l){var C=this;this.iter(function(K){K.gutterMarkers&&K.gutterMarkers[l]&&vi(C,K,"gutter",function(){return K.gutterMarkers[l]=null,oe(K.gutterMarkers)&&(K.gutterMarkers=null),!0})})}),lineInfo:function(l){var C;if(typeof l=="number"){if(!hr(this,l)||(C=l,l=Jn(this,l),!l))return null}else if(C=Lt(l),C==null)return null;return{line:C,handle:l,text:l.text,gutterMarkers:l.gutterMarkers,textClass:l.textClass,bgClass:l.bgClass,wrapClass:l.wrapClass,widgets:l.widgets}},addLineClass:Cr(function(l,C,K){return vi(this,l,C=="gutter"?"gutter":"class",function(W){var q=C=="text"?"textClass":C=="background"?"bgClass":C=="gutter"?"gutterClass":"wrapClass";if(!W[q])W[q]=K;else{if(F(K).test(W[q]))return!1;W[q]+=" "+K}return!0})}),removeLineClass:Cr(function(l,C,K){return vi(this,l,C=="gutter"?"gutter":"class",function(W){var q=C=="text"?"textClass":C=="background"?"bgClass":C=="gutter"?"gutterClass":"wrapClass",xe=W[q];if(xe)if(K==null)W[q]=null;else{var je=xe.match(F(K));if(!je)return!1;var Ze=je.index+je[0].length;W[q]=xe.slice(0,je.index)+(!je.index||Ze==xe.length?"":" ")+xe.slice(Ze)||null}else return!1;return!0})}),addLineWidget:Cr(function(l,C,K){return Wu(this,l,C,K)}),removeLineWidget:function(l){l.clear()},markText:function(l,C,K){return Tu(this,Fr(this,l),Fr(this,C),K,K&&K.type||"range")},setBookmark:function(l,C){var K={replacedWith:C&&(C.nodeType==null?C.widget:C),insertLeft:C&&C.insertLeft,clearWhenEmpty:!1,shared:C&&C.shared,handleMouseEvents:C&&C.handleMouseEvents};return l=Fr(this,l),Tu(this,l,l,K,"bookmark")},findMarksAt:function(l){l=Fr(this,l);var C=[],K=Jn(this,l.line).markedSpans;if(K)for(var W=0;W<K.length;++W){var q=K[W];(q.from==null||q.from<=l.ch)&&(q.to==null||q.to>=l.ch)&&C.push(q.marker.parent||q.marker)}return C},findMarks:function(l,C,K){l=Fr(this,l),C=Fr(this,C);var W=[],q=l.line;return this.iter(l.line,C.line+1,function(xe){var je=xe.markedSpans;if(je)for(var Ze=0;Ze<je.length;Ze++){var $e=je[Ze];!($e.to!=null&&q==l.line&&l.ch>=$e.to||$e.from==null&&q!=l.line||$e.from!=null&&q==C.line&&$e.from>=C.ch)&&(!K||K($e.marker))&&W.push($e.marker.parent||$e.marker)}++q}),W},getAllMarks:function(){var l=[];return this.iter(function(C){var K=C.markedSpans;if(K)for(var W=0;W<K.length;++W)K[W].from!=null&&l.push(K[W].marker)}),l},posFromIndex:function(l){var C,K=this.first,W=this.lineSeparator().length;return this.iter(function(q){var xe=q.text.length+W;if(xe>l)return C=l,!0;l-=xe,++K}),Fr(this,bn(K,C))},indexFromPos:function(l){l=Fr(this,l);var C=l.ch;if(l.line<this.first||l.ch<0)return 0;var K=this.lineSeparator().length;return this.iter(this.first,l.line,function(W){C+=W.text.length+K}),C},copy:function(l){var C=new da(gi(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return C.scrollTop=this.scrollTop,C.scrollLeft=this.scrollLeft,C.sel=this.sel,C.extend=!1,l&&(C.history.undoDepth=this.history.undoDepth,C.setHistory(this.getHistory())),C},linkedDoc:function(l){l||(l={});var C=this.first,K=this.first+this.size;l.from!=null&&l.from>C&&(C=l.from),l.to!=null&&l.to<K&&(K=l.to);var W=new da(gi(this,C,K),l.mode||this.modeOption,C,this.lineSep,this.direction);return l.sharedHist&&(W.history=this.history),(this.linked||(this.linked=[])).push({doc:W,sharedHist:l.sharedHist}),W.linked=[{doc:this,isParent:!0,sharedHist:l.sharedHist}],Tf(W,Cf(this)),W},unlinkDoc:function(l){if(l instanceof Po&&(l=l.doc),this.linked)for(var C=0;C<this.linked.length;++C){var K=this.linked[C];if(K.doc==l){this.linked.splice(C,1),l.unlinkDoc(this),Kh(Cf(this));break}}if(l.history==this.history){var W=[l.id];Eo(l,function(q){return W.push(q.id)},!0),l.history=new Rs(null),l.history.done=rl(this.history.done,W),l.history.undone=rl(this.history.undone,W)}},iterLinkedDocs:function(l){Eo(this,l)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(l){return this.lineSep?l.split(this.lineSep):Kt(l)},lineSeparator:function(){return this.lineSep||`
`},setDirection:Cr(function(l){l!="rtl"&&(l="ltr"),l!=this.direction&&(this.direction=l,this.iter(function(C){return C.order=null}),this.cm&&$t(this.cm))})}),da.prototype.eachLine=da.prototype.iter;var gh=0;function Yh(l){var C=this;if(Xh(C),!(ge(C,l)||Qo(C.display,l))){On(l),I&&(gh=+new Date);var K=Ys(C,l,!0),W=l.dataTransfer.files;if(!(!K||C.isReadOnly()))if(W&&W.length&&window.FileReader&&window.File)for(var q=W.length,xe=Array(q),je=0,Ze=function(){++je==q&&_r(C,function(){K=Fr(C.doc,K);var Wt={from:K,to:K,text:C.doc.splitLines(xe.filter(function(Dn){return Dn!=null}).join(C.doc.lineSeparator())),origin:"paste"};fa(C.doc,Wt),Xl(C.doc,Tr(Fr(C.doc,K),Fr(C.doc,Li(Wt))))})()},$e=function(Wt,Dn){if(C.options.allowDropFileTypes&&le(C.options.allowDropFileTypes,Wt.type)==-1){Ze();return}var Bn=new FileReader;Bn.onerror=function(){return Ze()},Bn.onload=function(){var Kn=Bn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Kn)){Ze();return}xe[Dn]=Kn,Ze()},Bn.readAsText(Wt)},ot=0;ot<W.length;ot++)$e(W[ot],ot);else{if(C.state.draggingText&&C.doc.sel.contains(K)>-1){C.state.draggingText(l),setTimeout(function(){return C.display.input.focus()},20);return}try{var Ot=l.dataTransfer.getData("Text");if(Ot){var gt;if(C.state.draggingText&&!C.state.draggingText.copy&&(gt=C.listSelections()),ia(C.doc,Tr(K,K)),gt)for(var Xt=0;Xt<gt.length;++Xt)oa(C.doc,"",gt[Xt].anchor,gt[Xt].head,"drag");C.replaceSelection(Ot,"around","paste"),C.display.input.focus()}}catch(Wt){}}}}function mh(l,C){if(I&&(!l.state.draggingText||+new Date-gh<100)){Gn(C);return}if(!(ge(l,C)||Qo(l.display,C))&&(C.dataTransfer.setData("Text",l.getSelection()),C.dataTransfer.effectAllowed="copyMove",C.dataTransfer.setDragImage&&!v)){var K=G("img",null,null,"position: fixed; left: 0; top: 0;");K.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",S&&(K.width=K.height=1,l.display.wrapper.appendChild(K),K._top=K.offsetTop),C.dataTransfer.setDragImage(K,0,0),S&&K.parentNode.removeChild(K)}}function $h(l,C){var K=Ys(l,C);if(K){var W=document.createDocumentFragment();Qi(l,K,W),l.display.dragCursor||(l.display.dragCursor=G("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),l.display.lineSpace.insertBefore(l.display.dragCursor,l.display.cursorDiv)),V(l.display.dragCursor,W)}}function Xh(l){l.display.dragCursor&&(l.display.lineSpace.removeChild(l.display.dragCursor),l.display.dragCursor=null)}function _f(l){if(document.getElementsByClassName){for(var C=document.getElementsByClassName("CodeMirror"),K=[],W=0;W<C.length;W++){var q=C[W].CodeMirror;q&&K.push(q)}K.length&&K[0].operation(function(){for(var xe=0;xe<K.length;xe++)l(K[xe])})}}var Zh=!1;function ol(){Zh||(wc(),Zh=!0)}function wc(){var l;ht(window,"resize",function(){l==null&&(l=setTimeout(function(){l=null,_f(Af)},100))}),ht(window,"blur",function(){return _f(au)})}function Af(l){var C=l.display;C.cachedCharWidth=C.cachedTextHeight=C.cachedPaddingH=null,C.scrollbarsClipped=!1,l.setSize()}for(var fu={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"},Cc=0;Cc<10;Cc++)fu[Cc+48]=fu[Cc+96]=String(Cc);for(var vh=65;vh<=90;vh++)fu[vh]=String.fromCharCode(vh);for(var Tc=1;Tc<=12;Tc++)fu[Tc+111]=fu[Tc+63235]="F"+Tc;var $a={};$a.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"},$a.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"},$a.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"},$a.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"]},$a.default=_?$a.macDefault:$a.pcDefault;function kf(l){var C=l.split(/-(?!$)/);l=C[C.length-1];for(var K,W,q,xe,je=0;je<C.length-1;je++){var Ze=C[je];if(/^(cmd|meta|m)$/i.test(Ze))xe=!0;else if(/^a(lt)?$/i.test(Ze))K=!0;else if(/^(c|ctrl|control)$/i.test(Ze))W=!0;else if(/^s(hift)?$/i.test(Ze))q=!0;else throw new Error("Unrecognized modifier name: "+Ze)}return K&&(l="Alt-"+l),W&&(l="Ctrl-"+l),xe&&(l="Cmd-"+l),q&&(l="Shift-"+l),l}function vo(l){var C={};for(var K in l)if(l.hasOwnProperty(K)){var W=l[K];if(/^(name|fallthrough|(de|at)tach)$/.test(K))continue;if(W=="..."){delete l[K];continue}for(var q=Oe(K.split(" "),kf),xe=0;xe<q.length;xe++){var je=void 0,Ze=void 0;xe==q.length-1?(Ze=q.join(" "),je=W):(Ze=q.slice(0,xe+1).join(" "),je="...");var $e=C[Ze];if(!$e)C[Ze]=je;else if($e!=je)throw new Error("Inconsistent bindings for "+Ze)}delete l[K]}for(var ot in C)l[ot]=C[ot];return l}function Xi(l,C,K,W){C=Zl(C);var q=C.call?C.call(l,W):C[l];if(q===!1)return"nothing";if(q==="...")return"multi";if(q!=null&&K(q))return"handled";if(C.fallthrough){if(Object.prototype.toString.call(C.fallthrough)!="[object Array]")return Xi(l,C.fallthrough,K,W);for(var xe=0;xe<C.fallthrough.length;xe++){var je=Xi(l,C.fallthrough[xe],K,W);if(je)return je}}}function $s(l){var C=typeof l=="string"?l:fu[l.keyCode];return C=="Ctrl"||C=="Alt"||C=="Shift"||C=="Mod"}function bl(l,C,K){var W=l;return C.altKey&&W!="Alt"&&(l="Alt-"+l),(L?C.metaKey:C.ctrlKey)&&W!="Ctrl"&&(l="Ctrl-"+l),(L?C.ctrlKey:C.metaKey)&&W!="Mod"&&(l="Cmd-"+l),!K&&C.shiftKey&&W!="Shift"&&(l="Shift-"+l),l}function Ea(l,C){if(S&&l.keyCode==34&&l.char)return!1;var K=fu[l.keyCode];return K==null||l.altGraphKey?!1:(l.keyCode==3&&l.code&&(K=l.code),bl(K,l,C))}function Zl(l){return typeof l=="string"?$a[l]:l}function ta(l,C){for(var K=l.doc.sel.ranges,W=[],q=0;q<K.length;q++){for(var xe=C(K[q]);W.length&&or(xe.from,Re(W).to)<=0;){var je=W.pop();if(or(je.from,xe.from)<0){xe.from=je.from;break}}W.push(xe)}Qn(l,function(){for(var Ze=W.length-1;Ze>=0;Ze--)oa(l.doc,"",W[Ze].from,W[Ze].to,"+delete");ml(l)})}function Vu(l,C,K){var W=Ne(l.text,C+K,K);return W<0||W>l.text.length?null:W}function Cs(l,C,K){var W=Vu(l,C.ch,K);return W==null?null:new bn(C.line,W,K<0?"after":"before")}function _c(l,C,K,W,q){if(l){C.doc.direction=="rtl"&&(q=-q);var xe=_t(K,C.doc.direction);if(xe){var je=q<0?Re(xe):xe[0],Ze=q<0==(je.level==1),$e=Ze?"after":"before",ot;if(je.level>0||C.doc.direction=="rtl"){var Ot=Da(C,K);ot=q<0?K.text.length-1:0;var gt=nl(C,Ot,ot).top;ot=ze(function(Xt){return nl(C,Ot,Xt).top==gt},q<0==(je.level==1)?je.from:je.to-1,ot),$e=="before"&&(ot=Vu(K,ot,1))}else ot=q<0?je.to:je.from;return new bn(W,ot,$e)}}return new bn(W,q<0?K.text.length:0,q<0?"before":"after")}function rd(l,C,K,W){var q=_t(C,l.doc.direction);if(!q)return Cs(C,K,W);K.ch>=C.text.length?(K.ch=C.text.length,K.sticky="before"):K.ch<=0&&(K.ch=0,K.sticky="after");var xe=ct(q,K.ch,K.sticky),je=q[xe];if(l.doc.direction=="ltr"&&je.level%2==0&&(W>0?je.to>K.ch:je.from<K.ch))return Cs(C,K,W);var Ze=function(cr,Hr){return Vu(C,cr instanceof bn?cr.ch:cr,Hr)},$e,ot=function(cr){return l.options.lineWrapping?($e=$e||Da(l,C),nc(l,C,$e,cr)):{begin:0,end:C.text.length}},Ot=ot(K.sticky=="before"?Ze(K,-1):K.ch);if(l.doc.direction=="rtl"||je.level==1){var gt=je.level==1==W<0,Xt=Ze(K,gt?1:-1);if(Xt!=null&&(gt?Xt<=je.to&&Xt<=Ot.end:Xt>=je.from&&Xt>=Ot.begin)){var Wt=gt?"before":"after";return new bn(K.line,Xt,Wt)}}var Dn=function(cr,Hr,Er){for(var Kr=function(Ts,ga){return ga?new bn(K.line,Ze(Ts,1),"before"):new bn(K.line,Ts,"after")};cr>=0&&cr<q.length;cr+=Hr){var Ti=q[cr],br=Hr>0==(Ti.level!=1),to=br?Er.begin:Ze(Er.end,-1);if(Ti.from<=to&&to<Ti.to||(to=br?Ti.from:Ze(Ti.to,-1),Er.begin<=to&&to<Er.end))return Kr(to,br)}},Bn=Dn(xe+W,W,Ot);if(Bn)return Bn;var Kn=W>0?Ot.end:Ze(Ot.begin,-1);return Kn!=null&&!(W>0&&Kn==C.text.length)&&(Bn=Dn(W>0?0:q.length-1,W,ot(Kn)),Bn)?Bn:null}var Wc={selectAll:Ii,singleSelection:function(l){return l.setSelection(l.getCursor("anchor"),l.getCursor("head"),Be)},killLine:function(l){return ta(l,function(C){if(C.empty()){var K=Jn(l.doc,C.head.line).text.length;return C.head.ch==K&&C.head.line<l.lastLine()?{from:C.head,to:bn(C.head.line+1,0)}:{from:C.head,to:bn(C.head.line,K)}}else return{from:C.from(),to:C.to()}})},deleteLine:function(l){return ta(l,function(C){return{from:bn(C.from().line,0),to:Fr(l.doc,bn(C.to().line+1,0))}})},delLineLeft:function(l){return ta(l,function(C){return{from:bn(C.from().line,0),to:C.from()}})},delWrappedLineLeft:function(l){return ta(l,function(C){var K=l.charCoords(C.head,"div").top+5,W=l.coordsChar({left:0,top:K},"div");return{from:W,to:C.from()}})},delWrappedLineRight:function(l){return ta(l,function(C){var K=l.charCoords(C.head,"div").top+5,W=l.coordsChar({left:l.display.lineDiv.offsetWidth+100,top:K},"div");return{from:C.from(),to:W}})},undo:function(l){return l.undo()},redo:function(l){return l.redo()},undoSelection:function(l){return l.undoSelection()},redoSelection:function(l){return l.redoSelection()},goDocStart:function(l){return l.extendSelection(bn(l.firstLine(),0))},goDocEnd:function(l){return l.extendSelection(bn(l.lastLine()))},goLineStart:function(l){return l.extendSelectionsBy(function(C){return Jh(l,C.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(l){return l.extendSelectionsBy(function(C){return tp(l,C.head)},{origin:"+move",bias:1})},goLineEnd:function(l){return l.extendSelectionsBy(function(C){return Qh(l,C.head.line)},{origin:"+move",bias:-1})},goLineRight:function(l){return l.extendSelectionsBy(function(C){var K=l.cursorCoords(C.head,"div").top+5;return l.coordsChar({left:l.display.lineDiv.offsetWidth+100,top:K},"div")},Fe)},goLineLeft:function(l){return l.extendSelectionsBy(function(C){var K=l.cursorCoords(C.head,"div").top+5;return l.coordsChar({left:0,top:K},"div")},Fe)},goLineLeftSmart:function(l){return l.extendSelectionsBy(function(C){var K=l.cursorCoords(C.head,"div").top+5,W=l.coordsChar({left:0,top:K},"div");return W.ch<l.getLine(W.line).search(/\S/)?tp(l,C.head):W},Fe)},goLineUp:function(l){return l.moveV(-1,"line")},goLineDown:function(l){return l.moveV(1,"line")},goPageUp:function(l){return l.moveV(-1,"page")},goPageDown:function(l){return l.moveV(1,"page")},goCharLeft:function(l){return l.moveH(-1,"char")},goCharRight:function(l){return l.moveH(1,"char")},goColumnLeft:function(l){return l.moveH(-1,"column")},goColumnRight:function(l){return l.moveH(1,"column")},goWordLeft:function(l){return l.moveH(-1,"word")},goGroupRight:function(l){return l.moveH(1,"group")},goGroupLeft:function(l){return l.moveH(-1,"group")},goWordRight:function(l){return l.moveH(1,"word")},delCharBefore:function(l){return l.deleteH(-1,"codepoint")},delCharAfter:function(l){return l.deleteH(1,"char")},delWordBefore:function(l){return l.deleteH(-1,"word")},delWordAfter:function(l){return l.deleteH(1,"word")},delGroupBefore:function(l){return l.deleteH(-1,"group")},delGroupAfter:function(l){return l.deleteH(1,"group")},indentAuto:function(l){return l.indentSelection("smart")},indentMore:function(l){return l.indentSelection("add")},indentLess:function(l){return l.indentSelection("subtract")},insertTab:function(l){return l.replaceSelection(" ")},insertSoftTab:function(l){for(var C=[],K=l.listSelections(),W=l.options.tabSize,q=0;q<K.length;q++){var xe=K[q].from(),je=ee(l.getLine(xe.line),xe.ch,W);C.push(lt(W-je%W))}l.replaceSelections(C)},defaultTab:function(l){l.somethingSelected()?l.indentSelection("add"):l.execCommand("insertTab")},transposeChars:function(l){return Qn(l,function(){for(var C=l.listSelections(),K=[],W=0;W<C.length;W++)if(C[W].empty()){var q=C[W].head,xe=Jn(l.doc,q.line).text;if(xe){if(q.ch==xe.length&&(q=new bn(q.line,q.ch-1)),q.ch>0)q=new bn(q.line,q.ch+1),l.replaceRange(xe.charAt(q.ch-1)+xe.charAt(q.ch-2),bn(q.line,q.ch-2),q,"+transpose");else if(q.line>l.doc.first){var je=Jn(l.doc,q.line-1).text;je&&(q=new bn(q.line,1),l.replaceRange(xe.charAt(0)+l.doc.lineSeparator()+je.charAt(je.length-1),bn(q.line-1,je.length-1),q,"+transpose"))}}K.push(new wn(q,q))}l.setSelections(K)})},newlineAndIndent:function(l){return Qn(l,function(){for(var C=l.listSelections(),K=C.length-1;K>=0;K--)l.replaceRange(l.doc.lineSeparator(),C[K].anchor,C[K].head,"+input");C=l.listSelections();for(var W=0;W<C.length;W++)l.indentLine(C[W].from().line,null,!0);ml(l)})},openLine:function(l){return l.replaceSelection(`
`,"start")},toggleOverwrite:function(l){return l.toggleOverwrite()}};function Jh(l,C){var K=Jn(l.doc,C),W=wr(K);return W!=K&&(C=Lt(W)),_c(!0,l,W,C,1)}function Qh(l,C){var K=Jn(l.doc,C),W=rr(K);return W!=K&&(C=Lt(W)),_c(!0,l,K,C,-1)}function tp(l,C){var K=Jh(l,C.line),W=Jn(l.doc,K.line),q=_t(W,l.doc.direction);if(!q||q[0].level==0){var xe=Math.max(K.ch,W.text.search(/\S/)),je=C.line==K.line&&C.ch<=xe&&C.ch;return bn(K.line,je?0:xe,K.sticky)}return K}function qh(l,C,K){if(typeof C=="string"&&(C=Wc[C],!C))return!1;l.display.input.ensurePolled();var W=l.display.shift,q=!1;try{l.isReadOnly()&&(l.state.suppressEdits=!0),K&&(l.display.shift=!1),q=C(l)!=De}finally{l.display.shift=W,l.state.suppressEdits=!1}return q}function np(l,C,K){for(var W=0;W<l.state.keyMaps.length;W++){var q=Xi(C,l.state.keyMaps[W],K,l);if(q)return q}return l.options.extraKeys&&Xi(C,l.options.extraKeys,K,l)||Xi(C,l.options.keyMap,K,l)}var rc=new se;function yh(l,C,K,W){var q=l.state.keySeq;if(q){if($s(C))return"handled";if(/\'$/.test(C)?l.state.keySeq=null:rc.set(50,function(){l.state.keySeq==q&&(l.state.keySeq=null,l.display.input.reset())}),id(l,q+" "+C,K,W))return!0}return id(l,C,K,W)}function id(l,C,K,W){var q=np(l,C,W);return q=="multi"&&(l.state.keySeq=C),q=="handled"&&Wn(l,"keyHandled",l,C,K),(q=="handled"||q=="multi")&&(On(K),xo(l)),!!q}function od(l,C){var K=Ea(C,!0);return K?C.shiftKey&&!l.state.keySeq?yh(l,"Shift-"+K,C,function(W){return qh(l,W,!0)})||yh(l,K,C,function(W){if(typeof W=="string"?/^go[A-Z]/.test(W):W.motion)return qh(l,W)}):yh(l,K,C,function(W){return qh(l,W)}):!1}function sd(l,C,K){return yh(l,"'"+K+"'",C,function(W){return qh(l,W,!0)})}var bh=null;function rp(l){var C=this;if(!(l.target&&l.target!=C.display.input.getField())&&(C.curOp.focus=ae(),!ge(C,l))){I&&u<11&&l.keyCode==27&&(l.returnValue=!1);var K=l.keyCode;C.display.shift=K==16||l.shiftKey;var W=od(C,l);S&&(bh=W?K:null,!W&&K==88&&!Vt&&(_?l.metaKey:l.ctrlKey)&&C.replaceSelection("",null,"cut")),B&&!_&&!W&&K==46&&l.shiftKey&&!l.ctrlKey&&document.execCommand&&document.execCommand("cut"),K==18&&!/\bCodeMirror-crosshair\b/.test(C.display.lineDiv.className)&&ip(C)}}function ip(l){var C=l.display.lineDiv;he(C,"CodeMirror-crosshair");function K(W){(W.keyCode==18||!W.altKey)&&(H(C,"CodeMirror-crosshair"),jt(document,"keyup",K),jt(document,"mouseover",K))}ht(document,"keyup",K),ht(document,"mouseover",K)}function op(l){l.keyCode==16&&(this.doc.sel.shift=!1),ge(this,l)}function Ku(l){var C=this;if(!(l.target&&l.target!=C.display.input.getField())&&!(Qo(C.display,l)||ge(C,l)||l.ctrlKey&&!l.altKey||_&&l.metaKey)){var K=l.keyCode,W=l.charCode;if(S&&K==bh){bh=null,On(l);return}if(!(S&&(!l.which||l.which<10)&&od(C,l))){var q=String.fromCharCode(W==null?K:W);q!="\b"&&(sd(C,l,q)||C.display.input.onKeyPress(l))}}}var gg=400,sp=function(l,C,K){this.time=l,this.pos=C,this.button=K};sp.prototype.compare=function(l,C,K){return this.time+gg>l&&or(C,this.pos)==0&&K==this.button};var ef,Sh;function ap(l,C){var K=+new Date;return Sh&&Sh.compare(K,l,C)?(ef=Sh=null,"triple"):ef&&ef.compare(K,l,C)?(Sh=new sp(K,l,C),ef=null,"double"):(ef=new sp(K,l,C),Sh=null,"single")}function Yu(l){var C=this,K=C.display;if(!(ge(C,l)||K.activeTouch&&K.input.supportsTouch())){if(K.input.ensurePolled(),K.shift=l.shiftKey,Qo(K,l)){d||(K.scroller.draggable=!1,setTimeout(function(){return K.scroller.draggable=!0},100));return}if(!ud(C,l)){var W=Ys(C,l),q=xt(l),xe=W?ap(W,q):"single";window.focus(),q==1&&C.state.selectingText&&C.state.selectingText(l),!(W&&lp(C,q,W,xe,l))&&(q==1?W?mg(C,W,xe,l):sn(l)==K.scroller&&On(l):q==2?(W&&uu(C.doc,W),setTimeout(function(){return K.input.focus()},20)):q==3&&(M?C.display.input.onContextMenu(l):Go(C)))}}}function lp(l,C,K,W,q){var xe="Click";return W=="double"?xe="Double"+xe:W=="triple"&&(xe="Triple"+xe),xe=(C==1?"Left":C==2?"Middle":"Right")+xe,yh(l,bl(xe,q),q,function(je){if(typeof je=="string"&&(je=Wc[je]),!je)return!1;var Ze=!1;try{l.isReadOnly()&&(l.state.suppressEdits=!0),Ze=je(l,K)!=De}finally{l.state.suppressEdits=!1}return Ze})}function ad(l,C,K){var W=l.getOption("configureMouse"),q=W?W(l,C,K):{};if(q.unit==null){var xe=R?K.shiftKey&&K.metaKey:K.altKey;q.unit=xe?"rectangle":C=="single"?"char":C=="double"?"word":"line"}return(q.extend==null||l.doc.extend)&&(q.extend=l.doc.extend||K.shiftKey),q.addNew==null&&(q.addNew=_?K.metaKey:K.ctrlKey),q.moveOnDrag==null&&(q.moveOnDrag=!(_?K.altKey:K.ctrlKey)),q}function mg(l,C,K,W){I?setTimeout(me(Lo,l),0):l.curOp.focus=ae();var q=ad(l,K,W),xe=l.doc.sel,je;l.options.dragDrop&&gr&&!l.isReadOnly()&&K=="single"&&(je=xe.contains(C))>-1&&(or((je=xe.ranges[je]).from(),C)<0||C.xRel>0)&&(or(je.to(),C)>0||C.xRel<0)?up(l,W,C,q):dv(l,W,C,q)}function up(l,C,K,W){var q=l.display,xe=!1,je=_r(l,function(ot){d&&(q.scroller.draggable=!1),l.state.draggingText=!1,jt(q.wrapper.ownerDocument,"mouseup",je),jt(q.wrapper.ownerDocument,"mousemove",Ze),jt(q.scroller,"dragstart",$e),jt(q.scroller,"drop",je),xe||(On(ot),W.addNew||uu(l.doc,K,null,null,W.extend),d&&!v||I&&u==9?setTimeout(function(){q.wrapper.ownerDocument.body.focus({preventScroll:!0}),q.input.focus()},20):q.input.focus())}),Ze=function(ot){xe=xe||Math.abs(C.clientX-ot.clientX)+Math.abs(C.clientY-ot.clientY)>=10},$e=function(){return xe=!0};d&&(q.scroller.draggable=!0),l.state.draggingText=je,je.copy=!W.moveOnDrag,q.scroller.dragDrop&&q.scroller.dragDrop(),ht(q.wrapper.ownerDocument,"mouseup",je),ht(q.wrapper.ownerDocument,"mousemove",Ze),ht(q.scroller,"dragstart",$e),ht(q.scroller,"drop",je),Go(l),setTimeout(function(){return q.input.focus()},20)}function cp(l,C,K){if(K=="char")return new wn(C,C);if(K=="word")return l.findWordAt(C);if(K=="line")return new wn(bn(C.line,0),Fr(l.doc,bn(C.line+1,0)));var W=K(l,C);return new wn(W.from,W.to)}function dv(l,C,K,W){var q=l.display,xe=l.doc;On(C);var je,Ze,$e=xe.sel,ot=$e.ranges;if(W.addNew&&!W.extend?(Ze=xe.sel.contains(K),Ze>-1?je=ot[Ze]:je=new wn(K,K)):(je=xe.sel.primary(),Ze=xe.sel.primIndex),W.unit=="rectangle")W.addNew||(je=new wn(K,K)),K=Ys(l,C,!0,!0),Ze=-1;else{var Ot=cp(l,K,W.unit);W.extend?je=Cu(je,Ot.anchor,Ot.head,W.extend):je=Ot}W.addNew?Ze==-1?(Ze=ot.length,Ko(xe,fn(l,ot.concat([je]),Ze),{scroll:!1,origin:"*mouse"})):ot.length>1&&ot[Ze].empty()&&W.unit=="char"&&!W.extend?(Ko(xe,fn(l,ot.slice(0,Ze).concat(ot.slice(Ze+1)),0),{scroll:!1,origin:"*mouse"}),$e=xe.sel):$l(xe,Ze,je,He):(Ze=0,Ko(xe,new pn([je],0),He),$e=xe.sel);var gt=K;function Xt(Er){if(or(gt,Er)!=0)if(gt=Er,W.unit=="rectangle"){for(var Kr=[],Ti=l.options.tabSize,br=ee(Jn(xe,K.line).text,K.ch,Ti),to=ee(Jn(xe,Er.line).text,Er.ch,Ti),Ts=Math.min(br,to),ga=Math.max(br,to),Ps=Math.min(K.line,Er.line),xl=Math.min(l.lastLine(),Math.max(K.line,Er.line));Ps<=xl;Ps++){var Xa=Jn(xe,Ps).text,aa=Je(Xa,Ts,Ti);Ts==ga?Kr.push(new wn(bn(Ps,aa),bn(Ps,aa))):Xa.length>aa&&Kr.push(new wn(bn(Ps,aa),bn(Ps,Je(Xa,ga,Ti))))}Kr.length||Kr.push(new wn(K,K)),Ko(xe,fn(l,$e.ranges.slice(0,Ze).concat(Kr),Ze),{origin:"*mouse",scroll:!1}),l.scrollIntoView(Er)}else{var Dl=je,Fa=cp(l,Er,W.unit),la=Dl.anchor,Ho;or(Fa.anchor,la)>0?(Ho=Fa.head,la=yr(Dl.from(),Fa.anchor)):(Ho=Fa.anchor,la=ki(Dl.to(),Fa.head));var Us=$e.ranges.slice(0);Us[Ze]=vg(l,new wn(Fr(xe,la),Ho)),Ko(xe,fn(l,Us,Ze),He)}}var Wt=q.wrapper.getBoundingClientRect(),Dn=0;function Bn(Er){var Kr=++Dn,Ti=Ys(l,Er,!0,W.unit=="rectangle");if(Ti)if(or(Ti,gt)!=0){l.curOp.focus=ae(),Xt(Ti);var br=Wi(q,xe);(Ti.line>=br.to||Ti.line<br.from)&&setTimeout(_r(l,function(){Dn==Kr&&Bn(Er)}),150)}else{var to=Er.clientY<Wt.top?-20:Er.clientY>Wt.bottom?20:0;to&&setTimeout(_r(l,function(){Dn==Kr&&(q.scroller.scrollTop+=to,Bn(Er))}),50)}}function Kn(Er){l.state.selectingText=!1,Dn=1/0,Er&&(On(Er),q.input.focus()),jt(q.wrapper.ownerDocument,"mousemove",cr),jt(q.wrapper.ownerDocument,"mouseup",Hr),xe.history.lastSelOrigin=null}var cr=_r(l,function(Er){Er.buttons===0||!xt(Er)?Kn(Er):Bn(Er)}),Hr=_r(l,Kn);l.state.selectingText=Hr,ht(q.wrapper.ownerDocument,"mousemove",cr),ht(q.wrapper.ownerDocument,"mouseup",Hr)}function vg(l,C){var K=C.anchor,W=C.head,q=Jn(l.doc,K.line);if(or(K,W)==0&&K.sticky==W.sticky)return C;var xe=_t(q);if(!xe)return C;var je=ct(xe,K.ch,K.sticky),Ze=xe[je];if(Ze.from!=K.ch&&Ze.to!=K.ch)return C;var $e=je+(Ze.from==K.ch==(Ze.level!=1)?0:1);if($e==0||$e==xe.length)return C;var ot;if(W.line!=K.line)ot=(W.line-K.line)*(l.doc.direction=="ltr"?1:-1)>0;else{var Ot=ct(xe,W.ch,W.sticky),gt=Ot-je||(W.ch-K.ch)*(Ze.level==1?-1:1);Ot==$e-1||Ot==$e?ot=gt<0:ot=gt>0}var Xt=xe[$e+(ot?-1:0)],Wt=ot==(Xt.level==1),Dn=Wt?Xt.from:Xt.to,Bn=Wt?"after":"before";return K.ch==Dn&&K.sticky==Bn?C:new wn(new bn(K.line,Dn,Bn),W)}function ld(l,C,K,W){var q,xe;if(C.touches)q=C.touches[0].clientX,xe=C.touches[0].clientY;else try{q=C.clientX,xe=C.clientY}catch(Xt){return!1}if(q>=Math.floor(l.display.gutters.getBoundingClientRect().right))return!1;W&&On(C);var je=l.display,Ze=je.lineDiv.getBoundingClientRect();if(xe>Ze.bottom||!mn(l,K))return Fn(C);xe-=Ze.top-je.viewOffset;for(var $e=0;$e<l.display.gutterSpecs.length;++$e){var ot=je.gutters.childNodes[$e];if(ot&&ot.getBoundingClientRect().right>=q){var Ot=Yn(l.doc,xe),gt=l.display.gutterSpecs[$e];return st(l,K,l,Ot,gt.className,C),Fn(C)}}}function ud(l,C){return ld(l,C,"gutterClick",!0)}function cd(l,C){Qo(l.display,C)||yg(l,C)||ge(l,C,"contextmenu")||M||l.display.input.onContextMenu(C)}function yg(l,C){return mn(l,"gutterContextMenu")?ld(l,C,"gutterContextMenu",!1):!1}function hd(l){l.display.wrapper.className=l.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+l.options.theme.replace(/(^|\s)\s*/g," cm-s-"),kl(l)}var Vc={toString:function(){return"CodeMirror.Init"}},hp={},Nf={};function bg(l){var C=l.optionHandlers;function K(W,q,xe,je){l.defaults[W]=q,xe&&(C[W]=je?function(Ze,$e,ot){ot!=Vc&&xe(Ze,$e,ot)}:xe)}l.defineOption=K,l.Init=Vc,K("value","",function(W,q){return W.setValue(q)},!0),K("mode",null,function(W,q){W.doc.modeOption=q,$n(W)},!0),K("indentUnit",2,$n,!0),K("indentWithTabs",!1),K("smartIndent",!0),K("tabSize",4,function(W){Mi(W),kl(W),Io(W)},!0),K("lineSeparator",null,function(W,q){if(W.doc.lineSep=q,!!q){var xe=[],je=W.doc.first;W.doc.iter(function($e){for(var ot=0;;){var Ot=$e.text.indexOf(q,ot);if(Ot==-1)break;ot=Ot+q.length,xe.push(bn(je,Ot))}je++});for(var Ze=xe.length-1;Ze>=0;Ze--)oa(W.doc,q,xe[Ze],bn(xe[Ze].line,xe[Ze].ch+q.length))}}),K("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(W,q,xe){W.state.specialChars=new RegExp(q.source+(q.test(" ")?"":"| "),"g"),xe!=Vc&&W.refresh()}),K("specialCharPlaceholder",no,function(W){return W.refresh()},!0),K("electricChars",!0),K("inputStyle",T?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),K("spellcheck",!1,function(W,q){return W.getInputField().spellcheck=q},!0),K("autocorrect",!1,function(W,q){return W.getInputField().autocorrect=q},!0),K("autocapitalize",!1,function(W,q){return W.getInputField().autocapitalize=q},!0),K("rtlMoveVisually",!A),K("wholeLineUpdateBefore",!0),K("theme","default",function(W){hd(W),zt(W)},!0),K("keyMap","default",function(W,q,xe){var je=Zl(q),Ze=xe!=Vc&&Zl(xe);Ze&&Ze.detach&&Ze.detach(W,je),je.attach&&je.attach(W,Ze||null)}),K("extraKeys",null),K("configureMouse",null),K("lineWrapping",!1,Sg,!0),K("gutters",[],function(W,q){W.display.gutterSpecs=Zt(q,W.options.lineNumbers),zt(W)},!0),K("fixedGutter",!0,function(W,q){W.display.gutters.style.left=q?pl(W.display)+"px":"0",W.refresh()},!0),K("coverGutterNextToScrollbar",!1,function(W){return Qt(W)},!0),K("scrollbarStyle","native",function(W){Ln(W),Qt(W),W.display.scrollbars.setScrollTop(W.doc.scrollTop),W.display.scrollbars.setScrollLeft(W.doc.scrollLeft)},!0),K("lineNumbers",!1,function(W,q){W.display.gutterSpecs=Zt(W.options.gutters,q),zt(W)},!0),K("firstLineNumber",1,zt,!0),K("lineNumberFormatter",function(W){return W},zt,!0),K("showCursorWhenSelecting",!1,Ds,!0),K("resetSelectionOnContextMenu",!0),K("lineWiseCopyCut",!0),K("pasteLinesPerSelection",!0),K("selectionsMayTouch",!1),K("readOnly",!1,function(W,q){q=="nocursor"&&(au(W),W.display.input.blur()),W.display.input.readOnlyChanged(q)}),K("screenReaderLabel",null,function(W,q){q=q===""?null:q,W.display.input.screenReaderLabelChanged(q)}),K("disableInput",!1,function(W,q){q||W.display.input.reset()},!0),K("dragDrop",!0,fd),K("allowDropFileTypes",null),K("cursorBlinkRate",530),K("cursorScrollMargin",0),K("cursorHeight",1,Ds,!0),K("singleCursorHeightPerLine",!0,Ds,!0),K("workTime",100),K("workDelay",100),K("flattenSpans",!0,Mi,!0),K("addModeClass",!1,Mi,!0),K("pollInterval",100),K("undoDepth",200,function(W,q){return W.doc.history.undoDepth=q}),K("historyEventDelay",1250),K("viewportMargin",10,function(W){return W.refresh()},!0),K("maxHighlightLength",1e4,Mi,!0),K("moveInputWithCursor",!0,function(W,q){q||W.display.input.resetPosition()}),K("tabindex",null,function(W,q){return W.display.input.getField().tabIndex=q||""}),K("autofocus",null),K("direction","ltr",function(W,q){return W.doc.setDirection(q)},!0),K("phrases",null)}function fd(l,C,K){var W=K&&K!=Vc;if(!C!=!W){var q=l.display.dragFunctions,xe=C?ht:jt;xe(l.display.scroller,"dragstart",q.start),xe(l.display.scroller,"dragenter",q.enter),xe(l.display.scroller,"dragover",q.over),xe(l.display.scroller,"dragleave",q.leave),xe(l.display.scroller,"drop",q.drop)}}function Sg(l){l.options.lineWrapping?(he(l.display.wrapper,"CodeMirror-wrap"),l.display.sizer.style.minWidth="",l.display.sizerWidth=null):(H(l.display.wrapper,"CodeMirror-wrap"),Pi(l)),zr(l),Io(l),kl(l),setTimeout(function(){return Qt(l)},100)}function Po(l,C){var K=this;if(!(this instanceof Po))return new Po(l,C);this.options=C=C?Le(C):{},Le(hp,C,!1);var W=C.value;typeof W=="string"?W=new da(W,C.mode,null,C.lineSeparator,C.direction):C.mode&&(W.modeOption=C.mode),this.doc=W;var q=new Po.inputStyles[C.inputStyle](this),xe=this.display=new k(l,W,q,C);xe.wrapper.CodeMirror=this,hd(this),C.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ln(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 se,keySeq:null,specialChars:null},C.autofocus&&!T&&xe.input.focus(),I&&u<11&&setTimeout(function(){return K.display.input.reset(!0)},20),tf(this),ol(),An(this),this.curOp.forceUpdate=!0,Mo(this,W),C.autofocus&&!T||this.hasFocus()?setTimeout(function(){K.hasFocus()&&!K.state.focused&&ro(K)},20):au(this);for(var je in Nf)Nf.hasOwnProperty(je)&&Nf[je](this,C[je],Vc);Rt(this),C.finishInit&&C.finishInit(this);for(var Ze=0;Ze<xh.length;++Ze)xh[Ze](this);Cn(this),d&&C.lineWrapping&&getComputedStyle(xe.lineDiv).textRendering=="optimizelegibility"&&(xe.lineDiv.style.textRendering="auto")}Po.defaults=hp,Po.optionHandlers=Nf;function tf(l){var C=l.display;ht(C.scroller,"mousedown",_r(l,Yu)),I&&u<11?ht(C.scroller,"dblclick",_r(l,function($e){if(!ge(l,$e)){var ot=Ys(l,$e);if(!(!ot||ud(l,$e)||Qo(l.display,$e))){On($e);var Ot=l.findWordAt(ot);uu(l.doc,Ot.anchor,Ot.head)}}})):ht(C.scroller,"dblclick",function($e){return ge(l,$e)||On($e)}),ht(C.scroller,"contextmenu",function($e){return cd(l,$e)}),ht(C.input.getField(),"contextmenu",function($e){C.scroller.contains($e.target)||cd(l,$e)});var K,W={end:0};function q(){C.activeTouch&&(K=setTimeout(function(){return C.activeTouch=null},1e3),W=C.activeTouch,W.end=+new Date)}function xe($e){if($e.touches.length!=1)return!1;var ot=$e.touches[0];return ot.radiusX<=1&&ot.radiusY<=1}function je($e,ot){if(ot.left==null)return!0;var Ot=ot.left-$e.left,gt=ot.top-$e.top;return Ot*Ot+gt*gt>20*20}ht(C.scroller,"touchstart",function($e){if(!ge(l,$e)&&!xe($e)&&!ud(l,$e)){C.input.ensurePolled(),clearTimeout(K);var ot=+new Date;C.activeTouch={start:ot,moved:!1,prev:ot-W.end<=300?W:null},$e.touches.length==1&&(C.activeTouch.left=$e.touches[0].pageX,C.activeTouch.top=$e.touches[0].pageY)}}),ht(C.scroller,"touchmove",function(){C.activeTouch&&(C.activeTouch.moved=!0)}),ht(C.scroller,"touchend",function($e){var ot=C.activeTouch;if(ot&&!Qo(C,$e)&&ot.left!=null&&!ot.moved&&new Date-ot.start<300){var Ot=l.coordsChar(C.activeTouch,"page"),gt;!ot.prev||je(ot,ot.prev)?gt=new wn(Ot,Ot):!ot.prev.prev||je(ot,ot.prev.prev)?gt=l.findWordAt(Ot):gt=new wn(bn(Ot.line,0),Fr(l.doc,bn(Ot.line+1,0))),l.setSelection(gt.anchor,gt.head),l.focus(),On($e)}q()}),ht(C.scroller,"touchcancel",q),ht(C.scroller,"scroll",function(){C.scroller.clientHeight&&(at(l,C.scroller.scrollTop),mt(l,C.scroller.scrollLeft,!0),st(l,"scroll",l))}),ht(C.scroller,"mousewheel",function($e){return Ut(l,$e)}),ht(C.scroller,"DOMMouseScroll",function($e){return Ut(l,$e)}),ht(C.wrapper,"scroll",function(){return C.wrapper.scrollTop=C.wrapper.scrollLeft=0}),C.dragFunctions={enter:function($e){ge(l,$e)||Gn($e)},over:function($e){ge(l,$e)||($h(l,$e),Gn($e))},start:function($e){return mh(l,$e)},drop:_r(l,Yh),leave:function($e){ge(l,$e)||Xh(l)}};var Ze=C.input.getField();ht(Ze,"keyup",function($e){return op.call(l,$e)}),ht(Ze,"keydown",_r(l,rp)),ht(Ze,"keypress",_r(l,Ku)),ht(Ze,"focus",function($e){return ro(l,$e)}),ht(Ze,"blur",function($e){return au(l,$e)})}var xh=[];Po.defineInitHook=function(l){return xh.push(l)};function pa(l,C,K,W){var q=l.doc,xe;K==null&&(K="add"),K=="smart"&&(q.mode.indent?xe=Ro(l,C).state:K="prev");var je=l.options.tabSize,Ze=Jn(q,C),$e=ee(Ze.text,null,je);Ze.stateAfter&&(Ze.stateAfter=null);var ot=Ze.text.match(/^\s*/)[0],Ot;if(!W&&!/\S/.test(Ze.text))Ot=0,K="not";else if(K=="smart"&&(Ot=q.mode.indent(xe,Ze.text.slice(ot.length),Ze.text),Ot==De||Ot>150)){if(!W)return;K="prev"}K=="prev"?C>q.first?Ot=ee(Jn(q,C-1).text,null,je):Ot=0:K=="add"?Ot=$e+l.options.indentUnit:K=="subtract"?Ot=$e-l.options.indentUnit:typeof K=="number"&&(Ot=$e+K),Ot=Math.max(0,Ot);var gt="",Xt=0;if(l.options.indentWithTabs)for(var Wt=Math.floor(Ot/je);Wt;--Wt)Xt+=je,gt+=" ";if(Xt<Ot&&(gt+=lt(Ot-Xt)),gt!=ot)return oa(q,gt,bn(C,0),bn(C,ot.length),"+input"),Ze.stateAfter=null,!0;for(var Dn=0;Dn<q.sel.ranges.length;Dn++){var Bn=q.sel.ranges[Dn];if(Bn.head.line==C&&Bn.head.ch<ot.length){var Kn=bn(C,ot.length);$l(q,Dn,new wn(Kn,Kn));break}}}var Sl=null;function Eh(l){Sl=l}function Rf(l,C,K,W,q){var xe=l.doc;l.display.shift=!1,W||(W=xe.sel);var je=+new Date-200,Ze=q=="paste"||l.state.pasteIncoming>je,$e=Kt(C),ot=null;if(Ze&&W.ranges.length>1)if(Sl&&Sl.text.join(`
`)==C){if(W.ranges.length%Sl.text.length==0){ot=[];for(var Ot=0;Ot<Sl.text.length;Ot++)ot.push(xe.splitLines(Sl.text[Ot]))}}else $e.length==W.ranges.length&&l.options.pasteLinesPerSelection&&(ot=Oe($e,function(cr){return[cr]}));for(var gt=l.curOp.updateInput,Xt=W.ranges.length-1;Xt>=0;Xt--){var Wt=W.ranges[Xt],Dn=Wt.from(),Bn=Wt.to();Wt.empty()&&(K&&K>0?Dn=bn(Dn.line,Dn.ch-K):l.state.overwrite&&!Ze?Bn=bn(Bn.line,Math.min(Jn(xe,Bn.line).text.length,Bn.ch+Re($e).length)):Ze&&Sl&&Sl.lineWise&&Sl.text.join(`
`)==$e.join(`
`)&&(Dn=Bn=bn(Dn.line,0)));var Kn={from:Dn,to:Bn,text:ot?ot[Xt%ot.length]:$e,origin:q||(Ze?"paste":l.state.cutIncoming>je?"cut":"+input")};fa(l.doc,Kn),Wn(l,"inputRead",l,Kn)}C&&!Ze&&dp(l,C),ml(l),l.curOp.updateInput<2&&(l.curOp.updateInput=gt),l.curOp.typing=!0,l.state.pasteIncoming=l.state.cutIncoming=-1}function fp(l,C){var K=l.clipboardData&&l.clipboardData.getData("Text");if(K)return l.preventDefault(),!C.isReadOnly()&&!C.options.disableInput&&Qn(C,function(){return Rf(C,K,0,null,"paste")}),!0}function dp(l,C){if(!(!l.options.electricChars||!l.options.smartIndent))for(var K=l.doc.sel,W=K.ranges.length-1;W>=0;W--){var q=K.ranges[W];if(!(q.head.ch>100||W&&K.ranges[W-1].head.line==q.head.line)){var xe=l.getModeAt(q.head),je=!1;if(xe.electricChars){for(var Ze=0;Ze<xe.electricChars.length;Ze++)if(C.indexOf(xe.electricChars.charAt(Ze))>-1){je=pa(l,q.head.line,"smart");break}}else xe.electricInput&&xe.electricInput.test(Jn(l.doc,q.head.line).text.slice(0,q.head.ch))&&(je=pa(l,q.head.line,"smart"));je&&Wn(l,"electricInput",l,q.head.line)}}}function pp(l){for(var C=[],K=[],W=0;W<l.doc.sel.ranges.length;W++){var q=l.doc.sel.ranges[W].head.line,xe={anchor:bn(q,0),head:bn(q+1,0)};K.push(xe),C.push(l.getRange(xe.anchor,xe.head))}return{text:C,ranges:K}}function gp(l,C,K,W){l.setAttribute("autocorrect",K?"":"off"),l.setAttribute("autocapitalize",W?"":"off"),l.setAttribute("spellcheck",!!C)}function mp(){var l=G("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),C=G("div",[l],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return d?l.style.width="1000px":l.setAttribute("wrap","off"),m&&(l.style.border="1px solid black"),gp(l),C}function Kc(l){var C=l.optionHandlers,K=l.helpers={};l.prototype={constructor:l,focus:function(){window.focus(),this.display.input.focus()},setOption:function(W,q){var xe=this.options,je=xe[W];xe[W]==q&&W!="mode"||(xe[W]=q,C.hasOwnProperty(W)&&_r(this,C[W])(this,q,je),st(this,"optionChange",this,W))},getOption:function(W){return this.options[W]},getDoc:function(){return this.doc},addKeyMap:function(W,q){this.state.keyMaps[q?"push":"unshift"](Zl(W))},removeKeyMap:function(W){for(var q=this.state.keyMaps,xe=0;xe<q.length;++xe)if(q[xe]==W||q[xe].name==W)return q.splice(xe,1),!0},addOverlay:Xr(function(W,q){var xe=W.token?W:l.getMode(this.options,W);if(xe.startState)throw new Error("Overlays may not be stateful.");pe(this.state.overlays,{mode:xe,modeSpec:W,opaque:q&&q.opaque,priority:q&&q.priority||0},function(je){return je.priority}),this.state.modeGen++,Io(this)}),removeOverlay:Xr(function(W){for(var q=this.state.overlays,xe=0;xe<q.length;++xe){var je=q[xe].modeSpec;if(je==W||typeof W=="string"&&je.name==W){q.splice(xe,1),this.state.modeGen++,Io(this);return}}}),indentLine:Xr(function(W,q,xe){typeof q!="string"&&typeof q!="number"&&(q==null?q=this.options.smartIndent?"smart":"prev":q=q?"add":"subtract"),hr(this.doc,W)&&pa(this,W,q,xe)}),indentSelection:Xr(function(W){for(var q=this.doc.sel.ranges,xe=-1,je=0;je<q.length;je++){var Ze=q[je];if(Ze.empty())Ze.head.line>xe&&(pa(this,Ze.head.line,W,!0),xe=Ze.head.line,je==this.doc.sel.primIndex&&ml(this));else{var $e=Ze.from(),ot=Ze.to(),Ot=Math.max(xe,$e.line);xe=Math.min(this.lastLine(),ot.line-(ot.ch?0:1))+1;for(var gt=Ot;gt<xe;++gt)pa(this,gt,W);var Xt=this.doc.sel.ranges;$e.ch==0&&q.length==Xt.length&&Xt[je].from().ch>0&&$l(this.doc,je,new wn($e,Xt[je].to()),Be)}}}),getTokenAt:function(W,q){return Bs(this,W,q)},getLineTokens:function(W,q){return Bs(this,bn(W),q,!0)},getTokenTypeAt:function(W){W=Fr(this.doc,W);var q=Wo(this,Jn(this.doc,W.line)),xe=0,je=(q.length-1)/2,Ze=W.ch,$e;if(Ze==0)$e=q[2];else for(;;){var ot=xe+je>>1;if((ot?q[ot*2-1]:0)>=Ze)je=ot;else if(q[ot*2+1]<Ze)xe=ot+1;else{$e=q[ot*2+2];break}}var Ot=$e?$e.indexOf("overlay "):-1;return Ot<0?$e:Ot==0?null:$e.slice(0,Ot-1)},getModeAt:function(W){var q=this.doc.mode;return q.innerMode?l.innerMode(q,this.getTokenAt(W).state).mode:q},getHelper:function(W,q){return this.getHelpers(W,q)[0]},getHelpers:function(W,q){var xe=[];if(!K.hasOwnProperty(q))return xe;var je=K[q],Ze=this.getModeAt(W);if(typeof Ze[q]=="string")je[Ze[q]]&&xe.push(je[Ze[q]]);else if(Ze[q])for(var $e=0;$e<Ze[q].length;$e++){var ot=je[Ze[q][$e]];ot&&xe.push(ot)}else Ze.helperType&&je[Ze.helperType]?xe.push(je[Ze.helperType]):je[Ze.name]&&xe.push(je[Ze.name]);for(var Ot=0;Ot<je._global.length;Ot++){var gt=je._global[Ot];gt.pred(Ze,this)&&le(xe,gt.val)==-1&&xe.push(gt.val)}return xe},getStateAfter:function(W,q){var xe=this.doc;return W=Mr(xe,W==null?xe.first+xe.size-1:W),Ro(this,W+1,q).state},cursorCoords:function(W,q){var xe,je=this.doc.sel.primary();return W==null?xe=je.head:typeof W=="object"?xe=Fr(this.doc,W):xe=W?je.from():je.to(),os(this,xe,q||"page")},charCoords:function(W,q){return ba(this,Fr(this.doc,W),q||"page")},coordsChar:function(W,q){return W=ju(this,W,q||"page"),Wl(this,W.left,W.top)},lineAtHeight:function(W,q){return W=ju(this,{top:W,left:0},q||"page").top,Yn(this.doc,W+this.display.viewOffset)},heightAtLine:function(W,q,xe){var je=!1,Ze;if(typeof W=="number"){var $e=this.doc.first+this.doc.size-1;W<this.doc.first?W=this.doc.first:W>$e&&(W=$e,je=!0),Ze=Jn(this.doc,W)}else Ze=W;return js(this,Ze,{top:0,left:0},q||"page",xe||je).top+(je?this.doc.height-fr(Ze):0)},defaultTextHeight:function(){return Ga(this.display)},defaultCharWidth:function(){return Vl(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(W,q,xe,je,Ze){var $e=this.display;W=os(this,Fr(this.doc,W));var ot=W.bottom,Ot=W.left;if(q.style.position="absolute",q.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(q),$e.sizer.appendChild(q),je=="over")ot=W.top;else if(je=="above"||je=="near"){var gt=Math.max($e.wrapper.clientHeight,this.doc.height),Xt=Math.max($e.sizer.clientWidth,$e.lineSpace.clientWidth);(je=="above"||W.bottom+q.offsetHeight>gt)&&W.top>q.offsetHeight?ot=W.top-q.offsetHeight:W.bottom+q.offsetHeight<=gt&&(ot=W.bottom),Ot+q.offsetWidth>Xt&&(Ot=Xt-q.offsetWidth)}q.style.top=ot+"px",q.style.left=q.style.right="",Ze=="right"?(Ot=$e.sizer.clientWidth-q.offsetWidth,q.style.right="0px"):(Ze=="left"?Ot=0:Ze=="middle"&&(Ot=($e.sizer.clientWidth-q.offsetWidth)/2),q.style.left=Ot+"px"),xe&&Hu(this,{left:Ot,top:ot,right:Ot+q.offsetWidth,bottom:ot+q.offsetHeight})},triggerOnKeyDown:Xr(rp),triggerOnKeyPress:Xr(Ku),triggerOnKeyUp:op,triggerOnMouseDown:Xr(Yu),execCommand:function(W){if(Wc.hasOwnProperty(W))return Wc[W].call(null,this)},triggerElectric:Xr(function(W){dp(this,W)}),findPosH:function(W,q,xe,je){var Ze=1;q<0&&(Ze=-1,q=-q);for(var $e=Fr(this.doc,W),ot=0;ot<q&&($e=If(this.doc,$e,Ze,xe,je),!$e.hitSide);++ot);return $e},moveH:Xr(function(W,q){var xe=this;this.extendSelectionsBy(function(je){return xe.display.shift||xe.doc.extend||je.empty()?If(xe.doc,je.head,W,q,xe.options.rtlMoveVisually):W<0?je.from():je.to()},Fe)}),deleteH:Xr(function(W,q){var xe=this.doc.sel,je=this.doc;xe.somethingSelected()?je.replaceSelection("",null,"+delete"):ta(this,function(Ze){var $e=If(je,Ze.head,W,q,!1);return W<0?{from:$e,to:Ze.head}:{from:Ze.head,to:$e}})}),findPosV:function(W,q,xe,je){var Ze=1,$e=je;q<0&&(Ze=-1,q=-q);for(var ot=Fr(this.doc,W),Ot=0;Ot<q;++Ot){var gt=os(this,ot,"div");if($e==null?$e=gt.left:gt.left=$e,ot=Yc(this,gt,Ze,xe),ot.hitSide)break}return ot},moveV:Xr(function(W,q){var xe=this,je=this.doc,Ze=[],$e=!this.display.shift&&!je.extend&&je.sel.somethingSelected();if(je.extendSelectionsBy(function(Ot){if($e)return W<0?Ot.from():Ot.to();var gt=os(xe,Ot.head,"div");Ot.goalColumn!=null&&(gt.left=Ot.goalColumn),Ze.push(gt.left);var Xt=Yc(xe,gt,W,q);return q=="page"&&Ot==je.sel.primary()&&Il(xe,ba(xe,Xt,"div").top-gt.top),Xt},Fe),Ze.length)for(var ot=0;ot<je.sel.ranges.length;ot++)je.sel.ranges[ot].goalColumn=Ze[ot]}),findWordAt:function(W){var q=this.doc,xe=Jn(q,W.line).text,je=W.ch,Ze=W.ch;if(xe){var $e=this.getHelper(W,"wordChars");(W.sticky=="before"||Ze==xe.length)&&je?--je:++Ze;for(var ot=xe.charAt(je),Ot=_e(ot,$e)?function(gt){return _e(gt,$e)}:/\s/.test(ot)?function(gt){return/\s/.test(gt)}:function(gt){return!/\s/.test(gt)&&!_e(gt)};je>0&&Ot(xe.charAt(je-1));)--je;for(;Ze<xe.length&&Ot(xe.charAt(Ze));)++Ze}return new wn(bn(W.line,je),bn(W.line,Ze))},toggleOverwrite:function(W){W!=null&&W==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?he(this.display.cursorDiv,"CodeMirror-overwrite"):H(this.display.cursorDiv,"CodeMirror-overwrite"),st(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ae()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Xr(function(W,q){Kl(this,W,q)}),getScrollInfo:function(){var W=this.display.scroller;return{left:W.scrollLeft,top:W.scrollTop,height:W.scrollHeight-rs(this)-this.display.barHeight,width:W.scrollWidth-rs(this)-this.display.barWidth,clientHeight:ou(this),clientWidth:Bo(this)}},scrollIntoView:Xr(function(W,q){W==null?(W={from:this.doc.sel.primary().head,to:null},q==null&&(q=this.options.cursorScrollMargin)):typeof W=="number"?W={from:bn(W,0),to:null}:W.from==null&&(W={from:W,to:null}),W.to||(W.to=W.from),W.margin=q||0,W.from.line!=null?io(this,W):Ke(this,W.from,W.to,W.margin)}),setSize:Xr(function(W,q){var xe=this,je=function($e){return typeof $e=="number"||/^\d+$/.test(String($e))?$e+"px":$e};W!=null&&(this.display.wrapper.style.width=je(W)),q!=null&&(this.display.wrapper.style.height=je(q)),this.options.lineWrapping&&Bu(this);var Ze=this.display.viewFrom;this.doc.iter(Ze,this.display.viewTo,function($e){if($e.widgets){for(var ot=0;ot<$e.widgets.length;ot++)if($e.widgets[ot].noHScroll){Ci(xe,Ze,"widget");break}}++Ze}),this.curOp.forceUpdate=!0,st(this,"refresh",this)}),operation:function(W){return Qn(this,W)},startOperation:function(){return An(this)},endOperation:function(){return Cn(this)},refresh:Xr(function(){var W=this.display.cachedTextHeight;Io(this),this.curOp.forceUpdate=!0,kl(this),Kl(this,this.doc.scrollLeft,this.doc.scrollTop),bt(this.display),(W==null||Math.abs(W-Ga(this.display))>.5||this.options.lineWrapping)&&zr(this),st(this,"refresh",this)}),swapDoc:Xr(function(W){var q=this.doc;return q.cm=null,this.state.selectingText&&this.state.selectingText(),Mo(this,W),kl(this),this.display.input.reset(),Kl(this,W.scrollLeft,W.scrollTop),this.curOp.forceScroll=!0,Wn(this,"swapDoc",this,q),q}),phrase:function(W){var q=this.options.phrases;return q&&Object.prototype.hasOwnProperty.call(q,W)?q[W]:W},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}},Mt(l),l.registerHelper=function(W,q,xe){K.hasOwnProperty(W)||(K[W]=l[W]={_global:[]}),K[W][q]=xe},l.registerGlobalHelper=function(W,q,xe,je){l.registerHelper(W,q,je),K[W]._global.push({pred:xe,val:je})}}function If(l,C,K,W,q){var xe=C,je=K,Ze=Jn(l,C.line),$e=q&&l.direction=="rtl"?-K:K;function ot(){var Hr=C.line+$e;return Hr<l.first||Hr>=l.first+l.size?!1:(C=new bn(Hr,C.ch,C.sticky),Ze=Jn(l,Hr))}function Ot(Hr){var Er;if(W=="codepoint"){var Kr=Ze.text.charCodeAt(C.ch+(W>0?0:-1));isNaN(Kr)?Er=null:Er=new bn(C.line,Math.max(0,Math.min(Ze.text.length,C.ch+K*(Kr>=55296&&Kr<56320?2:1))),-K)}else q?Er=rd(l.cm,Ze,C,K):Er=Cs(Ze,C,K);if(Er==null)if(!Hr&&ot())C=_c(q,l.cm,Ze,C.line,$e);else return!1;else C=Er;return!0}if(W=="char"||W=="codepoint")Ot();else if(W=="column")Ot(!0);else if(W=="word"||W=="group")for(var gt=null,Xt=W=="group",Wt=l.cm&&l.cm.getHelper(C,"wordChars"),Dn=!0;!(K<0&&!Ot(!Dn));Dn=!1){var Bn=Ze.text.charAt(C.ch)||`
`,Kn=_e(Bn,Wt)?"w":Xt&&Bn==`
`?"n":!Xt||/\s/.test(Bn)?null:"p";if(Xt&&!Dn&&!Kn&&(Kn="s"),gt&&gt!=Kn){K<0&&(K=1,Ot(),C.sticky="after");break}if(Kn&&(gt=Kn),K>0&&!Ot(!Dn))break}var cr=Ui(l,C,xe,je,!0);return Ei(xe,cr)&&(cr.hitSide=!0),cr}function Yc(l,C,K,W){var q=l.doc,xe=C.left,je;if(W=="page"){var Ze=Math.min(l.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),$e=Math.max(Ze-.5*Ga(l.display),3);je=(K>0?C.bottom:C.top)+K*$e}else W=="line"&&(je=K>0?C.bottom+3:C.top-3);for(var ot;ot=Wl(l,xe,je),!!ot.outside;){if(K<0?je<=0:je>=q.height){ot.hitSide=!0;break}je+=K*5}return ot}var ps=function(l){this.cm=l,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new se,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ps.prototype.init=function(l){var C=this,K=this,W=K.cm,q=K.div=l.lineDiv;gp(q,W.options.spellcheck,W.options.autocorrect,W.options.autocapitalize);function xe(Ze){for(var $e=Ze.target;$e;$e=$e.parentNode){if($e==q)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test($e.className))break}return!1}ht(q,"paste",function(Ze){!xe(Ze)||ge(W,Ze)||fp(Ze,W)||u<=11&&setTimeout(_r(W,function(){return C.updateFromDOM()}),20)}),ht(q,"compositionstart",function(Ze){C.composing={data:Ze.data,done:!1}}),ht(q,"compositionupdate",function(Ze){C.composing||(C.composing={data:Ze.data,done:!1})}),ht(q,"compositionend",function(Ze){C.composing&&(Ze.data!=C.composing.data&&C.readFromDOMSoon(),C.composing.done=!0)}),ht(q,"touchstart",function(){return K.forceCompositionEnd()}),ht(q,"input",function(){C.composing||C.readFromDOMSoon()});function je(Ze){if(!(!xe(Ze)||ge(W,Ze))){if(W.somethingSelected())Eh({lineWise:!1,text:W.getSelections()}),Ze.type=="cut"&&W.replaceSelection("",null,"cut");else if(W.options.lineWiseCopyCut){var $e=pp(W);Eh({lineWise:!0,text:$e.text}),Ze.type=="cut"&&W.operation(function(){W.setSelections($e.ranges,0,Be),W.replaceSelection("",null,"cut")})}else return;if(Ze.clipboardData){Ze.clipboardData.clearData();var ot=Sl.text.join(`
`);if(Ze.clipboardData.setData("Text",ot),Ze.clipboardData.getData("Text")==ot){Ze.preventDefault();return}}var Ot=mp(),gt=Ot.firstChild;W.display.lineSpace.insertBefore(Ot,W.display.lineSpace.firstChild),gt.value=Sl.text.join(`
`);var Xt=document.activeElement;we(gt),setTimeout(function(){W.display.lineSpace.removeChild(Ot),Xt.focus(),Xt==q&&K.showPrimarySelection()},50)}}ht(q,"copy",je),ht(q,"cut",je)},ps.prototype.screenReaderLabelChanged=function(l){l?this.div.setAttribute("aria-label",l):this.div.removeAttribute("aria-label")},ps.prototype.prepareSelection=function(){var l=gl(this.cm,!1);return l.focus=document.activeElement==this.div,l},ps.prototype.showSelection=function(l,C){!l||!this.cm.display.view.length||((l.focus||C)&&this.showPrimarySelection(),this.showMultipleSelections(l))},ps.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ps.prototype.showPrimarySelection=function(){var l=this.getSelection(),C=this.cm,K=C.doc.sel.primary(),W=K.from(),q=K.to();if(C.display.viewTo==C.display.viewFrom||W.line>=C.display.viewTo||q.line<C.display.viewFrom){l.removeAllRanges();return}var xe=Of(C,l.anchorNode,l.anchorOffset),je=Of(C,l.focusNode,l.focusOffset);if(!(xe&&!xe.bad&&je&&!je.bad&&or(yr(xe,je),W)==0&&or(ki(xe,je),q)==0)){var Ze=C.display.view,$e=W.line>=C.display.viewFrom&&dd(C,W)||{node:Ze[0].measure.map[2],offset:0},ot=q.line<C.display.viewTo&&dd(C,q);if(!ot){var Ot=Ze[Ze.length-1].measure,gt=Ot.maps?Ot.maps[Ot.maps.length-1]:Ot.map;ot={node:gt[gt.length-1],offset:gt[gt.length-2]-gt[gt.length-3]}}if(!$e||!ot){l.removeAllRanges();return}var Xt=l.rangeCount&&l.getRangeAt(0),Wt;try{Wt=ne($e.node,$e.offset,ot.offset,ot.node)}catch(Dn){}Wt&&(!B&&C.state.focused?(l.collapse($e.node,$e.offset),Wt.collapsed||(l.removeAllRanges(),l.addRange(Wt))):(l.removeAllRanges(),l.addRange(Wt)),Xt&&l.anchorNode==null?l.addRange(Xt):B&&this.startGracePeriod()),this.rememberSelection()}},ps.prototype.startGracePeriod=function(){var l=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){l.gracePeriod=!1,l.selectionChanged()&&l.cm.operation(function(){return l.cm.curOp.selectionChanged=!0})},20)},ps.prototype.showMultipleSelections=function(l){V(this.cm.display.cursorDiv,l.cursors),V(this.cm.display.selectionDiv,l.selection)},ps.prototype.rememberSelection=function(){var l=this.getSelection();this.lastAnchorNode=l.anchorNode,this.lastAnchorOffset=l.anchorOffset,this.lastFocusNode=l.focusNode,this.lastFocusOffset=l.focusOffset},ps.prototype.selectionInEditor=function(){var l=this.getSelection();if(!l.rangeCount)return!1;var C=l.getRangeAt(0).commonAncestorContainer;return ue(this.div,C)},ps.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},ps.prototype.blur=function(){this.div.blur()},ps.prototype.getField=function(){return this.div},ps.prototype.supportsTouch=function(){return!0},ps.prototype.receivedFocus=function(){var l=this;this.selectionInEditor()?this.pollSelection():Qn(this.cm,function(){return l.cm.curOp.selectionChanged=!0});function C(){l.cm.state.focused&&(l.pollSelection(),l.polling.set(l.cm.options.pollInterval,C))}this.polling.set(this.cm.options.pollInterval,C)},ps.prototype.selectionChanged=function(){var l=this.getSelection();return l.anchorNode!=this.lastAnchorNode||l.anchorOffset!=this.lastAnchorOffset||l.focusNode!=this.lastFocusNode||l.focusOffset!=this.lastFocusOffset},ps.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var l=this.getSelection(),C=this.cm;if(x&&y&&this.cm.display.gutterSpecs.length&&vp(l.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var K=Of(C,l.anchorNode,l.anchorOffset),W=Of(C,l.focusNode,l.focusOffset);K&&W&&Qn(C,function(){Ko(C.doc,Tr(K,W),Be),(K.bad||W.bad)&&(C.curOp.selectionChanged=!0)})}}},ps.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var l=this.cm,C=l.display,K=l.doc.sel.primary(),W=K.from(),q=K.to();if(W.ch==0&&W.line>l.firstLine()&&(W=bn(W.line-1,Jn(l.doc,W.line-1).length)),q.ch==Jn(l.doc,q.line).text.length&&q.line<l.lastLine()&&(q=bn(q.line+1,0)),W.line<C.viewFrom||q.line>C.viewTo-1)return!1;var xe,je,Ze;W.line==C.viewFrom||(xe=Sa(l,W.line))==0?(je=Lt(C.view[0].line),Ze=C.view[0].node):(je=Lt(C.view[xe].line),Ze=C.view[xe-1].node.nextSibling);var $e=Sa(l,q.line),ot,Ot;if($e==C.view.length-1?(ot=C.viewTo-1,Ot=C.lineDiv.lastChild):(ot=Lt(C.view[$e+1].line)-1,Ot=C.view[$e+1].node.previousSibling),!Ze)return!1;for(var gt=l.doc.splitLines(rf(l,Ze,Ot,je,ot)),Xt=bi(l.doc,bn(je,0),bn(ot,Jn(l.doc,ot).text.length));gt.length>1&&Xt.length>1;)if(Re(gt)==Re(Xt))gt.pop(),Xt.pop(),ot--;else if(gt[0]==Xt[0])gt.shift(),Xt.shift(),je++;else break;for(var Wt=0,Dn=0,Bn=gt[0],Kn=Xt[0],cr=Math.min(Bn.length,Kn.length);Wt<cr&&Bn.charCodeAt(Wt)==Kn.charCodeAt(Wt);)++Wt;for(var Hr=Re(gt),Er=Re(Xt),Kr=Math.min(Hr.length-(gt.length==1?Wt:0),Er.length-(Xt.length==1?Wt:0));Dn<Kr&&Hr.charCodeAt(Hr.length-Dn-1)==Er.charCodeAt(Er.length-Dn-1);)++Dn;if(gt.length==1&&Xt.length==1&&je==W.line)for(;Wt&&Wt>W.ch&&Hr.charCodeAt(Hr.length-Dn-1)==Er.charCodeAt(Er.length-Dn-1);)Wt--,Dn++;gt[gt.length-1]=Hr.slice(0,Hr.length-Dn).replace(/^\u200b+/,""),gt[0]=gt[0].slice(Wt).replace(/\u200b+$/,"");var Ti=bn(je,Wt),br=bn(ot,Xt.length?Re(Xt).length-Dn:0);if(gt.length>1||gt[0]||or(Ti,br))return oa(l.doc,gt,Ti,br,"+input"),!0},ps.prototype.ensurePolled=function(){this.forceCompositionEnd()},ps.prototype.reset=function(){this.forceCompositionEnd()},ps.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ps.prototype.readFromDOMSoon=function(){var l=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(l.readDOMTimeout=null,l.composing)if(l.composing.done)l.composing=null;else return;l.updateFromDOM()},80))},ps.prototype.updateFromDOM=function(){var l=this;(this.cm.isReadOnly()||!this.pollContent())&&Qn(this.cm,function(){return Io(l.cm)})},ps.prototype.setUneditable=function(l){l.contentEditable="false"},ps.prototype.onKeyPress=function(l){l.charCode==0||this.composing||(l.preventDefault(),this.cm.isReadOnly()||_r(this.cm,Rf)(this.cm,String.fromCharCode(l.charCode==null?l.keyCode:l.charCode),0))},ps.prototype.readOnlyChanged=function(l){this.div.contentEditable=String(l!="nocursor")},ps.prototype.onContextMenu=function(){},ps.prototype.resetPosition=function(){},ps.prototype.needsContentAttribute=!0;function dd(l,C){var K=Ns(l,C.line);if(!K||K.hidden)return null;var W=Jn(l.doc,C.line),q=su(K,W,C.line),xe=_t(W,l.doc.direction),je="left";if(xe){var Ze=ct(xe,C.ch);je=Ze%2?"right":"left"}var $e=Fu(q.map,C.ch,je);return $e.offset=$e.collapse=="right"?$e.end:$e.start,$e}function vp(l){for(var C=l;C;C=C.parentNode)if(/CodeMirror-gutter-wrapper/.test(C.className))return!0;return!1}function nf(l,C){return C&&(l.bad=!0),l}function rf(l,C,K,W,q){var xe="",je=!1,Ze=l.doc.lineSeparator(),$e=!1;function ot(Wt){return function(Dn){return Dn.id==Wt}}function Ot(){je&&(xe+=Ze,$e&&(xe+=Ze),je=$e=!1)}function gt(Wt){Wt&&(Ot(),xe+=Wt)}function Xt(Wt){if(Wt.nodeType==1){var Dn=Wt.getAttribute("cm-text");if(Dn){gt(Dn);return}var Bn=Wt.getAttribute("cm-marker"),Kn;if(Bn){var cr=l.findMarks(bn(W,0),bn(q+1,0),ot(+Bn));cr.length&&(Kn=cr[0].find(0))&&gt(bi(l.doc,Kn.from,Kn.to).join(Ze));return}if(Wt.getAttribute("contenteditable")=="false")return;var Hr=/^(pre|div|p|li|table|br)$/i.test(Wt.nodeName);if(!/^br$/i.test(Wt.nodeName)&&Wt.textContent.length==0)return;Hr&&Ot();for(var Er=0;Er<Wt.childNodes.length;Er++)Xt(Wt.childNodes[Er]);/^(pre|p)$/i.test(Wt.nodeName)&&($e=!0),Hr&&(je=!0)}else Wt.nodeType==3&&gt(Wt.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Xt(C),C!=K;)C=C.nextSibling,$e=!1;return xe}function Of(l,C,K){var W;if(C==l.display.lineDiv){if(W=l.display.lineDiv.childNodes[K],!W)return nf(l.clipPos(bn(l.display.viewTo-1)),!0);C=null,K=0}else for(W=C;;W=W.parentNode){if(!W||W==l.display.lineDiv)return null;if(W.parentNode&&W.parentNode==l.display.lineDiv)break}for(var q=0;q<l.display.view.length;q++){var xe=l.display.view[q];if(xe.node==W)return xg(xe,C,K)}}function xg(l,C,K){var W=l.text.firstChild,q=!1;if(!C||!ue(W,C))return nf(bn(Lt(l.line),0),!0);if(C==W&&(q=!0,C=W.childNodes[K],K=0,!C)){var xe=l.rest?Re(l.rest):l.line;return nf(bn(Lt(xe),xe.text.length),q)}var je=C.nodeType==3?C:null,Ze=C;for(!je&&C.childNodes.length==1&&C.firstChild.nodeType==3&&(je=C.firstChild,K&&(K=je.nodeValue.length));Ze.parentNode!=W;)Ze=Ze.parentNode;var $e=l.measure,ot=$e.maps;function Ot(Kn,cr,Hr){for(var Er=-1;Er<(ot?ot.length:0);Er++)for(var Kr=Er<0?$e.map:ot[Er],Ti=0;Ti<Kr.length;Ti+=3){var br=Kr[Ti+2];if(br==Kn||br==cr){var to=Lt(Er<0?l.line:l.rest[Er]),Ts=Kr[Ti]+Hr;return(Hr<0||br!=Kn)&&(Ts=Kr[Ti+(Hr?1:0)]),bn(to,Ts)}}}var gt=Ot(je,Ze,K);if(gt)return nf(gt,q);for(var Xt=Ze.nextSibling,Wt=je?je.nodeValue.length-K:0;Xt;Xt=Xt.nextSibling){if(gt=Ot(Xt,Xt.firstChild,0),gt)return nf(bn(gt.line,gt.ch-Wt),q);Wt+=Xt.textContent.length}for(var Dn=Ze.previousSibling,Bn=K;Dn;Dn=Dn.previousSibling){if(gt=Ot(Dn,Dn.firstChild,-1),gt)return nf(bn(gt.line,gt.ch+Bn),q);Bn+=Dn.textContent.length}}var sa=function(l){this.cm=l,this.prevInput="",this.pollingFast=!1,this.polling=new se,this.hasSelection=!1,this.composing=null};sa.prototype.init=function(l){var C=this,K=this,W=this.cm;this.createField(l);var q=this.textarea;l.wrapper.insertBefore(this.wrapper,l.wrapper.firstChild),m&&(q.style.width="0px"),ht(q,"input",function(){I&&u>=9&&C.hasSelection&&(C.hasSelection=null),K.poll()}),ht(q,"paste",function(je){ge(W,je)||fp(je,W)||(W.state.pasteIncoming=+new Date,K.fastPoll())});function xe(je){if(!ge(W,je)){if(W.somethingSelected())Eh({lineWise:!1,text:W.getSelections()});else if(W.options.lineWiseCopyCut){var Ze=pp(W);Eh({lineWise:!0,text:Ze.text}),je.type=="cut"?W.setSelections(Ze.ranges,null,Be):(K.prevInput="",q.value=Ze.text.join(`
`),we(q))}else return;je.type=="cut"&&(W.state.cutIncoming=+new Date)}}ht(q,"cut",xe),ht(q,"copy",xe),ht(l.scroller,"paste",function(je){if(!(Qo(l,je)||ge(W,je))){if(!q.dispatchEvent){W.state.pasteIncoming=+new Date,K.focus();return}var Ze=new Event("paste");Ze.clipboardData=je.clipboardData,q.dispatchEvent(Ze)}}),ht(l.lineSpace,"selectstart",function(je){Qo(l,je)||On(je)}),ht(q,"compositionstart",function(){var je=W.getCursor("from");K.composing&&K.composing.range.clear(),K.composing={start:je,range:W.markText(je,W.getCursor("to"),{className:"CodeMirror-composing"})}}),ht(q,"compositionend",function(){K.composing&&(K.poll(),K.composing.range.clear(),K.composing=null)})},sa.prototype.createField=function(l){this.wrapper=mp(),this.textarea=this.wrapper.firstChild},sa.prototype.screenReaderLabelChanged=function(l){l?this.textarea.setAttribute("aria-label",l):this.textarea.removeAttribute("aria-label")},sa.prototype.prepareSelection=function(){var l=this.cm,C=l.display,K=l.doc,W=gl(l);if(l.options.moveInputWithCursor){var q=os(l,K.sel.primary().head,"div"),xe=C.wrapper.getBoundingClientRect(),je=C.lineDiv.getBoundingClientRect();W.teTop=Math.max(0,Math.min(C.wrapper.clientHeight-10,q.top+je.top-xe.top)),W.teLeft=Math.max(0,Math.min(C.wrapper.clientWidth-10,q.left+je.left-xe.left))}return W},sa.prototype.showSelection=function(l){var C=this.cm,K=C.display;V(K.cursorDiv,l.cursors),V(K.selectionDiv,l.selection),l.teTop!=null&&(this.wrapper.style.top=l.teTop+"px",this.wrapper.style.left=l.teLeft+"px")},sa.prototype.reset=function(l){if(!(this.contextMenuPending||this.composing)){var C=this.cm;if(C.somethingSelected()){this.prevInput="";var K=C.getSelection();this.textarea.value=K,C.state.focused&&we(this.textarea),I&&u>=9&&(this.hasSelection=K)}else l||(this.prevInput=this.textarea.value="",I&&u>=9&&(this.hasSelection=null))}},sa.prototype.getField=function(){return this.textarea},sa.prototype.supportsTouch=function(){return!1},sa.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!T||ae()!=this.textarea))try{this.textarea.focus()}catch(l){}},sa.prototype.blur=function(){this.textarea.blur()},sa.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},sa.prototype.receivedFocus=function(){this.slowPoll()},sa.prototype.slowPoll=function(){var l=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){l.poll(),l.cm.state.focused&&l.slowPoll()})},sa.prototype.fastPoll=function(){var l=!1,C=this;C.pollingFast=!0;function K(){var W=C.poll();!W&&!l?(l=!0,C.polling.set(60,K)):(C.pollingFast=!1,C.slowPoll())}C.polling.set(20,K)},sa.prototype.poll=function(){var l=this,C=this.cm,K=this.textarea,W=this.prevInput;if(this.contextMenuPending||!C.state.focused||ye(K)&&!W&&!this.composing||C.isReadOnly()||C.options.disableInput||C.state.keySeq)return!1;var q=K.value;if(q==W&&!C.somethingSelected())return!1;if(I&&u>=9&&this.hasSelection===q||_&&/[\uf700-\uf7ff]/.test(q))return C.display.input.reset(),!1;if(C.doc.sel==C.display.selForContextMenu){var xe=q.charCodeAt(0);if(xe==8203&&!W&&(W="\u200B"),xe==8666)return this.reset(),this.cm.execCommand("undo")}for(var je=0,Ze=Math.min(W.length,q.length);je<Ze&&W.charCodeAt(je)==q.charCodeAt(je);)++je;return Qn(C,function(){Rf(C,q.slice(je),W.length-je,null,l.composing?"*compose":null),q.length>1e3||q.indexOf(`
`)>-1?K.value=l.prevInput="":l.prevInput=q,l.composing&&(l.composing.range.clear(),l.composing.range=C.markText(l.composing.start,C.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},sa.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},sa.prototype.onKeyPress=function(){I&&u>=9&&(this.hasSelection=null),this.fastPoll()},sa.prototype.onContextMenu=function(l){var C=this,K=C.cm,W=K.display,q=C.textarea;C.contextMenuPending&&C.contextMenuPending();var xe=Ys(K,l),je=W.scroller.scrollTop;if(!xe||S)return;var Ze=K.options.resetSelectionOnContextMenu;Ze&&K.doc.sel.contains(xe)==-1&&_r(K,Ko)(K.doc,Tr(xe),Be);var $e=q.style.cssText,ot=C.wrapper.style.cssText,Ot=C.wrapper.offsetParent.getBoundingClientRect();C.wrapper.style.cssText="position: static",q.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(l.clientY-Ot.top-5)+"px; left: "+(l.clientX-Ot.left-5)+`px;
z-index: 1000; background: `+(I?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var gt;d&&(gt=window.scrollY),W.input.focus(),d&&window.scrollTo(null,gt),W.input.reset(),K.somethingSelected()||(q.value=C.prevInput=" "),C.contextMenuPending=Wt,W.selForContextMenu=K.doc.sel,clearTimeout(W.detectingSelectAll);function Xt(){if(q.selectionStart!=null){var Bn=K.somethingSelected(),Kn="\u200B"+(Bn?q.value:"");q.value="\u21DA",q.value=Kn,C.prevInput=Bn?"":"\u200B",q.selectionStart=1,q.selectionEnd=Kn.length,W.selForContextMenu=K.doc.sel}}function Wt(){if(C.contextMenuPending==Wt&&(C.contextMenuPending=!1,C.wrapper.style.cssText=ot,q.style.cssText=$e,I&&u<9&&W.scrollbars.setScrollTop(W.scroller.scrollTop=je),q.selectionStart!=null)){(!I||I&&u<9)&&Xt();var Bn=0,Kn=function(){W.selForContextMenu==K.doc.sel&&q.selectionStart==0&&q.selectionEnd>0&&C.prevInput=="\u200B"?_r(K,Ii)(K):Bn++<10?W.detectingSelectAll=setTimeout(Kn,500):(W.selForContextMenu=null,W.input.reset())};W.detectingSelectAll=setTimeout(Kn,200)}}if(I&&u>=9&&Xt(),M){Gn(l);var Dn=function(){jt(window,"mouseup",Dn),setTimeout(Wt,20)};ht(window,"mouseup",Dn)}else setTimeout(Wt,50)},sa.prototype.readOnlyChanged=function(l){l||this.reset(),this.textarea.disabled=l=="nocursor",this.textarea.readOnly=!!l},sa.prototype.setUneditable=function(){},sa.prototype.needsContentAttribute=!1;function Eg(l,C){if(C=C?Le(C):{},C.value=l.value,!C.tabindex&&l.tabIndex&&(C.tabindex=l.tabIndex),!C.placeholder&&l.placeholder&&(C.placeholder=l.placeholder),C.autofocus==null){var K=ae();C.autofocus=K==l||l.getAttribute("autofocus")!=null&&K==document.body}function W(){l.value=Ze.getValue()}var q;if(l.form&&(ht(l.form,"submit",W),!C.leaveSubmitMethodAlone)){var xe=l.form;q=xe.submit;try{var je=xe.submit=function(){W(),xe.submit=q,xe.submit(),xe.submit=je}}catch($e){}}C.finishInit=function($e){$e.save=W,$e.getTextArea=function(){return l},$e.toTextArea=function(){$e.toTextArea=isNaN,W(),l.parentNode.removeChild($e.getWrapperElement()),l.style.display="",l.form&&(jt(l.form,"submit",W),!C.leaveSubmitMethodAlone&&typeof l.form.submit=="function"&&(l.form.submit=q))}},l.style.display="none";var Ze=Po(function($e){return l.parentNode.insertBefore($e,l.nextSibling)},C);return Ze}function of(l){l.off=jt,l.on=ht,l.wheelEventPixels=It,l.Doc=da,l.splitLines=Kt,l.countColumn=ee,l.findColumn=Je,l.isWordChar=be,l.Pass=De,l.signal=st,l.Line=Ai,l.changeEnd=Li,l.scrollbarModel=dn,l.Pos=bn,l.cmpPos=or,l.modes=Zn,l.mimeModes=ir,l.resolveMode=li,l.getMode=Zr,l.modeExtensions=Tn,l.extendMode=kn,l.copyState=Vr,l.startState=nr,l.innerMode=di,l.commands=Wc,l.keyMap=$a,l.keyName=Ea,l.isModifierKey=$s,l.lookupKey=Xi,l.normalizeKeyMap=vo,l.StringStream=vn,l.SharedTextMarker=Ya,l.TextMarker=Ct,l.LineWidget=Yo,l.e_preventDefault=On,l.e_stopPropagation=Vn,l.e_stop=Gn,l.addClass=he,l.contains=ue,l.rmClass=H,l.keyNames=fu}bg(Po),Kc(Po);var Ac="iter insert remove copy getEditor constructor".split(" ");for(var Lf in da.prototype)da.prototype.hasOwnProperty(Lf)&&le(Ac,Lf)<0&&(Po.prototype[Lf]=function(l){return function(){return l.apply(this.doc,arguments)}}(da.prototype[Lf]));return Mt(da),Po.inputStyles={textarea:sa,contenteditable:ps},Po.defineMode=function(l){!Po.defaults.mode&&l!="null"&&(Po.defaults.mode=l),Dr.apply(this,arguments)},Po.defineMIME=ai,Po.defineMode("null",function(){return{token:function(l){return l.skipToEnd()}}}),Po.defineMIME("text/plain","null"),Po.defineExtension=function(l,C){Po.prototype[l]=C},Po.defineDocExtension=function(l,C){da.prototype[l]=C},Po.fromTextArea=Eg,of(Po),Po.version="5.58.2",Po})},49047:function(Ie,Z,b){(function(B){B(b(4631),b(29589),b(52539))})(function(B){"use strict";B.defineMode("markdown",function(Y,s){var E=B.getMode(Y,"text/html"),I=E.name=="null";function u(ee){if(B.findModeByName){var se=B.findModeByName(ee);se&&(ee=se.mime||se.mimes[0])}var le=B.getMode(Y,ee);return le.name=="null"?null:le}s.highlightFormatting===void 0&&(s.highlightFormatting=!1),s.maxBlockquoteDepth===void 0&&(s.maxBlockquoteDepth=0),s.taskLists===void 0&&(s.taskLists=!1),s.strikethrough===void 0&&(s.strikethrough=!1),s.emoji===void 0&&(s.emoji=!1),s.fencedCodeBlockHighlighting===void 0&&(s.fencedCodeBlockHighlighting=!0),s.fencedCodeBlockDefaultMode===void 0&&(s.fencedCodeBlockDefaultMode="text/plain"),s.xml===void 0&&(s.xml=!0),s.tokenTypeOverrides===void 0&&(s.tokenTypeOverrides={});var d={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 g in d)d.hasOwnProperty(g)&&s.tokenTypeOverrides[g]&&(d[g]=s.tokenTypeOverrides[g]);var y=/^([*\-_])(?:\s*\1){2,}\s*$/,S=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,v=/^\[(x| )\](?=\s)/i,c=s.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,h=/^ {0,3}(?:\={1,}|-{2,})\s*$/,m=/^[^#!\[\]*_\\<>` "'(~:]+/,x=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,T=/^\s*\[[^\]]+?\]:.*$/,_=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,R=" ";function A(ee,se,le){return se.f=se.inline=le,le(ee,se)}function N(ee,se,le){return se.f=se.block=le,le(ee,se)}function L(ee){return!ee||!/\S/.test(ee.string)}function M(ee){if(ee.linkTitle=!1,ee.linkHref=!1,ee.linkText=!1,ee.em=!1,ee.strong=!1,ee.strikethrough=!1,ee.quote=0,ee.indentedCode=!1,ee.f==H){var se=I;if(!se){var le=B.innerMode(E,ee.htmlState);se=le.mode.name=="xml"&&le.state.tagStart===null&&!le.state.context&&le.state.tokenize.isInText}se&&(ee.f=Q,ee.block=F,ee.htmlState=null)}return ee.trailingSpace=0,ee.trailingSpaceNewLine=!1,ee.prevLine=ee.thisLine,ee.thisLine={stream:null},null}function F(ee,se){var le=ee.column()===se.indentation,ke=L(se.prevLine.stream),De=se.indentedCode,Be=se.prevLine.hr,He=se.list!==!1,Fe=(se.listStack[se.listStack.length-1]||0)+3;se.indentedCode=!1;var Je=se.indentation;if(se.indentationDiff===null&&(se.indentationDiff=se.indentation,He)){for(se.list=null;Je<se.listStack[se.listStack.length-1];)se.listStack.pop(),se.listStack.length?se.indentation=se.listStack[se.listStack.length-1]:se.list=!1;se.list!==!1&&(se.indentationDiff=Je-se.listStack[se.listStack.length-1])}var Me=!ke&&!Be&&!se.prevLine.header&&(!He||!De)&&!se.prevLine.fencedCodeEnd,lt=(se.list===!1||Be||ke)&&se.indentation<=Fe&&ee.match(y),Re=null;if(se.indentationDiff>=4&&(De||se.prevLine.fencedCodeEnd||se.prevLine.header||ke))return ee.skipToEnd(),se.indentedCode=!0,d.code;if(ee.eatSpace())return null;if(le&&se.indentation<=Fe&&(Re=ee.match(c))&&Re[1].length<=6)return se.quote=0,se.header=Re[1].length,se.thisLine.header=!0,s.highlightFormatting&&(se.formatting="header"),se.f=se.inline,V(se);if(se.indentation<=Fe&&ee.eat(">"))return se.quote=le?1:se.quote+1,s.highlightFormatting&&(se.formatting="quote"),ee.eatSpace(),V(se);if(!lt&&!se.setext&&le&&se.indentation<=Fe&&(Re=ee.match(S))){var Oe=Re[1]?"ol":"ul";return se.indentation=Je+ee.current().length,se.list=!0,se.quote=0,se.listStack.push(se.indentation),se.em=!1,se.strong=!1,se.code=!1,se.strikethrough=!1,s.taskLists&&ee.match(v,!1)&&(se.taskList=!0),se.f=se.inline,s.highlightFormatting&&(se.formatting=["list","list-"+Oe]),V(se)}else{if(le&&se.indentation<=Fe&&(Re=ee.match(x,!0)))return se.quote=0,se.fencedEndRE=new RegExp(Re[1]+"+ *$"),se.localMode=s.fencedCodeBlockHighlighting&&u(Re[2]||s.fencedCodeBlockDefaultMode),se.localMode&&(se.localState=B.startState(se.localMode)),se.f=se.block=P,s.highlightFormatting&&(se.formatting="code-block"),se.code=-1,V(se);if(se.setext||(!Me||!He)&&!se.quote&&se.list===!1&&!se.code&&!lt&&!T.test(ee.string)&&(Re=ee.lookAhead(1))&&(Re=Re.match(h)))return se.setext?(se.header=se.setext,se.setext=0,ee.skipToEnd(),s.highlightFormatting&&(se.formatting="header")):(se.header=Re[0].charAt(0)=="="?1:2,se.setext=se.header),se.thisLine.header=!0,se.f=se.inline,V(se);if(lt)return ee.skipToEnd(),se.hr=!0,se.thisLine.hr=!0,d.hr;if(ee.peek()==="[")return A(ee,se,ce)}return A(ee,se,se.inline)}function H(ee,se){var le=E.token(ee,se.htmlState);if(!I){var ke=B.innerMode(E,se.htmlState);(ke.mode.name=="xml"&&ke.state.tagStart===null&&!ke.state.context&&ke.state.tokenize.isInText||se.md_inside&&ee.current().indexOf(">")>-1)&&(se.f=Q,se.block=F,se.htmlState=null)}return le}function P(ee,se){var le=se.listStack[se.listStack.length-1]||0,ke=se.indentation<le,De=le+3;if(se.fencedEndRE&&se.indentation<=De&&(ke||ee.match(se.fencedEndRE))){s.highlightFormatting&&(se.formatting="code-block");var Be;return ke||(Be=V(se)),se.localMode=se.localState=null,se.block=F,se.f=Q,se.fencedEndRE=null,se.code=0,se.thisLine.fencedCodeEnd=!0,ke?N(ee,se,se.block):Be}else return se.localMode?se.localMode.token(ee,se.localState):(ee.skipToEnd(),d.code)}function V(ee){var se=[];if(ee.formatting){se.push(d.formatting),typeof ee.formatting=="string"&&(ee.formatting=[ee.formatting]);for(var le=0;le<ee.formatting.length;le++)se.push(d.formatting+"-"+ee.formatting[le]),ee.formatting[le]==="header"&&se.push(d.formatting+"-"+ee.formatting[le]+"-"+ee.header),ee.formatting[le]==="quote"&&(!s.maxBlockquoteDepth||s.maxBlockquoteDepth>=ee.quote?se.push(d.formatting+"-"+ee.formatting[le]+"-"+ee.quote):se.push("error"))}if(ee.taskOpen)return se.push("meta"),se.length?se.join(" "):null;if(ee.taskClosed)return se.push("property"),se.length?se.join(" "):null;if(ee.linkHref?se.push(d.linkHref,"url"):(ee.strong&&se.push(d.strong),ee.em&&se.push(d.em),ee.strikethrough&&se.push(d.strikethrough),ee.emoji&&se.push(d.emoji),ee.linkText&&se.push(d.linkText),ee.code&&se.push(d.code),ee.image&&se.push(d.image),ee.imageAltText&&se.push(d.imageAltText,"link"),ee.imageMarker&&se.push(d.imageMarker)),ee.header&&se.push(d.header,d.header+"-"+ee.header),ee.quote&&(se.push(d.quote),!s.maxBlockquoteDepth||s.maxBlockquoteDepth>=ee.quote?se.push(d.quote+"-"+ee.quote):se.push(d.quote+"-"+s.maxBlockquoteDepth)),ee.list!==!1){var ke=(ee.listStack.length-1)%3;ke?ke===1?se.push(d.list2):se.push(d.list3):se.push(d.list1)}return ee.trailingSpaceNewLine?se.push("trailing-space-new-line"):ee.trailingSpace&&se.push("trailing-space-"+(ee.trailingSpace%2?"a":"b")),se.length?se.join(" "):null}function G(ee,se){if(ee.match(m,!0))return V(se)}function Q(ee,se){var le=se.text(ee,se);if(typeof le!="undefined")return le;if(se.list)return se.list=null,V(se);if(se.taskList){var ke=ee.match(v,!0)[1]===" ";return ke?se.taskOpen=!0:se.taskClosed=!0,s.highlightFormatting&&(se.formatting="task"),se.taskList=!1,V(se)}if(se.taskOpen=!1,se.taskClosed=!1,se.header&&ee.match(/^#+$/,!0))return s.highlightFormatting&&(se.formatting="header"),V(se);var De=ee.next();if(se.linkTitle){se.linkTitle=!1;var Be=De;De==="("&&(Be=")"),Be=(Be+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var He="^\\s*(?:[^"+Be+"\\\\]+|\\\\\\\\|\\\\.)"+Be;if(ee.match(new RegExp(He),!0))return d.linkHref}if(De==="`"){var Fe=se.formatting;s.highlightFormatting&&(se.formatting="code"),ee.eatWhile("`");var Je=ee.current().length;if(se.code==0&&(!se.quote||Je==1))return se.code=Je,V(se);if(Je==se.code){var Me=V(se);return se.code=0,Me}else return se.formatting=Fe,V(se)}else if(se.code)return V(se);if(De==="\\"&&(ee.next(),s.highlightFormatting)){var lt=V(se),Re=d.formatting+"-escape";return lt?lt+" "+Re:Re}if(De==="!"&&ee.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return se.imageMarker=!0,se.image=!0,s.highlightFormatting&&(se.formatting="image"),V(se);if(De==="["&&se.imageMarker&&ee.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return se.imageMarker=!1,se.imageAltText=!0,s.highlightFormatting&&(se.formatting="image"),V(se);if(De==="]"&&se.imageAltText){s.highlightFormatting&&(se.formatting="image");var lt=V(se);return se.imageAltText=!1,se.image=!1,se.inline=se.f=ue,lt}if(De==="["&&!se.image)return se.linkText&&ee.match(/^.*?\]/)||(se.linkText=!0,s.highlightFormatting&&(se.formatting="link")),V(se);if(De==="]"&&se.linkText){s.highlightFormatting&&(se.formatting="link");var lt=V(se);return se.linkText=!1,se.inline=se.f=ee.match(/\(.*?\)| ?\[.*?\]/,!1)?ue:Q,lt}if(De==="<"&&ee.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){se.f=se.inline=ne,s.highlightFormatting&&(se.formatting="link");var lt=V(se);return lt?lt+=" ":lt="",lt+d.linkInline}if(De==="<"&&ee.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){se.f=se.inline=ne,s.highlightFormatting&&(se.formatting="link");var lt=V(se);return lt?lt+=" ":lt="",lt+d.linkEmail}if(s.xml&&De==="<"&&ee.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Oe=ee.string.indexOf(">",ee.pos);if(Oe!=-1){var pe=ee.string.substring(ee.start,Oe);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(pe)&&(se.md_inside=!0)}return ee.backUp(1),se.htmlState=B.startState(E),N(ee,se,H)}if(s.xml&&De==="<"&&ee.match(/^\/\w*?>/))return se.md_inside=!1,"tag";if(De==="*"||De==="_"){for(var fe=1,z=ee.pos==1?" ":ee.string.charAt(ee.pos-2);fe<3&&ee.eat(De);)fe++;var J=ee.peek()||" ",be=!/\s/.test(J)&&(!_.test(J)||/\s/.test(z)||_.test(z)),_e=!/\s/.test(z)&&(!_.test(z)||/\s/.test(J)||_.test(J)),oe=null,ie=null;if(fe%2&&(!se.em&&be&&(De==="*"||!_e||_.test(z))?oe=!0:se.em==De&&_e&&(De==="*"||!be||_.test(J))&&(oe=!1)),fe>1&&(!se.strong&&be&&(De==="*"||!_e||_.test(z))?ie=!0:se.strong==De&&_e&&(De==="*"||!be||_.test(J))&&(ie=!1)),ie!=null||oe!=null){s.highlightFormatting&&(se.formatting=oe==null?"strong":ie==null?"em":"strong em"),oe===!0&&(se.em=De),ie===!0&&(se.strong=De);var Me=V(se);return oe===!1&&(se.em=!1),ie===!1&&(se.strong=!1),Me}}else if(De===" "&&(ee.eat("*")||ee.eat("_"))){if(ee.peek()===" ")return V(se);ee.backUp(1)}if(s.strikethrough){if(De==="~"&&ee.eatWhile(De)){if(se.strikethrough){s.highlightFormatting&&(se.formatting="strikethrough");var Me=V(se);return se.strikethrough=!1,Me}else if(ee.match(/^[^\s]/,!1))return se.strikethrough=!0,s.highlightFormatting&&(se.formatting="strikethrough"),V(se)}else if(De===" "&&ee.match(/^~~/,!0)){if(ee.peek()===" ")return V(se);ee.backUp(2)}}if(s.emoji&&De===":"&&ee.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){se.emoji=!0,s.highlightFormatting&&(se.formatting="emoji");var ve=V(se);return se.emoji=!1,ve}return De===" "&&(ee.match(/^ +$/,!1)?se.trailingSpace++:se.trailingSpace&&(se.trailingSpaceNewLine=!0)),V(se)}function ne(ee,se){var le=ee.next();if(le===">"){se.f=se.inline=Q,s.highlightFormatting&&(se.formatting="link");var ke=V(se);return ke?ke+=" ":ke="",ke+d.linkInline}return ee.match(/^[^>]+/,!0),d.linkInline}function ue(ee,se){if(ee.eatSpace())return null;var le=ee.next();return le==="("||le==="["?(se.f=se.inline=he(le==="("?")":"]"),s.highlightFormatting&&(se.formatting="link-string"),se.linkHref=!0,V(se)):"error"}var ae={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function he(ee){return function(se,le){var ke=se.next();if(ke===ee){le.f=le.inline=Q,s.highlightFormatting&&(le.formatting="link-string");var De=V(le);return le.linkHref=!1,De}return se.match(ae[ee]),le.linkHref=!0,V(le)}}function ce(ee,se){return ee.match(/^([^\]\\]|\\.)*\]:/,!1)?(se.f=we,ee.next(),s.highlightFormatting&&(se.formatting="link"),se.linkText=!0,V(se)):A(ee,se,Q)}function we(ee,se){if(ee.match(/^\]:/,!0)){se.f=se.inline=me,s.highlightFormatting&&(se.formatting="link");var le=V(se);return se.linkText=!1,le}return ee.match(/^([^\]\\]|\\.)+/,!0),d.linkText}function me(ee,se){return ee.eatSpace()?null:(ee.match(/^[^\s]+/,!0),ee.peek()===void 0?se.linkTitle=!0:ee.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),se.f=se.inline=Q,d.linkHref+" url")}var Le={startState:function(){return{f:F,prevLine:{stream:null},thisLine:{stream:null},block:F,htmlState:null,indentation:0,inline:Q,text:G,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(ee){return{f:ee.f,prevLine:ee.prevLine,thisLine:ee.thisLine,block:ee.block,htmlState:ee.htmlState&&B.copyState(E,ee.htmlState),indentation:ee.indentation,localMode:ee.localMode,localState:ee.localMode?B.copyState(ee.localMode,ee.localState):null,inline:ee.inline,text:ee.text,formatting:!1,linkText:ee.linkText,linkTitle:ee.linkTitle,linkHref:ee.linkHref,code:ee.code,em:ee.em,strong:ee.strong,strikethrough:ee.strikethrough,emoji:ee.emoji,header:ee.header,setext:ee.setext,hr:ee.hr,taskList:ee.taskList,list:ee.list,listStack:ee.listStack.slice(0),quote:ee.quote,indentedCode:ee.indentedCode,trailingSpace:ee.trailingSpace,trailingSpaceNewLine:ee.trailingSpaceNewLine,md_inside:ee.md_inside,fencedEndRE:ee.fencedEndRE}},token:function(ee,se){if(se.formatting=!1,ee!=se.thisLine.stream){if(se.header=0,se.hr=!1,ee.match(/^\s*$/,!0))return M(se),null;if(se.prevLine=se.thisLine,se.thisLine={stream:ee},se.taskList=!1,se.trailingSpace=0,se.trailingSpaceNewLine=!1,!se.localState&&(se.f=se.block,se.f!=H)){var le=ee.match(/^\s*/,!0)[0].replace(/\t/g,R).length;if(se.indentation=le,se.indentationDiff=null,le>0)return null}}return se.f(ee,se)},innerMode:function(ee){return ee.block==H?{state:ee.htmlState,mode:E}:ee.localState?{state:ee.localState,mode:ee.localMode}:{state:ee,mode:Le}},indent:function(ee,se,le){return ee.block==H&&E.indent?E.indent(ee.htmlState,se,le):ee.localState&&ee.localMode.indent?ee.localMode.indent(ee.localState,se,le):B.Pass},blankLine:M,getType:V,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Le},"xml"),B.defineMIME("text/markdown","markdown"),B.defineMIME("text/x-markdown","markdown")})},52539:function(Ie,Z,b){(function(B){B(b(4631))})(function(B){"use strict";B.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var Y=0;Y<B.modeInfo.length;Y++){var s=B.modeInfo[Y];s.mimes&&(s.mime=s.mimes[0])}B.findModeByMIME=function(E){E=E.toLowerCase();for(var I=0;I<B.modeInfo.length;I++){var u=B.modeInfo[I];if(u.mime==E)return u;if(u.mimes){for(var d=0;d<u.mimes.length;d++)if(u.mimes[d]==E)return u}}if(/\+xml$/.test(E))return B.findModeByMIME("application/xml");if(/\+json$/.test(E))return B.findModeByMIME("application/json")},B.findModeByExtension=function(E){E=E.toLowerCase();for(var I=0;I<B.modeInfo.length;I++){var u=B.modeInfo[I];if(u.ext){for(var d=0;d<u.ext.length;d++)if(u.ext[d]==E)return u}}},B.findModeByFileName=function(E){for(var I=0;I<B.modeInfo.length;I++){var u=B.modeInfo[I];if(u.file&&u.file.test(E))return u}var d=E.lastIndexOf("."),g=d>-1&&E.substring(d+1,E.length);if(g)return B.findModeByExtension(g)},B.findModeByName=function(E){E=E.toLowerCase();for(var I=0;I<B.modeInfo.length;I++){var u=B.modeInfo[I];if(u.name.toLowerCase()==E)return u;if(u.alias){for(var d=0;d<u.alias.length;d++)if(u.alias[d].toLowerCase()==E)return u}}}})},80785:function(Ie,Z,b){(function(B){B(b(4631))})(function(B){"use strict";B.defineMode("stex",function(Y,s){"use strict";function E(m,x){m.cmdState.push(x)}function I(m){return m.cmdState.length>0?m.cmdState[m.cmdState.length-1]:null}function u(m){var x=m.cmdState.pop();x&&x.closeBracket()}function d(m){for(var x=m.cmdState,T=x.length-1;T>=0;T--){var _=x[T];if(_.name!="DEFAULT")return _}return{styleIdentifier:function(){return null}}}function g(m,x,T){return function(){this.name=m,this.bracketNo=0,this.style=x,this.styles=T,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var y={};y.importmodule=g("importmodule","tag",["string","builtin"]),y.documentclass=g("documentclass","tag",["","atom"]),y.usepackage=g("usepackage","tag",["atom"]),y.begin=g("begin","tag",["atom"]),y.end=g("end","tag",["atom"]),y.label=g("label","tag",["atom"]),y.ref=g("ref","tag",["atom"]),y.eqref=g("eqref","tag",["atom"]),y.cite=g("cite","tag",["atom"]),y.bibitem=g("bibitem","tag",["atom"]),y.Bibitem=g("Bibitem","tag",["atom"]),y.RBibitem=g("RBibitem","tag",["atom"]),y.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function S(m,x){m.f=x}function v(m,x){var T;if(m.match(/^\\[a-zA-Z@]+/)){var _=m.current().slice(1);return T=y.hasOwnProperty(_)?y[_]:y.DEFAULT,T=new T,E(x,T),S(x,h),T.style}if(m.match(/^\\[$&%#{}_]/)||m.match(/^\\[,;!\/\\]/))return"tag";if(m.match("\\["))return S(x,function(A,N){return c(A,N,"\\]")}),"keyword";if(m.match("\\("))return S(x,function(A,N){return c(A,N,"\\)")}),"keyword";if(m.match("$$"))return S(x,function(A,N){return c(A,N,"$$")}),"keyword";if(m.match("$"))return S(x,function(A,N){return c(A,N,"$")}),"keyword";var R=m.next();if(R=="%")return m.skipToEnd(),"comment";if(R=="}"||R=="]"){if(T=I(x),T)T.closeBracket(R),S(x,h);else return"error";return"bracket"}else return R=="{"||R=="["?(T=y.DEFAULT,T=new T,E(x,T),"bracket"):/\d/.test(R)?(m.eatWhile(/[\w.%]/),"atom"):(m.eatWhile(/[\w\-_]/),T=d(x),T.name=="begin"&&(T.argument=m.current()),T.styleIdentifier())}function c(m,x,T){if(m.eatSpace())return null;if(T&&m.match(T))return S(x,v),"keyword";if(m.match(/^\\[a-zA-Z@]+/))return"tag";if(m.match(/^[a-zA-Z]+/))return"variable-2";if(m.match(/^\\[$&%#{}_]/)||m.match(/^\\[,;!\/]/)||m.match(/^[\^_&]/))return"tag";if(m.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(m.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var _=m.next();return _=="{"||_=="}"||_=="["||_=="]"||_=="("||_==")"?"bracket":_=="%"?(m.skipToEnd(),"comment"):"error"}function h(m,x){var T=m.peek(),_;return T=="{"||T=="["?(_=I(x),_.openBracket(T),m.eat(T),S(x,v),"bracket"):/[ \t\r]/.test(T)?(m.eat(T),null):(S(x,v),u(x),v(m,x))}return{startState:function(){var m=s.inMathMode?function(x,T){return c(x,T)}:v;return{cmdState:[],f:m}},copyState:function(m){return{cmdState:m.cmdState.slice(),f:m.f}},token:function(m,x){return x.f(m,x)},blankLine:function(m){m.f=v,m.cmdState.length=0},lineComment:"%"}}),B.defineMIME("text/x-stex","stex"),B.defineMIME("text/x-latex","stex")})},29589:function(Ie,Z,b){(function(B){B(b(4631))})(function(B){"use strict";var Y={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},s={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};B.defineMode("xml",function(E,I){var u=E.indentUnit,d={},g=I.htmlMode?Y:s;for(var y in g)d[y]=g[y];for(var y in I)d[y]=I[y];var S,v;function c(ne,ue){function ae(we){return ue.tokenize=we,we(ne,ue)}var he=ne.next();if(he=="<")return ne.eat("!")?ne.eat("[")?ne.match("CDATA[")?ae(x("atom","]]>")):null:ne.match("--")?ae(x("comment","-->")):ne.match("DOCTYPE",!0,!0)?(ne.eatWhile(/[\w\._\-]/),ae(T(1))):null:ne.eat("?")?(ne.eatWhile(/[\w\._\-]/),ue.tokenize=x("meta","?>"),"meta"):(S=ne.eat("/")?"closeTag":"openTag",ue.tokenize=h,"tag bracket");if(he=="&"){var ce;return ne.eat("#")?ne.eat("x")?ce=ne.eatWhile(/[a-fA-F\d]/)&&ne.eat(";"):ce=ne.eatWhile(/[\d]/)&&ne.eat(";"):ce=ne.eatWhile(/[\w\.\-:]/)&&ne.eat(";"),ce?"atom":"error"}else return ne.eatWhile(/[^&<]/),null}c.isInText=!0;function h(ne,ue){var ae=ne.next();if(ae==">"||ae=="/"&&ne.eat(">"))return ue.tokenize=c,S=ae==">"?"endTag":"selfcloseTag","tag bracket";if(ae=="=")return S="equals",null;if(ae=="<"){ue.tokenize=c,ue.state=N,ue.tagName=ue.tagStart=null;var he=ue.tokenize(ne,ue);return he?he+" tag error":"tag error"}else return/[\'\"]/.test(ae)?(ue.tokenize=m(ae),ue.stringStartCol=ne.column(),ue.tokenize(ne,ue)):(ne.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function m(ne){var ue=function(ae,he){for(;!ae.eol();)if(ae.next()==ne){he.tokenize=h;break}return"string"};return ue.isInAttribute=!0,ue}function x(ne,ue){return function(ae,he){for(;!ae.eol();){if(ae.match(ue)){he.tokenize=c;break}ae.next()}return ne}}function T(ne){return function(ue,ae){for(var he;(he=ue.next())!=null;){if(he=="<")return ae.tokenize=T(ne+1),ae.tokenize(ue,ae);if(he==">")if(ne==1){ae.tokenize=c;break}else return ae.tokenize=T(ne-1),ae.tokenize(ue,ae)}return"meta"}}function _(ne,ue,ae){this.prev=ne.context,this.tagName=ue,this.indent=ne.indented,this.startOfLine=ae,(d.doNotIndent.hasOwnProperty(ue)||ne.context&&ne.context.noIndent)&&(this.noIndent=!0)}function R(ne){ne.context&&(ne.context=ne.context.prev)}function A(ne,ue){for(var ae;;){if(!ne.context||(ae=ne.context.tagName,!d.contextGrabbers.hasOwnProperty(ae)||!d.contextGrabbers[ae].hasOwnProperty(ue)))return;R(ne)}}function N(ne,ue,ae){return ne=="openTag"?(ae.tagStart=ue.column(),L):ne=="closeTag"?M:N}function L(ne,ue,ae){return ne=="word"?(ae.tagName=ue.current(),v="tag",P):d.allowMissingTagName&&ne=="endTag"?(v="tag bracket",P(ne,ue,ae)):(v="error",L)}function M(ne,ue,ae){if(ne=="word"){var he=ue.current();return ae.context&&ae.context.tagName!=he&&d.implicitlyClosed.hasOwnProperty(ae.context.tagName)&&R(ae),ae.context&&ae.context.tagName==he||d.matchClosing===!1?(v="tag",F):(v="tag error",H)}else return d.allowMissingTagName&&ne=="endTag"?(v="tag bracket",F(ne,ue,ae)):(v="error",H)}function F(ne,ue,ae){return ne!="endTag"?(v="error",F):(R(ae),N)}function H(ne,ue,ae){return v="error",F(ne,ue,ae)}function P(ne,ue,ae){if(ne=="word")return v="attribute",V;if(ne=="endTag"||ne=="selfcloseTag"){var he=ae.tagName,ce=ae.tagStart;return ae.tagName=ae.tagStart=null,ne=="selfcloseTag"||d.autoSelfClosers.hasOwnProperty(he)?A(ae,he):(A(ae,he),ae.context=new _(ae,he,ce==ae.indented)),N}return v="error",P}function V(ne,ue,ae){return ne=="equals"?G:(d.allowMissing||(v="error"),P(ne,ue,ae))}function G(ne,ue,ae){return ne=="string"?Q:ne=="word"&&d.allowUnquoted?(v="string",P):(v="error",P(ne,ue,ae))}function Q(ne,ue,ae){return ne=="string"?Q:P(ne,ue,ae)}return{startState:function(ne){var ue={tokenize:c,state:N,indented:ne||0,tagName:null,tagStart:null,context:null};return ne!=null&&(ue.baseIndent=ne),ue},token:function(ne,ue){if(!ue.tagName&&ne.sol()&&(ue.indented=ne.indentation()),ne.eatSpace())return null;S=null;var ae=ue.tokenize(ne,ue);return(ae||S)&&ae!="comment"&&(v=null,ue.state=ue.state(S||ae,ne,ue),v&&(ae=v=="error"?ae+" error":v)),ae},indent:function(ne,ue,ae){var he=ne.context;if(ne.tokenize.isInAttribute)return ne.tagStart==ne.indented?ne.stringStartCol+1:ne.indented+u;if(he&&he.noIndent)return B.Pass;if(ne.tokenize!=h&&ne.tokenize!=c)return ae?ae.match(/^(\s*)/)[0].length:0;if(ne.tagName)return d.multilineTagIndentPastTag!==!1?ne.tagStart+ne.tagName.length+2:ne.tagStart+u*(d.multilineTagIndentFactor||1);if(d.alignCDATA&&/<!\[CDATA\[/.test(ue))return 0;var ce=ue&&/^<(\/)?([\w_:\.-]*)/.exec(ue);if(ce&&ce[1])for(;he;)if(he.tagName==ce[2]){he=he.prev;break}else if(d.implicitlyClosed.hasOwnProperty(he.tagName))he=he.prev;else break;else if(ce)for(;he;){var we=d.contextGrabbers[he.tagName];if(we&&we.hasOwnProperty(ce[2]))he=he.prev;else break}for(;he&&he.prev&&!he.startOfLine;)he=he.prev;return he?he.indent+u:ne.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:d.htmlMode?"html":"xml",helperType:d.htmlMode?"html":"xml",skipAttribute:function(ne){ne.state==G&&(ne.state=P)},xmlCurrentTag:function(ne){return ne.tagName?{name:ne.tagName,close:ne.type=="closeTag"}:null},xmlCurrentContext:function(ne){for(var ue=[],ae=ne.context;ae;ae=ae.prev)ae.tagName&&ue.push(ae.tagName);return ue.reverse()}}}),B.defineMIME("text/xml","xml"),B.defineMIME("application/xml","xml"),B.mimeModes.hasOwnProperty("text/html")||B.defineMIME("text/html",{name:"xml",htmlMode:!0})})},17187:function(Ie){"use strict";var Z=typeof Reflect=="object"?Reflect:null,b=Z&&typeof Z.apply=="function"?Z.apply:function(N,L,M){return Function.prototype.apply.call(N,L,M)},B;Z&&typeof Z.ownKeys=="function"?B=Z.ownKeys:Object.getOwnPropertySymbols?B=function(N){return Object.getOwnPropertyNames(N).concat(Object.getOwnPropertySymbols(N))}:B=function(N){return Object.getOwnPropertyNames(N)};function Y(A){console&&console.warn&&console.warn(A)}var s=Number.isNaN||function(N){return N!==N};function E(){E.init.call(this)}Ie.exports=E,Ie.exports.once=T,E.EventEmitter=E,E.prototype._events=void 0,E.prototype._eventsCount=0,E.prototype._maxListeners=void 0;var I=10;function u(A){if(typeof A!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof A)}Object.defineProperty(E,"defaultMaxListeners",{enumerable:!0,get:function(){return I},set:function(A){if(typeof A!="number"||A<0||s(A))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+A+".");I=A}}),E.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},E.prototype.setMaxListeners=function(N){if(typeof N!="number"||N<0||s(N))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+N+".");return this._maxListeners=N,this};function d(A){return A._maxListeners===void 0?E.defaultMaxListeners:A._maxListeners}E.prototype.getMaxListeners=function(){return d(this)},E.prototype.emit=function(N){for(var L=[],M=1;M<arguments.length;M++)L.push(arguments[M]);var F=N==="error",H=this._events;if(H!==void 0)F=F&&H.error===void 0;else if(!F)return!1;if(F){var P;if(L.length>0&&(P=L[0]),P instanceof Error)throw P;var V=new Error("Unhandled error."+(P?" ("+P.message+")":""));throw V.context=P,V}var G=H[N];if(G===void 0)return!1;if(typeof G=="function")b(G,this,L);else for(var Q=G.length,ne=h(G,Q),M=0;M<Q;++M)b(ne[M],this,L);return!0};function g(A,N,L,M){var F,H,P;if(u(L),H=A._events,H===void 0?(H=A._events=Object.create(null),A._eventsCount=0):(H.newListener!==void 0&&(A.emit("newListener",N,L.listener?L.listener:L),H=A._events),P=H[N]),P===void 0)P=H[N]=L,++A._eventsCount;else if(typeof P=="function"?P=H[N]=M?[L,P]:[P,L]:M?P.unshift(L):P.push(L),F=d(A),F>0&&P.length>F&&!P.warned){P.warned=!0;var V=new Error("Possible EventEmitter memory leak detected. "+P.length+" "+String(N)+" listeners added. Use emitter.setMaxListeners() to increase limit");V.name="MaxListenersExceededWarning",V.emitter=A,V.type=N,V.count=P.length,Y(V)}return A}E.prototype.addListener=function(N,L){return g(this,N,L,!1)},E.prototype.on=E.prototype.addListener,E.prototype.prependListener=function(N,L){return g(this,N,L,!0)};function y(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function S(A,N,L){var M={fired:!1,wrapFn:void 0,target:A,type:N,listener:L},F=y.bind(M);return F.listener=L,M.wrapFn=F,F}E.prototype.once=function(N,L){return u(L),this.on(N,S(this,N,L)),this},E.prototype.prependOnceListener=function(N,L){return u(L),this.prependListener(N,S(this,N,L)),this},E.prototype.removeListener=function(N,L){var M,F,H,P,V;if(u(L),F=this._events,F===void 0)return this;if(M=F[N],M===void 0)return this;if(M===L||M.listener===L)--this._eventsCount===0?this._events=Object.create(null):(delete F[N],F.removeListener&&this.emit("removeListener",N,M.listener||L));else if(typeof M!="function"){for(H=-1,P=M.length-1;P>=0;P--)if(M[P]===L||M[P].listener===L){V=M[P].listener,H=P;break}if(H<0)return this;H===0?M.shift():m(M,H),M.length===1&&(F[N]=M[0]),F.removeListener!==void 0&&this.emit("removeListener",N,V||L)}return this},E.prototype.off=E.prototype.removeListener,E.prototype.removeAllListeners=function(N){var L,M,F;if(M=this._events,M===void 0)return this;if(M.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):M[N]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete M[N]),this;if(arguments.length===0){var H=Object.keys(M),P;for(F=0;F<H.length;++F)P=H[F],P!=="removeListener"&&this.removeAllListeners(P);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(L=M[N],typeof L=="function")this.removeListener(N,L);else if(L!==void 0)for(F=L.length-1;F>=0;F--)this.removeListener(N,L[F]);return this};function v(A,N,L){var M=A._events;if(M===void 0)return[];var F=M[N];return F===void 0?[]:typeof F=="function"?L?[F.listener||F]:[F]:L?x(F):h(F,F.length)}E.prototype.listeners=function(N){return v(this,N,!0)},E.prototype.rawListeners=function(N){return v(this,N,!1)},E.listenerCount=function(A,N){return typeof A.listenerCount=="function"?A.listenerCount(N):c.call(A,N)},E.prototype.listenerCount=c;function c(A){var N=this._events;if(N!==void 0){var L=N[A];if(typeof L=="function")return 1;if(L!==void 0)return L.length}return 0}E.prototype.eventNames=function(){return this._eventsCount>0?B(this._events):[]};function h(A,N){for(var L=new Array(N),M=0;M<N;++M)L[M]=A[M];return L}function m(A,N){for(;N+1<A.length;N++)A[N]=A[N+1];A.pop()}function x(A){for(var N=new Array(A.length),L=0;L<N.length;++L)N[L]=A[L].listener||A[L];return N}function T(A,N){return new Promise(function(L,M){function F(P){A.removeListener(N,H),M(P)}function H(){typeof A.removeListener=="function"&&A.removeListener("error",F),L([].slice.call(arguments))}R(A,N,H,{once:!0}),N!=="error"&&_(A,F,{once:!0})})}function _(A,N,L){typeof A.on=="function"&&R(A,"error",N,L)}function R(A,N,L,M){if(typeof A.on=="function")M.once?A.once(N,L):A.on(N,L);else if(typeof A.addEventListener=="function")A.addEventListener(N,function F(H){M.once&&A.removeEventListener(N,F),L(H)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof A)}},94470:function(Ie){"use strict";var Z=Object.prototype.hasOwnProperty,b=Object.prototype.toString,B=Object.defineProperty,Y=Object.getOwnPropertyDescriptor,s=function(g){return typeof Array.isArray=="function"?Array.isArray(g):b.call(g)==="[object Array]"},E=function(g){if(!g||b.call(g)!=="[object Object]")return!1;var y=Z.call(g,"constructor"),S=g.constructor&&g.constructor.prototype&&Z.call(g.constructor.prototype,"isPrototypeOf");if(g.constructor&&!y&&!S)return!1;var v;for(v in g);return typeof v=="undefined"||Z.call(g,v)},I=function(g,y){B&&y.name==="__proto__"?B(g,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):g[y.name]=y.newValue},u=function(g,y){if(y==="__proto__")if(Z.call(g,y)){if(Y)return Y(g,y).value}else return;return g[y]};Ie.exports=function d(){var g,y,S,v,c,h,m=arguments[0],x=1,T=arguments.length,_=!1;for(typeof m=="boolean"&&(_=m,m=arguments[1]||{},x=2),(m==null||typeof m!="object"&&typeof m!="function")&&(m={});x<T;++x)if(g=arguments[x],g!=null)for(y in g)S=u(m,y),v=u(g,y),m!==v&&(_&&v&&(E(v)||(c=s(v)))?(c?(c=!1,h=S&&s(S)?S:[]):h=S&&E(S)?S:{},I(m,{name:y,newValue:d(_,h,v)})):typeof v!="undefined"&&I(m,{name:y,newValue:v}));return m}},23495:function(Ie,Z,b){"use strict";b.d(Z,{$u:function(){return y},BD:function(){return fe},E9:function(){return g},FF:function(){return Pr},FJ:function(){return N},Hn:function(){return A},KX:function(){return M},NB:function(){return Ve},S0:function(){return Re},UL:function(){return S},Vk:function(){return R},Vm:function(){return ct},YI:function(){return Oe},ZA:function(){return s},Zt:function(){return v},al:function(){return oe},bn:function(){return _e},bx:function(){return z},g2:function(){return pe},h1:function(){return G},hD:function(){return Mt},l4:function(){return u},rU:function(){return yt},s_:function(){return J},uz:function(){return ze},z6:function(){return c}}),Ie=b.hmd(Ie),function(){var ye;function Vt(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}function rn(e){var t=typeof Symbol!="undefined"&&Symbol.iterator&&e[Symbol.iterator];return t?t.call(e):{next:Vt(e)}}function Xn(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}var Zn=typeof Object.create=="function"?Object.create:function(e){function t(){}return t.prototype=e,new t},ir;if(typeof Object.setPrototypeOf=="function")ir=Object.setPrototypeOf;else{var Dr;e:{var ai={a:!0},li={};try{li.__proto__=ai,Dr=li.a;break e}catch(e){}Dr=!1}ir=Dr?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null}var Zr=ir;function Tn(e,t){if(e.prototype=Zn(t.prototype),e.prototype.constructor=e,Zr)Zr(e,t);else for(var n in t)if(n!="prototype")if(Object.defineProperties){var r=Object.getOwnPropertyDescriptor(t,n);r&&Object.defineProperty(e,n,r)}else e[n]=t[n];e.QA=t.prototype}var kn=typeof b.g!="undefined"&&b.g!=null?b.g:self,Vr=typeof Object.assign=="function"?Object.assign:function(e,t){for(var n=1;n<arguments.length;n++){var r=arguments[n];if(r)for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},di=typeof Object.defineProperties=="function"?Object.defineProperty:function(e,t,n){e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value)};function nr(e,t){if(t){var n=kn;e=e.split(".");for(var r=0;r<e.length-1;r++){var i=e[r];i in n||(n[i]={}),n=n[i]}e=e[e.length-1],r=n[e],t=t(r),t!=r&&t!=null&&di(n,e,{writable:!0,value:t})}}nr("Object.assign",function(e){return e||Vr}),nr("Array.prototype.fill",function(e){return e||function(t,n,r){var i=this.length||0;for(0>n&&(n=Math.max(0,i+n)),(r==null||r>i)&&(r=i),r=Number(r),0>r&&(r=Math.max(0,i+r)),n=Number(n||0);n<r;n++)this[n]=t;return this}});var vn=typeof globalThis=="object"&&globalThis||typeof b.g=="object"&&b.g.global===b.g&&b.g||typeof self=="object"&&self.self===self&&self||{};vn.requestAnimationFrame===void 0&&(vn.setImmediate===void 0?vn.requestAnimationFrame=function(e){vn.setTimeout(e,0)}:vn.requestAnimationFrame=vn.setImmediate);function Jn(){}function bi(e,t){var n=-1;return function(){var r=this,i=arguments;n!==-1&&vn.clearTimeout(n),n=gi(function(){n=-1,e.apply(r,i)},t)}}function gi(e,t){return vn.setTimeout(e,t)}function mi(e){return vn.document.createElement(e)}function Lt(e){throw Error(e)}function Yn(e,t){e="The object is frozen, so its properties cannot be set: "+e.toString(),t!==void 0&&(e+=" to value: "+t),Lt(e)}function hr(e,t,n,r){n=n===null?"*":typeof n=="string"?n:typeof n=="function"&&typeof n.className=="string"?n.className:"",r!==void 0&&(n+="."+r),Lt(n+" is not in the range "+t+": "+e)}function zi(e){vn.console&&vn.console.log(e)}function bn(e){return typeof e=="object"&&e!==null}function or(e){return Array.isArray(e)||vn.NodeList&&e instanceof vn.NodeList||vn.HTMLCollection&&e instanceof vn.HTMLCollection}function Ei(e){return Array.prototype.slice.call(e)}function Co(e,t,n){Array.isArray(e)?t>=e.length?e.push(n):e.splice(t,0,n):Lt("Cannot insert an object into an HTMLCollection or NodeList: "+n+" at "+t)}function ki(e,t){Array.isArray(e)?t>=e.length?e.pop():e.splice(t,1):Lt("Cannot remove an object from an HTMLCollection or NodeList at "+t)}function yr(){var e=Ro.pop();return e===void 0?[]:e}function Mr(e){e.length=0,Ro.push(e)}function Fr(e){if(typeof e=="function"){if(e.className)return e.className;if(e.name)return e.name;var t=e.toString();if(t=t.substring(9,t.indexOf("(")).trim(),t!=="")return e._className=t}else if(bn(e)&&e.constructor)return Fr(e.constructor);return typeof e}function Di(e){var t=e;return bn(e)&&(e.text?t=e.text:e.name?t=e.name:e.key!==void 0?t=e.key:e.id!==void 0?t=e.id:e.constructor===Object&&(e.Text?t=e.Text:e.Name?t=e.Name:e.Key!==void 0?t=e.Key:e.Id!==void 0?t=e.Id:e.ID!==void 0&&(t=e.ID))),t===void 0?"undefined":t===null?"null":t.toString()}function so(e,t){if(e.hasOwnProperty(t))return!0;for(e=Object.getPrototypeOf(e);e&&e!==Function;){if(e.hasOwnProperty(t))return!0;var n=e.CA;if(n&&n[t])return!0;e=Object.getPrototypeOf(e)}return!1}function Gi(e,t,n){Object.defineProperty(Wi.prototype,e,{get:t,set:n})}function sr(e){for(var t=[],n=0;256>n;n++)t["0123456789abcdef".charAt(n>>4)+"0123456789abcdef".charAt(n&15)]=String.fromCharCode(n);e.length%2&&(e="0"+e),n=[];for(var r=0,i=0;i<e.length;i+=2)n[r++]=t[e.substr(i,2)];for(e=n.join(""),e=e===""?"0":e,t=[],n=0;256>n;n++)t[n]=n;for(n=r=0;256>n;n++)r=(r+t[n]+119)%256,i=t[n],t[n]=t[r],t[r]=i;r=n=0;for(var o="",a=0;a<e.length;a++)n=(n+1)%256,r=(r+t[n])%256,i=t[n],t[n]=t[r],t[r]=i,o+=String.fromCharCode(e.charCodeAt(a)^t[(t[n]+t[r])%256]);return o.indexOf("GoJS 2.1 evaluation")>-1||o.indexOf("\xA9 1998-2021 Northwoods Software")>-1||o.indexOf("Not for distribution or production use")>-1||o.indexOf("gojs.net")>-1?"":o}var ys=vn.navigator!==void 0&&0<vn.navigator.userAgent.indexOf("Trident/7"),Wo=vn.navigator!==void 0&&vn.navigator.platform!==void 0&&vn.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,Ro=[];Object.freeze([]),Jn.className="Util",Jn.Dx="32ab5ff3b26f42dc0ed90f21472913b5",Jn.adym="gojs.net",Jn.vfo="28e645fdb266",Jn.className="Util";function hn(e,t,n){Ge(this),this.j=e,this.xa=t,this.o=n}hn.prototype.toString=function(){return"EnumValue."+this.xa};function us(e,t){return t==null||t===""?null:e[t]}kn.Object.defineProperties(hn.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),hn.className="EnumValue";function cs(){this.ew=[]}cs.prototype.toString=function(){return this.ew.join("")},cs.prototype.add=function(e){e!==""&&this.ew.push(e)},cs.className="StringBuilder";function yo(){}yo.className="PropertyCollection";var Bs={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(e){vn.console&&vn.console.log(e)},HA:function(e,t,n,r){e.strokeStyle="red",e.fillStyle="red",e.font="8px sans-serif",e.beginPath(),e.moveTo(-10,0),e.lineTo(10,0),e.moveTo(0,-10),e.lineTo(0,10),e.stroke(),e.setTransform(1,0,0,1,0,0),e.scale(n,n),e.transform(t.m11,t.m12,t.m21,t.m22,t.dx,t.dy),e.lineWidth=2,e.beginPath(),e.moveTo(r.left,r.top+20),e.lineTo(r.left,r.top),e.lineTo(r.left+20,r.top),e.moveTo(r.right,r.bottom-20),e.lineTo(r.right,r.bottom),e.lineTo(r.right-20,r.bottom),e.stroke(),e.fillText("DB: "+Math.round(r.x)+", "+Math.round(r.y)+", "+Math.round(r.width)+", "+Math.round(r.height),r.left,r.top-5)},DA:function(e){var t={},n;for(n in e){if(t.x=n,t.x!=="licenseKey"){var r=e[t.x];if(r.prototype!==void 0){t.Zl=Object.getOwnPropertyNames(r.prototype);for(var i={Tj:0};i.Tj<t.Zl.length;i={Tj:i.Tj},i.Tj++){var o=Object.getOwnPropertyDescriptor(r.prototype,t.Zl[i.Tj]);o.get!==void 0&&o.set===void 0&&Object.defineProperty(r.prototype,t.Zl[i.Tj],{set:function(a,p){return function(){throw Error("Property "+a.Zl[p.Tj]+" of "+a.x+" is read-only.")}}(t,i)})}}}t={Zl:t.Zl,x:t.x}}}};function Yi(){}Yi.prototype.reset=function(){},Yi.prototype.next=function(){return!1},Yi.prototype.Ad=function(){return!1},Yi.prototype.first=function(){return null},Yi.prototype.any=function(){return!1},Yi.prototype.all=function(){return!0},Yi.prototype.each=function(){return this},Yi.prototype.map=function(){return this},Yi.prototype.filter=function(){return this},Yi.prototype.de=function(){},Yi.prototype.toString=function(){return"EmptyIterator"},kn.Object.defineProperties(Yi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),Yi.prototype.first=Yi.prototype.first,Yi.prototype.hasNext=Yi.prototype.Ad,Yi.prototype.next=Yi.prototype.next,Yi.prototype.reset=Yi.prototype.reset;var eo=null;Yi.className="EmptyIterator",eo=new Yi;function Oi(e){this.key=-1,this.value=e}Oi.prototype.reset=function(){this.key=-1},Oi.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},Oi.prototype.Ad=function(){return this.next()},Oi.prototype.first=function(){return this.key=0,this.value},Oi.prototype.any=function(e){return this.key=-1,e(this.value)},Oi.prototype.all=function(e){return this.key=-1,e(this.value)},Oi.prototype.each=function(e){return this.key=-1,e(this.value),this},Oi.prototype.map=function(e){return new Oi(e(this.value))},Oi.prototype.filter=function(e){return e(this.value)?new Oi(this.value):eo},Oi.prototype.de=function(){this.value=null},Oi.prototype.toString=function(){return"SingletonIterator("+this.value+")"},kn.Object.defineProperties(Oi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),Oi.prototype.first=Oi.prototype.first,Oi.prototype.hasNext=Oi.prototype.Ad,Oi.prototype.next=Oi.prototype.next,Oi.prototype.reset=Oi.prototype.reset,Oi.className="SingletonIterator";function hi(e){this.Bb=e,this.qf=null,e.Sa=null,this.qa=e.Ja,this.Za=-1}hi.prototype.reset=function(){var e=this.Bb;e.Sa=null,this.qa=e.Ja,this.Za=-1},hi.prototype.next=function(){var e=this.Bb;if(e.Ja!==this.qa&&0>this.key)return!1;e=e.s;var t=e.length,n=++this.Za,r=this.qf;if(r!==null)for(;n<t;){var i=e[n];if(r(i))return this.key=this.Za=n,this.value=i,!0;n++}else{if(n<t)return this.key=n,this.value=e[n],!0;this.de()}return!1},hi.prototype.Ad=function(){return this.next()},hi.prototype.first=function(){var e=this.Bb;this.qa=e.Ja,this.Za=0,e=e.s;var t=e.length,n=this.qf;if(n!==null){for(var r=0;r<t;){var i=e[r];if(n(i))return this.key=this.Za=r,this.value=i;r++}return null}return 0<t?(e=e[0],this.key=0,this.value=e):null},hi.prototype.any=function(e){var t=this.Bb;t.Sa=null,this.Za=-1,t=t.s;for(var n=t.length,r=this.qf,i=0;i<n;i++){var o=t[i];if((r===null||r(o))&&e(o))return!0}return!1},hi.prototype.all=function(e){var t=this.Bb;t.Sa=null,this.Za=-1,t=t.s;for(var n=t.length,r=this.qf,i=0;i<n;i++){var o=t[i];if((r===null||r(o))&&!e(o))return!1}return!0},hi.prototype.each=function(e){var t=this.Bb;t.Sa=null,this.Za=-1,t=t.s;for(var n=t.length,r=this.qf,i=0;i<n;i++){var o=t[i];(r===null||r(o))&&e(o)}return this},hi.prototype.map=function(e){var t=this.Bb;t.Sa=null,this.Za=-1;var n=[];t=t.s;for(var r=t.length,i=this.qf,o=0;o<r;o++){var a=t[o];(i===null||i(a))&&n.push(e(a))}return e=new tn,e.s=n,e.xb(),e.iterator},hi.prototype.filter=function(e){var t=this.Bb;t.Sa=null,this.Za=-1;var n=[];t=t.s;for(var r=t.length,i=this.qf,o=0;o<r;o++){var a=t[o];(i===null||i(a))&&e(a)&&n.push(a)}return e=new tn,e.s=n,e.xb(),e.iterator},hi.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},hi.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},kn.Object.defineProperties(hi.prototype,{iterator:{get:function(){return this}},predicate:{get:function(){return this.qf},set:function(e){this.qf=e}},count:{get:function(){var e=this.qf;if(e!==null){for(var t=0,n=this.Bb.s,r=n.length,i=0;i<r;i++)e(n[i])&&t++;return t}return this.Bb.s.length}}}),hi.prototype.first=hi.prototype.first,hi.prototype.hasNext=hi.prototype.Ad,hi.prototype.next=hi.prototype.next,hi.prototype.reset=hi.prototype.reset,hi.className="ListIterator";function Ni(e){this.Bb=e,e.Hg=null,this.qa=e.Ja,this.Za=e.s.length}Ni.prototype.reset=function(){var e=this.Bb;e.Hg=null,this.qa=e.Ja,this.Za=e.s.length},Ni.prototype.next=function(){var e=this.Bb;if(e.Ja!==this.qa&&0>this.key)return!1;var t=--this.Za;return 0<=t?(this.key=t,this.value=e.s[t],!0):(this.de(),!1)},Ni.prototype.Ad=function(){return this.next()},Ni.prototype.first=function(){var e=this.Bb;this.qa=e.Ja;var t=e.s;return this.Za=e=t.length-1,0<=e?(t=t[e],this.key=e,this.value=t):null},Ni.prototype.any=function(e){var t=this.Bb;t.Hg=null,t=t.s;var n=t.length;for(this.Za=n,--n;0<=n;n--)if(e(t[n]))return!0;return!1},Ni.prototype.all=function(e){var t=this.Bb;t.Hg=null,t=t.s;var n=t.length;for(this.Za=n,--n;0<=n;n--)if(!e(t[n]))return!1;return!0},Ni.prototype.each=function(e){var t=this.Bb;t.Hg=null,t=t.s;var n=t.length;for(this.Za=n,--n;0<=n;n--)e(t[n]);return this},Ni.prototype.map=function(e){var t=this.Bb;t.Hg=null;var n=[];t=t.s;var r=t.length;for(this.Za=r,--r;0<=r;r--)n.push(e(t[r]));return e=new tn,e.s=n,e.xb(),e.iterator},Ni.prototype.filter=function(e){var t=this.Bb;t.Hg=null;var n=[];t=t.s;var r=t.length;for(this.Za=r,--r;0<=r;r--){var i=t[r];e(i)&&n.push(i)}return e=new tn,e.s=n,e.xb(),e.iterator},Ni.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Ni.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},kn.Object.defineProperties(Ni.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Ni.prototype.first=Ni.prototype.first,Ni.prototype.hasNext=Ni.prototype.Ad,Ni.prototype.next=Ni.prototype.next,Ni.prototype.reset=Ni.prototype.reset,Ni.className="ListIteratorBackwards";function tn(e){Ge(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof e=="string"&&Lt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),e!==void 0&&this.addAll(e)}ye=tn.prototype,ye.xb=function(){var e=this.Ja;e++,999999999<e&&(e=0),this.Ja=e},ye.freeze=function(){return this._isFrozen=!0,this},ye.ka=function(){return this._isFrozen=!1,this},ye.toString=function(){return"List()#"+it(this)},ye.add=function(e){return e===null?this:(this._isFrozen&&Yn(this,e),this.s.push(e),this.xb(),this)},ye.push=function(e){this.add(e)},ye.addAll=function(e){if(e===null)return this;this._isFrozen&&Yn(this);var t=this.s;if(or(e))for(var n=e.length,r=0;r<n;r++)t.push(e[r]);else for(e=e.iterator;e.next();)t.push(e.value);return this.xb(),this},ye.clear=function(){this._isFrozen&&Yn(this),this.s.length=0,this.xb()},ye.contains=function(e){return e===null?!1:this.s.indexOf(e)!==-1},ye.has=function(e){return this.contains(e)},ye.indexOf=function(e){return e===null?-1:this.s.indexOf(e)},ye.M=function(e){var t=this.s;return(0>e||e>=t.length)&&hr(e,"0 <= i < length",tn,"elt:i"),t[e]},ye.get=function(e){return this.M(e)},ye.cd=function(e,t){var n=this.s;(0>e||e>=n.length)&&hr(e,"0 <= i < length",tn,"setElt:i"),this._isFrozen&&Yn(this,e),n[e]=t},ye.set=function(e,t){this.cd(e,t)},ye.first=function(){var e=this.s;return e.length===0?null:e[0]},ye.jc=function(){var e=this.s,t=e.length;return 0<t?e[t-1]:null},ye.pop=function(){this._isFrozen&&Yn(this);var e=this.s;return 0<e.length?e.pop():null},tn.prototype.any=function(e){for(var t=this.s,n=t.length,r=0;r<n;r++)if(e(t[r]))return!0;return!1},tn.prototype.all=function(e){for(var t=this.s,n=t.length,r=0;r<n;r++)if(!e(t[r]))return!1;return!0},tn.prototype.each=function(e){for(var t=this.s,n=t.length,r=0;r<n;r++)e(t[r]);return this},tn.prototype.map=function(e){for(var t=new tn,n=[],r=this.s,i=r.length,o=0;o<i;o++)n.push(e(r[o]));return t.s=n,t.xb(),t},tn.prototype.filter=function(e){for(var t=new tn,n=[],r=this.s,i=r.length,o=0;o<i;o++){var a=r[o];e(a)&&n.push(a)}return t.s=n,t.xb(),t},ye=tn.prototype,ye.Gb=function(e,t){0>e&&hr(e,">= 0",tn,"insertAt:i"),this._isFrozen&&Yn(this,e);var n=this.s;e>=n.length?n.push(t):n.splice(e,0,t),this.xb()},ye.remove=function(e){if(e===null)return!1;this._isFrozen&&Yn(this,e);var t=this.s;return e=t.indexOf(e),e===-1?!1:(e===t.length-1?t.pop():t.splice(e,1),this.xb(),!0)},ye.delete=function(e){return this.remove(e)},ye.mb=function(e){var t=this.s;(0>e||e>=t.length)&&hr(e,"0 <= i < length",tn,"removeAt:i"),this._isFrozen&&Yn(this,e),e===t.length-1?t.pop():t.splice(e,1),this.xb()},ye.removeRange=function(e,t){var n=this.s,r=n.length;if(0>e)e=0;else if(e>=r)return this;if(0>t)return this;if(t>=r&&(t=r-1),e>t)return this;this._isFrozen&&Yn(this);for(var i=e,o=t+1;o<r;)n[i++]=n[o++];return n.length=r-(t-e+1),this.xb(),this},tn.prototype.copy=function(){var e=new tn,t=this.s;return 0<t.length&&(e.s=Array.prototype.slice.call(t)),e},ye=tn.prototype,ye.Fa=function(){for(var e=this.s,t=this.count,n=Array(t),r=0;r<t;r++)n[r]=e[r];return n},ye.Iv=function(){for(var e=new ut,t=this.s,n=this.count,r=0;r<n;r++)e.add(t[r]);return e},ye.sort=function(e){return this._isFrozen&&Yn(this),this.s.sort(e),this.xb(),this},ye.zi=function(e,t,n){var r=this.s,i=r.length;t===void 0&&(t=0),n===void 0&&(n=i),this._isFrozen&&Yn(this);var o=n-t;if(1>=o)return this;if((0>t||t>=i-1)&&hr(t,"0 <= from < length",tn,"sortRange:from"),o===2)return n=r[t],i=r[t+1],0<e(n,i)&&(r[t]=i,r[t+1]=n,this.xb()),this;if(t===0)if(n>=i)r.sort(e);else for(t=r.slice(0,n),t.sort(e),e=0;e<n;e++)r[e]=t[e];else if(n>=i)for(n=r.slice(t),n.sort(e),e=t;e<i;e++)r[e]=n[e-t];else for(i=r.slice(t,n),i.sort(e),e=t;e<n;e++)r[e]=i[e-t];return this.xb(),this},ye.reverse=function(){return this._isFrozen&&Yn(this),this.s.reverse(),this.xb(),this},kn.Object.defineProperties(tn.prototype,{_dataArray:{get:function(){return this.s}},count:{get:function(){return this.s.length}},size:{get:function(){return this.s.length}},length:{get:function(){return this.s.length}},iterator:{get:function(){if(0>=this.s.length)return eo;var e=this.Sa;return e!==null?(e.reset(),e):new hi(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return eo;var e=this.Hg;return e!==null?(e.reset(),e):new Ni(this)}}}),tn.prototype.reverse=tn.prototype.reverse,tn.prototype.sortRange=tn.prototype.zi,tn.prototype.sort=tn.prototype.sort,tn.prototype.toSet=tn.prototype.Iv,tn.prototype.toArray=tn.prototype.Fa,tn.prototype.removeRange=tn.prototype.removeRange,tn.prototype.removeAt=tn.prototype.mb,tn.prototype.delete=tn.prototype.delete,tn.prototype.remove=tn.prototype.remove,tn.prototype.insertAt=tn.prototype.Gb,tn.prototype.pop=tn.prototype.pop,tn.prototype.last=tn.prototype.jc,tn.prototype.first=tn.prototype.first,tn.prototype.set=tn.prototype.set,tn.prototype.setElt=tn.prototype.cd,tn.prototype.get=tn.prototype.get,tn.prototype.elt=tn.prototype.M,tn.prototype.indexOf=tn.prototype.indexOf,tn.prototype.has=tn.prototype.has,tn.prototype.contains=tn.prototype.contains,tn.prototype.clear=tn.prototype.clear,tn.prototype.addAll=tn.prototype.addAll,tn.prototype.push=tn.prototype.push,tn.prototype.add=tn.prototype.add,tn.prototype.thaw=tn.prototype.ka,tn.prototype.freeze=tn.prototype.freeze,tn.className="List";function _i(e){this.eg=e,e.Sa=null,this.qa=e.Ja,this.sa=null}_i.prototype.reset=function(){var e=this.eg;e.Sa=null,this.qa=e.Ja,this.sa=null},_i.prototype.next=function(){var e=this.eg;if(e.Ja!==this.qa&&this.key===null)return!1;var t=this.sa;return t=t===null?e.ea:t.va,t!==null?(this.sa=t,this.value=t.value,this.key=t.key,!0):(this.de(),!1)},_i.prototype.Ad=function(){return this.next()},_i.prototype.first=function(){var e=this.eg;if(this.qa=e.Ja,e=e.ea,e!==null){this.sa=e;var t=e.value;return this.key=e.key,this.value=t}return null},_i.prototype.any=function(e){var t=this.eg;for(this.sa=t.Sa=null,t=t.ea;t!==null;){if(e(t.value))return!0;t=t.va}return!1},_i.prototype.all=function(e){var t=this.eg;for(this.sa=t.Sa=null,t=t.ea;t!==null;){if(!e(t.value))return!1;t=t.va}return!0},_i.prototype.each=function(e){var t=this.eg;for(this.sa=t.Sa=null,t=t.ea;t!==null;)e(t.value),t=t.va;return this},_i.prototype.map=function(e){var t=this.eg;t.Sa=null;var n=new tn;for(t=t.ea;t!==null;)n.add(e(t.value)),t=t.va;return n.iterator},_i.prototype.filter=function(e){var t=this.eg;t.Sa=null;var n=new tn;for(t=t.ea;t!==null;){var r=t.value;e(r)&&n.add(r),t=t.va}return n.iterator},_i.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},_i.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},kn.Object.defineProperties(_i.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),_i.prototype.first=_i.prototype.first,_i.prototype.hasNext=_i.prototype.Ad,_i.prototype.next=_i.prototype.next,_i.prototype.reset=_i.prototype.reset,_i.className="SetIterator";function ut(e){Ge(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof e=="string"&&Lt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),e!==void 0&&this.addAll(e)}ye=ut.prototype,ye.xb=function(){var e=this.Ja;e++,999999999<e&&(e=0),this.Ja=e},ye.freeze=function(){return this._isFrozen=!0,this},ye.ka=function(){return this._isFrozen=!1,this},ye.toString=function(){return"Set()#"+it(this)},ye.add=function(e){if(e===null)return this;this._isFrozen&&Yn(this,e);var t=e;return bn(e)&&(t=an(e)),this.Tb[t]===void 0&&(this.Sb++,e=new Mn(e,e),this.Tb[t]=e,t=this.kf,t===null?this.ea=e:(e.ll=t,t.va=e),this.kf=e,this.xb()),this},ye.addAll=function(e){if(e===null)return this;if(this._isFrozen&&Yn(this),or(e))for(var t=e.length,n=0;n<t;n++)this.add(e[n]);else for(e=e.iterator;e.next();)this.add(e.value);return this},ye.contains=function(e){if(e===null)return!1;var t=e;return bn(e)&&(t=it(e),t===void 0)?!1:this.Tb[t]!==void 0},ye.has=function(e){return this.contains(e)},ye.Sy=function(e){if(e===null)return!0;for(e=e.iterator;e.next();)if(!this.contains(e.value))return!1;return!0},ye.Ty=function(e){if(e===null)return!0;for(e=e.iterator;e.next();)if(this.contains(e.value))return!0;return!1},ye.first=function(){var e=this.ea;return e===null?null:e.value},ut.prototype.any=function(e){for(var t=this.ea;t!==null;){if(e(t.value))return!0;t=t.va}return!1},ut.prototype.all=function(e){for(var t=this.ea;t!==null;){if(!e(t.value))return!1;t=t.va}return!0},ut.prototype.each=function(e){for(var t=this.ea;t!==null;)e(t.value),t=t.va;return this},ut.prototype.map=function(e){for(var t=new ut,n=this.ea;n!==null;)t.add(e(n.value)),n=n.va;return t},ut.prototype.filter=function(e){for(var t=new ut,n=this.ea;n!==null;){var r=n.value;e(r)&&t.add(r),n=n.va}return t},ye=ut.prototype,ye.remove=function(e){if(e===null)return!1;this._isFrozen&&Yn(this,e);var t=e;if(bn(e)&&(t=it(e),t===void 0)||(e=this.Tb[t],e===void 0))return!1;var n=e.va,r=e.ll;return n!==null&&(n.ll=r),r!==null&&(r.va=n),this.ea===e&&(this.ea=n),this.kf===e&&(this.kf=r),delete this.Tb[t],this.Sb--,this.xb(),!0},ye.delete=function(e){return this.remove(e)},ye.hp=function(e){if(e===null)return this;if(this._isFrozen&&Yn(this),or(e))for(var t=e.length,n=0;n<t;n++)this.remove(e[n]);else for(e=e.iterator;e.next();)this.remove(e.value);return this},ye.pA=function(e){if(e===null||this.count===0)return this;this._isFrozen&&Yn(this);var t=new ut;t.addAll(e),e=[];for(var n=this.iterator;n.next();){var r=n.value;t.contains(r)||e.push(r)}return this.hp(e),this},ye.clear=function(){this._isFrozen&&Yn(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},ut.prototype.copy=function(){var e=new ut,t=this.Tb,n;for(n in t)e.add(t[n].value);return e},ut.prototype.Fa=function(){var e=Array(this.Sb),t=this.Tb,n=0,r;for(r in t)e[n]=t[r].value,n++;return e},ut.prototype.Hv=function(){var e=new tn,t=this.Tb,n;for(n in t)e.add(t[n].value);return e};function Ge(e){e.__gohashid=dt++}function an(e){var t=e.__gohashid;return t===void 0&&(t=dt++,e.__gohashid=t),t}function it(e){return e.__gohashid}kn.Object.defineProperties(ut.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return eo;var e=this.Sa;return e!==null?(e.reset(),e):new _i(this)}}}),ut.prototype.toList=ut.prototype.Hv,ut.prototype.toArray=ut.prototype.Fa,ut.prototype.clear=ut.prototype.clear,ut.prototype.retainAll=ut.prototype.pA,ut.prototype.removeAll=ut.prototype.hp,ut.prototype.delete=ut.prototype.delete,ut.prototype.remove=ut.prototype.remove,ut.prototype.first=ut.prototype.first,ut.prototype.containsAny=ut.prototype.Ty,ut.prototype.containsAll=ut.prototype.Sy,ut.prototype.has=ut.prototype.has,ut.prototype.contains=ut.prototype.contains,ut.prototype.addAll=ut.prototype.addAll,ut.prototype.add=ut.prototype.add,ut.prototype.thaw=ut.prototype.ka,ut.prototype.freeze=ut.prototype.freeze;var dt=1;ut.className="Set",ut.uniqueHash=Ge,ut.hashIdUnique=an,ut.hashId=it;function Et(e){this.ma=e,this.qa=e.Ja,this.sa=null}Et.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Et.prototype.next=function(){var e=this.ma;if(e.Ja!==this.qa&&this.key===null)return!1;var t=this.sa;return t=t===null?e.ea:t.va,t!==null?(this.sa=t,this.value=this.key=e=t.key,!0):(this.de(),!1)},Et.prototype.Ad=function(){return this.next()},Et.prototype.first=function(){var e=this.ma;return this.qa=e.Ja,e=e.ea,e!==null?(this.sa=e,this.value=this.key=e=e.key):null},Et.prototype.any=function(e){var t=this.ma;for(this.sa=null,t=t.ea;t!==null;){if(e(t.key))return!0;t=t.va}return!1},Et.prototype.all=function(e){var t=this.ma;for(this.sa=null,t=t.ea;t!==null;){if(!e(t.key))return!1;t=t.va}return!0},Et.prototype.each=function(e){var t=this.ma;for(this.sa=null,t=t.ea;t!==null;)e(t.key),t=t.va;return this},Et.prototype.map=function(e){var t=this.ma;this.sa=null;var n=new tn;for(t=t.ea;t!==null;)n.add(e(t.key)),t=t.va;return n.iterator},Et.prototype.filter=function(e){var t=this.ma;this.sa=null;var n=new tn;for(t=t.ea;t!==null;){var r=t.key;e(r)&&n.add(r),t=t.va}return n.iterator},Et.prototype.de=function(){this.value=this.key=null,this.qa=-1},Et.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},kn.Object.defineProperties(Et.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Et.prototype.first=Et.prototype.first,Et.prototype.hasNext=Et.prototype.Ad,Et.prototype.next=Et.prototype.next,Et.prototype.reset=Et.prototype.reset,Et.className="MapKeySetIterator";function Dt(e){ut.call(this),Ge(this),this._isFrozen=!0,this.ma=e}Tn(Dt,ut),ye=Dt.prototype,ye.freeze=function(){return this},ye.ka=function(){return this},ye.toString=function(){return"MapKeySet("+this.ma.toString()+")"},ye.add=function(){Lt("This Set is read-only: "+this.toString())},ye.contains=function(e){return this.ma.contains(e)},ye.has=function(e){return this.contains(e)},ye.remove=function(){Lt("This Set is read-only: "+this.toString())},ye.delete=function(e){return this.remove(e)},ye.clear=function(){Lt("This Set is read-only: "+this.toString())},ye.first=function(){var e=this.ma.ea;return e!==null?e.key:null},Dt.prototype.any=function(e){for(var t=this.ma.ea;t!==null;){if(e(t.key))return!0;t=t.va}return!1},Dt.prototype.all=function(e){for(var t=this.ma.ea;t!==null;){if(!e(t.key))return!1;t=t.va}return!0},Dt.prototype.each=function(e){for(var t=this.ma.ea;t!==null;)e(t.key),t=t.va;return this},Dt.prototype.map=function(e){for(var t=new ut,n=this.ma.ea;n!==null;)t.add(e(n.key)),n=n.va;return t},Dt.prototype.filter=function(e){for(var t=new ut,n=this.ma.ea;n!==null;){var r=n.key;e(r)&&t.add(r),n=n.va}return t},Dt.prototype.copy=function(){return new Dt(this.ma)},Dt.prototype.Iv=function(){var e=new ut,t=this.ma.Tb,n;for(n in t)e.add(t[n].key);return e},Dt.prototype.Fa=function(){var e=this.ma.Tb,t=Array(this.ma.Sb),n=0,r;for(r in e)t[n]=e[r].key,n++;return t},Dt.prototype.Hv=function(){var e=new tn,t=this.ma.Tb,n;for(n in t)e.add(t[n].key);return e},kn.Object.defineProperties(Dt.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?eo:new Et(this.ma)}}}),Dt.prototype.toList=Dt.prototype.Hv,Dt.prototype.toArray=Dt.prototype.Fa,Dt.prototype.toSet=Dt.prototype.Iv,Dt.prototype.first=Dt.prototype.first,Dt.prototype.clear=Dt.prototype.clear,Dt.prototype.delete=Dt.prototype.delete,Dt.prototype.remove=Dt.prototype.remove,Dt.prototype.has=Dt.prototype.has,Dt.prototype.contains=Dt.prototype.contains,Dt.prototype.add=Dt.prototype.add,Dt.prototype.thaw=Dt.prototype.ka,Dt.prototype.freeze=Dt.prototype.freeze,Dt.className="MapKeySet";function gn(e){this.ma=e,e.jf=null,this.qa=e.Ja,this.sa=null}gn.prototype.reset=function(){var e=this.ma;e.jf=null,this.qa=e.Ja,this.sa=null},gn.prototype.next=function(){var e=this.ma;if(e.Ja!==this.qa&&this.key===null)return!1;var t=this.sa;return t=t===null?e.ea:t.va,t!==null?(this.sa=t,this.value=t.value,this.key=t.key,!0):(this.de(),!1)},gn.prototype.Ad=function(){return this.next()},gn.prototype.first=function(){var e=this.ma;if(this.qa=e.Ja,e=e.ea,e!==null){this.sa=e;var t=e.value;return this.key=e.key,this.value=t}return null},gn.prototype.any=function(e){var t=this.ma;for(this.sa=t.jf=null,t=t.ea;t!==null;){if(e(t.value))return!0;t=t.va}return!1},gn.prototype.all=function(e){var t=this.ma;for(this.sa=t.jf=null,t=t.ea;t!==null;){if(!e(t.value))return!1;t=t.va}return!0},gn.prototype.each=function(e){var t=this.ma;for(this.sa=t.jf=null,t=t.ea;t!==null;)e(t.value),t=t.va;return this},gn.prototype.map=function(e){var t=this.ma;this.sa=t.jf=null;var n=new tn;for(t=t.ea;t!==null;)n.add(e(t.value)),t=t.va;return n.iterator},gn.prototype.filter=function(e){var t=this.ma;this.sa=t.jf=null;var n=new tn;for(t=t.ea;t!==null;){var r=t.value;e(r)&&n.add(r),t=t.va}return n.iterator},gn.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},gn.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},kn.Object.defineProperties(gn.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),gn.prototype.first=gn.prototype.first,gn.prototype.hasNext=gn.prototype.Ad,gn.prototype.next=gn.prototype.next,gn.prototype.reset=gn.prototype.reset,gn.className="MapValueSetIterator";function Mn(e,t){this.key=e,this.value=t,this.ll=this.va=null}Mn.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Mn.className="KeyValuePair";function In(e){this.ma=e,e.Sa=null,this.qa=e.Ja,this.sa=null}In.prototype.reset=function(){var e=this.ma;e.Sa=null,this.qa=e.Ja,this.sa=null},In.prototype.next=function(){var e=this.ma;if(e.Ja!==this.qa&&this.key===null)return!1;var t=this.sa;return t=t===null?e.ea:t.va,t!==null?(this.sa=t,this.key=t.key,this.value=t.value,!0):(this.de(),!1)},In.prototype.Ad=function(){return this.next()},In.prototype.first=function(){var e=this.ma;return this.qa=e.Ja,e=e.ea,e!==null?(this.sa=e,this.key=e.key,this.value=e.value,e):null},In.prototype.any=function(e){var t=this.ma;for(this.sa=t.Sa=null,t=t.ea;t!==null;){if(e(t))return!0;t=t.va}return!1},In.prototype.all=function(e){var t=this.ma;for(this.sa=t.Sa=null,t=t.ea;t!==null;){if(!e(t))return!1;t=t.va}return!0},In.prototype.each=function(e){var t=this.ma;for(this.sa=t.Sa=null,t=t.ea;t!==null;)e(t),t=t.va;return this},In.prototype.map=function(e){var t=this.ma;this.sa=t.Sa=null;var n=new tn;for(t=t.ea;t!==null;)n.add(e(t)),t=t.va;return n.iterator},In.prototype.filter=function(e){var t=this.ma;this.sa=t.Sa=null;var n=new tn;for(t=t.ea;t!==null;)e(t)&&n.add(t),t=t.va;return n.iterator},In.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},In.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},kn.Object.defineProperties(In.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),In.prototype.first=In.prototype.first,In.prototype.hasNext=In.prototype.Ad,In.prototype.next=In.prototype.next,In.prototype.reset=In.prototype.reset,In.className="MapIterator";function nn(e){Ge(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.jf=this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof e=="string"&&Lt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),e!==void 0&&this.addAll(e)}ye=nn.prototype,ye.xb=function(){var e=this.Ja;e++,999999999<e&&(e=0),this.Ja=e},ye.freeze=function(){return this._isFrozen=!0,this},ye.ka=function(){return this._isFrozen=!1,this},ye.toString=function(){return"Map()#"+it(this)},ye.add=function(e,t){this._isFrozen&&Yn(this,e);var n=e;bn(e)&&(n=an(e));var r=this.Tb[n];return r===void 0?(this.Sb++,e=new Mn(e,t),this.Tb[n]=e,n=this.kf,n===null?this.ea=e:(e.ll=n,n.va=e),this.kf=e,this.xb()):r.value=t,this},ye.set=function(e,t){return this.add(e,t)},ye.addAll=function(e){if(e===null)return this;if(or(e))for(var t=e.length,n=0;n<t;n++){var r=e[n];this.add(r.key,r.value)}else if(e instanceof nn)for(e=e.iterator;e.next();)this.add(e.key,e.value);else for(e=e.iterator;e.next();)t=e.value,this.add(t.key,t.value);return this},ye.first=function(){return this.ea},nn.prototype.any=function(e){for(var t=this.ea;t!==null;){if(e(t))return!0;t=t.va}return!1},nn.prototype.all=function(e){for(var t=this.ea;t!==null;){if(!e(t))return!1;t=t.va}return!0},nn.prototype.each=function(e){for(var t=this.ea;t!==null;)e(t),t=t.va;return this},nn.prototype.map=function(e){for(var t=new nn,n=this.ea;n!==null;)t.add(n.key,e(n)),n=n.va;return t},nn.prototype.filter=function(e){for(var t=new nn,n=this.ea;n!==null;)e(n)&&t.add(n.key,n.value),n=n.va;return t},ye=nn.prototype,ye.contains=function(e){var t=e;return bn(e)&&(t=it(e),t===void 0)?!1:this.Tb[t]!==void 0},ye.has=function(e){return this.contains(e)},ye.I=function(e){var t=e;return bn(e)&&(t=it(e),t===void 0)?null:(e=this.Tb[t],e===void 0?null:e.value)},ye.get=function(e){return this.I(e)},ye.remove=function(e){if(e===null)return!1;this._isFrozen&&Yn(this,e);var t=e;if(bn(e)&&(t=it(e),t===void 0)||(e=this.Tb[t],e===void 0))return!1;var n=e.va,r=e.ll;return n!==null&&(n.ll=r),r!==null&&(r.va=n),this.ea===e&&(this.ea=n),this.kf===e&&(this.kf=r),delete this.Tb[t],this.Sb--,this.xb(),!0},ye.delete=function(e){return this.remove(e)},ye.clear=function(){this._isFrozen&&Yn(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.jf!==null&&this.jf.reset(),this.kf=this.ea=null,this.xb()},nn.prototype.copy=function(){var e=new nn,t=this.Tb,n;for(n in t){var r=t[n];e.add(r.key,r.value)}return e},nn.prototype.Fa=function(){var e=this.Tb,t=Array(this.Sb),n=0,r;for(r in e){var i=e[r];t[n]=new Mn(i.key,i.value),n++}return t},nn.prototype.Lf=function(){return new Dt(this)},kn.Object.defineProperties(nn.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return eo;var e=this.Sa;return e!==null?(e.reset(),e):new In(this)}},iteratorKeys:{get:function(){return 0>=this.count?eo:new Et(this)}},iteratorValues:{get:function(){if(0>=this.count)return eo;var e=this.jf;return e!==null?(e.reset(),e):new gn(this)}}}),nn.prototype.toKeySet=nn.prototype.Lf,nn.prototype.toArray=nn.prototype.Fa,nn.prototype.clear=nn.prototype.clear,nn.prototype.delete=nn.prototype.delete,nn.prototype.remove=nn.prototype.remove,nn.prototype.get=nn.prototype.get,nn.prototype.getValue=nn.prototype.I,nn.prototype.has=nn.prototype.has,nn.prototype.contains=nn.prototype.contains,nn.prototype.first=nn.prototype.first,nn.prototype.addAll=nn.prototype.addAll,nn.prototype.set=nn.prototype.set,nn.prototype.add=nn.prototype.add,nn.prototype.thaw=nn.prototype.ka,nn.prototype.freeze=nn.prototype.freeze,nn.className="Map";function Ue(e,t){e===void 0?this.y=this.x=0:typeof e=="number"&&typeof t=="number"?(this.x=e,this.y=t):Lt("Invalid arguments to Point constructor: "+e+", "+t),this._isFrozen=!1}var kr,Br,ei,ti,Jr;Ue.prototype.assign=function(e){return this.x=e.x,this.y=e.y,this},Ue.prototype.h=function(e,t){return this.x=e,this.y=t,this},Ue.prototype.sg=function(e,t){return this.x=e,this.y=t,this},Ue.prototype.set=function(e){return this.x=e.x,this.y=e.y,this},Ue.prototype.copy=function(){var e=new Ue;return e.x=this.x,e.y=this.y,e},ye=Ue.prototype,ye.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},ye.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},ye.freeze=function(){return this._isFrozen=!0,this},ye.ka=function(){return Object.isFrozen(this)&&Lt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Wr(e){if(typeof e=="string"){e=e.split(" ");for(var t=0,n=0;e[t]==="";)t++;var r=e[t++];r&&(n=parseFloat(r));for(var i=0;e[t]==="";)t++;return(r=e[t++])&&(i=parseFloat(r)),new Ue(n,i)}return new Ue}function Ri(e){return e.x.toString()+" "+e.y.toString()}ye.toString=function(){return"Point("+this.x+","+this.y+")"},ye.D=function(e){return e instanceof Ue?this.x===e.x&&this.y===e.y:!1},ye.hi=function(e,t){return this.x===e&&this.y===t},ye.Xa=function(e){return vt.B(this.x,e.x)&&vt.B(this.y,e.y)},ye.add=function(e){return this.x+=e.x,this.y+=e.y,this},ye.re=function(e){return this.x-=e.x,this.y-=e.y,this},ye.offset=function(e,t){return this.x+=e,this.y+=t,this},Ue.prototype.rotate=function(e){if(e===0)return this;var t=this.x,n=this.y;if(t===0&&n===0)return this;if(360<=e?e-=360:0>e&&(e+=360),e===90){e=0;var r=1}else e===180?(e=-1,r=0):e===270?(e=0,r=-1):(r=e*Math.PI/180,e=Math.cos(r),r=Math.sin(r));return this.x=e*t-r*n,this.y=r*t+e*n,this},ye=Ue.prototype,ye.scale=function(e,t){return this.x*=e,this.y*=t,this},ye.Bf=function(e){var t=e.x-this.x;return e=e.y-this.y,t*t+e*e},ye.zd=function(e,t){return e-=this.x,t-=this.y,e*e+t*t},ye.normalize=function(){var e=this.x,t=this.y,n=Math.sqrt(e*e+t*t);return 0<n&&(this.x=e/n,this.y=t/n),this},ye.ab=function(e){return ri(e.x-this.x,e.y-this.y)},ye.direction=function(e,t){return ri(e-this.x,t-this.y)};function ri(e,t){if(e===0)return 0<t?90:0>t?270:0;if(t===0)return 0<e?0:180;if(isNaN(e)||isNaN(t))return 0;var n=180*Math.atan(Math.abs(t/e))/Math.PI;return 0>e?n=0>t?n+180:180-n:0>t&&(n=360-n),n}ye.Ry=function(e,t){return vt.Fl(e.x,e.y,t.x,t.y,this.x,this.y)},ye.fA=function(e,t,n,r){return vt.qh(e,t,n,r,this.x,this.y,this),this},ye.gA=function(e,t){return vt.qh(e.x,e.y,t.x,t.y,this.x,this.y,this),this},ye.uA=function(e,t,n,r){return vt.No(this.x,this.y,e,t,n,r,this),this},ye.vA=function(e,t){return vt.No(this.x,this.y,e.x,e.y,t.width,t.height,this),this},ye.xi=function(e,t){return this.x=e.x+t.x*e.width+t.offsetX,this.y=e.y+t.y*e.height+t.offsetY,this},ye.yi=function(e,t,n,r,i){return this.x=e+i.x*n+i.offsetX,this.y=t+i.y*r+i.offsetY,this},ye.transform=function(e){return e.Ga(this),this};function wr(e,t){return t.Cd(e),e}function rr(e,t,n,r,i,o){var a=i-n,p=o-r,w=a*a+p*p;n-=e,r-=t;var O=-n*a-r*p;return 0>=O||O>=w?(a=i-e,p=o-t,Math.min(n*n+r*r,a*a+p*p)):(e=a*r-p*n,e*e/w)}function Ir(e,t,n,r){return e=n-e,t=r-t,e*e+t*t}function Nr(e,t,n,r){return e=n-e,t=r-t,e===0?0<t?90:0>t?270:0:t===0?0<e?0:180:isNaN(e)||isNaN(t)?0:(r=180*Math.atan(Math.abs(t/e))/Math.PI,0>e?r=0>t?r+180:180-r:0>t&&(r=360-r),r)}ye.w=function(){return isFinite(this.x)&&isFinite(this.y)},Ue.alloc=function(){var e=$r.pop();return e===void 0?new Ue:e},Ue.allocAt=function(e,t){var n=$r.pop();return n===void 0?new Ue(e,t):(n.x=e,n.y=t,n)},Ue.free=function(e){$r.push(e)},Ue.prototype.isReal=Ue.prototype.w,Ue.prototype.setSpot=Ue.prototype.yi,Ue.prototype.setRectSpot=Ue.prototype.xi,Ue.prototype.snapToGridPoint=Ue.prototype.vA,Ue.prototype.snapToGrid=Ue.prototype.uA,Ue.prototype.projectOntoLineSegmentPoint=Ue.prototype.gA,Ue.prototype.projectOntoLineSegment=Ue.prototype.fA,Ue.intersectingLineSegments=function(e,t,n,r,i,o,a,p){return vt.Rl(e,t,n,r,i,o,a,p)},Ue.prototype.compareWithLineSegmentPoint=Ue.prototype.Ry,Ue.compareWithLineSegment=function(e,t,n,r,i,o){return vt.Fl(e,t,n,r,i,o)},Ue.prototype.direction=Ue.prototype.direction,Ue.prototype.directionPoint=Ue.prototype.ab,Ue.prototype.normalize=Ue.prototype.normalize,Ue.prototype.distanceSquared=Ue.prototype.zd,Ue.prototype.distanceSquaredPoint=Ue.prototype.Bf,Ue.prototype.scale=Ue.prototype.scale,Ue.prototype.rotate=Ue.prototype.rotate,Ue.prototype.offset=Ue.prototype.offset,Ue.prototype.subtract=Ue.prototype.re,Ue.prototype.add=Ue.prototype.add,Ue.prototype.equalsApprox=Ue.prototype.Xa,Ue.prototype.equalTo=Ue.prototype.hi,Ue.prototype.equals=Ue.prototype.D,Ue.prototype.set=Ue.prototype.set,Ue.prototype.setTo=Ue.prototype.sg;var $r=[];Ue.className="Point",Ue.parse=Wr,Ue.stringify=Ri,Ue.distanceLineSegmentSquared=rr,Ue.distanceSquared=Ir,Ue.direction=Nr,Ue.Origin=kr=new Ue(0,0).ja(),Ue.InfiniteTopLeft=Br=new Ue(-1/0,-1/0).ja(),Ue.InfiniteBottomRight=ei=new Ue(1/0,1/0).ja(),Ue.SixPoint=ti=new Ue(6,6).ja(),Ue.NoPoint=Jr=new Ue(NaN,NaN).ja(),Ue.parse=Wr,Ue.stringify=Ri,Ue.distanceLineSegmentSquared=rr,Ue.distanceSquared=Ir,Ue.direction=Nr;function Yt(e,t){e===void 0?this.height=this.width=0:typeof e=="number"&&(0<=e||isNaN(e))&&typeof t=="number"&&(0<=t||isNaN(t))?(this.width=e,this.height=t):Lt("Invalid arguments to Size constructor: "+e+", "+t),this._isFrozen=!1}var Sr,fr,pi,Pi,Ai,Ji,To;Yt.prototype.assign=function(e){return this.width=e.width,this.height=e.height,this},Yt.prototype.h=function(e,t){return this.width=e,this.height=t,this},Yt.prototype.sg=function(e,t){return this.width=e,this.height=t,this},Yt.prototype.set=function(e){return this.width=e.width,this.height=e.height,this},Yt.prototype.copy=function(){var e=new Yt;return e.width=this.width,e.height=this.height,e},ye=Yt.prototype,ye.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},ye.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},ye.freeze=function(){return this._isFrozen=!0,this},ye.ka=function(){return Object.isFrozen(this)&&Lt("cannot thaw constant: "+this),this._isFrozen=!1,this};function _o(e){if(typeof e=="string"){e=e.split(" ");for(var t=0,n=0;e[t]==="";)t++;var r=e[t++];r&&(n=parseFloat(r));for(var i=0;e[t]==="";)t++;return(r=e[t++])&&(i=parseFloat(r)),new Yt(n,i)}return new Yt}function bo(e){return e.width.toString()+" "+e.height.toString()}ye.toString=function(){return"Size("+this.width+","+this.height+")"},ye.D=function(e){return e instanceof Yt?this.width===e.width&&this.height===e.height:!1},ye.hi=function(e,t){return this.width===e&&this.height===t},ye.Xa=function(e){return vt.B(this.width,e.width)&&vt.B(this.height,e.height)},ye.Bc=function(e,t){return e=this.width+e,this.width=0<=e?e:0,t=this.height+t,this.height=0<=t?t:0,this},ye.w=function(){return isFinite(this.width)&&isFinite(this.height)},Yt.alloc=function(){var e=Vo.pop();return e===void 0?new Yt:e},Yt.free=function(e){Vo.push(e)},Yt.prototype.isReal=Yt.prototype.w,Yt.prototype.inflate=Yt.prototype.Bc,Yt.prototype.equalsApprox=Yt.prototype.Xa,Yt.prototype.equalTo=Yt.prototype.hi,Yt.prototype.equals=Yt.prototype.D,Yt.prototype.set=Yt.prototype.set,Yt.prototype.setTo=Yt.prototype.sg;var Vo=[];Yt.className="Size",Yt.parse=_o,Yt.stringify=bo,Yt.ZeroSize=Sr=new Yt(0,0).ja(),Yt.OneSize=fr=new Yt(1,1).ja(),Yt.SixSize=pi=new Yt(6,6).ja(),Yt.EightSize=Pi=new Yt(8,8).ja(),Yt.TenSize=Ai=new Yt(10,10).ja(),Yt.InfiniteSize=Ji=new Yt(1/0,1/0).ja(),Yt.NoSize=To=new Yt(NaN,NaN).ja(),Yt.parse=_o,Yt.stringify=bo;function Nt(e,t,n,r){e===void 0?this.height=this.width=this.y=this.x=0:typeof e=="number"&&typeof t=="number"&&typeof n=="number"&&(0<=n||isNaN(n))&&typeof r=="number"&&(0<=r||isNaN(r))?(this.x=e,this.y=t,this.width=n,this.height=r):e instanceof Ue?(n=e.x,e=e.y,t instanceof Ue?(r=t.x,t=t.y,this.x=Math.min(n,r),this.y=Math.min(e,t),this.width=Math.abs(n-r),this.height=Math.abs(e-t)):t instanceof Yt?(this.x=n,this.y=e,this.width=t.width,this.height=t.height):Lt("Incorrect second argument supplied to Rect constructor "+t)):Lt("Invalid arguments to Rect constructor: "+e+", "+t+", "+n+", "+r),this._isFrozen=!1}ye=Nt.prototype,ye.assign=function(e){return this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this},ye.h=function(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this};function no(e,t,n){e.width=t,e.height=n}ye.sg=function(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this},ye.set=function(e){return this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this},ye.dd=function(e){return this.x=e.x,this.y=e.y,this},ye.tA=function(e){return this.width=e.width,this.height=e.height,this},Nt.prototype.copy=function(){var e=new Nt;return e.x=this.x,e.y=this.y,e.width=this.width,e.height=this.height,e},ye=Nt.prototype,ye.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},ye.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},ye.freeze=function(){return this._isFrozen=!0,this},ye.ka=function(){return Object.isFrozen(this)&&Lt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Fo(e){if(typeof e=="string"){e=e.split(" ");for(var t=0,n=0;e[t]==="";)t++;var r=e[t++];r&&(n=parseFloat(r));for(var i=0;e[t]==="";)t++;(r=e[t++])&&(i=parseFloat(r));for(var o=0;e[t]==="";)t++;(r=e[t++])&&(o=parseFloat(r));for(var a=0;e[t]==="";)t++;return(r=e[t++])&&(a=parseFloat(r)),new Nt(n,i,o,a)}return new Nt}function Xo(e){return e.x.toString()+" "+e.y.toString()+" "+e.width.toString()+" "+e.height.toString()}ye.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},ye.D=function(e){return e instanceof Nt?this.x===e.x&&this.y===e.y&&this.width===e.width&&this.height===e.height:!1},ye.hi=function(e,t,n,r){return this.x===e&&this.y===t&&this.width===n&&this.height===r},ye.Xa=function(e){return vt.B(this.x,e.x)&&vt.B(this.y,e.y)&&vt.B(this.width,e.width)&&vt.B(this.height,e.height)};function ho(e,t){return vt.$(e.x,t.x)&&vt.$(e.y,t.y)&&vt.$(e.width,t.width)&&vt.$(e.height,t.height)}ye.ca=function(e){return this.x<=e.x&&this.x+this.width>=e.x&&this.y<=e.y&&this.y+this.height>=e.y},ye.Re=function(e){return this.x<=e.x&&e.x+e.width<=this.x+this.width&&this.y<=e.y&&e.y+e.height<=this.y+this.height},ye.contains=function(e,t,n,r){return n===void 0&&(n=0),r===void 0&&(r=0),this.x<=e&&e+n<=this.x+this.width&&this.y<=t&&t+r<=this.y+this.height},ye.offset=function(e,t){return this.x+=e,this.y+=t,this},ye.Bc=function(e,t){return Zo(this,t,e,t,e)},ye.Co=function(e){return Zo(this,e.top,e.right,e.bottom,e.left)},ye.Fv=function(e){return Zo(this,-e.top,-e.right,-e.bottom,-e.left)},ye.Hz=function(e,t,n,r){return Zo(this,e,t,n,r)};function Zo(e,t,n,r,i){var o=e.width;return n+i<=-o?(e.x+=o/2,e.width=0):(e.x-=i,e.width+=n+i),n=e.height,t+r<=-n?(e.y+=n/2,e.height=0):(e.y-=t,e.height+=t+r),e}ye.Ex=function(e){return ko(this,e.x,e.y,e.width,e.height)},ye.Uu=function(e,t,n,r){return ko(this,e,t,n,r)};function ko(e,t,n,r,i){var o=Math.max(e.x,t),a=Math.max(e.y,n);return t=Math.min(e.x+e.width,t+r),n=Math.min(e.y+e.height,n+i),e.x=o,e.y=a,e.width=Math.max(0,t-o),e.height=Math.max(0,n-a),e}ye.Yc=function(e){return this.Vu(e.x,e.y,e.width,e.height)},ye.Vu=function(e,t,n,r){var i=this.width,o=this.x;return i!==1/0&&n!==1/0&&(i+=o,n+=e,isNaN(n)||isNaN(i)||o>n||e>i)?!1:(e=this.height,n=this.y,!(e!==1/0&&r!==1/0&&(e+=n,r+=t,isNaN(r)||isNaN(e)||n>r||t>e)))};function hs(e,t){var n=e.width,r=e.x,i=t.x-10;return r>t.width+10+10+i||i>n+r?!1:(n=e.height,e=e.y,r=t.y-10,!(e>t.height+10+10+r||r>n+e))}ye.Ye=function(e){return fi(this,e.x,e.y,0,0)},ye.ed=function(e){return fi(this,e.x,e.y,e.width,e.height)},ye.Kv=function(e,t,n,r){return n===void 0&&(n=0),r===void 0&&(r=0),fi(this,e,t,n,r)};function fi(e,t,n,r,i){var o=Math.min(e.x,t),a=Math.min(e.y,n);return t=Math.max(e.x+e.width,t+r),n=Math.max(e.y+e.height,n+i),e.x=o,e.y=a,e.width=t-o,e.height=n-a,e}ye.yi=function(e,t,n){return this.x=e-n.offsetX-n.x*this.width,this.y=t-n.offsetY-n.y*this.height,this};function $i(e,t,n,r,i,o,a,p){return a===void 0&&(a=0),p===void 0&&(p=0),e<=i&&i+a<=e+n&&t<=o&&o+p<=t+r}function Rr(e,t,n,r,i,o,a,p){return e>a+i||i>n+e?!1:!(t>p+o||o>r+t)}ye.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},ye.Mz=function(){return this.width===0&&this.height===0},Nt.alloc=function(){var e=ji.pop();return e===void 0?new Nt:e},Nt.allocAt=function(e,t,n,r){var i=ji.pop();return i===void 0?new Nt(e,t,n,r):i.h(e,t,n,r)},Nt.free=function(e){ji.push(e)},kn.Object.defineProperties(Nt.prototype,{left:{get:function(){return this.x},set:function(e){this.x=e}},top:{get:function(){return this.y},set:function(e){this.y=e}},right:{get:function(){return this.x+this.width},set:function(e){this.x+=e-(this.x+this.width)}},bottom:{get:function(){return this.y+this.height},set:function(e){this.y+=e-(this.y+this.height)}},position:{get:function(){return new Ue(this.x,this.y)},set:function(e){this.x=e.x,this.y=e.y}},size:{get:function(){return new Yt(this.width,this.height)},set:function(e){this.width=e.width,this.height=e.height}},center:{get:function(){return new Ue(this.x+this.width/2,this.y+this.height/2)},set:function(e){this.x=e.x-this.width/2,this.y=e.y-this.height/2}},centerX:{get:function(){return this.x+this.width/2},set:function(e){this.x=e-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(e){this.y=e-this.height/2}}}),Nt.prototype.isEmpty=Nt.prototype.Mz,Nt.prototype.isReal=Nt.prototype.w,Nt.intersectsLineSegment=function(e,t,n,r,i,o,a,p){return vt.Fx(e,t,n,r,i,o,a,p)},Nt.prototype.setSpot=Nt.prototype.yi,Nt.prototype.union=Nt.prototype.Kv,Nt.prototype.unionRect=Nt.prototype.ed,Nt.prototype.unionPoint=Nt.prototype.Ye,Nt.prototype.intersects=Nt.prototype.Vu,Nt.prototype.intersectsRect=Nt.prototype.Yc,Nt.prototype.intersect=Nt.prototype.Uu,Nt.prototype.intersectRect=Nt.prototype.Ex,Nt.prototype.grow=Nt.prototype.Hz,Nt.prototype.subtractMargin=Nt.prototype.Fv,Nt.prototype.addMargin=Nt.prototype.Co,Nt.prototype.inflate=Nt.prototype.Bc,Nt.prototype.offset=Nt.prototype.offset,Nt.prototype.contains=Nt.prototype.contains,Nt.prototype.containsRect=Nt.prototype.Re,Nt.prototype.containsPoint=Nt.prototype.ca,Nt.prototype.equalsApprox=Nt.prototype.Xa,Nt.prototype.equalTo=Nt.prototype.hi,Nt.prototype.equals=Nt.prototype.D,Nt.prototype.setSize=Nt.prototype.tA,Nt.prototype.setPoint=Nt.prototype.dd,Nt.prototype.set=Nt.prototype.set,Nt.prototype.setTo=Nt.prototype.sg;var Yr=null,ui=null,ji=[];Nt.className="Rect",Nt.parse=Fo,Nt.stringify=Xo,Nt.contains=$i,Nt.intersects=Rr,Nt.ZeroRect=Yr=new Nt(0,0,0,0).ja(),Nt.NoRect=ui=new Nt(NaN,NaN,NaN,NaN).ja(),Nt.parse=Fo,Nt.stringify=Xo,Nt.contains=$i,Nt.intersects=Rr;function Wn(e,t,n,r){e===void 0?this.left=this.bottom=this.right=this.top=0:t===void 0?this.left=this.bottom=this.right=this.top=e:n===void 0?(this.top=e,this.right=t,this.bottom=e,this.left=t):r!==void 0?(this.top=e,this.right=t,this.bottom=n,this.left=r):Lt("Invalid arguments to Margin constructor: "+e+", "+t+", "+n+", "+r),this._isFrozen=!1}Wn.prototype.assign=function(e){return this.top=e.top,this.right=e.right,this.bottom=e.bottom,this.left=e.left,this},Wn.prototype.sg=function(e,t,n,r){return this.top=e,this.right=t,this.bottom=n,this.left=r,this},Wn.prototype.set=function(e){return this.top=e.top,this.right=e.right,this.bottom=e.bottom,this.left=e.left,this},Wn.prototype.copy=function(){var e=new Wn;return e.top=this.top,e.right=this.right,e.bottom=this.bottom,e.left=this.left,e},ye=Wn.prototype,ye.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},ye.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},ye.freeze=function(){return this._isFrozen=!0,this},ye.ka=function(){return Object.isFrozen(this)&&Lt("cannot thaw constant: "+this),this._isFrozen=!1,this};function mo(e){if(typeof e=="string"){e=e.split(" ");for(var t=0,n=NaN;e[t]==="";)t++;var r=e[t++];if(r&&(n=parseFloat(r)),isNaN(n))return new Wn;for(var i=NaN;e[t]==="";)t++;if((r=e[t++])&&(i=parseFloat(r)),isNaN(i))return new Wn(n);for(var o=NaN;e[t]==="";)t++;if((r=e[t++])&&(o=parseFloat(r)),isNaN(o))return new Wn(n,i);for(var a=NaN;e[t]==="";)t++;return(r=e[t++])&&(a=parseFloat(r)),isNaN(a)?new Wn(n,i):new Wn(n,i,o,a)}return new Wn}function ao(e){return e.top.toString()+" "+e.right.toString()+" "+e.bottom.toString()+" "+e.left.toString()}ye.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},ye.D=function(e){return e instanceof Wn?this.top===e.top&&this.right===e.right&&this.bottom===e.bottom&&this.left===e.left:!1},ye.hi=function(e,t,n,r){return this.top===e&&this.right===t&&this.bottom===n&&this.left===r},ye.Xa=function(e){return vt.B(this.top,e.top)&&vt.B(this.right,e.right)&&vt.B(this.bottom,e.bottom)&&vt.B(this.left,e.left)},ye.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Wn.alloc=function(){var e=fs.pop();return e===void 0?new Wn:e},Wn.free=function(e){fs.push(e)},Wn.prototype.isReal=Wn.prototype.w,Wn.prototype.equalsApprox=Wn.prototype.Xa,Wn.prototype.equalTo=Wn.prototype.hi,Wn.prototype.equals=Wn.prototype.D,Wn.prototype.set=Wn.prototype.set,Wn.prototype.setTo=Wn.prototype.sg;var fo=null,ns=null,fs=[];Wn.className="Margin",Wn.parse=mo,Wn.stringify=ao,Wn.ZeroMargin=fo=new Wn(0,0,0,0).ja(),Wn.TwoMargin=ns=new Wn(2,2,2,2).ja(),Wn.parse=mo,Wn.stringify=ao;function Nn(e,t,n,r){e===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0),this.x=e,this.y=t,this.offsetX=n,this.offsetY=r),this._isFrozen=!1}var So,No,Es,go,bs,jr,Zs,Jo,Qo,ks,Ma,tl,rs,Bo,ou,Eu,su,Al,Js,Ns,Da,nl,Pu,Fu,tc,is,Uc,yc,Bu,kl,Vs,Ks,ws,js,ju,ba;Nn.prototype.assign=function(e){return this.x=e.x,this.y=e.y,this.offsetX=e.offsetX,this.offsetY=e.offsetY,this},Nn.prototype.sg=function(e,t,n,r){return this.x=e,this.y=t,this.offsetX=n,this.offsetY=r,this},Nn.prototype.set=function(e){return this.x=e.x,this.y=e.y,this.offsetX=e.offsetX,this.offsetY=e.offsetY,this},Nn.prototype.copy=function(){var e=new Nn;return e.x=this.x,e.y=this.y,e.offsetX=this.offsetX,e.offsetY=this.offsetY,e},ye=Nn.prototype,ye.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},ye.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},ye.freeze=function(){return this._isFrozen=!0,this},ye.ka=function(){return Object.isFrozen(this)&&Lt("cannot thaw constant: "+this),this._isFrozen=!1,this};function os(e,t){return e.x=NaN,e.y=NaN,e.offsetX=t,e}function Uu(e){if(typeof e=="string"){if(e=e.trim(),e==="None")return So;if(e==="TopLeft")return No;if(e==="Top"||e==="TopCenter"||e==="MiddleTop")return Es;if(e==="TopRight")return go;if(e==="Left"||e==="LeftCenter"||e==="MiddleLeft")return bs;if(e==="Center")return jr;if(e==="Right"||e==="RightCenter"||e==="MiddleRight")return Zs;if(e==="BottomLeft")return Jo;if(e==="Bottom"||e==="BottomCenter"||e==="MiddleBottom")return Qo;if(e==="BottomRight")return ks;if(e==="TopSide")return Ma;if(e==="LeftSide")return tl;if(e==="RightSide")return rs;if(e==="BottomSide")return Bo;if(e==="TopBottomSides")return ou;if(e==="LeftRightSides")return Eu;if(e==="TopLeftSides")return su;if(e==="TopRightSides")return Al;if(e==="BottomLeftSides")return Js;if(e==="BottomRightSides")return Ns;if(e==="NotTopSide")return Da;if(e==="NotLeftSide")return nl;if(e==="NotRightSide")return Pu;if(e==="NotBottomSide")return Fu;if(e==="AllSides")return tc;if(e==="Default")return is;e=e.split(" ");for(var t=0,n=0;e[t]==="";)t++;var r=e[t++];r!==void 0&&0<r.length&&(n=parseFloat(r));for(var i=0;e[t]==="";)t++;r=e[t++],r!==void 0&&0<r.length&&(i=parseFloat(r));for(var o=0;e[t]==="";)t++;r=e[t++],r!==void 0&&0<r.length&&(o=parseFloat(r));for(var a=0;e[t]==="";)t++;return r=e[t++],r!==void 0&&0<r.length&&(a=parseFloat(r)),new Nn(n,i,o,a)}return new Nn}function dl(e){return e.sb()?e.x.toString()+" "+e.y.toString()+" "+e.offsetX.toString()+" "+e.offsetY.toString():e.toString()}ye.toString=function(){return this.sb()?this.offsetX===0&&this.offsetY===0?"Spot("+this.x+","+this.y+")":"Spot("+this.x+","+this.y+","+this.offsetX+","+this.offsetY+")":this.D(So)?"None":this.D(No)?"TopLeft":this.D(Es)?"Top":this.D(go)?"TopRight":this.D(bs)?"Left":this.D(jr)?"Center":this.D(Zs)?"Right":this.D(Jo)?"BottomLeft":this.D(Qo)?"Bottom":this.D(ks)?"BottomRight":this.D(Ma)?"TopSide":this.D(tl)?"LeftSide":this.D(rs)?"RightSide":this.D(Bo)?"BottomSide":this.D(ou)?"TopBottomSides":this.D(Eu)?"LeftRightSides":this.D(su)?"TopLeftSides":this.D(Al)?"TopRightSides":this.D(Js)?"BottomLeftSides":this.D(Ns)?"BottomRightSides":this.D(Da)?"NotTopSide":this.D(nl)?"NotLeftSide":this.D(Pu)?"NotRightSide":this.D(Fu)?"NotBottomSide":this.D(tc)?"AllSides":this.D(is)?"Default":"None"},ye.D=function(e){return e instanceof Nn?(this.x===e.x||isNaN(this.x)&&isNaN(e.x))&&(this.y===e.y||isNaN(this.y)&&isNaN(e.y))&&this.offsetX===e.offsetX&&this.offsetY===e.offsetY:!1},ye.gv=function(){return new Nn(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},ye.Hf=function(e){if(!this.$c())return!1;if(!e.$c())if(e.D(Uc))e=tl;else if(e.D(yc))e=rs;else if(e.D(Bu))e=Ma;else if(e.D(kl))e=Bo;else return!1;return e=e.offsetY,(this.offsetY&e)===e},ye.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},ye.Mc=function(){return isNaN(this.x)||isNaN(this.y)},ye.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},ye.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},ye.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},Nn.alloc=function(){var e=Wl.pop();return e===void 0?new Nn:e},Nn.free=function(e){Wl.push(e)},Nn.prototype.isDefault=Nn.prototype.Xb,Nn.prototype.isNone=Nn.prototype.ys,Nn.prototype.isSide=Nn.prototype.$c,Nn.prototype.isNoSpot=Nn.prototype.Mc,Nn.prototype.isSpot=Nn.prototype.sb,Nn.prototype.includesSide=Nn.prototype.Hf,Nn.prototype.opposite=Nn.prototype.gv,Nn.prototype.equals=Nn.prototype.D,Nn.prototype.set=Nn.prototype.set,Nn.prototype.setTo=Nn.prototype.sg;var Wl=[];Nn.className="Spot",Nn.parse=Uu,Nn.stringify=dl,Nn.None=So=os(new Nn(0,0,0,0),0).ja(),Nn.Default=is=os(new Nn(0,0,-1,0),-1).ja(),Nn.TopLeft=No=new Nn(0,0,0,0).ja(),Nn.TopCenter=Es=new Nn(.5,0,0,0).ja(),Nn.TopRight=go=new Nn(1,0,0,0).ja(),Nn.LeftCenter=bs=new Nn(0,.5,0,0).ja(),Nn.Center=jr=new Nn(.5,.5,0,0).ja(),Nn.RightCenter=Zs=new Nn(1,.5,0,0).ja(),Nn.BottomLeft=Jo=new Nn(0,1,0,0).ja(),Nn.BottomCenter=Qo=new Nn(.5,1,0,0).ja(),Nn.BottomRight=ks=new Nn(1,1,0,0).ja(),Nn.MiddleTop=Vs=Es,Nn.MiddleLeft=Ks=bs,Nn.MiddleRight=ws=Zs,Nn.MiddleBottom=js=Qo,Nn.Top=Bu=Es,Nn.Left=Uc=bs,Nn.Right=yc=Zs,Nn.Bottom=kl=Qo,Nn.TopSide=Ma=os(new Nn(0,0,1,1),1).ja(),Nn.LeftSide=tl=os(new Nn(0,0,1,2),1).ja(),Nn.RightSide=rs=os(new Nn(0,0,1,4),1).ja(),Nn.BottomSide=Bo=os(new Nn(0,0,1,8),1).ja(),Nn.TopBottomSides=ou=os(new Nn(0,0,1,9),1).ja(),Nn.LeftRightSides=Eu=os(new Nn(0,0,1,6),1).ja(),Nn.TopLeftSides=su=os(new Nn(0,0,1,3),1).ja(),Nn.TopRightSides=Al=os(new Nn(0,0,1,5),1).ja(),Nn.BottomLeftSides=Js=os(new Nn(0,0,1,10),1).ja(),Nn.BottomRightSides=Ns=os(new Nn(0,0,1,12),1).ja(),Nn.NotTopSide=Da=os(new Nn(0,0,1,14),1).ja(),Nn.NotLeftSide=nl=os(new Nn(0,0,1,13),1).ja(),Nn.NotRightSide=Pu=os(new Nn(0,0,1,11),1).ja(),Nn.NotBottomSide=Fu=os(new Nn(0,0,1,7),1).ja(),Nn.AllSides=tc=os(new Nn(0,0,1,15),1).ja(),ju=new Nn(.156,.156).ja(),ba=new Nn(.844,.844).ja(),Nn.parse=Uu,Nn.stringify=dl;function dr(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}dr.prototype.set=function(e){return this.m11=e.m11,this.m12=e.m12,this.m21=e.m21,this.m22=e.m22,this.dx=e.dx,this.dy=e.dy,this},dr.prototype.setTransform=function(e,t,n,r,i,o){return this.m11=e,this.m12=t,this.m21=n,this.m22=r,this.dx=i,this.dy=o,this},dr.prototype.copy=function(){var e=new dr;return e.m11=this.m11,e.m12=this.m12,e.m21=this.m21,e.m22=this.m22,e.dx=this.dx,e.dy=this.dy,e},dr.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},dr.prototype.D=function(e){return this.m11===e.m11&&this.m12===e.m12&&this.m21===e.m21&&this.m22===e.m22&&this.dx===e.dx&&this.dy===e.dy},dr.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},dr.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},dr.prototype.multiply=function(e){var t=this.m11*e.m11+this.m21*e.m12,n=this.m12*e.m11+this.m22*e.m12,r=this.m11*e.m21+this.m21*e.m22,i=this.m12*e.m21+this.m22*e.m22;return this.dx=this.m11*e.dx+this.m21*e.dy+this.dx,this.dy=this.m12*e.dx+this.m22*e.dy+this.dy,this.m11=t,this.m12=n,this.m21=r,this.m22=i,this},dr.prototype.bv=function(e){var t=1/(e.m11*e.m22-e.m12*e.m21),n=e.m22*t,r=-e.m12*t,i=-e.m21*t,o=e.m11*t,a=t*(e.m21*e.dy-e.m22*e.dx);return e=t*(e.m12*e.dx-e.m11*e.dy),t=this.m11*n+this.m21*r,n=this.m12*n+this.m22*r,r=this.m11*i+this.m21*o,i=this.m12*i+this.m22*o,this.dx=this.m11*a+this.m21*e+this.dx,this.dy=this.m12*a+this.m22*e+this.dy,this.m11=t,this.m12=n,this.m21=r,this.m22=i,this},dr.prototype.Vj=function(){var e=1/(this.m11*this.m22-this.m12*this.m21),t=-this.m12*e,n=-this.m21*e,r=this.m11*e,i=e*(this.m21*this.dy-this.m22*this.dx),o=e*(this.m12*this.dx-this.m11*this.dy);return this.m11=this.m22*e,this.m12=t,this.m21=n,this.m22=r,this.dx=i,this.dy=o,this},dr.prototype.rotate=function(e,t,n){if(360<=e?e-=360:0>e&&(e+=360),e===0)return this;if(this.translate(t,n),e===90){e=0;var r=1}else e===180?(e=-1,r=0):e===270?(e=0,r=-1):(r=e*Math.PI/180,e=Math.cos(r),r=Math.sin(r));var i=this.m12*e+this.m22*r,o=this.m11*-r+this.m21*e,a=this.m12*-r+this.m22*e;return this.m11=this.m11*e+this.m21*r,this.m12=i,this.m21=o,this.m22=a,this.translate(-t,-n),this},ye=dr.prototype,ye.translate=function(e,t){return this.dx+=this.m11*e+this.m21*t,this.dy+=this.m12*e+this.m22*t,this},ye.scale=function(e,t){return t===void 0&&(t=e),this.m11*=e,this.m12*=e,this.m21*=t,this.m22*=t,this},ye.Ga=function(e){var t=e.x,n=e.y;return e.h(t*this.m11+n*this.m21+this.dx,t*this.m12+n*this.m22+this.dy)},ye.Cd=function(e){var t=1/(this.m11*this.m22-this.m12*this.m21),n=e.x,r=e.y;return e.h(n*this.m22*t+r*-this.m21*t+t*(this.m21*this.dy-this.m22*this.dx),n*-this.m12*t+r*this.m11*t+t*(this.m12*this.dx-this.m11*this.dy))},ye.Eu=function(e){var t=1/(this.m11*this.m22-this.m12*this.m21),n=1.25*e.x,r=1.2*e.y;return e.h(n*this.m22*t+r*-this.m21*t+t*(this.m21*this.dy-this.m22*this.dx),n*-this.m12*t+r*this.m11*t+t*(this.m12*this.dx-this.m11*this.dy))},ye.pp=function(e){var t=e.x,n=e.y,r=t+e.width,i=n+e.height,o=this.m11,a=this.m12,p=this.m21,w=this.m22,O=this.dx,D=this.dy,X=t*o+n*p+O,re=t*a+n*w+D,de=r*o+n*p+O,Se=r*a+n*w+D;return n=t*o+i*p+O,t=t*a+i*w+D,o=r*o+i*p+O,r=r*a+i*w+D,i=Math.min(X,de),X=Math.max(X,de),de=Math.min(re,Se),re=Math.max(re,Se),i=Math.min(i,n),X=Math.max(X,n),de=Math.min(de,t),re=Math.max(re,t),i=Math.min(i,o),X=Math.max(X,o),de=Math.min(de,r),re=Math.max(re,r),e.h(i,de,X-i,re-de),e},dr.alloc=function(){var e=nc.pop();return e===void 0?new dr:e},dr.free=function(e){nc.push(e)},dr.prototype.transformRect=dr.prototype.pp,dr.prototype.transformPoint=dr.prototype.Ga,dr.prototype.scale=dr.prototype.scale,dr.prototype.translate=dr.prototype.translate,dr.prototype.rotate=dr.prototype.rotate,dr.prototype.invert=dr.prototype.Vj,dr.prototype.multiplyInverted=dr.prototype.bv,dr.prototype.multiply=dr.prototype.multiply,dr.prototype.reset=dr.prototype.reset,dr.prototype.isIdentity=dr.prototype.ws,dr.prototype.equals=dr.prototype.D,dr.prototype.setTransform=dr.prototype.setTransform,dr.prototype.set=dr.prototype.set;var nc=[];dr.className="Transform",dr.xF="54a702f3e53909c447824c6706603faf4c";var vt={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(e){if(0>=e)return 0;var t=vt.Uv;if(t===null){t=[];for(var n=0;2e3>=n;n++)t[n]=Math.sqrt(n);vt.Uv=t}return 1>e?(n=1/e,2e3>=n?1/t[n|0]:Math.sqrt(e)):2e3>=e?t[e|0]:Math.sqrt(e)},B:function(e,t){return e-=t,.5>e&&-.5<e},$:function(e,t){return e-=t,5e-8>e&&-5e-8<e},Yb:function(e,t,n,r,i,o,a){if(0>=i&&(i=1e-6),e<n)var p=e,w=n;else p=n,w=e;if(t<r)var O=t,D=r;else O=r,D=t;if(e===n)return O<=a&&a<=D&&e-i<=o&&o<=e+i;if(t===r)return p<=o&&o<=w&&t-i<=a&&a<=t+i;if(w+=i,p-=i,p<=o&&o<=w&&(D+=i,O-=i,O<=a&&a<=D))if(w-p>D-O)if(e-n>i||n-e>i){if(o=(r-t)/(n-e)*(o-e)+t,o-i<=a&&a<=o+i)return!0}else return!0;else if(t-r>i||r-t>i){if(a=(n-e)/(r-t)*(a-t)+e,a-i<=o&&o<=a+i)return!0}else return!0;return!1},cs:function(e,t,n,r,i,o,a,p,w,O,D,X){if(vt.Yb(e,t,a,p,X,n,r)&&vt.Yb(e,t,a,p,X,i,o))return vt.Yb(e,t,a,p,X,O,D);var re=(e+n)/2,de=(t+r)/2,Se=(n+i)/2,Te=(r+o)/2;i=(i+a)/2,o=(o+p)/2,r=(re+Se)/2,n=(de+Te)/2,Se=(Se+i)/2,Te=(Te+o)/2;var Xe=(r+Se)/2,We=(n+Te)/2;return vt.cs(e,t,re,de,r,n,Xe,We,w,O,D,X)||vt.cs(Xe,We,Se,Te,i,o,a,p,w,O,D,X)},ax:function(e,t,n,r,i,o,a,p,w){var O=(n+i)/2,D=(r+o)/2;return w.h((((e+n)/2+O)/2+(O+(i+a)/2)/2)/2,(((t+r)/2+D)/2+(D+(o+p)/2)/2)/2),w},My:function(e,t,n,r,i,o,a,p){var w=(n+i)/2,O=(r+o)/2;return Nr(((e+n)/2+w)/2,((t+r)/2+O)/2,(w+(i+a)/2)/2,(O+(o+p)/2)/2)},Dl:function(e,t,n,r,i,o,a,p,w,O){if(vt.Yb(e,t,a,p,w,n,r)&&vt.Yb(e,t,a,p,w,i,o))fi(O,e,t,0,0),fi(O,a,p,0,0);else{var D=(e+n)/2,X=(t+r)/2,re=(n+i)/2,de=(r+o)/2;i=(i+a)/2,o=(o+p)/2,r=(D+re)/2,n=(X+de)/2,re=(re+i)/2,de=(de+o)/2;var Se=(r+re)/2,Te=(n+de)/2;vt.Dl(e,t,D,X,r,n,Se,Te,w,O),vt.Dl(Se,Te,re,de,i,o,a,p,w,O)}return O},Qe:function(e,t,n,r,i,o,a,p,w,O){if(vt.Yb(e,t,a,p,w,n,r)&&vt.Yb(e,t,a,p,w,i,o))O.length===0&&(O.push(e),O.push(t)),O.push(a),O.push(p);else{var D=(e+n)/2,X=(t+r)/2,re=(n+i)/2,de=(r+o)/2;i=(i+a)/2,o=(o+p)/2,r=(D+re)/2,n=(X+de)/2,re=(re+i)/2,de=(de+o)/2;var Se=(r+re)/2,Te=(n+de)/2;vt.Qe(e,t,D,X,r,n,Se,Te,w,O),vt.Qe(Se,Te,re,de,i,o,a,p,w,O)}return O},jv:function(e,t,n,r,i,o,a,p,w,O){if(vt.Yb(e,t,i,o,O,n,r))return vt.Yb(e,t,i,o,O,p,w);var D=(e+n)/2,X=(t+r)/2;n=(n+i)/2,r=(r+o)/2;var re=(D+n)/2,de=(X+r)/2;return vt.jv(e,t,D,X,re,de,a,p,w,O)||vt.jv(re,de,n,r,i,o,a,p,w,O)},OA:function(e,t,n,r,i,o,a){return a.h(((e+n)/2+(n+i)/2)/2,((t+r)/2+(r+o)/2)/2),a},iv:function(e,t,n,r,i,o,a,p){if(vt.Yb(e,t,i,o,a,n,r))fi(p,e,t,0,0),fi(p,i,o,0,0);else{var w=(e+n)/2,O=(t+r)/2;n=(n+i)/2,r=(r+o)/2;var D=(w+n)/2,X=(O+r)/2;vt.iv(e,t,w,O,D,X,a,p),vt.iv(D,X,n,r,i,o,a,p)}return p},ep:function(e,t,n,r,i,o,a,p){if(vt.Yb(e,t,i,o,a,n,r))p.length===0&&(p.push(e),p.push(t)),p.push(i),p.push(o);else{var w=(e+n)/2,O=(t+r)/2;n=(n+i)/2,r=(r+o)/2;var D=(w+n)/2,X=(O+r)/2;vt.ep(e,t,w,O,D,X,a,p),vt.ep(D,X,n,r,i,o,a,p)}return p},Eo:function(e,t,n,r,i,o,a,p,w,O,D,X,re,de){if(vt.Yb(e,t,a,p,re,n,r)&&vt.Yb(e,t,a,p,re,i,o))return!vt.Rl(e,t,a,p,w,O,D,X)||(re=(e-a)*(O-X)-(t-p)*(w-D),re===0)?!1:(de.h(((e*p-t*a)*(w-D)-(e-a)*(w*X-O*D))/re,((e*p-t*a)*(O-X)-(t-p)*(w*X-O*D))/re),!0);var Se=(e+n)/2,Te=(t+r)/2,Xe=(n+i)/2,We=(r+o)/2;i=(i+a)/2,o=(o+p)/2,r=(Se+Xe)/2,n=(Te+We)/2,Xe=(Xe+i)/2,We=(We+o)/2;var qe=(r+Xe)/2,tt=(n+We)/2,rt=1/0,ft=!1,Tt=0,Sn=0;return vt.Eo(e,t,Se,Te,r,n,qe,tt,w,O,D,X,re,de)&&(e=(de.x-w)*(de.x-w)+(de.y-O)*(de.y-O),e<rt&&(rt=e,ft=!0,Tt=de.x,Sn=de.y)),vt.Eo(qe,tt,Xe,We,i,o,a,p,w,O,D,X,re,de)&&(de.x-w)*(de.x-w)+(de.y-O)*(de.y-O)<rt&&(ft=!0,Tt=de.x,Sn=de.y),ft&&(de.x=Tt,de.y=Sn),ft},Fo:function(e,t,n,r,i,o,a,p,w,O,D,X,re){var de=0;if(vt.Yb(e,t,a,p,re,n,r)&&vt.Yb(e,t,a,p,re,i,o)){if(re=(e-a)*(O-X)-(t-p)*(w-D),re===0)return de;var Se=((e*p-t*a)*(w-D)-(e-a)*(w*X-O*D))/re,Te=((e*p-t*a)*(O-X)-(t-p)*(w*X-O*D))/re;if(Se>=D)return de;if((w>D?w-D:D-w)<(O>X?O-X:X-O)){if(t<p?(w=t,e=p):(w=p,e=t),Te<w||Te>e)return de}else if(e<a?(w=e,e=a):w=a,Se<w||Se>e)return de;0<re?de++:0>re&&de--}else{Se=(e+n)/2,Te=(t+r)/2;var Xe=(n+i)/2,We=(r+o)/2;i=(i+a)/2,o=(o+p)/2,r=(Se+Xe)/2,n=(Te+We)/2,Xe=(Xe+i)/2,We=(We+o)/2;var qe=(r+Xe)/2,tt=(n+We)/2;de+=vt.Fo(e,t,Se,Te,r,n,qe,tt,w,O,D,X,re),de+=vt.Fo(qe,tt,Xe,We,i,o,a,p,w,O,D,X,re)}return de},qh:function(e,t,n,r,i,o,a){return vt.$(e,n)?(t<r?(n=t,t=r):n=r,o<n?(a.h(e,n),!1):o>t?(a.h(e,t),!1):(a.h(e,o),!0)):vt.$(t,r)?(e<n?(r=e,e=n):r=n,i<r?(a.h(r,t),!1):i>e?(a.h(e,t),!1):(a.h(i,t),!0)):(i=((e-i)*(e-n)+(t-o)*(t-r))/((n-e)*(n-e)+(r-t)*(r-t)),-5e-6>i?(a.h(e,t),!1):1.000005<i?(a.h(n,r),!1):(a.h(e+i*(n-e),t+i*(r-t)),!0))},Ve:function(e,t,n,r,i,o,a,p,w){return vt.B(e,n)&&vt.B(t,r)?(w.h(e,t),!1):vt.$(i,a)?vt.$(e,n)?(vt.qh(e,t,n,r,i,o,w),!1):vt.qh(e,t,n,r,i,(r-t)/(n-e)*(i-e)+t,w):(p=(p-o)/(a-i),vt.$(e,n)?(n=p*(e-i)+o,t<r?(i=t,t=r):i=r,n<i?(w.h(e,i),!1):n>t?(w.h(e,t),!1):(w.h(e,n),!0)):(a=(r-t)/(n-e),vt.$(p,a)?(vt.qh(e,t,n,r,i,o,w),!1):(i=(a*e-p*i+o-t)/(a-p),vt.$(a,0)?(e<n?(r=e,e=n):r=n,i<r?(w.h(r,t),!1):i>e?(w.h(e,t),!1):(w.h(i,t),!0)):vt.qh(e,t,n,r,i,a*(i-e)+t,w))))},MA:function(e,t,n,r,i){return vt.Ve(n.x,n.y,r.x,r.y,e.x,e.y,t.x,t.y,i)},KA:function(e,t,n,r,i,o,a,p,w,O){function D(Xe,We){var qe=(Xe-e)*(Xe-e)+(We-t)*(We-t);qe<X&&(X=qe,w.h(Xe,We))}var X=1/0;D(w.x,w.y);var re=0,de=0,Se=0,Te=0;if(i<a?(re=i,de=a):(re=a,de=i),o<p?(Se=i,Te=a):(Se=a,Te=i),re=(de-re)/2+O,O=(Te-Se)/2+O,i=(i+a)/2,o=(o+p)/2,re===0||O===0)return w;if(.5>(n>e?n-e:e-n)){if(re=1-(n-i)*(n-i)/(re*re),0>re)return w;re=Math.sqrt(re),r=-O*re+o,D(n,O*re+o),D(n,r)}else{if(n=(r-t)/(n-e),r=1/(re*re)+n*n/(O*O),p=2*n*(t-n*e)/(O*O)-2*n*o/(O*O)-2*i/(re*re),re=p*p-4*r*(2*n*e*o/(O*O)-2*t*o/(O*O)+o*o/(O*O)+i*i/(re*re)-1+(t-n*e)*(t-n*e)/(O*O)),0>re)return w;re=Math.sqrt(re),O=(-p+re)/(2*r),D(O,n*O-n*e+t),re=(-p-re)/(2*r),D(re,n*re-n*e+t)}return w},Ff:function(e,t,n,r,i,o,a,p,w){var O=1e21,D=e,X=t;if(vt.Ve(e,t,e,r,i,o,a,p,w)){var re=(w.x-i)*(w.x-i)+(w.y-o)*(w.y-o);re<O&&(O=re,D=w.x,X=w.y)}return vt.Ve(n,t,n,r,i,o,a,p,w)&&(re=(w.x-i)*(w.x-i)+(w.y-o)*(w.y-o),re<O&&(O=re,D=w.x,X=w.y)),vt.Ve(e,t,n,t,i,o,a,p,w)&&(t=(w.x-i)*(w.x-i)+(w.y-o)*(w.y-o),t<O&&(O=t,D=w.x,X=w.y)),vt.Ve(e,r,n,r,i,o,a,p,w)&&(e=(w.x-i)*(w.x-i)+(w.y-o)*(w.y-o),e<O&&(O=e,D=w.x,X=w.y)),w.h(D,X),1e21>O},us:function(e,t,n){return vt.Fx(e.x,e.y,e.width,e.height,t.x,t.y,n.x,n.y)},Fx:function(e,t,n,r,i,o,a,p){var w=e+n,O=t+r;return i===a?(o<p?(a=o,o=p):a=p,e<=i&&i<=w&&a<=O&&o>=t):o===p?(i<a?(p=i,i=a):p=a,t<=o&&o<=O&&p<=w&&i>=e):!!($i(e,t,n,r,i,o)||$i(e,t,n,r,a,p)||vt.Rl(e,t,w,t,i,o,a,p)||vt.Rl(w,t,w,O,i,o,a,p)||vt.Rl(w,O,e,O,i,o,a,p)||vt.Rl(e,O,e,t,i,o,a,p))},Rl:function(e,t,n,r,i,o,a,p){return e===n&&t===r&&i===a&&o===p?e===i&&t===o:0>=vt.Fl(e,t,n,r,i,o)*vt.Fl(e,t,n,r,a,p)&&0>=vt.Fl(i,o,a,p,e,t)*vt.Fl(i,o,a,p,n,r)},Fl:function(e,t,n,r,i,o){return n-=e,r-=t,e=i-e,t=o-t,o=e*r-t*n,o===0&&(o=e*n+t*r,0<o&&(o=(e-n)*n+(t-r)*r,0>o&&(o=0))),o},bp:function(e){return 0>e&&(e+=360),360<=e&&(e-=360),e},jx:function(e,t,n,r,i,o){var a=Math.PI;o||(r*=a/180,i*=a/180);var p=r>i?-1:1;o=[];var w=a/2,O=r;if(r=Math.min(2*a,Math.abs(i-r)),1e-5>r)return w=O+p*Math.min(r,w),p=e+n*Math.cos(O),O=t+n*Math.sin(O),e+=n*Math.cos(w),t+=n*Math.sin(w),n=(p+e)/2,w=(O+t)/2,o.push([p,O,n,w,n,w,e,t]),o;for(;1e-5<r;)i=O+p*Math.min(r,w),o.push(vt.Vy(n,O,i,e,t)),r-=Math.abs(i-O),O=i;return o},Vy:function(e,t,n,r,i){var o=(n-t)/2,a=e*Math.cos(o),p=e*Math.sin(o),w=-p,O=a*a+w*w,D=O+a*a+w*p;return O=4/3*(Math.sqrt(2*O*D)-D)/(a*p-w*a),p=a-O*w,a=w+O*a,w=-a,O=o+t,o=Math.cos(O),O=Math.sin(O),[r+e*Math.cos(t),i+e*Math.sin(t),r+p*o-a*O,i+p*O+a*o,r+p*o-w*O,i+p*O+w*o,r+e*Math.cos(n),i+e*Math.sin(n)]},No:function(e,t,n,r,i,o,a){n=Math.floor((e-n)/i)*i+n,r=Math.floor((t-r)/o)*o+r;var p=n;return n+i-e<i/2&&(p=n+i),e=r,r+o-t<o/2&&(e=r+o),a.h(p,e),a},vx:function(e,t){var n=Math.max(e,t);e=Math.min(e,t);var r;do t=n%e,n=r=e,e=t;while(0<t);return r},$y:function(e,t,n,r){var i=0>n,o=0>r;if(e<t)var a=1,p=0;else a=0,p=1;var w=a===0?e:t,O=a===0?n:r;return(a===0?i:o)&&(O=-O),a=p,n=a===0?n:r,(a===0?i:o)&&(n=-n),vt.az(w,a===0?e:t,O,n,0,0)},az:function(e,t,n,r,i,o){if(0<r)if(0<n){i=e*e,o=t*t,e*=n;var a=t*r,p=-o+a,w=-o+Math.sqrt(e*e+a*a);t=p;for(var O=0;9999999999>O&&(t=.5*(p+w),!(t===p||t===w));++O){var D=e/(t+i),X=a/(t+o);if(D=D*D+X*X-1,0<D)p=t;else if(0>D)w=t;else break}n=i*n/(t+i)-n,r=o*r/(t+o)-r,n=Math.sqrt(n*n+r*r)}else n=Math.abs(r-t);else r=e*e-t*t,o=e*n,o<r?(r=o/r,o=t*Math.sqrt(Math.abs(1-r*r)),n=e*r-n,n=Math.sqrt(n*n+o*o)):n=Math.abs(n-e);return n},Ze:new yo,um:new yo,Mf:new yo,Nf:0,vm:100};vt.za=vt.AA;function un(e){Ge(this),this.l=2,e===void 0&&(e=un.o),this.na=e,this.Ec=this.Dc=this.pd=this.od=0,e===un.o?this.ee=new tn:(un.V===null&&(un.V=new tn().freeze()),this.ee=un.V),this.aq=this.ee.Ja,this.Ip=new Nt().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=No,this.gg=ks,this.Rk=this.Sk=NaN,this.Uf=Xt}un.prototype.copy=function(){var e=new un;if(e.l=this.l&-2,e.na=this.na,e.od=this.od,e.pd=this.pd,e.Dc=this.Dc,e.Ec=this.Ec,this.na===un.o){for(var t=this.ee.s,n=e.ee,r=0;r<t.length;r++)n.add(t[r].copy());e.ee=n}else e.ee=this.ee;return e.aq=this.aq,e.Ip.assign(this.Ip),e.tk=this.tk,e.ym=this.ym,e.zm=this.zm,e.fg=this.fg.J(),e.gg=this.gg.J(),e.Sk=this.Sk,e.Rk=this.Rk,e.Uf=this.Uf,e},un.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},un.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==un.o)return this;var e=this.figures;e.freeze(),e=e.s;for(var t=e.length,n=0;n<t;n++)e[n].freeze();return this},un.prototype.ka=function(){if(Object.isFrozen(this)&&Lt("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==un.o)return this;var e=this.figures;e.ka(),e=e.s;for(var t=e.length,n=0;n<t;n++)e[n].ka();return this},un.prototype.Xa=function(e){if(!(e instanceof un))return!1;if(this.type!==e.type)return this.type===un.j&&e.type===un.o?bc(this,e):e.type===un.j&&this.type===un.o?bc(e,this):!1;if(this.type===un.o){var t=this.figures.s;e=e.figures.s;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(!t[r].Xa(e[r]))return!1;return!0}return vt.B(this.startX,e.startX)&&vt.B(this.startY,e.startY)&&vt.B(this.endX,e.endX)&&vt.B(this.endY,e.endY)};function bc(e,t){return e.type!==un.j||t.type!==un.o?!1:!!(t.figures.count===1&&(t=t.figures.M(0),t.segments.count===1&&vt.B(e.startX,t.startX)&&vt.B(e.startY,t.startY)&&(t=t.segments.M(0),t.type===Ci&&vt.B(e.endX,t.endX)&&vt.B(e.endY,t.endY))))}un.ia=function(e){return e.toString()},un.prototype.qb=function(e){e.classType===un&&(this.type=e)},un.prototype.toString=function(e){switch(e===void 0&&(e=-1),this.type){case un.j:return 0>e?"M"+this.startX.toString()+" "+this.startY.toString()+"L"+this.endX.toString()+" "+this.endY.toString():"M"+this.startX.toFixed(e)+" "+this.startY.toFixed(e)+"L"+this.endX.toFixed(e)+" "+this.endY.toFixed(e);case un.u:var t=new Nt(this.startX,this.startY,0,0);return t.Kv(this.endX,this.endY,0,0),0>e?"M"+t.x.toString()+" "+t.y.toString()+"H"+t.right.toString()+"V"+t.bottom.toString()+"H"+t.left.toString()+"z":"M"+t.x.toFixed(e)+" "+t.y.toFixed(e)+"H"+t.right.toFixed(e)+"V"+t.bottom.toFixed(e)+"H"+t.left.toFixed(e)+"z";case un.F:if(t=new Nt(this.startX,this.startY,0,0),t.Kv(this.endX,this.endY,0,0),0>e)return e=t.left.toString()+" "+(t.y+t.height/2).toString(),"M"+e+"A"+(t.width/2).toString()+" "+(t.height/2).toString()+" 0 0 1 "+(t.right.toString()+" "+(t.y+t.height/2).toString())+"A"+(t.width/2).toString()+" "+(t.height/2).toString()+" 0 0 1 "+e;var n=t.left.toFixed(e)+" "+(t.y+t.height/2).toFixed(e);return"M"+n+"A"+(t.width/2).toFixed(e)+" "+(t.height/2).toFixed(e)+" 0 0 1 "+(t.right.toFixed(e)+" "+(t.y+t.height/2).toFixed(e))+"A"+(t.width/2).toFixed(e)+" "+(t.height/2).toFixed(e)+" 0 0 1 "+n;case un.o:t="",n=this.figures.s;for(var r=n.length,i=0;i<r;i++){var o=n[i];0<i&&(t+=" x "),o.isFilled&&(t+="F "),t+=o.toString(e)}return t;default:return this.type.toString()}},un.nb=function(e){e=e.split(/[Xx]/);for(var t=e.length,n="",r=0;r<t;r++){var i=e[r];n=i.match(/[Ff]/)!==null?r===0?n+i:n+("X"+(i[0]===" "?"":" ")+i):n+((r===0?"":"X ")+"F"+(i[0]===" "?"":" ")+i)}return n},un.parse=function(e,t){function n(){return Te>=rt-1?!0:O[Te+1].match(ft)!==null}function r(){return Te++,O[Te]}function i(ar){var er=parseFloat(r()),si=parseFloat(r());Xe===Xe.toLowerCase()&&(er=tt.x+er,si=tt.y+si),ar.h(er,si)}function o(){return i(tt),tt}function a(){return i(qe),qe}function p(){var ar=We.toLowerCase();return ar!=="c"&&ar!=="s"&&ar!=="q"&&ar!=="t"?tt:new Ue(2*tt.x-qe.x,2*tt.y-qe.y)}t===void 0&&(t=!1);var w=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;e=e.replace(/,/gm," "),e=e.replace(w,"$1 $2"),e=e.replace(w,"$1 $2"),e=e.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),e=e.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),e=e.replace(/([0-9])([+\-])/gm,"$1 $2"),e=e.replace(/[\s\r\t\n]+/gm," "),e=e.replace(/^\s+|\s+$/g,"");var O=e.split(" ");for(e=0;e<O.length;e++){var D=O[e];if(D.match(/(\.[0-9]*)(\.)/gm)!==null){w=yr();for(var X="",re=!1,de=0;de<D.length;de++){var Se=D[de];Se!=="."||re?Se==="."?(w.push(X),X="."):X+=Se:(re=!0,X+=Se)}for(w.push(X),O.splice(e,1),D=0;D<w.length;D++)O.splice(e+D,0,w[D]);e+=w.length-1,Mr(w)}}var Te=-1,Xe="",We="";w=new Ue(0,0);var qe=new Ue(0,0),tt=new Ue(0,0),rt=O.length;e=G0(null),re=X=D=!1,de=!0,Se=null;for(var ft=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(Te>=rt-1);)if(We=Xe,Xe=r(),Xe!=="")switch(Xe.toUpperCase()){case"X":de=!0,X=D=!1;break;case"M":for(Se=o(),e.mc===null||de===!0?(Ad(e,Se.x,Se.y,D,!X,re),de=!1):e.moveTo(Se.x,Se.y),w.assign(tt);!n();)Se=o(),e.lineTo(Se.x,Se.y);break;case"L":for(;!n();)Se=o(),e.lineTo(Se.x,Se.y);break;case"H":for(;!n();)tt=new Ue((Xe===Xe.toLowerCase()?tt.x:0)+parseFloat(r()),tt.y),e.lineTo(tt.x,tt.y);break;case"V":for(;!n();)tt=new Ue(tt.x,(Xe===Xe.toLowerCase()?tt.y:0)+parseFloat(r())),e.lineTo(tt.x,tt.y);break;case"C":for(;!n();){Se=new Ue,i(Se);var Tt=a(),Sn=o();Jc(e,Se.x,Se.y,Tt.x,Tt.y,Sn.x,Sn.y)}break;case"S":for(;!n();)Se=p(),Tt=a(),Sn=o(),Jc(e,Se.x,Se.y,Tt.x,Tt.y,Sn.x,Sn.y);break;case"Q":for(;!n();)Se=a(),Tt=o(),Qg(e,Se.x,Se.y,Tt.x,Tt.y);break;case"T":for(;!n();)qe=Se=p(),Tt=o(),Qg(e,Se.x,Se.y,Tt.x,Tt.y);break;case"B":for(;!n();){Se=parseFloat(r()),Tt=parseFloat(r()),Sn=parseFloat(r());var Rn=parseFloat(r()),_n=parseFloat(r()),ln=_n,Gt=!1;n()||(ln=parseFloat(r()),n()||(Gt=parseFloat(r())!==0)),Xe===Xe.toLowerCase()&&(Sn+=tt.x,Rn+=tt.y),e.arcTo(Se,Tt,Sn,Rn,_n,ln,Gt)}break;case"A":for(;!n();)Se=Math.abs(parseFloat(r())),Tt=Math.abs(parseFloat(r())),Sn=parseFloat(r()),_n=Rn=!1,Gt=ln=0,ln=r(),ln.length===1?(Rn=!!parseFloat(ln),_n=!!parseFloat(r()),ln=parseFloat(r())):ln.length===2?(Rn=!!parseFloat(ln[0]),_n=!!parseFloat(ln[1]),ln=parseFloat(r())):(Rn=!!parseFloat(ln[0]),_n=!!parseFloat(ln[1]),ln=parseFloat(ln.slice(2))),Gt=parseFloat(r()),Xe===Xe.toLowerCase()&&(ln=tt.x+ln,Gt=tt.y+Gt),tt.h(ln,Gt),j1(e,Se,Tt,Sn,Rn,_n,ln,Gt);break;case"Z":B1(e),tt.assign(w);break;case"F":for(Se="",Tt=1;O[Te+Tt];)if(O[Te+Tt]==="0")re=!0,Tt++;else if(O[Te+Tt].match(/[Uu]/)!==null)Tt++;else if(O[Te+Tt].match(ft)===null)Tt++;else{Se=O[Te+Tt];break}Se.match(/[Mm]/)?D=!0:0<e.mc.segments.length&&(e.mc.isFilled=!0);break;case"U":for(Se="",Tt=1;O[Te+Tt];)if(O[Te+Tt].match(/[Ff]/)!==null)Tt++;else if(O[Te+Tt].match(ft)===null)Tt++;else{Se=O[Te+Tt];break}Se.match(/[Mm]/)?X=!0:e.mc.isShadowed=!1}if(w=e.os,qg=e,t)for(t=w.figures.iterator;t.next();)t.value.isFilled=!0;return w},un.Ha=function(e,t){for(var n=e.length,r=Ue.alloc(),i=0;i<n;i++){var o=e[i];r.x=o[0],r.y=o[1],t.Ga(r),o[0]=r.x,o[1]=r.y,r.x=o[2],r.y=o[3],t.Ga(r),o[2]=r.x,o[3]=r.y,r.x=o[4],r.y=o[5],t.Ga(r),o[4]=r.x,o[5]=r.y,r.x=o[6],r.y=o[7],t.Ga(r),o[6]=r.x,o[7]=r.y}Ue.free(r)},un.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===un.o){if(this.aq!==this.figures.Ja)return!0;for(var e=this.figures.s,t=e.length,n=0;n<t;n++)if(e[n].Zu())return!0}return!1},un.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===un.o){this.aq=this.figures.Ja;for(var e=this.figures.s,t=e.length,n=0;n<t;n++){var r=e[n];r._isInvalidBounds=!1;var i=r.segments;r.sr=i.Ja,r=i.s,i=r.length;for(var o=0;o<i;o++){var a=r[o];a._isInvalidBounds=!1,a.ae=null}}}e=this.Ip,e.ka(),isNaN(this.Sk)||isNaN(this.Rk)?e.h(0,0,0,0):e.h(0,0,this.Sk,this.Rk),Sc(this,e,!1),fi(e,0,0,0,0),e.freeze()},un.prototype.ix=function(){var e=new Nt;return Sc(this,e,!0),e};function Sc(e,t,n){switch(e.type){case un.j:case un.u:case un.F:n?t.h(e.od,e.pd,0,0):fi(t,e.od,e.pd,0,0),fi(t,e.Dc,e.Ec,0,0);break;case un.o:var r=e.figures;e=r.s,r=r.length;for(var i=0;i<r;i++){var o=e[i];n&&i===0?t.h(o.startX,o.startY,0,0):fi(t,o.startX,o.startY,0,0);for(var a=o.segments.s,p=a.length,w=o.startX,O=o.startY,D=0;D<p;D++){var X=a[D];switch(X.type){case Ci:case Io:w=X.endX,O=X.endY,fi(t,w,O,0,0);break;case ds:vt.Dl(w,O,X.point1X,X.point1Y,X.point2X,X.point2Y,X.endX,X.endY,.5,t),w=X.endX,O=X.endY;break;case na:vt.iv(w,O,X.point1X,X.point1Y,X.endX,X.endY,.5,t),w=X.endX,O=X.endY;break;case Oo:case ca:var re=X.type===Oo?Ys(X,o):Sa(X,o,w,O),de=re.length;if(de===0){w=X.type===Oo?X.centerX:X.endX,O=X.type===Oo?X.centerY:X.endY,fi(t,w,O,0,0);break}X=null;for(var Se=0;Se<de;Se++)X=re[Se],vt.Dl(X[0],X[1],X[2],X[3],X[4],X[5],X[6],X[7],.5,t);X!==null&&(w=X[6],O=X[7]);break;default:Lt("Unknown Segment type: "+X.type)}}}break;default:Lt("Unknown Geometry type: "+e.type)}}un.prototype.normalize=function(){this._isFrozen&&Yn(this);var e=this.ix();return this.offset(-e.x,-e.y),new Ue(-e.x,-e.y)},un.prototype.offset=function(e,t){return this._isFrozen&&Yn(this),this.transform(1,0,0,1,e,t),this},un.prototype.scale=function(e,t){return this._isFrozen&&Yn(this),this.transform(e,0,0,t,0,0),this},un.prototype.rotate=function(e,t,n){this._isFrozen&&Yn(this),t===void 0&&(t=0),n===void 0&&(n=0);var r=dr.alloc();return r.reset(),r.rotate(e,t,n),this.transform(r.m11,r.m12,r.m21,r.m22,r.dx,r.dy),dr.free(r),this},ye=un.prototype,ye.transform=function(e,t,n,r,i,o){switch(this.type){case un.j:case un.u:case un.F:var a=this.od,p=this.pd;this.od=a*e+p*n+i,this.pd=a*t+p*r+o,a=this.Dc,p=this.Ec,this.Dc=a*e+p*n+i,this.Ec=a*t+p*r+o;break;case un.o:for(var w=this.figures.s,O=w.length,D=0;D<O;D++){var X=w[D];a=X.startX,p=X.startY,X.startX=a*e+p*n+i,X.startY=a*t+p*r+o,X=X.segments.s;for(var re=X.length,de=0;de<re;de++){var Se=X[de];switch(Se.type){case Ci:case Io:a=Se.endX,p=Se.endY,Se.endX=a*e+p*n+i,Se.endY=a*t+p*r+o;break;case ds:a=Se.point1X,p=Se.point1Y,Se.point1X=a*e+p*n+i,Se.point1Y=a*t+p*r+o,a=Se.point2X,p=Se.point2Y,Se.point2X=a*e+p*n+i,Se.point2Y=a*t+p*r+o,a=Se.endX,p=Se.endY,Se.endX=a*e+p*n+i,Se.endY=a*t+p*r+o;break;case na:a=Se.point1X,p=Se.point1Y,Se.point1X=a*e+p*n+i,Se.point1Y=a*t+p*r+o,a=Se.endX,p=Se.endY,Se.endX=a*e+p*n+i,Se.endY=a*t+p*r+o;break;case Oo:a=Se.centerX,p=Se.centerY,Se.centerX=a*e+p*n+i,Se.centerY=a*t+p*r+o,t!==0&&(a=180*Math.atan2(t,e)/Math.PI,0>a&&(a+=360),Se.startAngle+=a),0>e&&(Se.startAngle=180-Se.startAngle,Se.sweepAngle=-Se.sweepAngle),0>r&&(Se.startAngle=-Se.startAngle,Se.sweepAngle=-Se.sweepAngle),Se.radiusX*=Math.sqrt(e*e+n*n),Se.radiusY!==void 0&&(Se.radiusY*=Math.sqrt(t*t+r*r));break;case ca:if(a=Se.endX,p=Se.endY,Se.endX=a*e+p*n+i,Se.endY=a*t+p*r+o,Se.radiusX===0||Se.radiusY===0)break;t!==0&&(a=180*Math.atan2(t,e)/Math.PI,0>a&&(a+=360),Se.xAxisRotation+=a),0>e&&(Se.xAxisRotation=180-Se.xAxisRotation,Se.isClockwiseArc=!Se.isClockwiseArc),0>r&&(Se.xAxisRotation=-Se.xAxisRotation,Se.isClockwiseArc=!Se.isClockwiseArc),Se.radiusX*=Math.sqrt(e*e+n*n),Se.radiusY*=Math.sqrt(t*t+r*r);break;default:Lt("Unknown Segment type: "+Se.type)}}}}return this._isInvalidBounds=!0,this},ye.ca=function(e,t){t===void 0&&(t=0);var n=this.od,r=this.pd,i=this.Dc,o=this.Ec;switch(this.type){case un.j:return vt.Yb(n,r,i,o,t,e.x,e.y);case un.u:var a=Nt.allocAt(Math.min(n,i)-t,Math.min(r,o)-t,Math.abs(i-n)+2*t,Math.abs(o-r)+2*t);return e=a.ca(e),Nt.free(a),e;case un.F:a=Math.min(n,i)-t;var p=Math.min(r,o)-t;return n=(Math.abs(i-n)+2*t)/2,t=(Math.abs(o-r)+2*t)/2,0>=n||0>=t?!1:(a=e.x-(a+n),p=e.y-(p+t),1>=a*a/(n*n)+p*p/(t*t));case un.o:return Nl(this,e,t,!0,!1);default:return!1}};function Nl(e,t,n,r,i){var o=t.x;t=t.y;for(var a=e.bounds.x-20,p=0,w,O,D,X,re=e.figures.s,de=re.length,Se=0;Se<de;Se++){var Te=re[Se],Xe=!Te.isEvenOdd;if(Te.isFilled){if(r&&Te.ca(o,t,n))return!0;var We=Te.segments;w=Te.startX,O=Te.startY;for(var qe=w,tt=O,rt=We.s,ft=0;ft<=We.length;ft++){var Tt=void 0;if(ft!==We.length){Tt=rt[ft];var Sn=Tt.type;e=Tt.endX,X=Tt.endY}else Sn=Ci,e=qe,X=tt;switch(Sn){case Io:if(qe=Ga(o,t,a,t,w,O,qe,tt),isNaN(qe))return!0;p+=qe,qe=e,tt=X;break;case Ci:if(w=Ga(o,t,a,t,w,O,e,X),isNaN(w))return!0;p+=w;break;case ds:D=vt.Fo(w,O,Tt.point1X,Tt.point1Y,Tt.point2X,Tt.point2Y,e,X,a,t,o,t,.5),p+=D;break;case na:D=vt.Fo(w,O,(w+2*Tt.point1X)/3,(O+2*Tt.point1Y)/3,(2*Tt.point1X+e)/3,(2*Tt.point1Y+X)/3,e,X,a,t,o,t,.5),p+=D;break;case Oo:case ca:Sn=Tt.type===Oo?Ys(Tt,Te):Sa(Tt,Te,w,O);var Rn=Sn.length;if(Rn===0){if(w=Ga(o,t,a,t,w,O,Tt.type===Oo?Tt.centerX:Tt.endX,Tt.type===Oo?Tt.centerY:Tt.endY),isNaN(w))return!0;p+=w;break}Tt=null;for(var _n=0;_n<Rn;_n++){if(Tt=Sn[_n],_n===0){if(D=Ga(o,t,a,t,w,O,Tt[0],Tt[1]),isNaN(D))return!0;p+=D}D=vt.Fo(Tt[0],Tt[1],Tt[2],Tt[3],Tt[4],Tt[5],Tt[6],Tt[7],a,t,o,t,.5),p+=D}Tt!==null&&(e=Tt[6],X=Tt[7]);break;default:Lt("Unknown Segment type: "+Tt.type)}w=e,O=X}if(Xe){if(p!==0)return!0}else if(p%2!==0)return!0;p=0}else if(Te.ca(o,t,i?n:n+2))return!0}return!1}function Ga(e,t,n,r,i,o,a,p){if(vt.Yb(i,o,a,p,.05,e,t))return NaN;var w=(e-n)*(o-p);if(w===0)return 0;var O=((e*r-t*n)*(i-a)-(e-n)*(i*p-o*a))/w;if(t=(e*r-t*n)*(o-p)/w,O>=e)return 0;if((i>a?i-a:a-i)<(o>p?o-p:p-o)){if(o<p){if(t<o||t>p)return 0}else if(t<p||t>o)return 0}else if(i<a){if(O<i||O>a)return 0}else if(O<a||O>i)return 0;return 0<w?1:-1}function Vl(e,t,n,r){e=e.figures.s;for(var i=e.length,o=0;o<i;o++)if(e[o].ca(t,n,r))return!0;return!1}ye.Pu=function(e,t){if(0>e?e=0:1<e&&(e=1),t===void 0&&(t=new Ue),this.type===un.j)return t.h(this.startX+e*(this.endX-this.startX),this.startY+e*(this.endY-this.startY)),t;for(var n=this.flattenedSegments,r=this.flattenedLengths,i=n.length,o=this.flattenedTotalLength*e,a=0,p=0;p<i;p++){var w=r[p],O=w.length;for(e=0;e<O;e++){var D=w[e];if(a+D>=o)return r=o-a,r=D===0?0:r/D,n=n[p],p=n[2*e],i=n[2*e+1],t.h(p+(n[2*e+2]-p)*r,i+(n[2*e+3]-i)*r),t;a+=D}}return t},ye.wx=function(e){if(0>e?e=0:1<e&&(e=1),this.type===un.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var t=this.flattenedSegments,n=this.flattenedLengths,r=t.length,i=this.flattenedTotalLength*e,o=0,a=0;a<r;a++){var p=n[a],w=p.length;for(e=0;e<w;e++){var O=p[e];if(o+O>=i)return i=t[a],t=i[2*e],n=i[2*e+1],r=i[2*e+2],e=i[2*e+3],1>Math.abs(r-t)&&1>Math.abs(e-n)?0:1>Math.abs(r-t)?0<=e-n?90:270:1>Math.abs(e-n)?0<=r-t?0:180:180*Math.atan2(e-n,r-t)/Math.PI;o+=O}}return NaN},ye.Qu=function(e,t){if(0>e?e=0:1<e&&(e=1),t===void 0&&(t=[]),t.length=3,this.type===un.j)return t[0]=this.startX+e*(this.endX-this.startX),t[1]=this.startY+e*(this.endY-this.startY),t[2]=180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI,t;for(var n=this.flattenedSegments,r=this.flattenedLengths,i=n.length,o=this.flattenedTotalLength*e,a=0,p=0;p<i;p++){var w=r[p],O=w.length;for(e=0;e<O;e++){var D=w[e];if(a+D>=o)return r=o-a,r=D===0?0:r/D,D=n[p],n=D[2*e],p=D[2*e+1],i=D[2*e+2],e=D[2*e+3],t[0]=n+(i-n)*r,t[1]=p+(e-p)*r,t[2]=1>Math.abs(i-n)&&1>Math.abs(e-p)?0:1>Math.abs(i-n)?0<=e-p?90:270:1>Math.abs(e-p)?0<=i-n?0:180:180*Math.atan2(e-p,i-n)/Math.PI,t;a+=D}}return t},ye.xx=function(e){if(this.type===un.j){var t=this.startX,n=this.startY,r=this.endX,i=this.endY;if(t!==r||n!==i){var o=e.x;if(e=e.y,t===r){if(n<i){var a=n;r=i}else a=i,r=n;return e<=a?a===n?0:1:e>=r?r===n?0:1:Math.abs(e-n)/(r-a)}if(n===i)return t<r?a=t:(a=r,r=t),o<=a?a===t?0:1:o>=r?r===t?0:1:Math.abs(o-t)/(r-a);a=(r-t)*(r-t)+(i-n)*(i-n);var p=Ue.alloc();return vt.qh(t,n,r,i,o,e,p),e=p.x,o=p.y,Ue.free(p),Math.sqrt(((e-t)*(e-t)+(o-n)*(o-n))/a)}}else if(this.type===un.u){a=this.startX,p=this.startY;var w=this.endX;if(i=this.endY,a!==w||p!==i){t=w-a,n=i-p,o=2*t+2*n,r=e.x,e=e.y,r=Math.min(Math.max(r,a),w),e=Math.min(Math.max(e,p),i),a=Math.abs(r-a),w=Math.abs(r-w),p=Math.abs(e-p),i=Math.abs(e-i);var O=Math.min(a,w,p,i);if(O===p)return r/o;if(O===w)return(t+e)/o;if(O===i)return(2*t+n-r)/o;if(O===a)return(2*t+2*n-e)/o}}else{t=this.flattenedSegments,n=this.flattenedLengths,o=this.flattenedTotalLength,r=Ue.alloc(),i=1/0,p=a=0,w=t.length;for(var D=O=0,X=0;X<w;X++)for(var re=t[X],de=n[X],Se=re.length,Te=0;Te<Se;Te+=2){var Xe=re[Te],We=re[Te+1];if(Te!==0){vt.qh(O,D,Xe,We,e.x,e.y,r);var qe=(r.x-e.x)*(r.x-e.x)+(r.y-e.y)*(r.y-e.y);qe<i&&(i=qe,a=p,a+=Math.sqrt((r.x-O)*(r.x-O)+(r.y-D)*(r.y-D))),p+=de[(Te-2)/2]}O=Xe,D=We}return Ue.free(r),e=a/o,0>e?0:1<e?1:e}return 0};function Rl(e){if(e.tk===null){var t=e.tk=[],n=e.ym=[],r=[],i=[];if(e.type===un.j)r.push(e.startX),r.push(e.startY),r.push(e.endX),r.push(e.endY),t.push(r),i.push(Math.sqrt((e.startX-e.endX)*(e.startX-e.endX)+(e.startY-e.endY)*(e.startY-e.endY))),n.push(i);else if(e.type===un.u)r.push(e.startX),r.push(e.startY),r.push(e.endX),r.push(e.startY),r.push(e.endX),r.push(e.endY),r.push(e.startX),r.push(e.endY),r.push(e.startX),r.push(e.startY),t.push(r),i.push(Math.abs(e.startX-e.endX)),i.push(Math.abs(e.startY-e.endY)),i.push(Math.abs(e.startX-e.endX)),i.push(Math.abs(e.startY-e.endY)),n.push(i);else if(e.type===un.F){var o=new jo;o.startX=e.endX,o.startY=(e.startY+e.endY)/2;var a=new zr(Oo);if(a.startAngle=0,a.sweepAngle=360,a.centerX=(e.startX+e.endX)/2,a.centerY=(e.startY+e.endY)/2,a.radiusX=Math.abs(e.startX-e.endX)/2,a.radiusY=Math.abs(e.startY-e.endY)/2,o.add(a),e=Ys(a,o),i=e.length,i===0)r.push(a.centerX),r.push(a.centerY);else{a=o.startX,o=o.startY;for(var p=0;p<i;p++){var w=e[p];vt.Qe(a,o,w[2],w[3],w[4],w[5],w[6],w[7],.5,r),a=w[6],o=w[7]}}t.push(r),n.push(pl(r))}else for(e=e.figures.iterator;e.next();){i=e.value,r=[],r.push(i.startX),r.push(i.startY),a=i.startX,o=i.startY,p=a,w=o;for(var O=i.segments.s,D=O.length,X=0;X<D;X++){var re=O[X];switch(re.type){case Io:4<=r.length&&(t.push(r),n.push(pl(r))),r=[],r.push(re.endX),r.push(re.endY),a=re.endX,o=re.endY,p=a,w=o;break;case Ci:r.push(re.endX),r.push(re.endY),a=re.endX,o=re.endY;break;case ds:vt.Qe(a,o,re.point1X,re.point1Y,re.point2X,re.point2Y,re.endX,re.endY,.5,r),a=re.endX,o=re.endY;break;case na:vt.ep(a,o,re.point1X,re.point1Y,re.endX,re.endY,.5,r),a=re.endX,o=re.endY;break;case Oo:var de=Ys(re,i),Se=de.length;if(Se===0){r.push(re.centerX),r.push(re.centerY),a=re.centerX,o=re.centerY;break}for(var Te=0;Te<Se;Te++){var Xe=de[Te];vt.Qe(a,o,Xe[2],Xe[3],Xe[4],Xe[5],Xe[6],Xe[7],.5,r),a=Xe[6],o=Xe[7]}break;case ca:if(de=Sa(re,i,a,o),Se=de.length,Te=re.endX,Xe=re.endY,Se===0){r.push(Te),r.push(Xe),a=Te,o=Xe;break}for(Te=0;Te<Se;Te++)Xe=de[Te],vt.Qe(a,o,Xe[2],Xe[3],Xe[4],Xe[5],Xe[6],Xe[7],.5,r),a=Xe[6],o=Xe[7];break;default:Lt("Segment not of valid type: "+re.type)}re.isClosed&&(r.push(p),r.push(w))}4<=r.length&&(t.push(r),n.push(pl(r)))}}}function pl(e){for(var t=[],n=0,r=0,i=e.length,o=0;o<i;o+=2){var a=e[o],p=e[o+1];o!==0&&t.push(Math.sqrt(Ir(n,r,a,p))),n=a,r=p}return t}ye.add=function(e){return this.ee.add(e),this},ye.pm=function(e,t,n,r,i,o,a,p){return this._isFrozen&&Yn(this),this.fg=new Nn(e,t,i,o).freeze(),this.gg=new Nn(n,r,a,p).freeze(),this},kn.Object.defineProperties(un.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(e){this.l=e?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(e){this.l=e?this.l|2:this.l&-3}},flattenedSegments:{get:function(){return Rl(this),this.tk}},flattenedLengths:{get:function(){return Rl(this),this.ym}},flattenedTotalLength:{get:function(){var e=this.zm;if(isNaN(e)){if(this.type===un.j){e=Math.abs(this.endX-this.startX);var t=Math.abs(this.endY-this.startY);e=Math.sqrt(e*e+t*t)}else if(this.type===un.u)e=2*Math.abs(this.endX-this.startX)+2*Math.abs(this.endY-this.startY);else{t=this.flattenedLengths;for(var n=t.length,r=e=0;r<n;r++)for(var i=t[r],o=i.length,a=0;a<o;a++)e+=i[a]}this.zm=e}return e}},type:{get:function(){return this.na},set:function(e){this.na!==e&&(this._isFrozen&&Yn(this,e),this.na=e,e===un.o?this.ee=new tn:(un.V===null&&(un.V=new tn().freeze()),this.ee=un.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(e){this.od!==e&&(this._isFrozen&&Yn(this,e),this.od=e,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(e){this.pd!==e&&(this._isFrozen&&Yn(this,e),this.pd=e,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(e){this.Dc!==e&&(this._isFrozen&&Yn(this,e),this.Dc=e,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(e){this.Ec!==e&&(this._isFrozen&&Yn(this,e),this.Ec=e,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(e){this.ee!==e&&(this._isFrozen&&Yn(this,e),this.ee=e,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(e){this._isFrozen&&Yn(this,e),this.fg=e.J()}},spot2:{get:function(){return this.gg},set:function(e){this._isFrozen&&Yn(this,e),this.gg=e.J()}},defaultStretch:{get:function(){return this.Uf},set:function(e){this._isFrozen&&Yn(this,e),this.Uf=e}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),un.prototype.setSpots=un.prototype.pm,un.prototype.add=un.prototype.add,un.prototype.getFractionForPoint=un.prototype.xx,un.prototype.getPointAndAngleAlongPath=un.prototype.Qu,un.prototype.getAngleAlongPath=un.prototype.wx,un.prototype.getPointAlongPath=un.prototype.Pu,un.prototype.containsPoint=un.prototype.ca,un.prototype.transform=un.prototype.transform,un.prototype.rotate=un.prototype.rotate,un.prototype.scale=un.prototype.scale,un.prototype.offset=un.prototype.offset,un.prototype.normalize=un.prototype.normalize,un.prototype.computeBoundsWithoutOrigin=un.prototype.ix,un.prototype.equalsApprox=un.prototype.Xa,un.className="Geometry",un.j=new hn(un,"Line",0),un.u=new hn(un,"Rectangle",1),un.F=new hn(un,"Ellipse",2),un.o=new hn(un,"Path",3),un.V=null,un.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",un.className="Geometry",un.stringify=un.ia,un.fillPath=un.nb,un.parse=un.parse,un.Line=un.j,un.Rectangle=un.u,un.Ellipse=un.F,un.Path=un.o;function jo(e,t,n,r,i){Ge(this),n===void 0&&(n=!0),r===void 0&&(r=!0),i===void 0&&(i=!1),this.l=2|(n?4:0)|(r?8:0)|(i?16:0),e!==void 0?this.od=e:this.od=0,t!==void 0?this.pd=t:this.pd=0,this.pl=new tn,this.sr=this.pl.Ja,this.fw=null}jo.prototype.copy=function(){var e=new jo;e.l=this.l&-2,e.od=this.od,e.pd=this.pd;for(var t=this.pl.s,n=t.length,r=e.pl,i=0;i<n;i++){var o=t[i].copy();r.add(o)}return e.sr=this.sr,e.fw=this.fw,e},ye=jo.prototype,ye.Xa=function(e){if(!(e instanceof jo&&vt.B(this.startX,e.startX)&&vt.B(this.startY,e.startY)))return!1;var t=this.segments.s;e=e.segments.s;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(!t[r].Xa(e[r]))return!1;return!0},ye.toString=function(e){e===void 0&&(e=-1);for(var t=0>e?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(e)+" "+this.startY.toFixed(e),n=this.segments.s,r=n.length,i=0;i<r;i++)t+=" "+n[i].toString(e);return t},ye.freeze=function(){this._isFrozen=!0;var e=this.segments;e.freeze();var t=e.s;e=e.length;for(var n=0;n<e;n++)t[n].freeze();return this},ye.ka=function(){this._isFrozen=!1;var e=this.segments;e.ka(),e=e.s;for(var t=e.length,n=0;n<t;n++)e[n].ka();return this},ye.Zu=function(){if(this._isInvalidBounds)return!0;var e=this.segments;if(this.sr!==e.Ja)return!0;e=e.s;for(var t=e.length,n=0;n<t;n++)if(e[n]._isInvalidBounds)return!0;return!1},ye.add=function(e){return this.pl.add(e),this},ye.ca=function(e,t,n){for(var r=this.startX,i=this.startY,o=r,a=i,p=this.segments.s,w=p.length,O=0;O<w;O++){var D=p[O];switch(D.type){case Io:o=D.endX,a=D.endY,r=D.endX,i=D.endY;break;case Ci:if(vt.Yb(r,i,D.endX,D.endY,n,e,t))return!0;r=D.endX,i=D.endY;break;case ds:if(vt.cs(r,i,D.point1X,D.point1Y,D.point2X,D.point2Y,D.endX,D.endY,.5,e,t,n))return!0;r=D.endX,i=D.endY;break;case na:if(vt.jv(r,i,D.point1X,D.point1Y,D.endX,D.endY,.5,e,t,n))return!0;r=D.endX,i=D.endY;break;case Oo:case ca:var X=D.type===Oo?Ys(D,this):Sa(D,this,r,i),re=X.length,de=D.type===Oo?D.centerX:D.endX,Se=D.type===Oo?D.centerY:D.endY;if(re===0){if(vt.Yb(r,i,de,Se,n,e,t))return!0;r=de,i=Se;break}for(de=null,Se=0;Se<re;Se++)if(de=X[Se],Se===0&&vt.Yb(r,i,de[0],de[1],n,e,t)||vt.cs(de[0],de[1],de[2],de[3],de[4],de[5],de[6],de[7],.5,e,t,n))return!0;de!==null&&(r=de[6],i=de[7]);break;default:Lt("Unknown Segment type: "+D.type)}if(D.isClosed&&(r!==o||i!==a)&&vt.Yb(r,i,o,a,n,e,t))return!0}return!1},kn.Object.defineProperties(jo.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(e){this.l=e?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(e){this.l=e?this.l|2:this.l&-3}},isFilled:{get:function(){return(this.l&4)!==0},set:function(e){this._isFrozen&&Yn(this,e),this.l=e?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(e){this._isFrozen&&Yn(this,e),this.l=e?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(e){this._isFrozen&&Yn(this,e),this.l=e?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(e){this._isFrozen&&Yn(this,e),this.od=e,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(e){this._isFrozen&&Yn(this,e),this.pd=e,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(e){this._isFrozen&&Yn(this,e),this.pl=e,this._isInvalidBounds=!0}}}),jo.prototype.add=jo.prototype.add,jo.prototype.equalsApprox=jo.prototype.Xa,jo.className="PathFigure";function zr(e,t,n,r,i,o,a,p){Ge(this),e===void 0&&(e=Ci),this.na=e,this.l=2,t!==void 0?this.Dc=t:this.Dc=0,n!==void 0?this.Ec=n:this.Ec=0,r===void 0&&(r=0),i===void 0&&(i=0),o===void 0&&(o=0),a===void 0&&(a=0),e===ca?(e=o%360,0>e&&(e+=360),this.Ne=e,this.Vh=0,this.Wh=Math.max(r,0),this.Pg=Math.max(i,0),typeof a=="boolean"?a&&(this.isLargeArc=!0):typeof a=="number"&&a&&(this.isLargeArc=!0),p&&(this.isClockwiseArc=!0)):(this.Ne=r,this.Vh=i,e===Oo&&(o=Math.max(o,0)),this.Wh=o,typeof a=="number"?(e===Oo&&(a=Math.max(a,0)),this.Pg=a):this.Pg=0),this.ae=null}zr.prototype.copy=function(){var e=new zr;return e.na=this.na,e.l=this.l&-2,e.Dc=this.Dc,e.Ec=this.Ec,e.Ne=this.Ne,e.Vh=this.Vh,e.Wh=this.Wh,e.Pg=this.Pg,e},ye=zr.prototype,ye.Xa=function(e){if(!(e instanceof zr)||this.type!==e.type||this.isClosed!==e.isClosed)return!1;switch(this.type){case Io:case Ci:return vt.B(this.endX,e.endX)&&vt.B(this.endY,e.endY);case ds:return vt.B(this.endX,e.endX)&&vt.B(this.endY,e.endY)&&vt.B(this.point1X,e.point1X)&&vt.B(this.point1Y,e.point1Y)&&vt.B(this.point2X,e.point2X)&&vt.B(this.point2Y,e.point2Y);case na:return vt.B(this.endX,e.endX)&&vt.B(this.endY,e.endY)&&vt.B(this.point1X,e.point1X)&&vt.B(this.point1Y,e.point1Y);case Oo:return vt.B(this.startAngle,e.startAngle)&&vt.B(this.sweepAngle,e.sweepAngle)&&vt.B(this.centerX,e.centerX)&&vt.B(this.centerY,e.centerY)&&vt.B(this.radiusX,e.radiusX)&&vt.B(this.radiusY,e.radiusY);case ca:return this.isClockwiseArc===e.isClockwiseArc&&this.isLargeArc===e.isLargeArc&&vt.B(this.xAxisRotation,e.xAxisRotation)&&vt.B(this.endX,e.endX)&&vt.B(this.endY,e.endY)&&vt.B(this.radiusX,e.radiusX)&&vt.B(this.radiusY,e.radiusY);default:return!1}},ye.qb=function(e){e.classType===zr&&(this.type=e)},ye.toString=function(e){switch(e===void 0&&(e=-1),this.type){case Io:e=0>e?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(e)+" "+this.endY.toFixed(e);break;case Ci:e=0>e?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(e)+" "+this.endY.toFixed(e);break;case ds:e=0>e?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(e)+" "+this.point1Y.toFixed(e)+" "+this.point2X.toFixed(e)+" "+this.point2Y.toFixed(e)+" "+this.endX.toFixed(e)+" "+this.endY.toFixed(e);break;case na:e=0>e?"Q"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"Q"+this.point1X.toFixed(e)+" "+this.point1Y.toFixed(e)+" "+this.endX.toFixed(e)+" "+this.endY.toFixed(e);break;case Oo:e=0>e?"B"+this.startAngle.toString()+" "+this.sweepAngle.toString()+" "+this.centerX.toString()+" "+this.centerY.toString()+" "+this.radiusX.toString()+" "+this.radiusY.toString():"B"+this.startAngle.toFixed(e)+" "+this.sweepAngle.toFixed(e)+" "+this.centerX.toFixed(e)+" "+this.centerY.toFixed(e)+" "+this.radiusX.toFixed(e)+" "+this.radiusY.toFixed(e);break;case ca:e=0>e?"A"+this.radiusX.toString()+" "+this.radiusY.toString()+" "+this.xAxisRotation.toString()+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toString()+" "+this.endY.toString():"A"+this.radiusX.toFixed(e)+" "+this.radiusY.toFixed(e)+" "+this.xAxisRotation.toFixed(e)+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toFixed(e)+" "+this.endY.toFixed(e);break;default:e=this.type.toString()}return e+(this.isClosed?"z":"")},ye.freeze=function(){return this._isFrozen=!0,this},ye.ka=function(){return this._isFrozen=!1,this},ye.close=function(){return this.isClosed=!0,this};function Ys(e,t){if(e.ae!==null&&t._isInvalidBounds===!1)return e.ae;var n=e.radiusX,r=e.radiusY;if(r===void 0&&(r=n),n===0||r===0)return e.ae=[],e.ae;t=e.Ne;var i=e.Vh,o=vt.jx(0,0,n<r?n:r,e.startAngle,e.startAngle+e.sweepAngle,!1);if(n!==r){var a=dr.alloc();a.reset(),n<r?a.scale(1,r/n):a.scale(n/r,1),un.Ha(o,a),dr.free(a)}for(n=o.length,r=0;r<n;r++)a=o[r],a[0]+=t,a[1]+=i,a[2]+=t,a[3]+=i,a[4]+=t,a[5]+=i,a[6]+=t,a[7]+=i;return e.ae=o,e.ae}function Sa(e,t,n,r){function i(Te,Xe,We,qe){return(Te*qe<Xe*We?-1:1)*Math.acos((Te*We+Xe*qe)/(Math.sqrt(Te*Te+Xe*Xe)*Math.sqrt(We*We+qe*qe)))}if(e.ae!==null&&t._isInvalidBounds===!1)return e.ae;if(e.radiusX===0||e.radiusY===0)return e.ae=[],e.ae;t=e.Wh;var o=e.Pg;t===0&&(t=1e-4),o===0&&(o=1e-4);var a=Math.PI/180*e.Ne,p=e.isLargeArc,w=e.isClockwiseArc,O=e.Dc,D=e.Ec,X=Math.cos(a),re=Math.sin(a),de=X*(n-O)/2+re*(r-D)/2;a=-re*(n-O)/2+X*(r-D)/2;var Se=de*de/(t*t)+a*a/(o*o);return 1<Se&&(t*=Math.sqrt(Se),o*=Math.sqrt(Se)),Se=(p===w?-1:1)*Math.sqrt((t*t*o*o-t*t*a*a-o*o*de*de)/(t*t*a*a+o*o*de*de)),isNaN(Se)&&(Se=0),p=Se*t*a/o,Se=Se*-o*de/t,isNaN(p)&&(p=0),isNaN(Se)&&(Se=0),n=(n+O)/2+X*p-re*Se,r=(r+D)/2+re*p+X*Se,D=i(1,0,(de-p)/t,(a-Se)/o),X=(de-p)/t,O=(a-Se)/o,de=(-de-p)/t,p=(-a-Se)/o,a=i(X,O,de,p),de=(X*de+O*p)/(Math.sqrt(X*X+O*O)*Math.sqrt(de*de+p*p)),-1>=de?a=Math.PI:1<=de&&(a=0),!w&&0<a&&(a-=2*Math.PI),w&&0>a&&(a+=2*Math.PI),w=t>o?1:t/o,de=t>o?o/t:1,t=vt.jx(0,0,t>o?t:o,D,D+a,!0),o=dr.alloc(),o.reset(),o.translate(n,r),o.rotate(e.Ne,0,0),o.scale(w,de),un.Ha(t,o),dr.free(o),e.ae=t,e.ae}kn.Object.defineProperties(zr.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(e){this.l=e?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(e){this.l=e?this.l|2:this.l&-3}},isClosed:{get:function(){return(this.l&8)!==0},set:function(e){this.isClosed!==e&&(this.l=e?this.l|8:this.l&-9,this._isInvalidBounds=!0)}},type:{get:function(){return this.na},set:function(e){this._isFrozen&&Yn(this,e),this.na=e,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(e){this._isFrozen&&Yn(this,e),this.Dc=e,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(e){this._isFrozen&&Yn(this,e),this.Ec=e,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(e){this._isFrozen&&Yn(this,e),this.Ne=e,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(e){this._isFrozen&&Yn(this,e),this.Vh=e,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(e){this._isFrozen&&Yn(this,e),this.Wh=e,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(e){this._isFrozen&&Yn(this,e),this.Pg=e,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(e){this._isFrozen&&Yn(this,e),this.Ne=e,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(e){this._isFrozen&&Yn(this,e),this.Vh=e,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(e){0>e&&hr(e,">= zero",zr,"radiusX"),this._isFrozen&&Yn(this,e),this.Wh=e,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(e){0>e&&hr(e,">= zero",zr,"radiusY"),this._isFrozen&&Yn(this,e),this.Pg=e,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(e){this._isFrozen&&Yn(this,e),e%=360,0>e&&(e+=360),this.Dc=e,this._isInvalidBounds=!0}},sweepAngle:{get:function(){return this.Ec},set:function(e){this._isFrozen&&Yn(this,e),360<e&&(e=360),-360>e&&(e=-360),this.Ec=e,this._isInvalidBounds=!0}},isClockwiseArc:{get:function(){return(this.l&4)!==0},set:function(e){this._isFrozen&&Yn(this,e),this.l=e?this.l|4:this.l&-5,this._isInvalidBounds=!0}},isLargeArc:{get:function(){return(this.l&16)!==0},set:function(e){this._isFrozen&&Yn(this,e),this.l=e?this.l|16:this.l&-17,this._isInvalidBounds=!0}},xAxisRotation:{get:function(){return this.Ne},set:function(e){this._isFrozen&&Yn(this,e),e%=360,0>e&&(e+=360),this.Ne=e,this._isInvalidBounds=!0}}}),zr.prototype.equalsApprox=zr.prototype.Xa;var Io=new hn(zr,"Move",0),Ci=new hn(zr,"Line",1),ds=new hn(zr,"Bezier",2),na=new hn(zr,"QuadraticBezier",3),Oo=new hn(zr,"Arc",4),ca=new hn(zr,"SvgArc",4);zr.className="PathSegment",zr.Move=Io,zr.Line=Ci,zr.Bezier=ds,zr.QuadraticBezier=na,zr.Arc=Oo,zr.SvgArc=ca;function Ds(){this.H=null,this.xu=new Ue(0,0).freeze(),this.mt=new Ue(0,0).freeze(),this.Bp=this.Rq=0,this.Cp=1,this.xq="",this.Wr=this.Tp=!1,this.Rp=this.Ep=0,this.xg=this.nq=this.tq=!1,this.Zp=null,this.Rr=0,this.xd=this.Nr=null}Ds.prototype.copy=function(){var e=new Ds;return this.clone(e)},Ds.prototype.clone=function(e){return e.H=this.H,e.xu.assign(this.viewPoint),e.mt.assign(this.documentPoint),e.Rq=this.Rq,e.Bp=this.Bp,e.Cp=this.Cp,e.xq=this.xq,e.Tp=this.Tp,e.Wr=this.Wr,e.Ep=this.Ep,e.Rp=this.Rp,e.tq=this.tq,e.nq=this.nq,e.xg=this.xg,e.Zp=this.Zp,e.Rr=this.Rr,e.Nr=this.Nr,e.xd=this.xd,e},Ds.prototype.toString=function(){var e="^";return this.modifiers!==0&&(e+="M:"+this.modifiers),this.button!==0&&(e+="B:"+this.button),this.key!==""&&(e+="K:"+this.key),this.clickCount!==0&&(e+="C:"+this.clickCount),this.delta!==0&&(e+="D:"+this.delta),this.handled&&(e+="h"),this.bubbles&&(e+="b"),this.documentPoint!==null&&(e+="@"+this.documentPoint.toString()),e},Ds.prototype.So=function(e,t){var n=this.diagram;return n===null||bl(n,e,t),t},Ds.prototype.Bz=function(e,t){var n=this.diagram;return n===null||(bl(n,e,t),t.assign(n.Ps(t))),t},kn.Object.defineProperties(Ds.prototype,{diagram:{get:function(){return this.H},set:function(e){this.H=e}},viewPoint:{get:function(){return this.xu},set:function(e){this.xu.assign(e)}},documentPoint:{get:function(){return this.mt},set:function(e){this.mt.assign(e)}},modifiers:{get:function(){return this.Rq},set:function(e){this.Rq=e}},button:{get:function(){return this.Bp},set:function(e){if(this.Bp=e,this.event===null)switch(e){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2}}},buttons:{get:function(){return this.Cp},set:function(e){this.Cp=e}},key:{get:function(){return this.xq},set:function(e){this.xq=e}},down:{get:function(){return this.Tp},set:function(e){this.Tp=e}},up:{get:function(){return this.Wr},set:function(e){this.Wr=e}},clickCount:{get:function(){return this.Ep},set:function(e){this.Ep=e}},delta:{get:function(){return this.Rp},set:function(e){this.Rp=e}},isMultiTouch:{get:function(){return this.tq},set:function(e){this.tq=e}},handled:{get:function(){return this.nq},set:function(e){this.nq=e}},bubbles:{get:function(){return this.xg},set:function(e){this.xg=e}},event:{get:function(){return this.Zp},set:function(e){this.Zp=e}},isTouchEvent:{get:function(){var e=this.event;return e===null?!1:e.pointerType==="touch"||e.pointerType==="pen"}},timestamp:{get:function(){return this.Rr},set:function(e){this.Rr=e}},targetDiagram:{get:function(){return this.Nr},set:function(e){this.Nr=e}},targetObject:{get:function(){return this.xd},set:function(e){this.xd=e}},control:{get:function(){return(this.modifiers&1)!==0},set:function(e){this.modifiers=e?this.modifiers|1:this.modifiers&-2}},shift:{get:function(){return(this.modifiers&4)!==0},set:function(e){this.modifiers=e?this.modifiers|4:this.modifiers&-5}},alt:{get:function(){return(this.modifiers&2)!==0},set:function(e){this.modifiers=e?this.modifiers|2:this.modifiers&-3}},meta:{get:function(){return(this.modifiers&8)!==0},set:function(e){this.modifiers=e?this.modifiers|8:this.modifiers&-9}},left:{get:function(){var e=this.event;return e===null||e.type!=="mousedown"&&e.type!=="mouseup"&&e.type!=="pointerdown"&&e.type!=="pointerup"?(this.buttons&1)!==0:this.button===0},set:function(e){this.buttons=e?this.buttons|1:this.buttons&-2}},right:{get:function(){var e=this.event;return e===null||e.type!=="mousedown"&&e.type!=="mouseup"&&e.type!=="pointerdown"&&e.type!=="pointerup"?(this.buttons&2)!==0:this.button===2},set:function(e){this.buttons=e?this.buttons|2:this.buttons&-3}},middle:{get:function(){var e=this.event;return e===null||e.type!=="mousedown"&&e.type!=="mouseup"&&e.type!=="pointerdown"&&e.type!=="pointerup"?(this.buttons&4)!==0:this.button===1},set:function(e){this.buttons=e?this.buttons|4:this.buttons&-5}}}),Ds.prototype.getMultiTouchDocumentPoint=Ds.prototype.Bz,Ds.prototype.getMultiTouchViewPoint=Ds.prototype.So,Ds.className="InputEvent";function gl(){this.H=null,this.xa="",this.ar=this.Lr=null}gl.prototype.copy=function(){var e=new gl;return e.H=this.H,e.xa=this.xa,e.Lr=this.Lr,e.ar=this.ar,e},gl.prototype.toString=function(){var e="*"+this.name;return this.subject!==null&&(e+=":"+this.subject.toString()),this.parameter!==null&&(e+="("+this.parameter.toString()+")"),e},kn.Object.defineProperties(gl.prototype,{diagram:{get:function(){return this.H},set:function(e){this.H=e}},name:{get:function(){return this.xa},set:function(e){this.xa=e}},subject:{get:function(){return this.Lr},set:function(e){this.Lr=e}},parameter:{get:function(){return this.ar},set:function(e){this.ar=e}}}),gl.className="DiagramEvent";function Qi(){this.Fm=Fi,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Qi.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},Qi.prototype.copy=function(){var e=new Qi;e.Fm=this.Fm,e.Qq=this.Qq,e.rf=this.rf,e.cc=this.cc,e.H=this.H,e.Qn=this.Qn;var t=this.Sn;return e.Sn=bn(t)&&typeof t.J=="function"?t.J():t,t=this.Rn,e.Rn=bn(t)&&typeof t.J=="function"?t.J():t,t=this.Mn,e.Mn=bn(t)&&typeof t.J=="function"?t.J():t,t=this.Ln,e.Ln=bn(t)&&typeof t.J=="function"?t.J():t,e},Qi.prototype.qb=function(e){e.classType===Qi&&(this.change=e)},Qi.prototype.toString=function(){var e="";return e=this.change===Gs?e+"* ":this.change===Fi?e+(this.model!==null?"!m":"!d"):e+((this.model!==null?"!m":"!d")+this.change),this.propertyName&&typeof this.propertyName=="string"&&(e+=" "+this.propertyName),this.modelChange&&this.modelChange!==this.propertyName&&(e+=" "+this.modelChange),e+=": ",this.change===Gs?this.oldValue!==null&&(e+=" "+this.oldValue):(this.object!==null&&(e+=Di(this.object)),this.oldValue!==null&&(e+=" old: "+Di(this.oldValue)),this.oldParam!==null&&(e+=" "+this.oldParam),this.newValue!==null&&(e+=" new: "+Di(this.newValue)),this.newParam!==null&&(e+=" "+this.newParam)),e},Qi.prototype.I=function(e){return e?this.oldValue:this.newValue},Qi.prototype.Dz=function(e){return e?this.oldParam:this.newParam},Qi.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},Qi.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},Qi.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},Qi.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},kn.Object.defineProperties(Qi.prototype,{model:{get:function(){return this.cc},set:function(e){this.cc=e}},diagram:{get:function(){return this.H},set:function(e){this.H=e}},change:{get:function(){return this.Fm},set:function(e){this.Fm=e}},modelChange:{get:function(){return this.Qq},set:function(e){this.Qq=e}},propertyName:{get:function(){return this.rf},set:function(e){this.rf=e}},isTransactionFinished:{get:function(){return this.Fm===Gs&&(this.rf==="CommittedTransaction"||this.rf==="FinishedUndo"||this.rf==="FinishedRedo")}},object:{get:function(){return this.Qn},set:function(e){this.Qn=e}},oldValue:{get:function(){return this.Sn},set:function(e){this.Sn=e}},oldParam:{get:function(){return this.Rn},set:function(e){this.Rn=e}},newValue:{get:function(){return this.Mn},set:function(e){this.Mn=e}},newParam:{get:function(){return this.Ln},set:function(e){this.Ln=e}}}),Qi.prototype.redo=Qi.prototype.redo,Qi.prototype.canRedo=Qi.prototype.canRedo,Qi.prototype.undo=Qi.prototype.undo,Qi.prototype.canUndo=Qi.prototype.canUndo,Qi.prototype.getParam=Qi.prototype.Dz,Qi.prototype.getValue=Qi.prototype.I,Qi.prototype.clear=Qi.prototype.clear;var Gs=new hn(Qi,"Transaction",-1),Fi=new hn(Qi,"Property",0),xo=new hn(Qi,"Insert",1),Lo=new hn(Qi,"Remove",2);Qi.className="ChangedEvent",Qi.Transaction=Gs,Qi.Property=Fi,Qi.Insert=xo,Qi.Remove=Lo;function Go(){this.o=new tn().freeze(),this.xa="",this.j=!1}Go.prototype.toString=function(e){var t="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(e!==void 0&&0<e){e=this.changes.count;for(var n=0;n<e;n++){var r=this.changes.M(n);r!==null&&(t+=`
`+r.toString())}}return t},Go.prototype.clear=function(){var e=this.changes;e.ka();for(var t=e.count-1;0<=t;t--){var n=e.M(t);n!==null&&n.clear()}e.clear(),e.freeze()},Go.prototype.canUndo=function(){return this.isComplete},Go.prototype.undo=function(){if(this.canUndo())for(var e=this.changes.count-1;0<=e;e--){var t=this.changes.M(e);t!==null&&t.undo()}},Go.prototype.canRedo=function(){return this.isComplete},Go.prototype.redo=function(){if(this.canRedo())for(var e=this.changes.count,t=0;t<e;t++){var n=this.changes.M(t);n!==null&&n.redo()}},Go.prototype.ak=function(){if(this.isComplete){var e=this.changes;e.ka();for(var t=new nn,n=0;n<e.count;n++){var r=e.M(n);if(r!==null&&r.change===Fi&&r.object){var i=t.get(r.object);i||(i=new nn,t.set(r.object,i));var o=i.get(r.propertyName);o===null?i.set(r.propertyName,-1):(0<o&&e.cd(o,null),i.set(r.propertyName,n))}}for(n=t=0;n<e.count;n++)r=e.M(n),r!==null&&(n>t&&e.cd(t,r),t++);for(;e.length>t;)e.pop();e.freeze()}},kn.Object.defineProperties(Go.prototype,{changes:{get:function(){return this.o}},name:{get:function(){return this.xa},set:function(e){this.xa=e}},isComplete:{get:function(){return this.j},set:function(e){this.j=e}}}),Go.prototype.optimize=Go.prototype.ak,Go.prototype.redo=Go.prototype.redo,Go.prototype.canRedo=Go.prototype.canRedo,Go.prototype.undo=Go.prototype.undo,Go.prototype.canUndo=Go.prototype.canUndo,Go.prototype.clear=Go.prototype.clear,Go.className="Transaction";function ro(){this.Pt=new ut,this.Jd=!1,this.u=new tn().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new tn().freeze(),this.hl=new tn,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}ro.prototype.toString=function(e){var t="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;t+="[";for(var n=this.nestedTransactionNames.count,r=0;r<n;r++)0<r&&(t+=" "),t+=this.nestedTransactionNames.M(r);if(t+="]",e!==void 0&&0<e)for(n=this.history.count,r=0;r<n;r++)t+=`
`+this.history.M(r).toString(e-1);return t},ro.prototype.clear=function(){var e=this.history;e.ka();for(var t=e.count-1;0<=t;t--){var n=e.M(t);n!==null&&n.clear()}e.clear(),this.Ce=-1,e.freeze(),this.Fe=!1,this.Np=null,this.bi=0,this.Ie.ka(),this.Ie.clear(),this.Ie.freeze(),this.hl.clear(),this.Dt=this.rq=this.Gt=this.Ft=!1},ro.prototype.copyProperties=function(e){this.isEnabled=e.isEnabled,this.maxHistoryLength=e.maxHistoryLength,this.checksTransactionLevel=e.checksTransactionLevel},ye=ro.prototype,ye.Xw=function(e){this.Pt.add(e)},ye.Rx=function(e){this.Pt.remove(e)},ye.Ea=function(e){if(e===void 0&&(e=""),e===null&&(e=""),this.isUndoingRedoing)return!1;this.tt===!0&&(this.tt=!1,this.bi++,this.isInternalTransaction||this.Ob("StartingFirstTransaction",e,this.currentTransaction),0<this.bi&&this.bi--),this.isEnabled&&(this.Ie.ka(),this.Ie.add(e),this.Ie.freeze(),this.currentTransaction===null?this.hl.add(0):this.hl.add(this.currentTransaction.changes.count)),this.bi++;var t=this.transactionLevel===1;return t&&(this.isInternalTransaction||this.Ob("StartedTransaction",e,this.currentTransaction)),t},ye.eb=function(e){return e===void 0&&(e=""),au(this,!0,e)},ye.Kf=function(){return au(this,!1,"")};function au(e,t,n){if(e.isUndoingRedoing)return!1;e.checksTransactionLevel&&1>e.transactionLevel&&zi("Ending transaction without having started a transaction: "+n);var r=e.transactionLevel===1,i=e.currentTransaction;r&&t&&(e.isInternalTransaction||e.Ob("CommittingTransaction",n,i));var o=0;if(0<e.transactionLevel&&(e.bi--,e.isEnabled)){var a=e.Ie.count;0<a&&(n===""&&(n=e.Ie.M(0)),e.Ie.ka(),e.Ie.mb(a-1),e.Ie.freeze()),a=e.hl.count,0<a&&(o=e.hl.M(a-1),e.hl.mb(a-1))}if(r){if(t)e.rq=!1,i===null&&n!==""&&(i=e.currentTransaction),e.isEnabled&&i!==null&&(i.isComplete||(i.isComplete=!0,i.name=n),e.lx(),t=e.history,t.ka(),r=e.maxHistoryLength,0<=r&&(r===0?t.clear():t.count>=r&&(o=t.M(0),o!==null&&o.clear(),t.mb(0),e.Ce--)),r===0||t.count!==0&&t.get(t.count-1)===i||(t.add(i),e.Ce++),t.freeze()),e.isInternalTransaction||e.Ob("CommittedTransaction",n,i);else{e.Fe=!0;try{e.isEnabled&&i!==null&&(i.isComplete=!0,i.undo())}finally{e.isInternalTransaction||e.Ob("RolledBackTransaction",n,i),e.Fe=!1}i!==null&&i.clear()}return e.Np=null,e.isPendingClear&&e.clear(),e.isPendingClear=!1,e.isPendingUnmodified=!1,!0}if(e.isEnabled&&!t&&i!==null){for(e=o,n=i.changes,i=n.count-1;i>=e;i--)t=n.M(i),t!==null&&t.undo(),n.ka(),n.mb(i);n.freeze()}return!1}ye.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var e=this.history;e.ka();for(var t=e.count-1;t>this.historyIndex;t--){var n=e.M(t);n!==null&&n.clear(),e.mb(t),this.rq=!0}e.freeze()}},ro.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var e=this.transactionToUndo;return!!(e!==null&&e.canUndo())},ro.prototype.undo=function(){if(this.canUndo()){var e=this.transactionToUndo;try{this.Fe=!0,this.Ob("StartingUndo","Undo",e),this.Ce--,e.undo()}catch(t){zi("undo error: "+t.toString())}finally{this.Ob("FinishedUndo","Undo",e),this.Fe=!1}}},ro.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var e=this.transactionToRedo;return!!(e!==null&&e.canRedo())},ro.prototype.redo=function(){if(this.canRedo()){var e=this.transactionToRedo;try{this.Fe=!0,this.Ob("StartingRedo","Redo",e),this.Ce++,e.redo()}catch(t){zi("redo error: "+t.toString())}finally{this.Ob("FinishedRedo","Redo",e),this.Fe=!1}}},ro.prototype.Ob=function(e,t,n){n===void 0&&(n=null);var r=new Qi;for(r.change=Gs,r.propertyName=e,r.object=n,r.oldValue=t,e=this.models;e.next();)t=e.value,r.model=t,t.ds(r)},ro.prototype.Tu=function(e){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(e)){var t=this.currentTransaction;t===null&&(this.Np=t=new Go);var n=e.copy();t=t.changes,t.ka(),t.add(n),t.freeze(),this.checksTransactionLevel&&0>=this.transactionLevel&&!this.tt&&(e=e.diagram,e!==null&&e.pi===!1||zi("Change not within a transaction: "+n.toString()))}},ro.prototype.skipsEvent=function(e){if(e===null||0>e.change.value)return!0;if(e=e.object,e===null)return!1;if(e.layer!==void 0){if(e=e.layer,e!==null&&e.isTemporary)return!0}else if(e.isTemporary)return!0;return!1},kn.Object.defineProperties(ro.prototype,{models:{get:function(){return this.Pt.iterator}},isEnabled:{get:function(){return this.Jd},set:function(e){this.Jd=e}},transactionToUndo:{get:function(){return 0<=this.historyIndex&&this.historyIndex<=this.history.count-1?this.history.M(this.historyIndex):null}},transactionToRedo:{get:function(){return this.historyIndex<this.history.count-1?this.history.M(this.historyIndex+1):null}},isUndoingRedoing:{get:function(){return this.Fe}},history:{get:function(){return this.u}},maxHistoryLength:{get:function(){return this.o},set:function(e){this.o=e}},historyIndex:{get:function(){return this.Ce}},currentTransaction:{get:function(){return this.Np}},transactionLevel:{get:function(){return this.bi}},isInTransaction:{get:function(){return 0<this.bi}},checksTransactionLevel:{get:function(){return this.j},set:function(e){this.j=e}},nestedTransactionNames:{get:function(){return this.Ie}},isPendingClear:{get:function(){return this.Ft},set:function(e){this.Ft=e}},isPendingUnmodified:{get:function(){return this.Gt},set:function(e){this.Gt=e}},isInternalTransaction:{get:function(){return this.Dt},set:function(e){this.Dt=e}},isJustDiscarded:{get:function(){return this.rq}}}),ro.prototype.handleChanged=ro.prototype.Tu,ro.prototype.redo=ro.prototype.redo,ro.prototype.undo=ro.prototype.undo,ro.prototype.canUndo=ro.prototype.canUndo,ro.prototype.discardHistoryAfterIndex=ro.prototype.lx,ro.prototype.rollbackTransaction=ro.prototype.Kf,ro.prototype.commitTransaction=ro.prototype.eb,ro.prototype.startTransaction=ro.prototype.Ea,ro.prototype.removeModel=ro.prototype.Rx,ro.prototype.addModel=ro.prototype.Xw,ro.prototype.clear=ro.prototype.clear,ro.className="UndoManager";function xr(){Ge(this),this.H=Ya,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new Ds,this.Zr=-1}xr.prototype.toString=function(){return this.name!==""?this.name+" Tool":Fr(this.constructor)},xr.prototype.updateAdornments=function(){},xr.prototype.canStart=function(){return this.isEnabled},xr.prototype.doStart=function(){},xr.prototype.doActivate=function(){this.isActive=!0},xr.prototype.doDeactivate=function(){this.isActive=!1},xr.prototype.doStop=function(){},xr.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},xr.prototype.stopTool=function(){var e=this.diagram;e.currentTool===this&&(e.currentTool=null,e.currentCursor="")},xr.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},xr.prototype.doMouseMove=function(){},xr.prototype.doMouseUp=function(){this.stopTool()},xr.prototype.doMouseWheel=function(){},xr.prototype.canStartMultiTouch=function(){return!0},xr.prototype.standardPinchZoomStart=function(){var e=this.diagram,t=e.lastInput,n=t.So(0,Ue.allocAt(NaN,NaN)),r=t.So(1,Ue.allocAt(NaN,NaN));if(n.w()&&r.w()&&(this.doCancel(),e.Ql("hasGestureZoom"))){e.Bw=e.scale;var i=r.x-n.x,o=r.y-n.y;e.Jw=Math.sqrt(i*i+o*o),t.bubbles=!1}Ue.free(n),Ue.free(r)},xr.prototype.standardPinchZoomMove=function(){var e=this.diagram,t=e.lastInput,n=t.So(0,Ue.allocAt(NaN,NaN)),r=t.So(1,Ue.allocAt(NaN,NaN));if(n.w()&&r.w()&&(this.doCancel(),e.Ql("hasGestureZoom"))){var i=r.x-n.x,o=r.y-n.y;o=Math.sqrt(i*i+o*o)/e.Jw,i=new Ue((Math.min(r.x,n.x)+Math.max(r.x,n.x))/2,(Math.min(r.y,n.y)+Math.max(r.y,n.y))/2),o*=e.Bw;var a=e.commandHandler;if(o!==e.scale&&a.canResetZoom(o)){var p=e.zoomPoint;e.zoomPoint=i,a.resetZoom(o),e.zoomPoint=p}t.bubbles=!1}Ue.free(n),Ue.free(r)},xr.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},xr.prototype.doKeyUp=function(){},xr.prototype.Ea=function(e){return e===void 0&&(e=this.name),this.transactionResult=null,this.diagram.Ea(e)},xr.prototype.stopTransaction=function(){var e=this.diagram;return this.transactionResult===null?e.Kf():e.eb(this.transactionResult)},xr.prototype.standardMouseSelect=function(){var e=this.diagram;if(e.allowSelect){var t=e.lastInput,n=e.Ol(t.documentPoint,!1);if(n!==null){if(Wo?t.meta:t.control){for(e.R("ChangingSelection",e.selection),t=n;t!==null&&!t.canSelect();)t=t.containingGroup;t!==null&&(t.isSelected=!t.isSelected),e.R("ChangedSelection",e.selection)}else if(t.shift){if(!n.isSelected){for(e.R("ChangingSelection",e.selection),t=n;t!==null&&!t.canSelect();)t=t.containingGroup;t!==null&&(t.isSelected=!0),e.R("ChangedSelection",e.selection)}}else if(!n.isSelected){for(t=n;t!==null&&!t.canSelect();)t=t.containingGroup;t!==null&&e.select(t)}}else!t.left||(Wo?t.meta:t.control)||t.shift||e.clearSelection()}},xr.prototype.standardMouseClick=function(e,t){e===void 0&&(e=null),t===void 0&&(t=function(i){return!i.layer.isTemporary});var n=this.diagram,r=n.lastInput;return e=n.ic(r.documentPoint,e,t),r.targetObject=e,Hc(e,r,n),r.handled};function Hc(e,t,n){if(t.handled=!1,e===null||e.If()){var r=0;t.left?r=t.clickCount===1?1:t.clickCount===2?2:1:t.right&&t.clickCount===1&&(r=3);var i="ObjectSingleClicked";if(e!==null){switch(r){case 1:i="ObjectSingleClicked";break;case 2:i="ObjectDoubleClicked";break;case 3:i="ObjectContextClicked"}r!==0&&n.R(i,e)}else{switch(r){case 1:i="BackgroundSingleClicked";break;case 2:i="BackgroundDoubleClicked";break;case 3:i="BackgroundContextClicked"}r!==0&&n.R(i)}if(e!==null)for(;e!==null;){switch(n=null,r){case 1:n=e.click;break;case 2:n=e.doubleClick?e.doubleClick:e.click;break;case 3:n=e.contextClick}if(n!==null&&(n(t,e),t.handled))break;e=e.panel}else{switch(e=null,r){case 1:e=n.click;break;case 2:e=n.doubleClick?n.doubleClick:n.click;break;case 3:e=n.contextClick}e!==null&&e(t)}}}xr.prototype.standardMouseOver=function(){var e=this.diagram,t=e.lastInput;if(e.animationManager.zb!==!0){var n=e.skipsUndoManager;e.skipsUndoManager=!0;var r=e.viewportBounds.ca(t.documentPoint)?e.ic(t.documentPoint,null,null):null;!t.event||t.event.type!=="pointercancel"&&t.event.type!=="pointerout"||(r=null),t.targetObject=r;var i=!1;if(r!==e.Ck){var o=e.Ck,a=o;for(e.Ck=r,this.doCurrentObjectChanged(o,r),t.handled=!1;o!==null;){var p=o.mouseLeave;if(p!==null&&(r===o||r!==null&&r.rg(o)||(p(t,o,r),i=!0,t.handled)))break;o=o.panel}for(o=a,t.handled=!1;r!==null&&(a=r.mouseEnter,!(a!==null&&(o===r||o!==null&&o.rg(r)||(a(t,r,o),i=!0,t.handled))));)r=r.panel;r=e.Ck}if(r!==null){for(o=r,a="";o!==null&&(a=o.cursor,a==="");)o=o.panel;for(e.currentCursor=a,t.handled=!1,o=r;o!==null&&(r=o.mouseOver,!(r!==null&&(r(t,o),i=!0,t.handled)));)o=o.panel}else this.doUpdateCursor(null),r=e.mouseOver,r!==null&&(r(t),i=!0);i&&e.$b(),e.skipsUndoManager=n}},xr.prototype.doUpdateCursor=function(){var e=this.diagram;e&&(e.currentCursor="")},xr.prototype.doCurrentObjectChanged=function(){},xr.prototype.standardMouseWheel=function(){var e=this.diagram,t=e.lastInput,n=t.delta;if(n!==0&&e.documentBounds.w()){var r=e.commandHandler,i=e.toolManager.mouseWheelBehavior;if(r!==null&&(i===Hu&&!t.shift||i===lu&&t.control))(0<n?r.canIncreaseZoom():r.canDecreaseZoom())&&(i=e.zoomPoint,e.zoomPoint=t.viewPoint,0<n?r.increaseZoom():r.decreaseZoom(),e.zoomPoint=i),t.bubbles=!1;else if(i===Hu&&t.shift||i===lu&&!t.control){r=e.position.copy();var o=t.event;i=o.deltaMode;var a=o.deltaX;o=o.deltaY;var p="pixel";if(a===0&&o===0||t.shift)!t.shift&&e.allowVerticalScroll?(n=3*n*e.scrollVerticalLineChange,e.scroll(p,0<n?"up":"down",Math.abs(n))):t.shift&&e.allowHorizontalScroll&&(n=3*n*e.scrollHorizontalLineChange,e.scroll(p,0<n?"left":"right",Math.abs(n)));else{switch(i){case 0:p="pixel";break;case 1:p="line";break;case 2:p="page"}a!==0&&e.allowHorizontalScroll&&(a*=e.scrollHorizontalLineChange/16,e.scroll(p,0<a?"right":"left",Math.abs(a))),o!==0&&e.allowVerticalScroll&&(o*=e.scrollVerticalLineChange/16,e.scroll(p,0<o?"down":"up",Math.abs(o)))}this.doWheelChange(e,r,t)}}},xr.prototype.doWheelChange=function(e,t,n){e.position.D(t)&&n.event.wheelDeltaX===0||(n.bubbles=!1)},xr.prototype.standardWaitAfter=function(e,t){t===void 0&&(t=this.diagram.lastInput),this.cancelWaitAfter();var n=this,r=t.clone(this.yy);this.Zr=gi(function(){n.doWaitAfter(r)},e)},xr.prototype.cancelWaitAfter=function(){this.Zr!==-1&&vn.clearTimeout(this.Zr),this.Zr=-1},xr.prototype.doWaitAfter=function(){},xr.prototype.findToolHandleAt=function(e,t){return e=this.diagram.ic(e,function(n){for(;n!==null&&!(n.panel instanceof qr);)n=n.panel;return n}),e===null?null:e.part.category===t?e:null},xr.prototype.isBeyondDragSize=function(e,t){var n=this.diagram;e===void 0&&(e=n.firstInput.viewPoint),t===void 0&&(t=n.lastInput.viewPoint);var r=n.toolManager.dragSize,i=r.width;return r=r.height,n.firstInput.isTouchEvent&&(i+=6,r+=6),Math.abs(t.x-e.x)>i||Math.abs(t.y-e.y)>r},kn.Object.defineProperties(xr.prototype,{diagram:{get:function(){return this.H},set:function(e){e instanceof Ct&&(this.H=e)}},name:{get:function(){return this.xa},set:function(e){this.xa=e}},isEnabled:{get:function(){return this.Jd},set:function(e){this.Jd=e}},isActive:{get:function(){return this.nb},set:function(e){this.nb=e}},transactionResult:{get:function(){return this.wm},set:function(e){this.wm=e}}}),xr.prototype.startTransaction=xr.prototype.Ea,xr.className="Tool";function Wi(){xr.call(this),this.name="ToolManager",this.hb=new tn,this.ob=new tn,this.Hb=new tn,this.F=this.V=850,this.o=new Yt(2,2).ja(),this.Ha=5e3,this.ia=lu,this.u=Il,this.Mp=this.j=null,this.zj=-1}Tn(Wi,xr),Wi.prototype.initializeStandardTools=function(){},Wi.prototype.updateAdornments=function(e){var t=this.currentToolTip;if(t instanceof qr&&this.Mp===e){var n=t.adornedObject;(e!==null?n.part===e:n===null)?this.showToolTip(t,n):this.hideToolTip()}},Wi.prototype.doMouseDown=function(){var e=this.diagram,t=e.lastInput;if(t.isTouchEvent&&this.gestureBehavior===ml&&(t.bubbles=!1),t.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===Kl){t.bubbles=!0;return}if(this.gestureBehavior===ml)return;if(e.currentTool.canStartMultiTouch()){e.currentTool.standardPinchZoomStart();return}}for(var n=this.mouseDownTools.length,r=0;r<n;r++){var i=this.mouseDownTools.M(r);if(i.diagram=this.diagram,i.canStart()){e.doFocus(),e.currentTool=i,e.currentTool===i&&(i.isActive||i.doActivate(),i.doMouseDown());return}}e.lastInput.button===1&&(this.mouseWheelBehavior===lu?this.mouseWheelBehavior=Hu:this.mouseWheelBehavior===Hu&&(this.mouseWheelBehavior=lu)),this.doActivate(),this.standardWaitAfter(this.holdDelay,t)},Wi.prototype.doMouseMove=function(){var e=this.diagram,t=e.lastInput;if(t.isMultiTouch){if(this.gestureBehavior===Kl){t.bubbles=!0;return}if(this.gestureBehavior===ml)return;if(e.currentTool.canStartMultiTouch()){e.currentTool.standardPinchZoomMove();return}}if(this.isActive)for(var n=this.mouseMoveTools.length,r=0;r<n;r++){var i=this.mouseMoveTools.M(r);if(i.diagram=this.diagram,i.canStart()){e.doFocus(),e.currentTool=i,e.currentTool===i&&(i.isActive||i.doActivate(),i.doMouseMove());return}}zc(this,e),e=t.event,e===null||e.type!=="pointermove"&&e.cancelable||(t.bubbles=!0)};function zc(e,t){e.standardMouseOver(),e.isBeyondDragSize()&&e.standardWaitAfter(e.isActive?e.holdDelay:e.hoverDelay,t.lastInput)}Wi.prototype.doCurrentObjectChanged=function(e,t){e=this.currentToolTip,e===null||t!==null&&e instanceof qr&&(t===e||t.rg(e))||this.hideToolTip()},Wi.prototype.doWaitAfter=function(e){var t=this.diagram;t.ta!==null&&(this.doMouseHover(),this.isActive||this.doToolTip(),e.isTouchEvent&&!t.lastInput.handled&&(e=e.copy(),e.button=2,e.buttons=2,t.lastInput=e,t.qu=!0,t.doMouseUp()))},Wi.prototype.doMouseHover=function(){var e=this.diagram,t=e.lastInput;t.targetObject===null&&(t.targetObject=e.ic(t.documentPoint,null,null));var n=t.targetObject;if(n!==null)for(t.handled=!1;n!==null&&(e=this.isActive?n.mouseHold:n.mouseHover,!(e!==null&&(e(t,n),t.handled)));)n=n.panel;else n=this.isActive?e.mouseHold:e.mouseHover,n!==null&&n(t)},Wi.prototype.doToolTip=function(){var e=this.diagram,t=e.lastInput;if(t.targetObject===null&&(t.targetObject=e.ic(t.documentPoint,null,null)),t=t.targetObject,t!==null){if(e=this.currentToolTip,!(e instanceof qr)||t!==e&&!t.rg(e)){for(;t!==null;){if(e=t.toolTip,e!==null){this.showToolTip(e,t);return}t=t.panel}this.hideToolTip()}}else t=e.toolTip,t!==null?this.showToolTip(t,null):this.hideToolTip()},Wi.prototype.showToolTip=function(e,t){var n=this.diagram;if(e!==this.currentToolTip&&this.hideToolTip(),e instanceof qr){e.layerName="Tool",e.selectable=!1,e.scale=1/n.scale,e.category="ToolTip",e.placeholder!==null&&(e.placeholder.scale=n.scale);var r=e.diagram;r!==null&&r!==n&&r.remove(e),n.add(e),t!==null?e.adornedObject=t:e.data=n.model,e.Va(),this.positionToolTip(e,t)}else e instanceof et&&e!==this.currentToolTip&&e.show(t,n,this);if(this.currentToolTip=e,this.zj!==-1&&(vn.clearTimeout(this.zj),this.zj=-1),e=this.toolTipDuration,0<e&&e!==1/0){var i=this;this.zj=gi(function(){i.hideToolTip()},e)}},Wi.prototype.positionToolTip=function(e){if(e.placeholder===null){var t=this.diagram,n=t.lastInput.documentPoint.copy(),r=e.measuredBounds,i=t.viewportBounds;t.lastInput.isTouchEvent&&(n.x-=r.width),n.x+r.width>i.right&&(n.x-=r.width+5/t.scale),n.x<i.x&&(n.x=i.x),n.y=n.y+20/t.scale+r.height>i.bottom?n.y-(r.height+5/t.scale):n.y+20/t.scale,n.y<i.y&&(n.y=i.y),e.position=n}},Wi.prototype.hideToolTip=function(){this.zj!==-1&&(vn.clearTimeout(this.zj),this.zj=-1);var e=this.diagram,t=this.currentToolTip;t!==null&&(t instanceof qr?(e.remove(t),this.Mp!==null&&this.Mp.Jf(t.category),t.data=null,t.adornedObject=null):t instanceof et&&t.hide!==null&&t.hide(e,this),this.currentToolTip=null)},Wi.prototype.doMouseUp=function(){this.cancelWaitAfter();var e=this.diagram;if(this.isActive)for(var t=this.mouseUpTools.length,n=0;n<t;n++){var r=this.mouseUpTools.M(n);if(r.diagram=this.diagram,r.canStart()){e.doFocus(),e.currentTool=r,e.currentTool===r&&(r.isActive||r.doActivate(),r.doMouseUp());return}}e.doFocus(),this.doDeactivate()},Wi.prototype.doMouseWheel=function(){this.standardMouseWheel()},Wi.prototype.doKeyDown=function(){var e=this.diagram;e.commandHandler!==null&&e.commandHandler.doKeyDown()},Wi.prototype.doKeyUp=function(){var e=this.diagram;e.commandHandler!==null&&e.commandHandler.doKeyUp()},Wi.prototype.findTool=function(e){for(var t=this.mouseDownTools.length,n=0;n<t;n++){var r=this.mouseDownTools.M(n);if(r.name===e)return r}for(t=this.mouseMoveTools.length,n=0;n<t;n++)if(r=this.mouseMoveTools.M(n),r.name===e)return r;for(t=this.mouseUpTools.length,n=0;n<t;n++)if(r=this.mouseUpTools.M(n),r.name===e)return r;return null},Wi.prototype.replaceTool=function(e,t){t!==null&&(t.diagram=this.diagram);for(var n=this.mouseDownTools.length,r=0;r<n;r++){var i=this.mouseDownTools.M(r);if(i.name===e)return t!==null?this.mouseDownTools.cd(r,t):this.mouseDownTools.mb(r),i}for(n=this.mouseMoveTools.length,r=0;r<n;r++)if(i=this.mouseMoveTools.M(r),i.name===e)return t!==null?this.mouseMoveTools.cd(r,t):this.mouseMoveTools.mb(r),i;for(n=this.mouseUpTools.length,r=0;r<n;r++)if(i=this.mouseUpTools.M(r),i.name===e)return t!==null?this.mouseUpTools.cd(r,t):this.mouseUpTools.mb(r),i;return null},Wi.prototype.gb=function(e,t,n){t!==null&&(t.name=e,t.diagram=this.diagram),this.findTool(e)?this.replaceTool(e,t):t!==null&&n.add(t)},kn.Object.defineProperties(Wi.prototype,{mouseWheelBehavior:{get:function(){return this.ia},set:function(e){this.ia=e}},gestureBehavior:{get:function(){return this.u},set:function(e){this.u=e}},currentToolTip:{get:function(){return this.j},set:function(e){this.j=e,this.Mp=e!==null&&e instanceof qr?e.adornedPart:null}},mouseDownTools:{get:function(){return this.hb}},mouseMoveTools:{get:function(){return this.ob}},mouseUpTools:{get:function(){return this.Hb}},hoverDelay:{get:function(){return this.V},set:function(e){this.V=e}},holdDelay:{get:function(){return this.F},set:function(e){this.F=e}},dragSize:{get:function(){return this.o},set:function(e){this.o=e.J()}},toolTipDuration:{get:function(){return this.Ha},set:function(e){this.Ha=e}}}),Wi.prototype.replaceStandardTool=Wi.prototype.gb;var lu=new hn(Wi,"WheelScroll",0),Hu=new hn(Wi,"WheelZoom",1),xc=new hn(Wi,"WheelNone",2),Il=new hn(Wi,"GestureZoom",3),ml=new hn(Wi,"GestureCancel",4),Kl=new hn(Wi,"GestureNone",5);Wi.className="ToolManager",Wi.WheelScroll=lu,Wi.WheelZoom=Hu,Wi.WheelNone=xc,Wi.GestureZoom=Il,Wi.GestureCancel=ml,Wi.GestureNone=Kl;function io(){xr.call(this),this.name="Dragging",this.u=this.Sw=this.ob=!0,this.o=this.Ha=this.V=this.Oe=null,this.Ym=this.Hb=!1,this.tl=new Ue(NaN,NaN),this.Fr=new Ue,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new ut().freeze(),this.ia=new C,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Yl;Tn(io,xr),io.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;if(e.isReadOnly&&!e.allowDragOut||!e.allowMove&&!e.allowCopy&&!e.allowDragOut||!e.allowSelect)return!1;var t=e.lastInput;return!t.left||e.currentTool!==this&&(!this.isBeyondDragSize()||t.isTouchEvent&&t.timestamp-e.firstInput.timestamp<this.Ik)?!1:this.findDraggablePart()!==null},io.prototype.findDraggablePart=function(){var e=this.diagram;if(e=e.Ol(e.firstInput.documentPoint,!1),e===null)return null;for(;e!==null&&!e.canSelect();)e=e.containingGroup;return e!==null&&(e.canMove()||e.canCopy())?e:null},io.prototype.standardMouseSelect=function(){var e=this.diagram;if(e.allowSelect){var t=e.Ol(e.firstInput.documentPoint,!1);if(t!==null){for(;t!==null&&!t.canSelect();)t=t.containingGroup;this.currentPart=t,this.currentPart===null||this.currentPart.isSelected||(e.R("ChangingSelection",e.selection),t=e.lastInput,(Wo?t.meta:t.control)||t.shift||e.clearSelection(!0),this.currentPart.isSelected=!0,e.R("ChangedSelection",e.selection))}}},io.prototype.doActivate=function(){var e=this.diagram;this.Bn=null,this.currentPart===null&&this.standardMouseSelect();var t=this.currentPart;t!==null&&(t.canMove()||t.canCopy())&&(e.Fu(!0),Hn=null,this.isActive=!0,this.tl.set(e.position),Ke(this,e.selection),this.Cg.length=0,e.animationManager.Cc(),this.draggedParts=this.computeEffectiveCollection(e.selection,this.dragOptions),this.Sw=this.diagram.layout.isRealtime,this.diagram.layout.isRealtime=!1,e.Ns=!0,e.Gf("temporaryPixelRatio")===!0&&30<e.$w&&da(e),sd(e,this.draggedParts),this.Ea("Drag"),this.startPoint=e.firstInput.documentPoint,e.isMouseCaptured=!0,e.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,Hn=this,ur=this.diagram,this.doSimulatedDragOut()))};function Ke(e,t){if(e.dragsLink){var n=e.diagram;n.allowRelink&&(n.model.Wj()&&t.count===1&&t.first()instanceof cn?(e.draggedLink=t.first(),e.draggedLink.canRelinkFrom()&&e.draggedLink.canRelinkTo()&&e.draggedLink.Ej(),e.Oe=n.toolManager.findTool("Relinking"),e.Oe===null&&(e.Oe=new Ae,e.Oe.diagram=n),e.Oe.originalLink=e.draggedLink):(e.draggedLink=null,e.Oe=null))}}io.prototype.computeEffectiveCollection=function(e,t){return this.diagram.commandHandler.computeEffectiveCollection(e,t)},io.prototype.Pd=function(e){return e===void 0?new Ac(kr):this.isGridSnapEnabled?new Ac(new Ue(Math.round(1e3*e.x)/1e3,Math.round(1e3*e.y)/1e3)):new Ac(e.copy())},io.prototype.doDeactivate=function(){this.isActive=!1;var e=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,e.Fu(!1),e.ug(),at(this),bh(e,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Yl.count){for(var t=Yl,n=t.length,r=0;r<n;r++){var i=t.M(r);Pt(i),kt(i),at(i),i.diagram.ug()}t.clear()}Pt(this),this.tl.h(NaN,NaN),ur!==null&&(ur.currentCursor=""),Hn=ur=null,kt(this),e.isMouseCaptured=!1,e.currentCursor="",e.Ns=!1,this.stopTransaction(),gh(e,!0)},io.prototype.stopTransaction=function(){var e=this.diagram,t=xr.prototype.stopTransaction.call(this);return t&&e.undoManager.transactionToUndo!==null&&e.undoManager.transactionToUndo.ak(),t};function at(e){var t=e.diagram,n=t.skipsUndoManager;t.skipsUndoManager=!0,dn(e,t.lastInput,null),t.skipsUndoManager=n,e.Cg.length=0}function pt(){var e=Hn;kt(e),Qt(e);var t=e.diagram;e.tl.w()&&(t.position=e.tl),t.ug()}io.prototype.doCancel=function(){kt(this),Qt(this);var e=this.diagram;this.tl.w()&&(e.position=this.tl),this.stopTool()},io.prototype.doKeyDown=function(){var e=this.diagram,t=e.lastInput;this.isActive&&(t.key==="Esc"?this.doCancel():t.key!==e.previousInput.key&&this.doMouseMove())},io.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function mt(e,t){if(e.copiedParts===null){var n=e.diagram;if((!t||!n.isReadOnly&&!n.isModelReadOnly)&&e.draggedParts!==null){var r=n.undoManager;for(r.isEnabled&&r.isInTransaction?r.currentTransaction!==null&&0<r.currentTransaction.changes.count&&(n.undoManager.Kf(),n.Ea("Drag")):Qt(e),n.skipsUndoManager=!t,n.partManager.addsToTemporaryLayer=!t,e.startPoint=n.firstInput.documentPoint,t=e.copiesEffectiveCollection?e.draggedParts.Lf():n.selection,t=n.Kj(t,n,!0),n=new nn,r=e.draggedParts.iterator;r.next();){var i=r.key;if(i.Zc()&&i.canCopy()){var o=t.I(i);o!==null&&(o.location=i.location,o.Va(),n.add(o,e.Pd(o.location)))}}for(t=t.iterator;t.next();)r=t.value,r instanceof cn&&r.canCopy()&&n.add(r,e.Pd());e.copiedParts=n,Ke(e,n.Lf()),e.draggedLink!==null&&(n=e.draggedLink,t=n.routeBounds,eh(n,e.startPoint.x-(t.x+t.width/2),e.startPoint.y-(t.y+t.height/2))),e.doUpdateCursor(null)}}}function kt(e){var t=e.diagram;if(e.copiedParts!==null){if(t.Is(e.copiedParts.Lf(),!1),e.copiedParts=null,e.draggedParts!==null)for(var n=e.draggedParts.iterator;n.next();)n.key instanceof cn&&(n.value.point=new Ue(0,0));e.doUpdateCursor(null)}t.skipsUndoManager=!1,t.partManager.addsToTemporaryLayer=!1,e.startPoint=t.firstInput.documentPoint}function Pt(e){if(e.draggedLink!==null){if(e.dragsLink&&e.Oe!==null){var t=e.Oe;t.diagram.remove(t.temporaryFromNode),t.diagram.remove(t.temporaryToNode),e.Oe.originalLink=null}e.draggedLink=null,e.Oe=null}}function Ht(e,t,n){var r=e.diagram,i=e.startPoint,o=Ue.alloc();o.assign(r.lastInput.documentPoint),e.moveParts(t,o.re(i),n),Ue.free(o),r.Gf("temporaryPixelRatio")===!0&&r.Yh===null&&30<r.$w&&(da(r),r.hk())}io.prototype.moveParts=function(e,t,n){n===void 0&&(n=!1);var r=this.diagram;r!==null&&yh(r,e,t,this.dragOptions,n)};function Qt(e){if(e.draggedParts!==null){for(var t=e.diagram,n=e.draggedParts.iterator;n.next();){var r=n.key;r.Zc()&&(r.location=n.value.point)}for(n=e.draggedParts.iterator;n.next();)if(r=n.key,r instanceof cn&&r.suspendsRouting){var i=n.value.point;e.draggedParts.add(r,e.Pd()),eh(r,-i.x,-i.y)}t.bd()}}function xn(e,t){var n=e.diagram;e.dragsLink&&(e.draggedLink!==null&&(e.draggedLink.fromNode=null,e.draggedLink.toNode=null),An(e,!1));var r=e.findDragOverObject(t),i=n.lastInput;i.targetObject=r,e.doUpdateCursor(r);var o=n.skipsUndoManager,a=!1;try{if(n.skipsUndoManager=!0,a=dn(e,i,r),!e.isActive&&Hn===null)return;var p=r!==null?r.part:null;if(p===null||n.handlesDragDropForTopLevelParts&&p.isTopLevel&&!(p instanceof lr)){var w=n.mouseDragOver;w!==null&&(w(i),a=!0)}if(!e.isActive&&Hn===null||(e.doDragOver(t,r),!e.isActive&&Hn===null))return}finally{n.skipsUndoManager=o,a&&n.bd()}e.Bn=r,n.isReadOnly||!n.allowMove&&!n.allowCopy||!n.allowHorizontalScroll&&!n.allowVerticalScroll||n.gs(i.viewPoint)}io.prototype.findDragOverObject=function(e){var t=this;return fu(this.diagram,e,null,function(n){return n===null?n=!0:(n=n.part,n=!!(n===null||n instanceof qr||n.layer.isTemporary||t.draggedParts&&t.draggedParts.contains(n)||t.copiedParts&&t.copiedParts.contains(n))),!n})},io.prototype.doUpdateCursor=function(e){var t=this.diagram;(e===null||this.Bn!==e)&&(!this.diagram.currentTool.isActive||this.mayCopy()?t.currentCursor=this.copyCursor:this.mayMove()?t.currentCursor=this.moveCursor:this.mayDragOut()&&(t.currentCursor=this.nodropCursor))};function dn(e,t,n){var r=!1,i=e.Cg.length,o=0<i?e.Cg[0]:null;if(n===o)return!1;t.handled=!1;for(var a=0;a<i;a++){var p=e.Cg[a],w=p.mouseDragLeave;if(w!==null&&(w(t,p,n),r=!0,t.handled))break}if(e.Cg.length=0,!e.isActive&&Hn===null||n===null)return r;for(t.handled=!1,i=n;i!==null;)e.Cg.push(i),i=Ln(i);for(i=e.Cg.length,n=0;n<i&&(a=e.Cg[n],p=a.mouseDragEnter,p===null||(p(t,a,o),r=!0,!t.handled));n++);return r}function Ln(e){var t=e.panel;return t!==null?t:e instanceof zn&&!(e instanceof lr)&&(e=e.containingGroup,e!==null&&e.handlesDragDropForMembers)?e:null}function yn(e,t,n){var r=e.Oe;if(r===null)return null;var i=e.diagram.og(t,r.portGravity,function(O){return r.findValidLinkablePort(O,n)});e=Ue.alloc();var o=1/0,a=null;for(i=i.iterator;i.next();){var p=i.value;if(p.part!==null){var w=p.ga(jr,e);w=t.Bf(w),w<o&&(a=p,o=w)}}return Ue.free(e),a}function An(e,t){var n=e.draggedLink;if(n!==null&&!(2>n.pointsCount)){var r=e.diagram;if(!r.isReadOnly){var i=e.Oe;if(i!==null){var o=null,a=null;n.fromNode===null&&(o=yn(e,n.i(0),!1),o!==null&&(a=o.part));var p=null,w=null;n.toNode===null&&(p=yn(e,n.i(n.pointsCount-1),!0),p!==null&&(w=p.part)),i.isValidLink(a,o,w,p)?t?(n.defaultFromPoint=n.i(0),n.defaultToPoint=n.i(n.pointsCount-1),n.suspendsRouting=!1,n.fromNode=a,o!==null&&(n.fromPortId=o.portId),n.toNode=w,p!==null&&(n.toPortId=p.portId),n.fromPort!==r.Mx&&r.R("LinkRelinked",n,r.Mx),n.toPort!==r.Nx&&r.R("LinkRelinked",n,r.Nx)):Pe(i,a,o,w,p):Pe(i,null,null,null,null)}}}}io.prototype.doDragOver=function(){};function Cn(e,t){var n=e.diagram;e.dragsLink&&An(e,!0),at(e);var r=e.findDragOverObject(t),i=n.lastInput;if(i.targetObject=r,r!==null){i.handled=!1;for(var o=r;o!==null;){var a=o.mouseDrop;if(a!==null&&(a(i,o),i.handled))break;jn(e,i,o),o=Ln(o)}}else o=n.mouseDrop,o!==null&&o(i);if(e.isActive||Hn!==null){for(i=(e.copiedParts||e.draggedParts).iterator;i.next();)o=i.key,o instanceof En&&o.linksConnected.each(function(p){p.suspendsRouting=!1});if(e.doDropOnto(t,r),e.isActive||Hn!==null){for(e=Nt.alloc(),t=n.selection.iterator;t.next();)r=t.value,r instanceof En&&qn(n,r,e);Nt.free(e)}}}function jn(e,t,n){e=e.diagram,n=n.part,!e.handlesDragDropForTopLevelParts||!n.isTopLevel||n instanceof lr||(n=e.mouseDrop,n!==null&&n(t))}function qn(e,t,n){var r=!1;if(n=t.getAvoidableRect(n),e.viewportBounds.Re(n)&&(r=!0),e=e.Nu(n,function(i){return i.part},function(i){return i instanceof cn},!0,function(i){return i instanceof cn},r),e.count!==0)for(e=e.iterator;e.next();)n=e.value,!n.Td(t)&&n.isAvoiding&&n.bb()}io.prototype.doDropOnto=function(){},io.prototype.doMouseMove=function(){if(this.isActive){var e=this.diagram,t=e.lastInput;this.simulatedMouseMove(t.event,t.documentPoint,t.targetDiagram)||this.currentPart===null||this.draggedParts===null||(this.mayCopy()?(mt(this,!1),sd(e,this.copiedParts),Ht(this,this.copiedParts,!1),bh(e,this.copiedParts)):this.mayMove()?(kt(this),Ht(this,this.draggedParts,!0)):this.mayDragOut()?(mt(this,!1),Ht(this,this.copiedParts,!1)):kt(this),xn(this,e.lastInput.documentPoint))}},io.prototype.doMouseUp=function(){if(this.isActive){var e=this.diagram,t=e.lastInput;if(!this.simulatedMouseUp(t.event,t.documentPoint,t.targetDiagram)){t=!1;var n=this.mayCopy();if(n&&this.copiedParts!==null?(kt(this),mt(this,!0),sd(e,this.copiedParts),Ht(this,this.copiedParts,!1),bh(e,this.copiedParts),this.copiedParts!==null&&(e.R("ChangingSelection",e.selection),e.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(i){i.isSelected=!0}))):(t=!0,kt(this),this.mayMove()&&(Ht(this,this.draggedParts,!0),xn(this,e.lastInput.documentPoint))),this.Ym=!0,Cn(this,e.lastInput.documentPoint),this.isActive){var r=n?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,t&&mr(this),e.Ya(),bh(e,this.draggedParts),this.transactionResult=n?"Copy":"Move",e.R(n?"SelectionCopied":"SelectionMoved",r)}this.stopTool(),n&&e.R("ChangedSelection",e.selection)}}},io.prototype.simulatedMouseMove=function(e,t,n){if(Hn===null)return!1;var r=Hn.diagram;n instanceof Ct||(n=null);var i=ur;return n!==i&&(i!==null&&i!==r&&(i.ug(),Hn.isDragOutStarted=!1,i=i.toolManager.findTool("Dragging"),i!==null&&i.doSimulatedDragLeave()),ur=n,n!==null&&n!==r&&(pt(),i=n.toolManager.findTool("Dragging"),i!==null&&(Yl.contains(i)||Yl.add(i),i.doSimulatedDragEnter())),this.doUpdateCursor(null)),n===null||n===r||!n.allowDrop||n.isReadOnly||!n.allowInsert?!1:(r=n.toolManager.findTool("Dragging"),r!==null&&(e!==null&&(e.targetTouches!==void 0&&(0<e.targetTouches.length?e=e.targetTouches[0]:0<e.changedTouches.length&&(e=e.changedTouches[0])),t=n.getMouse(e)),n.lastInput.documentPoint=t,n.lastInput.viewPoint=n.op(t),n.lastInput.down=!1,n.lastInput.up=!1,r.doSimulatedDragOver()),!0)},io.prototype.simulatedMouseUp=function(e,t,n){if(Hn===null)return!1;var r=ur,i=Hn.diagram;if(n===null)return Hn.doCancel(),!0;if(n!==r){var o=r.toolManager.findTool("Dragging");if(r!==null&&r!==i&&o!==null)return r.ug(),Hn.isDragOutStarted=!1,o.doSimulatedDragLeave(),!1;ur=n,r=n.toolManager.findTool("Dragging"),r!==null&&(pt(),Yl.contains(r)||Yl.add(r),r.doSimulatedDragEnter())}return n!==this.diagram?(e!==null?(e.targetTouches!==void 0&&(0<e.targetTouches.length?e=e.targetTouches[0]:0<e.changedTouches.length&&(e=e.changedTouches[0])),t=n.getMouse(e)):t===null&&(t=new Ue),n.lastInput.documentPoint=t,n.lastInput.viewPoint=n.op(t),n.lastInput.down=!1,n.lastInput.up=!0,e=n.toolManager.findTool("Dragging"),e!==null&&e.doSimulatedDrop(),e=Hn,e!==null&&(n=e.mayCopy(),e.transactionResult=n?"Copy":"Move",e.stopTool()),!0):!1};function mr(e){if(e.draggedParts!==null)for(var t=e.draggedParts.iterator;t.next();){var n=t.key;n instanceof En&&(n=n.containingGroup,n===null||n.placeholder===null||e.draggedParts.contains(n)||n.placeholder.v())}}io.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var e=this.diagram;if(e.isReadOnly||e.isModelReadOnly||!e.allowInsert||!e.allowCopy||(Wo?!e.lastInput.alt:!e.lastInput.control))return!1;for(e=e.selection.iterator;e.next();)if(e.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},io.prototype.mayDragOut=function(){if(!this.isCopyEnabled)return!1;var e=this.diagram;if(!e.allowDragOut||!e.allowCopy||e.allowMove)return!1;for(e=e.selection.iterator;e.next();)if(e.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},io.prototype.mayMove=function(){var e=this.diagram;if(e.isReadOnly||!e.allowMove)return!1;for(e=e.selection.iterator;e.next();)if(e.value.canMove())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canMove())},io.prototype.computeBorder=function(e,t,n){return this.Ym||this.draggedParts===null||this.draggedParts.contains(e)?null:n.assign(t)},io.prototype.Az=function(){return Hn},io.prototype.mayDragIn=function(){var e=this.diagram;if(!e.allowDrop||e.isReadOnly||e.isModelReadOnly||!e.allowInsert)return!1;var t=Hn;return!(t===null||t.diagram.model.dataFormat!==e.model.dataFormat)},io.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var e=this.diagram;e.animationManager.Cc(),ta(e),e.animationManager.Cc(),e=Hn,e!==null&&(e.diagram.Ns=!1),this.doUpdateCursor(null)}},io.prototype.doSimulatedDragLeave=function(){var e=Hn;e!==null&&e.doSimulatedDragOut(),this.doCancel()},io.prototype.doSimulatedDragOver=function(){var e=this.diagram;e.animationManager.Dm=!0;var t=Hn;if(t!==null&&t.draggedParts!==null){if(!this.mayDragIn())return;Or(this,t.draggedParts.Lf(),!1,e.firstInput),Ht(this,this.copiedParts,!1),xn(this,e.lastInput.documentPoint)}e.animationManager.Dm=!1},io.prototype.doSimulatedDrop=function(){var e=this.diagram,t=Hn;if(t!==null){var n=t.diagram;if(t.Ym=!0,kt(this),!this.mayDragIn())return;e.animationManager.Dm=!0,e.R("ChangingSelection",e.selection),this.Ea("Drop"),Or(this,t.draggedParts.Lf(),!0,e.lastInput),Ht(this,this.copiedParts,!1);var r=new ut;this.copiedParts!==null&&(e.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(i){i.isSelected=!0,r.add(i)})),Cn(this,e.lastInput.documentPoint),e.Ya(),this.copiedParts!==null&&(this.transactionResult="ExternalCopy"),this.copiedParts=null,e.doFocus(),e.R("ExternalObjectsDropped",r,n),this.stopTransaction(),e.R("ChangedSelection",e.selection)}e.animationManager.Dm=!1};function Or(e,t,n,r){if(e.copiedParts===null){var i=e.diagram;if(!i.isReadOnly&&!i.isModelReadOnly){i.skipsUndoManager=!n,i.partManager.addsToTemporaryLayer=!n,e.startPoint=r.documentPoint,n=i.Kj(t,i,!0);var o=Nt.alloc();i=r=1/0;for(var a=-1/0,p=-1/0,w=t.iterator;w.next();){var O=w.value;if(O.isVisible()){var D=O.location;O=D.x,D=D.y,isNaN(O)||isNaN(D)||(O<r&&(r=O),D<i&&(i=D),O>a&&(a=O),D>p&&(p=D))}}for(r===1/0?o.h(0,0,0,0):o.h(r,i,a-r,p-i),r=o.x+o.width/2,i=o.y+o.height/2,Nt.free(o),o=e.Fr,a=new nn,p=Ue.alloc(),w=t.iterator;w.next();)O=w.value,O instanceof cn&&O.canCopy()&&(D=n.I(O),D!==null&&(D.points=O.points,eh(D,o.x-r,o.y-i),D.suspendsRouting=!0,a.add(D,e.Pd())));for(t=t.iterator;t.next();)O=t.value,O.Zc()&&O.canCopy()&&(w=n.I(O),w!==null&&(O=O.location,p.h(o.x-(r-O.x),o.y-(i-O.y)),w.location=p,w.Va(),a.add(w,e.Pd(p))));Ue.free(p),e.copiedParts=a,Ke(e,a.Lf()),e.draggedLink!==null&&(n=e.draggedLink,t=n.routeBounds,eh(n,e.startPoint.x-(t.x+t.width/2),e.startPoint.y-(t.y+t.height/2))),e.doUpdateCursor(null)}}}io.prototype.doSimulatedDragOut=function(){var e=this.diagram;e.Ns=!1,this.mayCopy()||this.mayMove()?e.currentCursor="":e.currentCursor=this.nodropCursor,this.Bn=null},io.prototype.computeMove=function(e,t,n,r){return n=this.diagram,n!==null?n.computeMove(e,t,this.dragOptions,r):new Ue},kn.Object.defineProperties(io.prototype,{isCopyEnabled:{get:function(){return this.ob},set:function(e){this.ob=e}},copiesEffectiveCollection:{get:function(){return this.u},set:function(e){this.u=e}},dragOptions:{get:function(){return this.ia},set:function(e){this.ia=e}},isGridSnapEnabled:{get:function(){return this.dragOptions.isGridSnapEnabled},set:function(e){this.dragOptions.isGridSnapEnabled=e}},isComplexRoutingRealtime:{get:function(){return this.hb},set:function(e){this.hb=e}},isGridSnapRealtime:{get:function(){return this.dragOptions.isGridSnapRealtime},set:function(e){this.dragOptions.isGridSnapRealtime=e}},gridSnapCellSize:{get:function(){return this.dragOptions.gridSnapCellSize},set:function(e){this.dragOptions.gridSnapCellSize.D(e)||(e=e.J(),this.dragOptions.gridSnapCellSize=e)}},gridSnapCellSpot:{get:function(){return this.dragOptions.gridSnapCellSpot},set:function(e){this.dragOptions.gridSnapCellSpot.D(e)||(e=e.J(),this.dragOptions.gridSnapCellSpot=e)}},gridSnapOrigin:{get:function(){return this.dragOptions.gridSnapOrigin},set:function(e){this.dragOptions.gridSnapOrigin.D(e)||(e=e.J(),this.dragOptions.gridSnapOrigin=e)}},dragsLink:{get:function(){return this.dragOptions.dragsLink},set:function(e){this.dragOptions.dragsLink=e}},dragsTree:{get:function(){return this.dragOptions.dragsTree},set:function(e){this.dragOptions.dragsTree=e}},copyCursor:{get:function(){return this.F},set:function(e){this.F=e}},moveCursor:{get:function(){return this.Oc},set:function(e){this.Oc=e}},nodropCursor:{get:function(){return this.Pc},set:function(e){this.Pc=e}},currentPart:{get:function(){return this.V},set:function(e){this.V=e}},copiedParts:{get:function(){return this.o},set:function(e){this.o=e}},draggedParts:{get:function(){return this.Ha},set:function(e){this.Ha=e}},draggingParts:{get:function(){return this.copiedParts!==null?this.copiedParts.Lf():this.draggedParts!==null?this.draggedParts.Lf():this.te}},draggedLink:{get:function(){return this.diagram.draggedLink},set:function(e){this.diagram.draggedLink=e}},isDragOutStarted:{get:function(){return this.Hb},set:function(e){this.Hb=e}},startPoint:{get:function(){return this.Fr},set:function(e){this.Fr.D(e)||this.Fr.assign(e)}},delay:{get:function(){return this.Ik},set:function(e){this.Ik=e}}}),io.prototype.getDraggingSource=io.prototype.Az;var Hn=null,ur=null;io.className="DraggingTool",Yl=new tn,Gi("draggingTool",function(){return this.findTool("Dragging")},function(e){this.gb("Dragging",e,this.mouseMoveTools)}),Wi.prototype.doCancel=function(){Hn!==null&&Hn.doCancel(),xr.prototype.doCancel.call(this)};function Qn(){xr.call(this),this.te=100,this.Ha=!1,this.u="pointer";var e=new cn,t=new vr;t.isPanelMain=!0,t.stroke="blue",e.add(t),t=new vr,t.toArrow="Standard",t.fill="blue",t.stroke="blue",e.add(t),e.layerName="Tool",this.Ci=e,e=new En,t=new vr,t.portId="",t.figure="Rectangle",t.fill=null,t.stroke="magenta",t.strokeWidth=2,t.desiredSize=fr,e.add(t),e.selectable=!1,e.layerName="Tool",this.Bi=e,this.j=t,e=new En,t=new vr,t.portId="",t.figure="Rectangle",t.fill=null,t.stroke="magenta",t.strokeWidth=2,t.desiredSize=fr,e.add(t),e.selectable=!1,e.layerName="Tool",this.Di=e,this.o=t,this.Pc=this.Oc=this.ob=this.hb=this.Hb=null,this.ia=!0,this.hy=new nn,this.Of=this.gj=this.Pf=null}Tn(Qn,xr),Qn.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},Qn.prototype.copyPortProperties=function(e,t,n,r,i){if(e!==null&&t!==null&&n!==null&&r!==null){var o=t.Df(),a=Yt.alloc();a.width=t.naturalBounds.width*o,a.height=t.naturalBounds.height*o,r.desiredSize=a,Yt.free(a),i?(r.toSpot=t.toSpot,r.toEndSegmentLength=t.toEndSegmentLength):(r.fromSpot=t.fromSpot,r.fromEndSegmentLength=t.fromEndSegmentLength),n.locationSpot=jr,o=Ue.alloc(),n.location=t.ga(jr,o),Ue.free(o),r.angle=t.li(),this.portTargeted!==null&&this.portTargeted(e,t,n,r,i)}},Qn.prototype.setNoTargetPortProperties=function(e,t,n){t!==null&&(t.desiredSize=fr,t.fromSpot=So,t.toSpot=So),e!==null&&(e.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,e,t,n)},Qn.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},Qn.prototype.doMouseMove=function(){if(this.isActive){var e=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof En){var t=this.targetPort.part;this.isForwards?this.copyPortProperties(t,this.targetPort,this.temporaryToNode,this.temporaryToPort,!0):this.copyPortProperties(t,this.targetPort,this.temporaryFromNode,this.temporaryFromPort,!1)}else this.isForwards?this.setNoTargetPortProperties(this.temporaryToNode,this.temporaryToPort,!0):this.setNoTargetPortProperties(this.temporaryFromNode,this.temporaryFromPort,!1);(e.allowHorizontalScroll||e.allowVerticalScroll)&&e.gs(e.lastInput.viewPoint)}},Qn.prototype.findValidLinkablePort=function(e,t){if(e===null)return null;var n=e.part;if(!(n instanceof En))return null;for(;e!==null;){var r=t?e.toLinkable:e.fromLinkable;if(r===!0&&(e.portId!==null||e instanceof En)&&(t?this.isValidTo(n,e):this.isValidFrom(n,e)))return e;if(r===!1)break;e=e.panel}return null},Qn.prototype.findTargetPort=function(e){var t=this.diagram,n=t.lastInput.documentPoint,r=this.portGravity;0>=r&&(r=.1);var i=this,o=t.og(n,r,function(X){return i.findValidLinkablePort(X,e)},null,!0);for(r=1/0,t=null,o=o.iterator;o.next();){var a=o.value,p=a.part;if(p instanceof En){var w=a.ga(jr,Ue.alloc()),O=n.x-w.x,D=n.y-w.y;Ue.free(w),w=O*O+D*D,w<r&&(O=this.validPortsCache.I(a),O!==null?O&&(t=a,r=w):e&&this.isValidLink(this.originalFromNode,this.originalFromPort,p,a)||!e&&this.isValidLink(p,a,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(a,!0),t=a,r=w):this.validPortsCache.add(a,!1))}}return t!==null&&(n=t.part,n instanceof En&&(n.layer===null||n.layer.allowLink))?t:null},Qn.prototype.isValidFrom=function(e,t){if(e===null||t===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(e.layer!==null&&!e.layer.allowLink||t.fromLinkable!==!0))return!1;var n=t.fromMaxLinks;if(1/0>n){if(this.originalLink!==null&&e===this.originalFromNode&&t===this.originalFromPort)return!0;if(t=t.portId,t===null&&(t=""),e.Mo(t).count>=n)return!1}return!0},Qn.prototype.isValidTo=function(e,t){if(e===null||t===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(e.layer!==null&&!e.layer.allowLink||t.toLinkable!==!0))return!1;var n=t.toMaxLinks;if(1/0>n){if(this.originalLink!==null&&e===this.originalToNode&&t===this.originalToPort)return!0;if(t=t.portId,t===null&&(t=""),e.Sd(t).count>=n)return!1}return!0},Qn.prototype.isInSameNode=function(e,t){return e===null||t===null?!1:e===t?!0:(e=e.part,t=t.part,e!==null&&e===t)},Qn.prototype.isLinked=function(e,t){if(e===null||t===null)return!1;var n=e.part;if(!(n instanceof En))return!1;e=e.portId,e===null&&(e="");var r=t.part;if(!(r instanceof En))return!1;for(t=t.portId,t===null&&(t=""),t=r.Sd(t);t.next();)if(r=t.value,r.fromNode===n&&r.fromPortId===e)return!0;return!1},Qn.prototype.isValidLink=function(e,t,n,r){if(!this.isValidFrom(e,t)||!this.isValidTo(n,r)||!(t===null||r===null||(t.fromLinkableSelfNode&&r.toLinkableSelfNode||!this.isInSameNode(t,r))&&(t.fromLinkableDuplicates&&r.toLinkableDuplicates||!this.isLinked(t,r)))||this.originalLink!==null&&(e!==null&&this.isLabelDependentOnLink(e,this.originalLink)||n!==null&&this.isLabelDependentOnLink(n,this.originalLink))||e!==null&&n!==null&&(e.data===null&&n.data!==null||e.data!==null&&n.data===null)||!this.isValidCycle(e,n,this.originalLink))return!1;if(e!==null){var i=e.linkValidation;if(i!==null&&!i(e,t,n,r,this.originalLink))return!1}return n!==null&&(i=n.linkValidation,i!==null&&!i(e,t,n,r,this.originalLink))?!1:(i=this.linkValidation,i!==null?i(e,t,n,r,this.originalLink):!0)},Qn.prototype.isLabelDependentOnLink=function(e,t){if(e===null)return!1;var n=e.labeledLink;if(n===null)return!1;if(n===t)return!0;var r=new ut;return r.add(e),_r(this,n,t,r)};function _r(e,t,n,r){if(t===n)return!0;var i=t.fromNode;return i!==null&&i.isLinkLabel&&(r.add(i),_r(e,i.labeledLink,n,r))?!0:(t=t.toNode,!!(t!==null&&t.isLinkLabel&&(r.add(t),_r(e,t.labeledLink,n,r))))}Qn.prototype.isValidCycle=function(e,t,n){if(n===void 0&&(n=null),e===null||t===null)return this.isUnconnectedLinkValid;var r=this.diagram.validCycle;if(r!==Rf){if(r===gp){if(r=n||this.temporaryLink,r!==null&&!r.isTreeLink)return!0;for(r=t.linksConnected;r.next();){var i=r.value;if(i!==n&&i.isTreeLink&&i.toNode===t)return!1}return!Xr(this,e,t,n,!0)}if(r===mp){if(r=n||this.temporaryLink,r!==null&&!r.isTreeLink)return!0;for(r=e.linksConnected;r.next();)if(i=r.value,i!==n&&i.isTreeLink&&i.fromNode===e)return!1;return!Xr(this,e,t,n,!0)}if(r===fp)return e===t?e=!0:(r=new ut,r.add(t),e=Cr(this,r,e,t,n)),!e;if(r===dp)return!Xr(this,e,t,n,!1);if(r===pp)return e===t?e=!0:(r=new ut,r.add(t),e=wi(this,r,e,t,n)),!e}return!0};function Xr(e,t,n,r,i){if(t===n)return!0;if(t===null||n===null)return!1;for(var o=t.linksConnected;o.next();){var a=o.value;if(a!==r&&(!i||a.isTreeLink)&&a.toNode===t&&(a=a.fromNode,a!==t&&Xr(e,a,n,r,i)))return!0}return!1}function Cr(e,t,n,r,i){if(n===r)return!0;if(n===null||r===null||t.contains(n))return!1;t.add(n);for(var o=n.linksConnected;o.next();){var a=o.value;if(a!==i&&a.toNode===n&&(a=a.fromNode,a!==n&&Cr(e,t,a,r,i)))return!0}return!1}function wi(e,t,n,r,i){if(n===r)return!0;if(n===null||r===null||t.contains(n))return!1;t.add(n);for(var o=n.linksConnected;o.next();){var a=o.value;if(a!==i){var p=a.fromNode;if(a=a.toNode,p=p===n?a:p,p!==n&&wi(e,t,p,r,i))return!0}}return!1}kn.Object.defineProperties(Qn.prototype,{portGravity:{get:function(){return this.te},set:function(e){0<=e&&(this.te=e)}},isUnconnectedLinkValid:{get:function(){return this.Ha},set:function(e){this.Ha=e}},linkingCursor:{get:function(){return this.u},set:function(e){this.u=e}},temporaryLink:{get:function(){return this.Ci},set:function(e){this.Ci=e}},temporaryFromNode:{get:function(){return this.Bi},set:function(e){(this.Bi=e)&&(this.j=e.port)}},temporaryFromPort:{get:function(){return this.j},set:function(e){if(this.j!==null){var t=this.j.panel;if(t!==null){var n=t.O.indexOf(this.j);t.mb(n),t.Gb(n,e)}}this.j=e}},temporaryToNode:{get:function(){return this.Di},set:function(e){(this.Di=e)&&(this.o=e.port)}},temporaryToPort:{get:function(){return this.o},set:function(e){if(this.o!==null){var t=this.o.panel;if(t!==null){var n=t.O.indexOf(this.o);t.mb(n),t.Gb(n,e)}}this.o=e}},originalLink:{get:function(){return this.Hb},set:function(e){this.Hb=e}},originalFromNode:{get:function(){return this.hb},set:function(e){this.hb=e}},originalFromPort:{get:function(){return this.ob},set:function(e){this.ob=e}},originalToNode:{get:function(){return this.Oc},set:function(e){this.Oc=e}},originalToPort:{get:function(){return this.Pc},set:function(e){this.Pc=e}},isForwards:{get:function(){return this.ia},set:function(e){this.ia=e}},validPortsCache:{get:function(){return this.hy}},targetPort:{get:function(){return this.Pf},set:function(e){this.Pf=e}},linkValidation:{get:function(){return this.gj},set:function(e){this.gj=e}},portTargeted:{get:function(){return this.Of},set:function(e){this.Of=e}}}),Qn.className="LinkingBaseTool";function ni(){Qn.call(this),this.name="Linking",this.V={},this.F=null,this.K=Bi,this.Xd=null}Tn(ni,Qn),ni.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;return e.isReadOnly||e.isModelReadOnly||!e.allowLink||!e.model.xs()||!e.lastInput.left||e.currentTool!==this&&!this.isBeyondDragSize()?!1:this.findLinkablePort()!==null},ni.prototype.findLinkablePort=function(){var e=this.diagram,t=this.startObject;if(t===null&&(t=e.ic(e.firstInput.documentPoint,null,null)),t===null||(e=t.part,!(e instanceof En)))return null;var n=this.direction;if(n===Bi||n===te){var r=this.findValidLinkablePort(t,!1);if(r!==null||this.startObject===e&&(r=e.port,this.findValidLinkablePort(r,!1)))return this.isForwards=!0,r}return(n===Bi||n===Ee)&&(t=this.findValidLinkablePort(t,!0),t!==null||this.startObject===e&&(t=e.port,this.findValidLinkablePort(t,!0)))?(this.isForwards=!1,t):null},ni.prototype.doActivate=function(){var e=this.diagram,t=this.findLinkablePort();t===null?this.stopTool():(this.Ea(this.name),e.isMouseCaptured=!0,e.currentCursor=this.linkingCursor,this.isForwards?(this.temporaryToNode!==null&&(this.temporaryToNode.location=e.lastInput.documentPoint),this.originalFromPort=t,t=this.originalFromPort.part,t instanceof En&&(this.originalFromNode=t),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1)):(this.temporaryFromNode!==null&&(this.temporaryFromNode.location=e.lastInput.documentPoint),this.originalToPort=t,t=this.originalToPort.part,t instanceof En&&(this.originalToNode=t),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),e.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),e.add(this.temporaryToNode),this.temporaryToNode&&this.temporaryToNode.Va(),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.temporaryLink.isTreeLink=this.isNewTreeLink(),this.temporaryLink.bb(),e.add(this.temporaryLink)),this.isActive=!0)},ni.prototype.doDeactivate=function(){this.isActive=!1;var e=this.diagram;e.remove(this.temporaryLink),e.remove(this.temporaryFromNode),e.remove(this.temporaryToNode),e.isMouseCaptured=!1,e.currentCursor="",this.stopTransaction()},ni.prototype.doStop=function(){Qn.prototype.doStop.call(this),this.startObject=null},ni.prototype.doMouseUp=function(){if(this.isActive){var e=this.diagram,t=this.transactionResult=null,n=null,r=null,i=null,o=null;try{var a=this.targetPort=this.findTargetPort(this.isForwards);if(a!==null){var p=a.part;p instanceof En&&(this.isForwards?(this.originalFromNode!==null&&(t=this.originalFromNode,n=this.originalFromPort),r=p,i=a):(t=p,n=a,this.originalToNode!==null&&(r=this.originalToNode,i=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(t=this.originalFromNode,n=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(r=this.originalToNode,i=this.originalToPort);t!==null||r!==null?(o=this.insertLink(t,n,r,i),o!==null?(a===null&&(this.isForwards?o.defaultToPoint=e.lastInput.documentPoint:o.defaultFromPoint=e.lastInput.documentPoint),e.allowSelect&&(e.R("ChangingSelection",e.selection),e.clearSelection(!0),o.isSelected=!0),this.transactionResult=this.name,e.R("LinkDrawn",o)):this.doNoLink(t,n,r,i)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),o&&e.allowSelect&&e.R("ChangedSelection",e.selection)}}},ni.prototype.isNewTreeLink=function(){var e=this.archetypeLinkData;if(e===null)return!0;if(e instanceof cn)return e.isTreeLink;var t=this.diagram;return t===null?!0:(e=t.partManager.getLinkCategoryForData(e),t=t.partManager.findLinkTemplateForCategory(e),t!==null?t.isTreeLink:!0)},ni.prototype.insertLink=function(e,t,n,r){return this.diagram.partManager.insertLink(e,t,n,r)},ni.prototype.doNoLink=function(){},kn.Object.defineProperties(ni.prototype,{archetypeLinkData:{get:function(){return this.V},set:function(e){this.V=e}},archetypeLabelNodeData:{get:function(){return this.F},set:function(e){this.F=e}},direction:{get:function(){return this.K},set:function(e){this.K=e}},startObject:{get:function(){return this.Xd},set:function(e){this.Xd=e}}});var Bi=new hn(ni,"Either",0),te=new hn(ni,"ForwardsOnly",0),Ee=new hn(ni,"BackwardsOnly",0);ni.className="LinkingTool",ni.Either=Bi,ni.ForwardsOnly=te,ni.BackwardsOnly=Ee;function Ae(){Qn.call(this),this.name="Relinking";var e=new vr;e.figure="Diamond",e.desiredSize=Pi,e.fill="lightblue",e.stroke="dodgerblue",e.cursor=this.linkingCursor,e.segmentIndex=0,this.V=e,e=new vr,e.figure="Diamond",e.desiredSize=Pi,e.fill="lightblue",e.stroke="dodgerblue",e.cursor=this.linkingCursor,e.segmentIndex=-1,this.Xd=e,this.F=null,this.Ew=new Nt}Tn(Ae,Qn),Ae.prototype.updateAdornments=function(e){if(e!==null&&e instanceof cn){var t="RelinkFrom",n=null;if(e.isSelected&&!this.diagram.isReadOnly){var r=e.selectionObject;r!==null&&e.canRelinkFrom()&&e.actualBounds.w()&&e.isVisible()&&r.actualBounds.w()&&r.Ed()&&(n=e.Pj(t),n===null&&(n=this.makeAdornment(r,!1),e.bh(t,n)))}n===null&&e.Jf(t),t="RelinkTo",n=null,e.isSelected&&!this.diagram.isReadOnly&&(r=e.selectionObject,r!==null&&e.canRelinkTo()&&e.actualBounds.w()&&e.isVisible()&&r.actualBounds.w()&&r.Ed()&&(n=e.Pj(t),n===null?(n=this.makeAdornment(r,!0),e.bh(t,n)):n.v())),n===null&&e.Jf(t)}},Ae.prototype.makeAdornment=function(e,t){var n=new qr;return n.type=qt.Link,t=t?this.toHandleArchetype:this.fromHandleArchetype,t!==null&&n.add(t.copy()),n.adornedObject=e,n},Ae.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;if(e.isReadOnly||e.isModelReadOnly||!e.allowRelink||!e.model.xs()||!e.lastInput.left)return!1;var t=this.findToolHandleAt(e.firstInput.documentPoint,"RelinkFrom");return t===null&&(t=this.findToolHandleAt(e.firstInput.documentPoint,"RelinkTo")),t!==null},Ae.prototype.doActivate=function(){var e=this.diagram;if(this.originalLink===null){var t=this.handle;if(t===null&&(t=this.findToolHandleAt(e.firstInput.documentPoint,"RelinkFrom"),t===null&&(t=this.findToolHandleAt(e.firstInput.documentPoint,"RelinkTo"))),t===null)return;var n=t.part;if(!(n instanceof qr&&n.adornedPart instanceof cn))return;this.handle=t,this.isForwards=n===null||n.category==="RelinkTo",this.originalLink=n.adornedPart}this.Ea(this.name),e.isMouseCaptured=!0,e.currentCursor=this.linkingCursor,this.originalFromPort=this.originalLink.fromPort,this.originalFromNode=this.originalLink.fromNode,this.originalToPort=this.originalLink.toPort,this.originalToNode=this.originalLink.toNode,this.Ew.set(this.originalLink.actualBounds),this.originalLink!==null&&0<this.originalLink.pointsCount&&(this.originalLink.fromNode===null&&(this.temporaryFromPort!==null&&(this.temporaryFromPort.desiredSize=Sr),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=Sr),this.temporaryToNode!==null&&(this.temporaryToNode.location=this.originalLink.i(this.originalLink.pointsCount-1)))),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0),e.add(this.temporaryFromNode),e.add(this.temporaryToNode),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.copyLinkProperties(this.originalLink,this.temporaryLink),this.temporaryLink.bb(),e.add(this.temporaryLink)),this.isActive=!0},Ae.prototype.copyLinkProperties=function(e,t){if(e!==null&&t!==null){t.adjusting=e.adjusting,t.corner=e.corner;var n=e.curve;(n===Rd||n===th)&&(n=Aa),t.curve=n,t.curviness=e.curviness,t.isTreeLink=e.isTreeLink,t.points=e.points,t.routing=e.routing,t.smoothness=e.smoothness,t.fromSpot=e.fromSpot,t.fromEndSegmentLength=e.fromEndSegmentLength,t.fromShortLength=e.fromShortLength,t.toSpot=e.toSpot,t.toEndSegmentLength=e.toEndSegmentLength,t.toShortLength=e.toShortLength}},Ae.prototype.doDeactivate=function(){this.isActive=!1;var e=this.diagram;e.remove(this.temporaryLink),e.remove(this.temporaryFromNode),e.remove(this.temporaryToNode),e.isMouseCaptured=!1,e.currentCursor="",this.stopTransaction()},Ae.prototype.doStop=function(){Qn.prototype.doStop.call(this),this.handle=null},Ae.prototype.doMouseUp=function(){if(this.isActive){var e=this.diagram;this.transactionResult=null;var t=this.originalFromNode,n=this.originalFromPort,r=this.originalToNode,i=this.originalToPort,o=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var a=this.targetPort.part;a instanceof En&&(this.isForwards?(r=a,i=this.targetPort):(t=a,n=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?i=r=null:n=t=null:o=null;o!==null?(this.reconnectLink(o,this.isForwards?r:t,this.isForwards?i:n,this.isForwards),this.targetPort===null&&(this.isForwards?o.defaultToPoint=e.lastInput.documentPoint:o.defaultFromPoint=e.lastInput.documentPoint,o.bb()),this.transactionResult=this.name,e.R("LinkRelinked",o,this.isForwards?this.originalToPort:this.originalFromPort)):this.doNoRelink(this.originalLink,this.isForwards),this.originalLink.Xo(this.Ew)}finally{this.stopTool()}}},Ae.prototype.reconnectLink=function(e,t,n,r){return n=n!==null&&n.portId!==null?n.portId:"",r?(e.toNode=t,e.toPortId=n):(e.fromNode=t,e.fromPortId=n),!0},Ae.prototype.doNoRelink=function(){};function Pe(e,t,n,r,i){t!==null?(e.copyPortProperties(t,n,e.temporaryFromNode,e.temporaryFromPort,!1),e.diagram.add(e.temporaryFromNode)):e.diagram.remove(e.temporaryFromNode),r!==null?(e.copyPortProperties(r,i,e.temporaryToNode,e.temporaryToPort,!0),e.diagram.add(e.temporaryToNode)):e.diagram.remove(e.temporaryToNode)}kn.Object.defineProperties(Ae.prototype,{fromHandleArchetype:{get:function(){return this.V},set:function(e){this.V=e}},toHandleArchetype:{get:function(){return this.Xd},set:function(e){this.Xd=e}},handle:{get:function(){return this.F},set:function(e){if(e!==null&&!(e.part instanceof qr))throw Error("new handle is not in an Adornment: "+e);this.F=e}}}),Ae.className="RelinkingTool",Gi("linkingTool",function(){return this.findTool("Linking")},function(e){this.gb("Linking",e,this.mouseMoveTools)}),Gi("relinkingTool",function(){return this.findTool("Relinking")},function(e){this.gb("Relinking",e,this.mouseDownTools)});function Ye(){xr.call(this),this.name="LinkReshaping";var e=new vr;e.figure="Rectangle",e.desiredSize=pi,e.fill="lightblue",e.stroke="dodgerblue",this.o=e,e=new vr,e.figure="Diamond",e.desiredSize=Pi,e.fill="lightblue",e.stroke="dodgerblue",e.cursor="move",this.u=e,this.F=3,this.Ts=this.j=null,this.Fw=new Ue,this.Yq=new tn}Tn(Ye,xr),Ye.prototype.Ru=function(e){return e&&e.reshapingBehavior.value!==0?e.reshapingBehavior:nt},Ye.prototype.om=function(e,t){e.reshapingBehavior=t},Ye.prototype.updateAdornments=function(e){if(e!==null&&e instanceof cn){var t=null;if(e.isSelected&&!this.diagram.isReadOnly){var n=e.path;n!==null&&e.canReshape()&&e.actualBounds.w()&&e.isVisible()&&n.actualBounds.w()&&n.Ed()&&(t=e.Pj(this.name),t===null||t.Aw!==e.pointsCount||t.Uw!==e.resegmentable)&&(t=this.makeAdornment(n),t!==null&&(t.Aw=e.pointsCount,t.Uw=e.resegmentable,e.bh(this.name,t)))}t===null&&e.Jf(this.name)}},Ye.prototype.makeAdornment=function(e){var t=e.part,n=t.pointsCount,r=t.isOrthogonal,i=null;if(t.points!==null&&1<n){i=new qr,i.type=qt.Link,n=t.firstPickIndex;var o=t.lastPickIndex,a=r?1:0;if(t.resegmentable&&t.computeCurve()!==Cl)for(var p=n+a;p<o-a;p++){var w=this.makeResegmentHandle(e,p);w!==null&&(w.segmentIndex=p,w.segmentFraction=.5,w.fromMaxLinks=999,i.add(w))}for(a=n+1;a<o;a++)if(p=this.makeHandle(e,a),p!==null){if(p.segmentIndex=a,a!==n)if(a===n+1&&r){w=t.i(n);var O=t.i(n+1);vt.B(w.x,O.x)&&vt.B(w.y,O.y)&&(O=t.i(n-1)),vt.B(w.x,O.x)?(this.om(p,Ft),p.cursor="n-resize"):vt.B(w.y,O.y)&&(this.om(p,bt),p.cursor="w-resize")}else a===o-1&&r?(w=t.i(o-1),O=t.i(o),vt.B(w.x,O.x)&&vt.B(w.y,O.y)&&(w=t.i(o+1)),vt.B(w.x,O.x)?(this.om(p,Ft),p.cursor="n-resize"):vt.B(w.y,O.y)&&(this.om(p,bt),p.cursor="w-resize")):a!==o&&(this.om(p,Bt),p.cursor="move");i.add(p)}i.adornedObject=e}return i},Ye.prototype.makeHandle=function(){var e=this.handleArchetype;return e===null?null:e.copy()},Ye.prototype.makeResegmentHandle=function(){var e=this.midHandleArchetype;return e===null?null:e.copy()},Ye.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;return!e.isReadOnly&&e.allowReshape&&e.lastInput.left?this.findToolHandleAt(e.firstInput.documentPoint,this.name)!==null:!1},Ye.prototype.doActivate=function(){var e=this.diagram;if(this.handle===null&&(this.handle=this.findToolHandleAt(e.firstInput.documentPoint,this.name)),this.handle!==null){var t=this.handle.part.adornedPart;if(t instanceof cn){if(this.Ts=t,e.isMouseCaptured=!0,this.Ea(this.name),t.resegmentable&&this.handle.fromMaxLinks===999){var n=t.points.copy(),r=this.getResegmentingPoint();if(n.Gb(this.handle.segmentIndex+1,r),t.isOrthogonal&&n.Gb(this.handle.segmentIndex+1,r),t.points=n,t.Wb(),t.updateAdornments(),this.handle=this.findToolHandleAt(e.firstInput.documentPoint,this.name),this.handle===null){this.doDeactivate();return}}this.Fw=t.i(this.handle.segmentIndex),this.Yq=t.points.copy(),this.isActive=!0}}},Ye.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},Ye.prototype.stopTransaction=function(){var e=this.diagram,t=xr.prototype.stopTransaction.call(this);return t&&e.undoManager.transactionToUndo!==null&&e.undoManager.transactionToUndo.ak(),t},Ye.prototype.doCancel=function(){var e=this.adornedLink;e!==null&&(e.points=this.Yq),this.stopTool()},Ye.prototype.getResegmentingPoint=function(){return this.handle.ga(jr)},Ye.prototype.doMouseMove=function(){var e=this.diagram;this.isActive&&(e=this.computeReshape(e.lastInput.documentPoint),this.reshape(e))},Ye.prototype.doMouseUp=function(){var e=this.diagram;if(this.isActive){var t=this.computeReshape(e.lastInput.documentPoint);if(this.reshape(t),t=this.adornedLink,t!==null&&t.resegmentable){var n=this.handle.segmentIndex,r=t.i(n-1),i=t.i(n),o=t.i(n+1);if(t.isOrthogonal){if(n>t.firstPickIndex+1&&n<t.lastPickIndex-1){var a=t.i(n-2);if(Math.abs(r.x-i.x)<this.resegmentingDistance&&Math.abs(r.y-i.y)<this.resegmentingDistance&&(Qe(this,a,r,i,o,!0)||Qe(this,a,r,i,o,!1))){var p=t.points.copy();Qe(this,a,r,i,o,!0)?(p.cd(n-2,new Ue(a.x,(o.y+a.y)/2)),p.cd(n+1,new Ue(o.x,(o.y+a.y)/2))):(p.cd(n-2,new Ue((o.x+a.x)/2,a.y)),p.cd(n+1,new Ue((o.x+a.x)/2,o.y))),p.mb(n),p.mb(n-1),t.points=p,t.Wb()}else a=t.i(n+2),Math.abs(i.x-o.x)<this.resegmentingDistance&&Math.abs(i.y-o.y)<this.resegmentingDistance&&(Qe(this,r,i,o,a,!0)||Qe(this,r,i,o,a,!1))&&(p=t.points.copy(),Qe(this,r,i,o,a,!0)?(p.cd(n-1,new Ue(r.x,(r.y+a.y)/2)),p.cd(n+2,new Ue(a.x,(r.y+a.y)/2))):(p.cd(n-1,new Ue((r.x+a.x)/2,r.y)),p.cd(n+2,new Ue((r.x+a.x)/2,a.y))),p.mb(n+1),p.mb(n),t.points=p,t.Wb())}}else a=Ue.alloc(),vt.qh(r.x,r.y,o.x,o.y,i.x,i.y,a)&&a.Bf(i)<this.resegmentingDistance*this.resegmentingDistance&&(r=t.points.copy(),r.mb(n),t.points=r,t.Wb()),Ue.free(a)}e.Ya(),this.transactionResult=this.name,e.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function Qe(e,t,n,r,i,o){return o?Math.abs(t.y-n.y)<e.resegmentingDistance&&Math.abs(n.y-r.y)<e.resegmentingDistance&&Math.abs(r.y-i.y)<e.resegmentingDistance:Math.abs(t.x-n.x)<e.resegmentingDistance&&Math.abs(n.x-r.x)<e.resegmentingDistance&&Math.abs(r.x-i.x)<e.resegmentingDistance}Ye.prototype.reshape=function(e){var t=this.adornedLink;t.uh();var n=this.handle.segmentIndex,r=this.Ru(this.handle);if(t.isOrthogonal)if(n===t.firstPickIndex+1)n=t.firstPickIndex+1,r===Ft?(t.L(n,t.i(n-1).x,e.y),t.L(n+1,t.i(n+2).x,e.y)):r===bt&&(t.L(n,e.x,t.i(n-1).y),t.L(n+1,e.x,t.i(n+2).y));else if(n===t.lastPickIndex-1)n=t.lastPickIndex-1,r===Ft?(t.L(n-1,t.i(n-2).x,e.y),t.L(n,t.i(n+1).x,e.y)):r===bt&&(t.L(n-1,e.x,t.i(n-2).y),t.L(n,e.x,t.i(n+1).y));else{r=n;var i=t.i(r),o=t.i(r-1),a=t.i(r+1);vt.B(o.x,i.x)&&vt.B(i.y,a.y)?(vt.B(o.x,t.i(r-2).x)&&!vt.B(o.y,t.i(r-2).y)?(t.m(r,e.x,o.y),n++,r++):t.L(r-1,e.x,o.y),vt.B(a.y,t.i(r+2).y)&&!vt.B(a.x,t.i(r+2).x)?t.m(r+1,a.x,e.y):t.L(r+1,a.x,e.y)):vt.B(o.y,i.y)&&vt.B(i.x,a.x)?(vt.B(o.y,t.i(r-2).y)&&!vt.B(o.x,t.i(r-2).x)?(t.m(r,o.x,e.y),n++,r++):t.L(r-1,o.x,e.y),vt.B(a.x,t.i(r+2).x)&&!vt.B(a.y,t.i(r+2).y)?t.m(r+1,e.x,a.y):t.L(r+1,e.x,a.y)):vt.B(o.x,i.x)&&vt.B(i.x,a.x)?(vt.B(o.x,t.i(r-2).x)&&!vt.B(o.y,t.i(r-2).y)?(t.m(r,e.x,o.y),n++,r++):t.L(r-1,e.x,o.y),vt.B(a.x,t.i(r+2).x)&&!vt.B(a.y,t.i(r+2).y)?t.m(r+1,e.x,a.y):t.L(r+1,e.x,a.y)):vt.B(o.y,i.y)&&vt.B(i.y,a.y)&&(vt.B(o.y,t.i(r-2).y)&&!vt.B(o.x,t.i(r-2).x)?(t.m(r,o.x,e.y),n++,r++):t.L(r-1,o.x,e.y),vt.B(a.y,t.i(r+2).y)&&!vt.B(a.x,t.i(r+2).x)?t.m(r+1,a.x,e.y):t.L(r+1,a.x,e.y)),t.L(n,e.x,e.y)}else t.L(n,e.x,e.y),r=t.fromNode,i=t.fromPort,r!==null&&(o=r.findVisibleNode(),o!==null&&o!==r&&(r=o,i=r.port)),n===1&&t.computeSpot(!0,i).Mc()&&(o=i.ga(jr,Ue.alloc()),r=t.getLinkPointFromPoint(r,i,o,e,!0,Ue.alloc()),t.L(0,r.x,r.y),Ue.free(o),Ue.free(r)),r=t.toNode,i=t.toPort,r!==null&&(o=r.findVisibleNode(),o!==null&&o!==r&&(r=o,i=r.port)),n===t.pointsCount-2&&t.computeSpot(!1,i).Mc()&&(n=i.ga(jr,Ue.alloc()),e=t.getLinkPointFromPoint(r,i,n,e,!1,Ue.alloc()),t.L(t.pointsCount-1,e.x,e.y),Ue.free(n),Ue.free(e));t.zf()},Ye.prototype.computeReshape=function(e){var t=this.adornedLink,n=this.handle.segmentIndex;switch(this.Ru(this.handle)){case Bt:return e;case Ft:return new Ue(t.i(n).x,e.y);case bt:return new Ue(e.x,t.i(n).y);default:case nt:return t.i(n)}},kn.Object.defineProperties(Ye.prototype,{handleArchetype:{get:function(){return this.o},set:function(e){this.o=e}},midHandleArchetype:{get:function(){return this.u},set:function(e){this.u=e}},handle:{get:function(){return this.j},set:function(e){if(e!==null&&!(e.part instanceof qr))throw Error("new handle is not in an Adornment: "+e);this.j=e}},adornedLink:{get:function(){return this.Ts}},resegmentingDistance:{get:function(){return this.F},set:function(e){this.F=e}},originalPoint:{get:function(){return this.Fw}},originalPoints:{get:function(){return this.Yq}}}),Ye.prototype.setReshapingBehavior=Ye.prototype.om,Ye.prototype.getReshapingBehavior=Ye.prototype.Ru;var nt=new hn(Ye,"None",0),bt=new hn(Ye,"Horizontal",1),Ft=new hn(Ye,"Vertical",2),Bt=new hn(Ye,"All",3);Ye.className="LinkReshapingTool",Ye.None=nt,Ye.Horizontal=bt,Ye.Vertical=Ft,Ye.All=Bt,Gi("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(e){this.gb("LinkReshaping",e,this.mouseDownTools)});function Rt(){xr.call(this),this.name="Resizing",this.o=new Yt(1,1).freeze(),this.j=new Yt(9999,9999).freeze(),this.yg=new Yt(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var e=new vr;e.alignmentFocus=jr,e.figure="Rectangle",e.desiredSize=pi,e.fill="lightblue",e.stroke="dodgerblue",e.strokeWidth=1,e.cursor="pointer",this.F=e,this.u=null,this.Xq=new Ue,this.Dw=new Yt,this.Tn=new Ue,this.rt=new Yt(0,0),this.qt=new Yt(1/0,1/0),this.pt=new Yt(1,1)}Tn(Rt,xr),Rt.prototype.updateAdornments=function(e){if(!(e===null||e instanceof cn)){if(e.isSelected&&!this.diagram.isReadOnly){var t=e.resizeObject,n=e.Pj(this.name);if(t!==null&&e.canResize()&&e.actualBounds.w()&&e.isVisible()&&t.actualBounds.w()&&t.Ed()&&((n===null||n.adornedObject!==t)&&(n=this.makeAdornment(t)),n!==null)){t=t.li(),Th(e)&&this.updateResizeHandles(n,t),e.bh(this.name,n);return}}e.Jf(this.name)}},Rt.prototype.makeAdornment=function(e){var t=e.part.resizeAdornmentTemplate;if(t===null){t=new qr,t.type=qt.Spot,t.locationSpot=jr;var n=new _a;n.isPanelMain=!0,t.add(n),t.add(this.makeHandle(e,No)),t.add(this.makeHandle(e,go)),t.add(this.makeHandle(e,ks)),t.add(this.makeHandle(e,Jo)),t.add(this.makeHandle(e,Vs)),t.add(this.makeHandle(e,ws)),t.add(this.makeHandle(e,js)),t.add(this.makeHandle(e,Ks))}else if(ql(t),t=t.copy(),t===null)return null;return t.adornedObject=e,t},Rt.prototype.makeHandle=function(e,t){return e=this.handleArchetype,e===null?null:(e=e.copy(),e.alignment=t,e)},Rt.prototype.updateResizeHandles=function(e,t){if(e!==null){if(!e.alignment.Xb()&&(e.cursor==="pointer"||0<e.cursor.indexOf("resize")))e:{var n=e.alignment;if(n.Mc()&&(n=jr),0>=n.x)t=0>=n.y?t+225:1<=n.y?t+135:t+180;else if(1<=n.x)0>=n.y?t+=315:1<=n.y&&(t+=45);else if(0>=n.y)t+=270;else if(1<=n.y)t+=90;else break e;0>t?t+=360:360<=t&&(t-=360),e.cursor=22.5>t?"e-resize":67.5>t?"se-resize":112.5>t?"s-resize":157.5>t?"sw-resize":202.5>t?"w-resize":247.5>t?"nw-resize":292.5>t?"n-resize":337.5>t?"ne-resize":"e-resize"}else if(e instanceof qt)for(e=e.elements;e.next();)this.updateResizeHandles(e.value,t)}},Rt.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;return!e.isReadOnly&&e.allowResize&&e.lastInput.left?this.findToolHandleAt(e.firstInput.documentPoint,this.name)!==null:!1},Rt.prototype.doActivate=function(){var e=this.diagram;this.handle===null&&(this.handle=this.findToolHandleAt(e.firstInput.documentPoint,this.name)),this.handle!==null&&(this.adornedObject=this.handle.part.adornedObject,this.adornedObject!==null&&(e.isMouseCaptured=!0,e.animationManager.Cc(),this.Ea(this.name),this.Xq.set(this.adornedObject.ga(this.handle.alignment.gv())),this.Tn.set(this.adornedObject.part.location),this.Dw.set(this.adornedObject.desiredSize),this.pt=this.computeCellSize(),this.rt=this.computeMinSize(),this.qt=this.computeMaxSize(),this.isActive=!0))},Rt.prototype.doDeactivate=function(){var e=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=e.isMouseCaptured=!1},Rt.prototype.stopTransaction=function(){var e=this.diagram,t=xr.prototype.stopTransaction.call(this);return t&&e.undoManager.transactionToUndo!==null&&e.undoManager.transactionToUndo.ak(),t},Rt.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},Rt.prototype.doMouseMove=function(){var e=this.diagram;if(this.isActive){var t=this.rt,n=this.qt,r=this.pt,i=this.adornedObject.qs(e.lastInput.documentPoint,Ue.alloc()),o=this.computeReshape();t=this.computeResize(i,this.handle.alignment,t,n,r,o),this.resize(t),e.bd(),Ue.free(i)}},Rt.prototype.doMouseUp=function(){var e=this.diagram;if(this.isActive){var t=this.rt,n=this.qt,r=this.pt,i=this.adornedObject.qs(e.lastInput.documentPoint,Ue.alloc()),o=this.computeReshape();t=this.computeResize(i,this.handle.alignment,t,n,r,o),this.resize(t),Ue.free(i),e.Ya(),this.transactionResult=this.name,e.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},Rt.prototype.resize=function(e){var t=this.diagram,n=this.adornedObject;if(n!==null){if(n.desiredSize=e.size,e=n.part,e.Va(),n=n.ga(this.handle.alignment.gv()),e instanceof lr){var r=new tn;if(r.add(e),!this.dragsMembers&&e.placeholder===null){var i=new C;i.dragsMembers=!1}t.moveParts(r,this.oppositePoint.copy().re(n),!0,i)}else e.location=e.location.copy().re(n).add(this.oppositePoint);t.bd()}},Rt.prototype.computeResize=function(e,t,n,r,i,o){t.Mc()&&(t=jr);var a=this.adornedObject.naturalBounds,p=a.x,w=a.y,O=a.x+a.width,D=a.y+a.height,X=1;if(!o){X=a.width;var re=a.height;0>=X&&(X=1),0>=re&&(re=1),X=re/X}return re=Ue.alloc(),vt.No(e.x,e.y,p,w,i.width,i.height,re),e=a.copy(),0>=t.x?0>=t.y?(e.x=Math.max(re.x,O-r.width),e.x=Math.min(e.x,O-n.width),e.width=Math.max(O-e.x,n.width),e.y=Math.max(re.y,D-r.height),e.y=Math.min(e.y,D-n.height),e.height=Math.max(D-e.y,n.height),o||(1<=e.height/e.width?(e.height=Math.max(Math.min(X*e.width,r.height),n.height),e.width=e.height/X):(e.width=Math.max(Math.min(e.height/X,r.width),n.width),e.height=X*e.width),e.x=O-e.width,e.y=D-e.height)):1<=t.y?(e.x=Math.max(re.x,O-r.width),e.x=Math.min(e.x,O-n.width),e.width=Math.max(O-e.x,n.width),e.height=Math.max(Math.min(re.y-w,r.height),n.height),o||(1<=e.height/e.width?(e.height=Math.max(Math.min(X*e.width,r.height),n.height),e.width=e.height/X):(e.width=Math.max(Math.min(e.height/X,r.width),n.width),e.height=X*e.width),e.x=O-e.width)):(e.x=Math.max(re.x,O-r.width),e.x=Math.min(e.x,O-n.width),e.width=O-e.x,o||(e.height=Math.max(Math.min(X*e.width,r.height),n.height),e.width=e.height/X,e.y=w+.5*(D-w-e.height))):1<=t.x?0>=t.y?(e.width=Math.max(Math.min(re.x-p,r.width),n.width),e.y=Math.max(re.y,D-r.height),e.y=Math.min(e.y,D-n.height),e.height=Math.max(D-e.y,n.height),o||(1<=e.height/e.width?(e.height=Math.max(Math.min(X*e.width,r.height),n.height),e.width=e.height/X):(e.width=Math.max(Math.min(e.height/X,r.width),n.width),e.height=X*e.width),e.y=D-e.height)):1<=t.y?(e.width=Math.max(Math.min(re.x-p,r.width),n.width),e.height=Math.max(Math.min(re.y-w,r.height),n.height),o||(1<=e.height/e.width?(e.height=Math.max(Math.min(X*e.width,r.height),n.height),e.width=e.height/X):(e.width=Math.max(Math.min(e.height/X,r.width),n.width),e.height=X*e.width))):(e.width=Math.max(Math.min(re.x-p,r.width),n.width),o||(e.height=Math.max(Math.min(X*e.width,r.height),n.height),e.width=e.height/X,e.y=w+.5*(D-w-e.height))):0>=t.y?(e.y=Math.max(re.y,D-r.height),e.y=Math.min(e.y,D-n.height),e.height=D-e.y,o||(e.width=Math.max(Math.min(e.height/X,r.width),n.width),e.height=X*e.width,e.x=p+.5*(O-p-e.width))):1<=t.y&&(e.height=Math.max(Math.min(re.y-w,r.height),n.height),o||(e.width=Math.max(Math.min(e.height/X,r.width),n.width),e.height=X*e.width,e.x=p+.5*(O-p-e.width))),Ue.free(re),e},Rt.prototype.computeReshape=function(){var e=Wt;return this.adornedObject instanceof vr&&(e=Pv(this.adornedObject)),!(e===Dn||this.diagram.lastInput.shift)},Rt.prototype.computeMinSize=function(){var e=this.adornedObject.minSize.copy(),t=this.minSize;return!isNaN(t.width)&&t.width>e.width&&(e.width=t.width),!isNaN(t.height)&&t.height>e.height&&(e.height=t.height),e},Rt.prototype.computeMaxSize=function(){var e=this.adornedObject.maxSize.copy(),t=this.maxSize;return!isNaN(t.width)&&t.width<e.width&&(e.width=t.width),!isNaN(t.height)&&t.height<e.height&&(e.height=t.height),e},Rt.prototype.computeCellSize=function(){var e=new Yt(NaN,NaN),t=this.adornedObject.part;return t!==null&&(t=t.resizeCellSize,!isNaN(t.width)&&0<t.width&&(e.width=t.width),!isNaN(t.height)&&0<t.height&&(e.height=t.height)),t=this.cellSize,isNaN(e.width)&&!isNaN(t.width)&&0<t.width&&(e.width=t.width),isNaN(e.height)&&!isNaN(t.height)&&0<t.height&&(e.height=t.height),t=this.diagram,(isNaN(e.width)||isNaN(e.height))&&t&&(t=t.grid,t!==null&&t.visible&&this.isGridSnapEnabled&&(t=t.gridCellSize,isNaN(e.width)&&!isNaN(t.width)&&0<t.width&&(e.width=t.width),isNaN(e.height)&&!isNaN(t.height)&&0<t.height&&(e.height=t.height))),(isNaN(e.width)||e.width===0||e.width===1/0)&&(e.width=1),(isNaN(e.height)||e.height===0||e.height===1/0)&&(e.height=1),e},kn.Object.defineProperties(Rt.prototype,{handleArchetype:{get:function(){return this.F},set:function(e){this.F=e}},handle:{get:function(){return this.u},set:function(e){if(e!==null&&!(e.part instanceof qr))throw Error("new handle is not in an Adornment: "+e);this.u=e}},adornedObject:{get:function(){return this.ue},set:function(e){if(e!==null&&e.part instanceof qr)throw Error("new handle must not be in an Adornment: "+e);this.ue=e}},minSize:{get:function(){return this.o},set:function(e){if(!this.o.D(e)){var t=e.width;isNaN(t)&&(t=0),e=e.height,isNaN(e)&&(e=0),this.o.h(t,e)}}},maxSize:{get:function(){return this.j},set:function(e){if(!this.j.D(e)){var t=e.width;isNaN(t)&&(t=1/0),e=e.height,isNaN(e)&&(e=1/0),this.j.h(t,e)}}},cellSize:{get:function(){return this.yg},set:function(e){this.yg.D(e)||this.yg.assign(e)}},isGridSnapEnabled:{get:function(){return this.V},set:function(e){this.V=e}},dragsMembers:{get:function(){return this.ia},set:function(e){this.ia=e}},oppositePoint:{get:function(){return this.Xq},set:function(e){this.Xq.D(e)||this.Xq.assign(e)}},originalDesiredSize:{get:function(){return this.Dw}},originalLocation:{get:function(){return this.Tn}}}),Rt.className="ResizingTool",Gi("resizingTool",function(){return this.findTool("Resizing")},function(e){this.gb("Resizing",e,this.mouseDownTools)});function Zt(){xr.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new Ue,this.ue=null;var e=new vr;e.figure="Ellipse",e.desiredSize=Pi,e.fill="lightblue",e.stroke="dodgerblue",e.strokeWidth=1,e.cursor="pointer",this.o=e,this.j=null,this.Cw=0,this.kr=new Ue(NaN,NaN),this.u=0,this.F=50}Tn(Zt,xr),Zt.prototype.updateAdornments=function(e){if(e!==null){if(e.ph()){var t=e.rotateObject;if(t===e||t===e.path||t.isPanelMain)return}if(e.isSelected&&!this.diagram.isReadOnly&&(t=e.rotateObject,t!==null&&e.canRotate()&&e.actualBounds.w()&&e.isVisible()&&t.actualBounds.w()&&t.Ed())){var n=e.Pj(this.name);if((n===null||n.adornedObject!==t)&&(n=this.makeAdornment(t)),n!==null){n.angle=t.li(),n.placeholder===null&&(n.location=this.computeAdornmentLocation(t)),e.bh(this.name,n);return}}e.Jf(this.name)}},Zt.prototype.makeAdornment=function(e){var t=e.part.rotateAdornmentTemplate;if(t===null){t=new qr,t.type=qt.Position,t.locationSpot=jr;var n=this.handleArchetype;n!==null&&t.add(n.copy())}else if(ql(t),t=t.copy(),t===null)return null;return t.adornedObject=e,t},Zt.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;return!e.isReadOnly&&e.allowRotate&&e.lastInput.left?this.findToolHandleAt(e.firstInput.documentPoint,this.name)!==null:!1},Zt.prototype.doActivate=function(){var e=this.diagram;if(this.adornedObject===null){if(this.handle===null&&(this.handle=this.findToolHandleAt(e.firstInput.documentPoint,this.name)),this.handle===null)return;this.adornedObject=this.handle.part.adornedObject}this.adornedObject!==null&&(e.isMouseCaptured=!0,e.delaysLayout=!0,this.Ea(this.name),this.Cw=this.adornedObject.angle,this.kr=this.computeRotationPoint(this.adornedObject),this.Tn=this.adornedObject.part.location.copy(),this.isActive=!0)},Zt.prototype.computeRotationPoint=function(e){var t=e.part,n=t.locationObject;return t.rotationSpot.sb()?e.ga(t.rotationSpot):e===t||e===n?n.ga(t.locationSpot):e.ga(jr)},Zt.prototype.computeAdornmentLocation=function(e){var t=this.rotationPoint;t.w()||(t=this.computeRotationPoint(e)),t=e.qs(t);var n=this.handleAngle;0>n?n+=360:360<=n&&(n-=360),n=Math.round(45*Math.round(n/45));var r=this.handleDistance;return n===0?t.x=e.naturalBounds.width+r:n===45?(t.x=e.naturalBounds.width+r,t.y=e.naturalBounds.height+r):n===90?t.y=e.naturalBounds.height+r:n===135?(t.x=-r,t.y=e.naturalBounds.height+r):n===180?t.x=-r:n===225?(t.x=-r,t.y=-r):n===270?t.y=-r:n===315&&(t.x=e.naturalBounds.width+r,t.y=-r),e.ga(t)},Zt.prototype.doDeactivate=function(){var e=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Ue(NaN,NaN),this.isActive=e.isMouseCaptured=!1},Zt.prototype.stopTransaction=function(){var e=this.diagram,t=xr.prototype.stopTransaction.call(this);return t&&e.undoManager.transactionToUndo!==null&&e.undoManager.transactionToUndo.ak(),t},Zt.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Zt.prototype.doMouseMove=function(){var e=this.diagram;this.isActive&&(e=this.computeRotate(e.lastInput.documentPoint),this.rotate(e))},Zt.prototype.doMouseUp=function(){var e=this.diagram;if(this.isActive){e.delaysLayout=!1;var t=this.computeRotate(e.lastInput.documentPoint);this.rotate(t),e.Ya(),this.transactionResult=this.name,e.R("PartRotated",this.adornedObject,this.originalAngle)}this.stopTool()},Zt.prototype.rotate=function(e){var t=this.adornedObject;if(t!==null){t.angle=e,t=t.part,t.Va();var n=t.locationObject,r=t.rotateObject;(n===r||n.rg(r))&&(n=this.Tn.copy(),t.location=n.re(this.rotationPoint).rotate(e-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},Zt.prototype.computeRotate=function(e){e=this.rotationPoint.ab(e)-this.handleAngle;var t=this.adornedObject.panel;t!==null&&(e-=t.li()),360<=e?e-=360:0>e&&(e+=360),t=Math.min(Math.abs(this.snapAngleMultiple),180);var n=Math.min(Math.abs(this.snapAngleEpsilon),t/2);return!this.diagram.lastInput.shift&&0<t&&0<n&&(e%t<n?e=Math.floor(e/t)*t:e%t>t-n&&(e=(Math.floor(e/t)+1)*t)),360<=e?e-=360:0>e&&(e+=360),e},kn.Object.defineProperties(Zt.prototype,{handleArchetype:{get:function(){return this.o},set:function(e){this.o=e}},handle:{get:function(){return this.j},set:function(e){if(e!==null&&!(e.part instanceof qr))throw Error("new handle is not in an Adornment: "+e);this.j=e}},adornedObject:{get:function(){return this.ue},set:function(e){if(e!==null&&e.part instanceof qr)throw Error("new handle must not be in an Adornment: "+e);this.ue=e}},snapAngleMultiple:{get:function(){return this.ia},set:function(e){this.ia=e}},snapAngleEpsilon:{get:function(){return this.V},set:function(e){this.V=e}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(e){this.kr=e.copy()}},handleAngle:{get:function(){return this.u},set:function(e){this.u=e}},handleDistance:{get:function(){return this.F},set:function(e){this.F=e}}}),Zt.className="RotatingTool",Gi("rotatingTool",function(){return this.findTool("Rotating")},function(e){this.gb("Rotating",e,this.mouseDownTools)});function Jt(){xr.call(this),this.name="ClickSelecting"}Tn(Jt,xr),Jt.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Jt.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Jt.className="ClickSelectingTool";function zt(){xr.call(this),this.name="Action",this.pk=null}Tn(zt,xr),zt.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram,t=e.lastInput,n=e.ic(t.documentPoint,function(r){for(;r.panel!==null&&!r.isActionable;)r=r.panel;return r});return n!==null&&n.isActionable?(this.pk=n,e.Ck=e.ic(t.documentPoint,null,null),!0):!1},zt.prototype.doMouseDown=function(){if(this.isActive){var e=this.diagram.lastInput,t=this.pk;t!==null&&(e.targetObject=t,t.actionDown!==null&&t.actionDown(e,t))}else this.canStart()&&this.doActivate()},zt.prototype.doMouseMove=function(){if(this.isActive){var e=this.diagram.lastInput,t=this.pk;t!==null&&(e.targetObject=t,t.actionMove!==null&&t.actionMove(e,t))}},zt.prototype.doMouseUp=function(){if(this.isActive){var e=this.diagram.lastInput,t=this.pk;if(t===null)return;e.targetObject=t,t.actionUp!==null&&t.actionUp(e,t),this.standardMouseClick(function(n){for(;n.panel!==null&&(!n.isActionable||n!==t);)n=n.panel;return n},function(n){return n===t})}this.stopTool()},zt.prototype.doCancel=function(){var e=this.diagram.lastInput,t=this.pk;t!==null&&(e.targetObject=t,t.actionCancel!==null&&t.actionCancel(e,t),this.stopTool())},zt.prototype.doStop=function(){this.pk=null},zt.className="ActionTool";function k(){xr.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Ue(0,0)}Tn(k,xr),k.prototype.canStart=function(){if(!this.isEnabled||this.archetypeNodeData===null)return!1;var e=this.diagram;if(e.isReadOnly||e.isModelReadOnly||!e.allowInsert||!e.lastInput.left||this.isBeyondDragSize())return!1;if(this.isDoubleClick){if(e.lastInput.clickCount===1&&(this.mw=e.lastInput.viewPoint.copy()),e.lastInput.clickCount!==2||this.isBeyondDragSize(this.mw))return!1}else if(e.lastInput.clickCount!==1)return!1;return!(e.currentTool!==this&&e.Ol(e.lastInput.documentPoint,!0)!==null)},k.prototype.doMouseUp=function(){var e=this.diagram;this.isActive&&this.insertPart(e.lastInput.documentPoint),this.stopTool()},k.prototype.insertPart=function(e){var t=this.diagram,n=this.archetypeNodeData;if(n===null)return null;var r=null;try{if(t.R("ChangingSelection",t.selection),this.Ea(this.name),n instanceof zn)n.Zc()&&(ql(n),r=n.copy(),r!==null&&t.add(r));else if(n!==null){var i=t.model.copyNodeData(n);bn(i)&&(t.model.xf(i),r=t.Lc(i))}if(r!==null){var o=Ue.allocAt(e.x,e.y);this.isGridSnapEnabled&&od(this.diagram,r,e,o),r.location=o,t.allowSelect&&(t.clearSelection(!0),r.isSelected=!0),Ue.free(o)}t.Ya(),this.transactionResult=this.name,t.R("PartCreated",r)}finally{this.stopTransaction(),t.R("ChangedSelection",t.selection)}return r},kn.Object.defineProperties(k.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(e){this.Ri=e}},isDoubleClick:{get:function(){return this.o},set:function(e){this.o=e}},isGridSnapEnabled:{get:function(){return this.j},set:function(e){this.j=e}}}),k.className="ClickCreatingTool";function U(){xr.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var e=new zn;e.layerName="Tool",e.selectable=!1;var t=new vr;t.name="SHAPE",t.figure="Rectangle",t.fill=null,t.stroke="magenta",e.add(t),this.j=e}Tn(U,xr),U.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;if(!e.allowSelect)return!1;var t=e.lastInput;return!(!t.left||e.currentTool!==this&&(!this.isBeyondDragSize()||t.timestamp-e.firstInput.timestamp<this.delay||e.Ol(t.documentPoint,!0)!==null))},U.prototype.doActivate=function(){var e=this.diagram;this.isActive=!0,e.isMouseCaptured=!0,e.skipsUndoManager=!0,e.add(this.box),this.doMouseMove()},U.prototype.doDeactivate=function(){var e=this.diagram;e.ug(),e.remove(this.box),e.skipsUndoManager=!1,this.isActive=e.isMouseCaptured=!1},U.prototype.doMouseMove=function(){var e=this.diagram;if(this.isActive&&this.box!==null){var t=this.computeBoxBounds(),n=this.box.fb("SHAPE");n===null&&(n=this.box.Pb());var r=Yt.alloc().h(t.width,t.height);n.desiredSize=r,this.box.mm(t.x,t.y,!1),Yt.free(r),(e.allowHorizontalScroll||e.allowVerticalScroll)&&e.gs(e.lastInput.viewPoint)}},U.prototype.doMouseUp=function(){if(this.isActive){var e=this.diagram;e.remove(this.box);try{e.currentCursor="wait",e.R("ChangingSelection",e.selection),this.selectInRect(this.computeBoxBounds()),e.R("ChangedSelection",e.selection)}finally{e.currentCursor=""}}this.stopTool()},U.prototype.computeBoxBounds=function(){var e=this.diagram;return new Nt(e.firstInput.documentPoint,e.lastInput.documentPoint)},U.prototype.selectInRect=function(e){var t=this.diagram,n=t.lastInput;if(e=t.ux(e,this.isPartialInclusion),Wo?n.meta:n.control)if(n.shift)for(e=e.iterator;e.next();)t=e.value,t.isSelected&&(t.isSelected=!1);else for(e=e.iterator;e.next();)t=e.value,t.isSelected=!t.isSelected;else if(n.shift)for(e=e.iterator;e.next();)t=e.value,t.isSelected||(t.isSelected=!0);else{for(n=new tn,t=t.selection.iterator;t.next();){var r=t.value;e.contains(r)||n.add(r)}for(t=n.iterator;t.next();)t.value.isSelected=!1;for(e=e.iterator;e.next();)t=e.value,t.isSelected||(t.isSelected=!0)}},kn.Object.defineProperties(U.prototype,{delay:{get:function(){return this.Ik},set:function(e){this.Ik=e}},isPartialInclusion:{get:function(){return this.o},set:function(e){this.o=e}},box:{get:function(){return this.j},set:function(e){this.j=e}}}),U.className="DragSelectingTool";function Ce(){xr.call(this),this.name="Panning",this.Xt=new Ue,this.xy=new Ue,this.xg=!1;var e=this;this.Kw=function(){var t=e.diagram;t!==null&&t.removeEventListener(vn.document,"scroll",e.Kw,!1),e.stopTool()}}Tn(Ce,xr),Ce.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;return!(!e.allowHorizontalScroll&&!e.allowVerticalScroll||!e.lastInput.left||e.currentTool!==this&&!this.isBeyondDragSize())},Ce.prototype.doActivate=function(){var e=this.diagram;this.xg?(e.lastInput.bubbles=!0,e.addEventListener(vn.document,"scroll",this.Kw,!1)):(e.currentCursor="move",e.isMouseCaptured=!0,this.Xt.assign(e.position)),this.isActive=!0},Ce.prototype.doDeactivate=function(){var e=this.diagram;e.currentCursor="",this.isActive=e.isMouseCaptured=!1},Ce.prototype.doCancel=function(){var e=this.diagram;e.position=this.Xt,e.isMouseCaptured=!1,this.stopTool()},Ce.prototype.doMouseMove=function(){this.move()},Ce.prototype.doMouseUp=function(){this.move(),this.stopTool()},Ce.prototype.move=function(){var e=this.diagram;if(this.isActive&&e)if(this.xg)e.lastInput.bubbles=!0;else{var t=e.position,n=e.firstInput.documentPoint,r=e.lastInput.documentPoint,i=t.x+n.x-r.x;n=t.y+n.y-r.y,e.allowHorizontalScroll||(i=t.x),e.allowVerticalScroll||(n=t.y),e.position=this.xy.h(i,n)}},kn.Object.defineProperties(Ce.prototype,{bubbles:{get:function(){return this.xg},set:function(e){this.xg=e}},originalPosition:{get:function(){return this.Xt}}}),Ce.className="PanningTool",Gi("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(e){this.gb("ClickCreating",e,this.mouseUpTools)}),Gi("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(e){this.gb("ClickSelecting",e,this.mouseUpTools)}),Gi("panningTool",function(){return this.findTool("Panning")},function(e){this.gb("Panning",e,this.mouseMoveTools)}),Gi("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(e){this.gb("DragSelecting",e,this.mouseMoveTools)}),Gi("actionTool",function(){return this.findTool("Action")},function(e){this.gb("Action",e,this.mouseDownTools)});function et(){this.F=this.u=this.j=this.o=null}kn.Object.defineProperties(et.prototype,{mainElement:{get:function(){return this.u},set:function(e){this.u=e}},show:{get:function(){return this.o},set:function(e){this.o!==e&&(this.o=e)}},hide:{get:function(){return this.j},set:function(e){this.j!==e&&(this.j=e)}},valueFunction:{get:function(){return this.F},set:function(e){this.F=e}}}),et.className="HTMLInfo";function It(e,t,n){this.text=e,this.hx=t,this.visible=n}It.className="ContextMenuButtonInfo";function Ut(){xr.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new Ue,this.jt=null,this.Et=!1;var e=this;this.tu=function(){e.stopTool()}}Tn(Ut,xr);function pn(e){var t=new et;t.show=function(i,o,a){a.showDefaultContextMenu()},t.hide=function(i,o){o.hideDefaultContextMenu()},ci=t,e.tu=function(){e.stopTool()},t=mi("div");var n=mi("div");t.style.cssText="top: 0px;z-index:10002;position: fixed;display: none;text-align: center;left: 25%;width: 50%;background-color: #F5F5F5;padding: 16px;border: 16px solid #444;border-radius: 10px;margin-top: 10px",n.style.cssText="z-index:10001;position: fixed;display: none;top: 0;left: 0;width: 100%;height: 100%;background-color: black;opacity: 0.8;";var r=mi("style");vn.document.getElementsByTagName("head")[0].appendChild(r),r.sheet.insertRule(".goCXul { list-style: none; }",0),r.sheet.insertRule(".goCXli {font:700 1.5em Helvetica, Arial, sans-serif;position: relative;min-width: 60px; }",0),r.sheet.insertRule(".goCXa {color: #444;display: inline-block;padding: 4px;text-decoration: none;margin: 2px;border: 1px solid gray;border-radius: 10px; }",0),r=e.diagram,r!==null&&(r.addEventListener(t,"contextmenu",wn,!1),r.addEventListener(t,"selectstart",wn,!1),r.addEventListener(n,"contextmenu",wn,!1)),t.className="goCXforeground",n.className="goCXbackground",vn.document.body&&(vn.document.body.appendChild(t),vn.document.body.appendChild(n)),lo=t,Uo=n,qi=!0}function wn(e){return e.preventDefault(),!1}Ut.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;return this.isBeyondDragSize()||!e.lastInput.right||1<e.lastInput.clickCount?!1:!!(e.lastInput.isTouchEvent&&this.defaultTouchContextMenu!==null||this.findObjectWithContextMenu()!==null)},Ut.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},Ut.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},Ut.prototype.findObjectWithContextMenu=function(e){e===void 0&&(e=null);var t=this.diagram,n=t.lastInput,r=null;if(e instanceof Ct||(e instanceof gt?r=e:r=t.ic(n.documentPoint,null,function(i){return!i.layer.isTemporary})),r!==null){for(e=r;e!==null;){if(e.contextMenu!==null)return e;e=e.panel}if(t.lastInput.isTouchEvent&&this.defaultTouchContextMenu)return r.part}else if(t.contextMenu!==null)return t;return null},Ut.prototype.doActivate=function(){},Ut.prototype.doMouseDown=function(){if(xr.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof qr){var e=this.diagram.toolManager.findTool("Action");e!==null&&e.canStart()&&(e.doActivate(),e.doMouseDown(),e.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&fn(this)},Ut.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof qr){var e=this.diagram.toolManager.findTool("Action");e!==null&&e.canStart()&&(e.doActivate(),e.doCancel(),e.doDeactivate())}fn(this)};function fn(e){var t=e.diagram;if(e.isActive){var n=e.currentContextMenu;if(n!==null){var r=null;n instanceof et||(r=t.ic(t.lastInput.documentPoint,null,null),r!==null&&r.rg(n)&&e.standardMouseClick(null,null)),e.maybeStopTool(r)}}else e.canStart()&&(Tr(e,!0),e.isActive||e.stopTool())}Ut.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function Tr(e,t,n){if(n===void 0&&(n=null),!e.Et&&(e.Et=!0,t&&e.standardMouseSelect(),t=e.standardMouseClick(),e.Et=!1,!t)){if(e.isActive=!0,t=ci,n===null&&(n=e.findObjectWithContextMenu()),n!==null){var r=n.contextMenu;r!==null?(e.currentObject=n instanceof gt?n:null,e.showContextMenu(r,e.currentObject)):t!==null&&e.showContextMenu(t,e.currentObject)}else t!==null&&e.showContextMenu(t,null);e.currentContextMenu instanceof qr&&!e.currentContextMenu.visible&&e.stopTool()}}Ut.prototype.doMouseMove=function(){var e=this.diagram.toolManager.findTool("Action");e!==null&&e.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},Ut.prototype.showContextMenu=function(e,t){var n=this.diagram;if(e!==this.currentContextMenu&&this.hideContextMenu(),e instanceof qr){e.layerName="Tool",e.selectable=!1,e.scale=1/n.scale,e.category=this.name,e.placeholder!==null&&(e.placeholder.scale=n.scale);var r=e.diagram;r!==null&&r!==n&&r.remove(e),n.add(e),t!==null?e.adornedObject=t:e.data=n.model,e.Va(),this.positionContextMenu(e,t)}else e instanceof et&&e.show(t,n,this);this.currentContextMenu=e},Ut.prototype.positionContextMenu=function(e){if(e.placeholder===null){var t=this.diagram,n=t.lastInput.documentPoint.copy(),r=e.measuredBounds,i=t.viewportBounds;t.lastInput.isTouchEvent&&(n.x-=r.width),n.x+r.width>i.right&&(n.x-=r.width+5/t.scale),n.x<i.x&&(n.x=i.x),n.y+r.height>i.bottom&&(n.y-=r.height+5/t.scale),n.y<i.y&&(n.y=i.y),e.position=n}},Ut.prototype.hideContextMenu=function(){var e=this.diagram,t=this.currentContextMenu;t!==null&&(t instanceof qr?(e.remove(t),this.ht!==null&&this.ht.Jf(t.category),t.data=null,t.adornedObject=null):t instanceof et&&(t.hide!==null?t.hide(e,this):t.mainElement!==null&&(t.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function Li(e){var t=new tn;return t.add(new It("Copy",function(n){n.commandHandler.copySelection()},function(n){return n.commandHandler.canCopySelection()})),t.add(new It("Cut",function(n){n.commandHandler.cutSelection()},function(n){return n.commandHandler.canCutSelection()})),t.add(new It("Delete",function(n){n.commandHandler.deleteSelection()},function(n){return n.commandHandler.canDeleteSelection()})),t.add(new It("Paste",function(n){n.commandHandler.pasteSelection(e.mouseDownPoint)},function(n){return n.commandHandler.canPasteSelection(e.mouseDownPoint)})),t.add(new It("Select All",function(n){n.commandHandler.selectAll()},function(n){return n.commandHandler.canSelectAll()})),t.add(new It("Undo",function(n){n.commandHandler.undo()},function(n){return n.commandHandler.canUndo()})),t.add(new It("Redo",function(n){n.commandHandler.redo()},function(n){return n.commandHandler.canRedo()})),t.add(new It("Scroll To Part",function(n){n.commandHandler.scrollToPart()},function(n){return n.commandHandler.canScrollToPart()})),t.add(new It("Zoom To Fit",function(n){n.commandHandler.zoomToFit()},function(n){return n.commandHandler.canZoomToFit()})),t.add(new It("Reset Zoom",function(n){n.commandHandler.resetZoom()},function(n){return n.commandHandler.canResetZoom()})),t.add(new It("Group Selection",function(n){n.commandHandler.groupSelection()},function(n){return n.commandHandler.canGroupSelection()})),t.add(new It("Ungroup Selection",function(n){n.commandHandler.ungroupSelection()},function(n){return n.commandHandler.canUngroupSelection()})),t.add(new It("Edit Text",function(n){n.commandHandler.editTextBlock()},function(n){return n.commandHandler.canEditTextBlock()})),t}Ut.prototype.showDefaultContextMenu=function(){var e=this.diagram;this.jt===null&&(this.jt=Li(this)),lo.innerHTML="",Uo.addEventListener("pointerdown",this.tu,!1);var t=this,n=mi("ul");n.className="goCXul",lo.appendChild(n),n.innerHTML="";for(var r=this.jt.iterator;r.next();){var i=r.value,o=i.visible;if(typeof i.hx=="function"&&(typeof o!="function"||o(e))){o=mi("li"),o.className="goCXli";var a=mi("a");a.className="goCXa",a.href="#",a.ky=i.hx,a.addEventListener("pointerdown",function(p){return this.ky(e),t.stopTool(),p.preventDefault(),!1},!1),a.textContent=i.text,o.appendChild(a),n.appendChild(o)}}lo.style.display="block",Uo.style.display="block"},Ut.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===ci){lo.style.display="none",Uo.style.display="none";var e=this.diagram;e!==null&&e.removeEventListener(Uo,"pointerdown",this.tu,!1),this.currentContextMenu=null}},kn.Object.defineProperties(Ut.prototype,{currentContextMenu:{get:function(){return this.j},set:function(e){this.j=e,this.ht=e instanceof qr?e.adornedPart:null}},defaultTouchContextMenu:{get:function(){return qi===!1&&ci===null&&Po&&pn(this),ci},set:function(e){e===null&&(qi=!0),ci=e}},currentObject:{get:function(){return this.o},set:function(e){this.o=e}},mouseDownPoint:{get:function(){return this.yw}}});var ci=null,qi=!1,Uo=null,lo=null;Ut.className="ContextMenuTool",Gi("contextMenuTool",function(){return this.findTool("ContextMenu")},function(e){this.gb("ContextMenu",e,this.mouseUpTools)});function $n(){xr.call(this),this.name="TextEditing",this.Zh=new Vi,this.ia=null,this.V=Rs,this.vj=null,this.qa=en,this.u=1,this.F=!0,this.o=null,this.j=new et,this.kt=null,Mi(this,this.j)}Tn($n,xr);function Mi(e,t){if(Po){var n=mi("textarea");e.kt=n,n.addEventListener("input",function(){if(e.textBlock!==null){var r=e.Lx(this.value);this.style.width=20+r.measuredBounds.width*this.wA+"px",this.rows=r.lineCount}},!1),n.addEventListener("keydown",function(r){if(!r.isComposing&&e.textBlock!==null){var i=r.key;i==="Enter"?(e.textBlock.isMultiline===!1&&r.preventDefault(),e.acceptText(Qs)):i==="Tab"?(e.acceptText(Mo),r.preventDefault()):i==="Escape"&&(e.doCancel(),e.diagram!==null&&e.diagram.doFocus())}},!1),n.addEventListener("focus",function(){if(e.currentTextEditor!==null&&e.state!==en){var r=e.kt;e.qa===Is&&(e.qa=Wa),typeof r.select=="function"&&e.selectsTextOnActivate&&(r.select(),r.setSelectionRange(0,9999))}},!1),n.addEventListener("blur",function(){if(e.currentTextEditor!==null&&e.state!==en){var r=e.kt;typeof r.focus=="function"&&r.focus(),typeof r.select=="function"&&e.selectsTextOnActivate&&(r.select(),r.setSelectionRange(0,9999))}},!1),t.valueFunction=function(){return n.value},t.mainElement=n,t.show=function(r,i,o){if(r instanceof Vi&&o instanceof $n)if(o.state===Ol)n.style.border="3px solid red",n.focus();else{var a=r.ga(jr),p=i.position,w=i.scale,O=r.Df()*w;O<o.minimumEditorScale&&(O=o.minimumEditorScale);var D=r.naturalBounds.width*O+6,X=r.naturalBounds.height*O+2,re=(a.x-p.x)*w;a=(a.y-p.y)*w,p=r.verticalAlignment,w=(r.lineHeight+r.spacingAbove+r.spacingBelow)*r.lineCount*O,X=p.y*X-p.y*w+p.offsetY-(.5*X-.5*w)-w/2,n.value=r.text,i.div.style.font=r.font,n.style.position="absolute",n.style.zIndex="100",n.style.font="inherit",n.style.fontSize=100*O+"%",n.style.lineHeight="normal",n.style.width=D+"px",n.style.left=(re-D/2|0)-1+"px",n.style.top=(a+X|0)-1+"px",n.style.textAlign=r.textAlign,n.style.margin="0",n.style.padding="1px",n.style.border="0",n.style.outline="none",n.style.whiteSpace="pre-wrap",n.style.overflow="hidden",n.rows=r.lineCount,n.wA=O,n.className="goTXarea",i.div.appendChild(n),n.focus(),o.selectsTextOnActivate&&(n.select(),n.setSelectionRange(0,9999))}},t.hide=function(r){r.div.removeChild(n)}}}$n.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;if(e===null||e.isReadOnly||Va&&Va!==this&&(Va.acceptText(Eo),Va&&Va!==this)||!e.lastInput.left||this.isBeyondDragSize())return!1;var t=e.ic(e.lastInput.documentPoint);return t!==null&&t instanceof Vi&&t.editable&&t.part.canEdit()?(t=t.part,!(t===null||this.starting===Rs&&!t.isSelected||this.starting===Ao&&2>e.lastInput.clickCount)):!1},$n.prototype.doStart=function(){Va=this,this.textBlock!==null&&this.doActivate()},$n.prototype.doActivate=function(){if(!this.isActive){var e=this.diagram;if(e!==null){var t=this.textBlock;if(t===null&&(t=e.ic(e.lastInput.documentPoint)),t!==null&&t instanceof Vi&&(this.textBlock=t,t.part!==null)){e.animationManager.Cc(),this.isActive=!0,this.qa=Is;var n=this.defaultTextEditor;t.textEditor!==null&&(n=t.textEditor),this.Zh=this.textBlock.copy();var r=new Nt(this.textBlock.ga(No),this.textBlock.ga(ks));e.tv(r),n.show(t,e,this),this.currentTextEditor=n}}}},$n.prototype.doCancel=function(){this.stopTool()},$n.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},$n.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Eo)},$n.prototype.acceptText=function(e){switch(e){case Eo:this.qa===Do?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===Is||this.qa===Ol||this.qa===Wa)&&(this.qa=wu,Ur(this));break;case uo:case Qs:case Mo:(Qs!==e||this.textBlock.isMultiline!==!0)&&(this.qa===Is||this.qa===Ol||this.qa===Wa)&&(this.qa=wu,Ur(this))}};function Ur(e){var t=e.textBlock,n=e.diagram,r=e.currentTextEditor;if(t!==null&&r!==null){var i=t.text,o="";r.valueFunction!==null&&(o=r.valueFunction()),e.isValidText(t,i,o)?(e.Ea(e.name),e.qa=Do,e.transactionResult=e.name,t.text=o,e.doSuccess(i,o),n!==null&&n.R("TextEdited",t,i),e.stopTransaction(),e.stopTool(),n!==null&&n.doFocus()):(e.qa=Ol,e.doError(i,o))}}$n.prototype.doError=function(e,t){var n=this.textBlock;n.errorFunction!==null&&n.errorFunction(this,e,t),(e=this.currentTextEditor)&&e.show(n,this.diagram,this)},$n.prototype.doSuccess=function(e,t){var n=this.textBlock;n.textEdited!==null&&n.textEdited(n,e,t)},$n.prototype.doDeactivate=function(){var e=this.diagram;e!==null&&(this.qa=en,this.currentTextEditor!==null&&this.currentTextEditor.hide(e,this),this.textBlock=null,this.isActive=!1)},$n.prototype.doStop=function(){Va=null},$n.prototype.isValidText=function(e,t,n){var r=this.textValidation;return r!==null&&!r(e,t,n)?!1:(r=e.textValidation,!!(r===null||r(e,t,n)))},$n.prototype.Lx=function(e){var t=this.Zh;return t.text=e,t.measure(this.textBlock.Ih,1/0),t},kn.Object.defineProperties($n.prototype,{textBlock:{get:function(){return this.ia},set:function(e){this.ia=e}},currentTextEditor:{get:function(){return this.o},set:function(e){this.o=e}},defaultTextEditor:{get:function(){return this.j},set:function(e){this.j=e}},starting:{get:function(){return this.V},set:function(e){this.V=e}},textValidation:{get:function(){return this.vj},set:function(e){this.vj=e}},minimumEditorScale:{get:function(){return this.u},set:function(e){this.u=e}},selectsTextOnActivate:{get:function(){return this.F},set:function(e){this.F=e}},state:{get:function(){return this.qa},set:function(e){this.qa!==e&&(this.qa=e)}}}),$n.prototype.measureTemporaryTextBlock=$n.prototype.Lx;var uo=new hn($n,"LostFocus",0),Eo=new hn($n,"MouseDown",1),Mo=new hn($n,"Tab",2),Qs=new hn($n,"Enter",3),$t=new hn($n,"SingleClick",0),Rs=new hn($n,"SingleClickSelected",1),Ao=new hn($n,"DoubleClick",2),en=new hn($n,"StateNone",0),Is=new hn($n,"StateActive",1),Wa=new hn($n,"StateEditing",2),wu=new hn($n,"StateValidating",3),Ol=new hn($n,"StateInvalid",4),Do=new hn($n,"StateValidated",5),Va=null;$n.className="TextEditingTool",$n.LostFocus=uo,$n.MouseDown=Eo,$n.Tab=Mo,$n.Enter=Qs,$n.SingleClick=$t,$n.SingleClickSelected=Rs,$n.DoubleClick=Ao,$n.StateNone=en,$n.StateActive=Is,$n.StateEditing=Wa,$n.StateValidating=wu,$n.StateInvalid=Ol,$n.StateValidated=Do,Gi("textEditingTool",function(){return this.findTool("TextEditing")},function(e){this.gb("TextEditing",e,this.mouseUpTools)});function ss(e){Un||(vl(),Un=!0),this.H=Ya,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=pr,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new ut,this.ce=new Ii,this.ce.Yd=this,this.Ei=new ut,this.pu=new ut,this.Sr=new ut,this.pr=new ut,e&&Object.assign(this,e)}ss.prototype.Xe=function(e){this.H=e},ss.prototype.canStart=function(){return!0};function ra(e,t){e.Jd&&e.canStart(t)&&(e.Zd.add(t),e.defaultAnimation.isAnimating&&e.Cc(),Cs(e.H),e.zb=!0)}function Pa(e){if(e.Jd&&e.zb){var t=e.ce,n=e.H,r=e.Zd.contains("Model");r&&(e.Ok=!0,e.Pk===pr?(t.isViewportUnconstrained=!0,t.vc.clear(),t.add(n,"position",n.position.copy().offset(0,-200),n.position),t.add(n,"opacity",0,1)):e.Pk===po&&t.vc.clear(),e.Qw=!!(e.Pk===Ui&&n.du.D(n.pa)),n.R("InitialAnimationStarting",e)),r&&!e.Gh||t.vc.count===0?(e.Zd.clear(),e.zb=!1,t.vc.clear(),ha(t,n),e.Ok=!1,n.N()):(e.Zd.clear(),n.kg=!1,r=t.vc.get(n),n.autoScale!==pa&&r!==null&&(delete r.start.scale,delete r.end.scale),vn.requestAnimationFrame(function(){e.zb===!1||t.bc||(n.Gf("temporaryPixelRatio")&&da(n),Yh(n),e.zb=!1,t.start(),t.bc&&($l(e),n.Ya(),yl(t,0),ta(n,!0),Ka(e),n.R("AnimationStarting",e)))}))}}function rl(e){return e.Zd.contains("Trigger")&&e.Zd.count===1}function Cu(e,t,n,r){e.isTicking||rl(e)||t instanceof cn&&(t.fromNode!==null||t.toNode!==null)||e.ce.add(t,"position",n,r,!1)}ye=ss.prototype,ye.fv=function(e){return this.ce.fv(e)},ye.Xu=function(e){return this.ce.Xu(e)};function uu(e,t){function n(){if(0<i.Sr.count&&(r.addAll(i.Sr),i.Sr.clear(),i.bc=!0),i.bc!==!1&&r.count!==0){i.pu.addAll(r);for(var o=i.pu.iterator;o.next();){var a=o.value;if(a.bc!==!1){e:if(0<a.yl.count)var p=!0;else{for(p=a.vc.iterator;p.next();){var w=p.key;if(w instanceof gt&&w.diagram!==null||w instanceof Ct){p=!0;break e}}p=!1}p?xa(a,!1):a.Xk=!0}}i.pu.clear(),i.bc!==!1&&($l(i),ta(i.H),Ka(i)),vn.requestAnimationFrame(n)}}var r=e.Ei,i=e;e.bc?e.Sr.add(t):(e.bc=!0,r.add(t),vn.requestAnimationFrame(function(){n()}))}function zu(e){for(e=e.Ei.iterator;e.next();)e.value.Xk=!1}function $l(e){if(!e.vq){var t=e.H;e.Ow=t.skipsUndoManager,e.cw=t.skipsModelSourceBindings,t.skipsUndoManager=!0,t.skipsModelSourceBindings=!0,e.vq=!0}}function Ka(e){var t=e.H;t.skipsUndoManager=e.Ow,t.skipsModelSourceBindings=e.cw,e.vq=!1}ye.Cc=function(e){var t=this.ce;if(this.zb===!0&&(this.Ok=this.zb=!1,this.Zd.clear(),0<t.vc.count&&this.H.$b()),this.bc){if(t.Ml(!0),t.vc.clear(),ha(t,null),e===!0)for(e=this.Ei.Fa(),t=0;t<e.length;t++)e[t].Ml(!0)}else t.vc.clear(),ha(t,this.H)},ye.Ml=function(e){e===this.defaultAnimation&&this.defaultAnimation.vc.clear(),this.Ei.remove(e),this.Ei.count===0&&(this.bc=!1,this.H.$b()),e===this.defaultAnimation&&(this.defaultAnimation.vc.clear(),this.H.R("AnimationFinished",this))},ye.Cj=function(e,t){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(e,t),Ko(this,e))},ye.Aj=function(e,t){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(e,t),fa(this.ce,t,"position",t.position,t.position),Ko(this,e))};function cu(e,t,n){!e.zb||t.D(n)||rl(e)||(e.H.pi||(t=n.copy()),fa(e.ce,e.H,"position",t,n))}function Xl(e,t,n){t.fd&&(t.Tg=n,e.pr.add(t))}function Ko(e,t){for(t=t.findLinksConnected();t.next();){var n=t.value;n.fd&&(n.Tg=n.points.copy(),e.pr.add(n))}}function ia(e,t,n,r,i){e===null&&(e=[0,0,0,0]),t===null&&(t=[0,0,0,0]);var o=e[0],a=e[1],p=e[2];e=e[3];var w=t[0],O=t[1],D=t[2];return t=t[3],p===0||p===100?(o=w,a=O):(D===0||D===100)&&(w=o,O=a),180<Math.abs(w-o)&&(w>o?o+=360:w+=360),o=i(n,o,w-o,r)%360,a=i(n,a,O-a,r),p=i(n,p,D-p,r),n=i(n,e,t-e,r),"hsla("+o+", "+a+"%, "+p+"%, "+n+")"}function vl(){function e(n,r,i,o,a,p){n.position=new Ue(o(a,r.x,i.x-r.x,p),o(a,r.y,i.y-r.y,p))}var t=new nn;t.add("position:diagram",e),t.add("position",e),t.add("position:part",function(n,r,i,o,a,p){a<p?n.mm(o(a,r.x,i.x-r.x,p),o(a,r.y,i.y-r.y,p),!1):n.position=new Ue(o(a,r.x,i.x-r.x,p),o(a,r.y,i.y-r.y,p))}),t.add("location",function(n,r,i,o,a,p){a<p?n.mm(o(a,r.x,i.x-r.x,p),o(a,r.y,i.y-r.y,p),!0):n.location=new Ue(o(a,r.x,i.x-r.x,p),o(a,r.y,i.y-r.y,p))}),t.add("position:placeholder",function(n,r,i,o,a,p){a<p?n.mm(o(a,r.x,i.x-r.x,p),o(a,r.y,i.y-r.y,p),!1):n.position=new Ue(o(a,r.x,i.x-r.x,p),o(a,r.y,i.y-r.y,p))}),t.add("position:nodeCollapse",function(n,r,i,o,a,p){var w=n.actualBounds,O=i.actualBounds;i=O.x+O.width/2-w.width/2,w=O.y+O.height/2-w.height/2,a<p?n.mm(o(a,r.x,i-r.x,p),o(a,r.y,w-r.y,p),!1):n.position=new Ue(o(a,r.x,i-r.x,p),o(a,r.y,w-r.y,p))}),t.add("desiredSize",function(n,r,i,o,a,p){n.desiredSize=new Nt(o(a,r.width,i.width-r.width,p),o(a,r.height,i.height-r.height,p))}),t.add("width",function(n,r,i,o,a,p){n.width=o(a,r,i-r,p)}),t.add("height",function(n,r,i,o,a,p){n.height=o(a,r,i-r,p)}),t.add("fill",function(n,r,i,o,a,p){n.fill=ia(r,i,a,p,o)}),t.add("stroke",function(n,r,i,o,a,p){n.stroke=ia(r,i,a,p,o)}),t.add("strokeWidth",function(n,r,i,o,a,p){n.strokeWidth=o(a,r,i-r,p)}),t.add("strokeDashOffset",function(n,r,i,o,a,p){n.strokeDashOffset=o(a,r,i-r,p)}),t.add("background",function(n,r,i,o,a,p){n.background=ia(r,i,a,p,o)}),t.add("areaBackground",function(n,r,i,o,a,p){n.areaBackground=ia(r,i,a,p,o)}),t.add("opacity",function(n,r,i,o,a,p){n.opacity=o(a,r,i-r,p)}),t.add("scale",function(n,r,i,o,a,p){n.scale=o(a,r,i-r,p)}),t.add("angle",function(n,r,i,o,a,p){n.angle=o(a,r,i-r,p)}),Ll=t}kn.Object.defineProperties(ss.prototype,{animationReasons:{get:function(){return this.Zd}},isEnabled:{get:function(){return this.Jd},set:function(e){(this.Jd=e)&&this.Ei.each(function(t){t.isAnimating||t.runCount!==1/0||t.start()})}},duration:{get:function(){return this.Dg},set:function(e){1>e&&hr(e,">= 1",ss,"duration"),this.Dg=e}},isAnimating:{get:function(){return this.bc}},isTicking:{get:function(){return this.vq}},isInitial:{get:function(){return this.Gh},set:function(e){this.Gh=e}},defaultAnimation:{get:function(){return this.ce}},activeAnimations:{get:function(){return this.Ei}},initialAnimationStyle:{get:function(){return this.Pk},set:function(e){this.Pk=e}}}),ss.prototype.stopAnimation=ss.prototype.Cc;var Ll=null,Un=!1,pr=new hn(ss,"Default",1),Ui=new hn(ss,"AnimateLocations",2),po=new hn(ss,"None",3);ss.className="AnimationManager",ss.defineAnimationEffect=function(e,t){Un||(vl(),Un=!0),Ll.add(e,t)},ss.Default=pr,ss.AnimateLocations=Ui,ss.None=po;function Ii(e){this.vu=this.Nw=this.Yd=this.H=null,this.Xk=this.bc=this.j=!1,this.cn=this.Qd=0,this.Lp=this.ot=Os,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=kr,this.vc=new nn,this.Tt=new nn,this.yl=new ut,this.Ut=new ut,this.dw=Kc,e&&Object.assign(this,e)}Ii.prototype.suspend=function(){this.Xk=!0},Ii.prototype.advanceTo=function(e,t){t&&(this.Xk=!1),this.ho&&e>=this.Gd&&(this.Wk=!0,e-=this.Gd),this.gw=e,xa(this,!0),$l(this.Yd),ta(this.H),Ka(this.Yd),this.H.redraw()};function ha(e,t){if(e.Tt.clear(),e.Wk=!1,e.au=0,e.Gd=NaN,0<e.yl.count&&e.yl.clear(),0<e.Ut.count&&e.Ut.clear(),t!==null)for(e=t.links;e.next();)e.value.Tg=null}ye=Ii.prototype,ye.start=function(){if(this.vc.count===0||this.bc)return this;for(var e=this.H,t=this.vc.iterator;t.next();){var n=t.key;e===null&&(n instanceof Ct?e=n:n instanceof gt&&(e=n.diagram))}if(e!==null)this.H=e,this.Yd=e.animationManager;else return this;return t=this.Yd,t.isEnabled===!1?this:(this.Gd=isNaN(this.Dg)?t.duration:this.Dg,this.Lp=this.ot,t.Ok&&t.Pk===pr&&this===t.defaultAnimation&&(this.Lp=Ml,this.Gd=isNaN(this.Dg)?t.duration===600?900:t.duration:this.Dg),this.dw=e.scrollMode,this.isViewportUnconstrained&&(e.sj=If),$l(t),this.yl.each(function(r){r.data=null,e.add(r)}),Ka(t),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,uu(t,this),this)},ye.Iy=function(e,t){return e.Zc()?(this.yl.add(e),this.H=t,this):this},ye.add=function(e,t,n,r,i){if(t==="position"&&n.Xa(r))return this;if(this.H===null&&(e instanceof Ct?this.H=e:e instanceof gt&&e.diagram!==null&&(this.H=e.diagram)),e instanceof zn){if(!e.isAnimated)return this;t==="position"&&(t="position:part")}return fa(this,e,t,n,r,i),this};function fa(e,t,n,r,i,o){var a=e.vc;if(t instanceof Ct&&n==="position"&&(n="position:diagram"),(n==="fill"||n==="stroke"||n==="background"||n==="areaBackground")&&(Nc(r),yv(),r=[wl.j,wl.u,wl.o,wl.F],Nc(i),yv(),i=[wl.j,wl.u,wl.o,wl.F]),a.contains(t)){var p=a.I(t),w=p.start,O=p.end;w[n]===void 0&&(w[n]=as(r)),O[n]=as(i)}else w={},O={},w[n]=as(r),O[n]=as(i),p=w.position,t instanceof gt&&p instanceof Ue&&!p.w()&&t.diagram.animationManager.Zd.contains("Expand SubGraph")&&p.assign(O.position),p=new oa(w,O,o),a.add(t,p);a=w[n],a instanceof Ue&&!a.w()&&a.assign(e.o),o&&n.indexOf("position:")===0&&t instanceof zn?p.Ku.location=as(t.location):o&&(p.Ku[n]=as(r))}function as(e){return e instanceof Ue||e instanceof Yt?e.copy():e}ye.fv=function(e){return this.bc?(e=this.vc.I(e),e!==null&&e.nv):!1},ye.Xu=function(e){return this.bc?(e=this.vc.I(e),e!==null&&(e.start.position||e.start.location)):!1};function xa(e,t){if(!e.Xk||t){var n=e.Yd;if(e.bc!==!1){var r=+new Date,i=r>e.cn?e.Gd:r-e.Qd;t&&(i=e.gw,i<e.Gd?(e.Qd=+new Date-i,e.cn=e.Qd+e.Gd):i=e.Gd),$l(n),yl(e,i),ta(e.H,!0),Ka(n),r>e.cn&&(e.ho&&!e.Wk?(e.Qd=+new Date,e.cn=e.Qd+e.Gd,e.Wk=!0):e.Ml(!1))}}}function yl(e,t){for(var n=e.Gd,r=e.vc.iterator,i=e.Wk;r.next();){var o=r.key;if(!(o instanceof gt&&o.diagram===null)){var a=r.value,p=i?a.end:a.start;a=i?a.start:a.end;var w=Ll,O;for(O in a)O==="position"&&(a["position:placeholder"]||a["position:nodeCollapse"])||w.get(O)===null||w.get(O)(o,p[O],a[O],e.Lp,t,n,e)}}}ye.stop=function(){return this.bc?(this.Ml(!0),this):this},ye.Ml=function(e){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var t=this.H,n=this.Yd;this.Xk=this.bc=n.Ok=!1,$l(n);for(var r=this.vc,i=this.yl.iterator;i.next();)t.remove(i.value);for(i=this.Ut.iterator;i.next();)i.value.v();i=this.ho,r=r.iterator;for(var o=Ll;r.next();){var a=r.key,p=r.value,w=i?p.end:p.start,O=i?p.start:p.end,D=p.Ku,X;for(X in O)if(o.get(X)!==null){var re=X;!p.Hu||re!=="position:nodeCollapse"&&re!=="position:placeholder"||(re="position"),o.get(re)(a,w[X],D[X]!==void 0?D[X]:p.Hu?w[X]:O[X],this.Lp,this.Gd,this.Gd,this)}p.Hu&&D.location!==void 0&&a instanceof zn&&(a.location=D.location),p.nv&&a instanceof zn&&a.Zb(!1)}if(t.As.clear(),gh(t,!1),t.Ya(),t.N(),ta(t,!0),n.defaultAnimation===this){for(X=n.pr.iterator;X.next();)i=X.value,i.Tg!==null&&(i.points=i.Tg,i.Tg=null);n.pr.clear()}ta(t,!0),this.isViewportUnconstrained&&(t.scrollMode=this.dw),Ka(n),this.au++,!e&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),ha(this,null),n.Ml(this),t.$b())}},ye.Cj=function(e,t){var n=t.actualBounds,r=null;if(t instanceof lr&&(r=t.placeholder),r!==null?(n=r.ga(No),r=r.padding,n.x+=r.left,n.y+=r.top,this.add(e,"position",n,e.position,!1)):this.add(e,"position",new Ue(n.x+n.width/2,n.y+n.height/2),e.position,!1),this.add(e,"scale",.01,e.scale,!1),e instanceof lr)for(e=e.memberParts;e.next();)r=e.value,r instanceof En&&this.Cj(r,t)},ye.Aj=function(e,t){if(e.isVisible()){var n=null;if(t instanceof lr&&(n=t.placeholder),n!==null){var r=n.ga(No);n=n.padding,r.x+=n.left,r.y+=n.top,this.add(e,"position:placeholder",e.position,r,!0)}else this.add(e,"position:nodeCollapse",e.position,t,!0);if(this.add(e,"scale",e.scale,.01,!0),r=this.vc,r.contains(e)&&(r.I(e).nv=!0),e instanceof lr)for(e=e.memberParts;e.next();)r=e.value,r instanceof En&&this.Aj(r,t)}},ye.Ez=function(e){var t=this.Tt.get(e);return t===null&&(t={},this.Tt.add(e,t)),t},kn.Object.defineProperties(Ii.prototype,{duration:{get:function(){return this.Dg},set:function(e){1>e&&hr(e,">= 1",Ii,"duration"),this.Dg=e}},reversible:{get:function(){return this.ho},set:function(e){this.ho=e}},runCount:{get:function(){return this.cu},set:function(e){0<e?this.cu=e:Lt("Animation.runCount value must be a positive integer.")}},finished:{get:function(){return this.dn},set:function(e){this.dn!==e&&(this.dn=e)}},easing:{get:function(){return this.ot},set:function(e){this.ot=e}},isViewportUnconstrained:{get:function(){return this.j},set:function(e){this.j=e}},isAnimating:{get:function(){return this.bc}}}),Ii.prototype.getTemporaryState=Ii.prototype.Ez,Ii.prototype.stop=Ii.prototype.stop,Ii.prototype.add=Ii.prototype.add,Ii.prototype.addTemporaryPart=Ii.prototype.Iy;function Os(e,t,n,r){return e/=r/2,1>e?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t}function Ml(e,t,n,r){return e===r?t+n:n*(-Math.pow(2,-10*e/r)+1)+t}Ii.className="Animation",Ii.EaseLinear=function(e,t,n,r){return n*e/r+t},Ii.EaseInOutQuad=Os,Ii.EaseInQuad=function(e,t,n,r){return n*(e/=r)*e+t},Ii.EaseOutQuad=function(e,t,n,r){return-n*(e/=r)*(e-2)+t},Ii.EaseInExpo=function(e,t,n,r){return e===0?t:n*Math.pow(2,10*(e/r-1))+t},Ii.EaseOutExpo=Ml;function oa(e,t,n){this.start=e,this.end=t,this.Ku={},this.Hu=n,this.nv=!1}oa.className="AnimationState";function il(e,t,n){this.xd=null,this.rf=e,this.so=n||Gc,this.uk=null,t!==void 0&&(this.uk=t,n===void 0&&(this.so=vi))}il.prototype.copy=function(){var e=new il(this.rf);e.so=this.so;var t=this.uk;if(t!==null){var n={};t.duration!==void 0&&(n.duration=t.duration),t.finished!==void 0&&(n.finished=t.finished),t.easing!==void 0&&(n.easing=t.easing),e.uk=n}return e};function Gu(e,t){e=e.uk,e!==null&&(e.duration&&(t.duration=e.duration),e.finished&&(t.finished=e.finished),e.easing&&(t.easing=e.easing))}kn.Object.defineProperties(il.prototype,{propertyName:{get:function(){return this.rf},set:function(e){this.rf=e}},animationSettings:{get:function(){return this.uk},set:function(e){this.uk=e}},startCondition:{get:function(){return this.so},set:function(e){this.so=e}}});var Gc=new hn(il,"Default",1),vi=new hn(il,"Immediate",2),oi=new hn(il,"Bundled",3);il.className="AnimationTrigger",il.Default=Gc,il.Immediate=vi,il.Bundled=oi;function Qr(e){Ge(this),this.H=null,this.Pa=new tn,this.xa="",this.pb=1,this.o=!1,this.j=this.Uh=this.u=this.Oi=this.Ni=this.Mi=this.Li=this.Ji=this.Ki=this.Ii=this.Qi=this.Hi=this.Pi=this.Gi=this.Fi=!0,this.Zq=[],e&&Object.assign(this,e)}ye=Qr.prototype,ye.clear=function(){for(var e=this.Pa,t=0;t<e.length;t++){var n=e.s[t];n.Ig=null,la(n)}e.clear(),this.Zq.length=0},ye.Xe=function(e){this.H=e},ye.toString=function(e){e===void 0&&(e=0);var t='Layer "'+this.name+'"';if(0>=e)return t;for(var n=0,r=0,i=0,o=0,a=0,p=this.Pa.iterator;p.next();){var w=p.value;w instanceof lr?i++:w instanceof En?r++:w instanceof cn?o++:w instanceof qr?a++:n++}if(p="",0<n&&(p+=n+" Parts "),0<r&&(p+=r+" Nodes "),0<i&&(p+=i+" Groups "),0<o&&(p+=o+" Links "),0<a&&(p+=a+" Adornments "),1<e)for(e=this.Pa.iterator;e.next();)n=e.value,p+=`
`+n.toString(),r=n.data,r!==null&&it(r)&&(p+=" #"+it(r)),n instanceof En?p+=" "+Di(r):n instanceof cn&&(p+=" "+Di(n.fromNode)+" "+Di(n.toNode));return t+" "+this.Pa.count+": "+p},ye.ic=function(e,t,n){if(t===void 0&&(t=null),n===void 0&&(n=null),this.Uh===!1)return null;var r=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(e)&&(r=!0);for(var i=Ue.alloc(),o=this.Pa.s,a=o.length;a--;){var p=o[a];if((r!==!0||Th(p)!==!1)&&p.isVisible()&&(i.assign(e),wr(i,p.oe),p=p.ic(i,t,n),p!==null&&(t!==null&&(p=t(p)),p!==null&&(n===null||n(p)))))return Ue.free(i),p}return Ue.free(i),null},ye.ji=function(e,t,n,r){if(t===void 0&&(t=null),n===void 0&&(n=null),r instanceof tn||r instanceof ut||(r=new ut),this.Uh===!1)return r;var i=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(e)&&(i=!0);for(var o=Ue.alloc(),a=this.Pa.s,p=a.length;p--;){var w=a[p];if((i!==!0||Th(w)!==!1)&&w.isVisible()){o.assign(e),wr(o,w.oe);var O=w;w.ji(o,t,n,r)&&(t!==null&&(O=t(O)),O===null||n!==null&&!n(O)||r.add(O))}}return Ue.free(o),r},ye.Cf=function(e,t,n,r,i){if(t===void 0&&(t=null),n===void 0&&(n=null),r===void 0&&(r=!1),i instanceof tn||i instanceof ut||(i=new ut),this.Uh===!1)return i;var o=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(e)&&(o=!0);for(var a=this.Pa.s,p=a.length;p--;){var w=a[p];if((o!==!0||Th(w)!==!1)&&w.isVisible()){var O=w;w.Cf(e,t,n,r,i)&&(t!==null&&(O=t(O)),O===null||n!==null&&!n(O)||i.add(O))}}return i},ye.Nu=function(e,t,n,r,i,o,a){if(this.Uh===!1)return i;for(var p=this.Pa.s,w=p.length;w--;){var O=p[w];if((a!==!0||Th(O)!==!1)&&o(O)&&O.isVisible()){var D=O;O.Cf(e,t,n,r,i)&&(t!==null&&(D=t(D)),D===null||n!==null&&!n(D)||i.add(D))}}return i},ye.og=function(e,t,n,r,i,o){if(n===void 0&&(n=null),r===void 0&&(r=null),i===void 0&&(i=!0),i!==!1&&i!==!0&&((i instanceof tn||i instanceof ut)&&(o=i),i=!0),o instanceof tn||o instanceof ut||(o=new ut),this.Uh===!1)return o;var a=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(e)&&(a=!0);for(var p=Ue.alloc(),w=Ue.alloc(),O=this.Pa.s,D=O.length;D--;){var X=O[D];if((a!==!0||Th(X)!==!1)&&X.isVisible()){p.assign(e),wr(p,X.oe),w.h(e.x+t,e.y),wr(w,X.oe);var re=X;X.og(p,w,n,r,i,o)&&(n!==null&&(re=n(re)),re===null||r!==null&&!r(re)||o.add(re))}}return Ue.free(p),Ue.free(w),o},ye.Fd=function(e,t){if(this.visible){var n=this.Pa.s,r=n.length;if(r!==0){e=yr();for(var i=yr(),o=0;o<r;o++){var a=n[o];if(a.vw=o,a instanceof cn){if(a.fd===!1)continue}else if(a instanceof qr&&a.adornedPart!==null)continue;var p=a.actualBounds;a.isVisible()&&hs(p,t)?(a.Fd(!0),e.push(a)):(a.Fd(!1),a.adornments!==null&&0<a.adornments.count&&i.push(a))}for(t=0;t<e.length;t++)for(n=e[t],Yv(n),n=n.adornments;n.next();)r=n.value,r.measure(1/0,1/0),r.arrange(),r.Fd(!0);for(t=0;t<i.length;t++)Yv(i[t]);Mr(e),Mr(i)}}};function Yo(e,t){var n=1;return e.pb!==1&&(n=t.globalAlpha,t.globalAlpha=n*e.pb),n}ye.gc=function(e,t,n){if(this.visible&&this.pb!==0&&(n===void 0&&(n=!0),n||!this.isTemporary)){n=this.Pa.s;var r=n.length;if(r!==0){if(e.isTemporary)for(var i=0;i<r;i++)n[i].Gj();i=Yo(this,e);var o=this.Zq;o.length=0;for(var a=t.scale,p=Nt.alloc(),w=0;w<r;w++)this.Oj(e,n[w],t,o,a,p,!0);if(Nt.free(p),e.isTemporary)for(t=0;t<r;t++)n[t].Gj();e.globalAlpha=i}}};function ea(e,t,n,r,i){if(e.visible&&e.pb!==0&&(i||!e.isTemporary)){i=e.Pa.s;var o=i.length;if(o!==0){var a=Yo(e,t),p=e.Zq;p.length=0;for(var w=n.scale,O=Nt.alloc(),D=0;D<o;D++){var X=i[D];r.contains(X)&&e.Oj(t,X,n,p,w,O,!1)}Nt.free(O),t.globalAlpha=a}}}ye.Oj=function(e,t,n,r,i,o,a){if(a&&!Th(t))e.Hs(t);else{if(r!==null&&t instanceof cn&&(t.isOrthogonal&&r.push(t),t.fd===!1)){e.Hs(t);return}for(a=!1,r=t.containingGroup;r!==null;)a?r.tb!==null&&o.Ex(r.tb):r.tb!==null&&(a=!0,o.assign(r.tb)),r=r.containingGroup;var p=t.actualBounds;if(r=!1,a&&t.isVisible()){if(!o.Yc(p)){e.Hs(t);return}r=!o.Re(p)}r&&(e.save(),e instanceof sl?e.bk=o.copy():(e.beginPath(),e.rect(o.x,o.y,o.width,o.height),e.clip())),p.width*i>n.Oq||p.height*i>n.Oq?t.gc(e,n):(i=t.actualBounds,o=t.naturalBounds,i.width===0||i.height===0||isNaN(i.x)||isNaN(i.y)||!t.isVisible()||(n=t.transform,t.areaBackground!==null&&(Ho(t,e,t.areaBackground,!0,!0,o,i),e.fillRect(i.x,i.y,i.width,i.height)),t.areaBackground===null&&t.background===null&&(Ho(t,e,"rgba(0,0,0,0.3)",!0,!1,o,i),e.fillRect(i.x,i.y,i.width,i.height)),t.background!==null&&(e.transform(n.m11,n.m12,n.m21,n.m22,n.dx,n.dy),Ho(t,e,t.background,!0,!1,o,i),e.fillRect(0,0,o.width/2,o.height/2),n.ws()||(t=1/(n.m11*n.m22-n.m12*n.m21),e.transform(n.m22*t,-n.m12*t,-n.m21*t,n.m11*t,t*(n.m21*n.dy-n.m22*n.dx),t*(n.m12*n.dx-n.m11*n.dy)))))),r&&(e.restore(),e.Vc(!0))}},ye.g=function(e,t,n,r,i){var o=this.diagram;o!==null&&o.cb(Fi,e,this,t,n,r,i)},ye.oi=function(e,t,n){var r=this.Pa;if(t.Ig=this,this===null&&la(t),e>=r.count)e=r.count;else if(r.M(e)===t)return-1;return r.Gb(e,t),t.Vo(n),r=this.diagram,r!==null&&(n?r.N():r.oi(t)),Wu(this,e,t),e},ye.pc=function(e,t,n){if(!n&&t.layer!==this&&t.layer!==null)return t.layer.pc(e,t,n);var r=this.Pa;if(0>e||e>=r.length){if(e=r.indexOf(t),0>e)return-1}else if(r.M(e)!==t&&(e=r.indexOf(t),0>e))return-1;return t.Wo(n),r.mb(e),r=this.diagram,r!==null&&(n?r.N():r.pc(t)),t.Ig=null,la(t),e};function Wu(e,t,n){if(t=hu(e,t,n),n instanceof lr&&n!==null&&isNaN(n.zOrder)){if(n.memberParts.count!==0){for(var r=-1,i=e.Pa.s,o=i.length,a=0;a<o;a++){var p=i[a];if(p===n&&(t=a,0<=r)||0>r&&p.containingGroup===n&&(r=a,0<=t))break}!(0>r)&&r<t&&(i=e.Pa,i.mb(t),i.Gb(r,n))}t=n.containingGroup,t!==null&&Wu(e,-1,t)}n.svg!==null&&n.svg.remove()}function hu(e,t,n){var r=n.zOrder;if(isNaN(r))return t;e=e.Pa;var i=e.count;if(1>=i)return t;if(0>t&&(t=e.indexOf(n)),0>t)return-1;for(var o=t-1,a=NaN;0<=o&&(a=e.M(o).zOrder,!!isNaN(a));)o--;for(var p=t+1,w=NaN;p<i&&(w=e.M(p).zOrder,!!isNaN(w));)p++;if(!isNaN(a)&&a>r)for(;;){if(o===-1||a<=r){if(o++,o===t)break;return e.mb(t),e.Gb(o,n),o}for(a=NaN;0<=--o&&(a=e.M(o).zOrder,isNaN(a)););}else if(!isNaN(w)&&w<r)for(;;){if(p===i||w>=r){if(p--,p===t)break;return e.mb(t),e.Gb(p,n),p}for(w=NaN;++p<i&&(w=e.M(p).zOrder,isNaN(w)););}return t}kn.Object.defineProperties(Qr.prototype,{parts:{get:function(){return this.Pa.iterator}},partsBackwards:{get:function(){return this.Pa.iteratorBackwards}},diagram:{get:function(){return this.H}},name:{get:function(){return this.xa},set:function(e){var t=this.xa;if(t!==e){var n=this.diagram;if(n!==null)for(t===""&&Lt("Cannot rename default Layer to: "+e),n=n.layers;n.next();)n.value.name===e&&Lt("Layer.name is already present in this diagram: "+e);for(this.xa=e,this.g("name",t,e),e=this.Pa.iterator;e.next();)e.value.layerName=this.xa}}},opacity:{get:function(){return this.pb},set:function(e){var t=this.pb;t!==e&&((0>e||1<e)&&hr(e,"0 <= value <= 1",Qr,"opacity"),this.pb=e,this.g("opacity",t,e),e=this.diagram,e!==null&&e.N())}},isTemporary:{get:function(){return this.o},set:function(e){var t=this.o;t!==e&&((this.o=e)&&(this.isInDocumentBounds=!1),this.g("isTemporary",t,e))}},visible:{get:function(){return this.u},set:function(e){var t=this.u;if(t!==e){for(this.u=e,this.g("visible",t,e),t=this.Pa.iterator;t.next();)t.value.Zb(e);e=this.diagram,e!==null&&e.N()}}},pickable:{get:function(){return this.Uh},set:function(e){var t=this.Uh;t!==e&&(this.Uh=e,this.g("pickable",t,e))}},isInDocumentBounds:{get:function(){return this.j},set:function(e){this.j!==e&&(this.j=e,this.diagram!==null&&this.diagram.Ya())}},allowCopy:{get:function(){return this.Fi},set:function(e){var t=this.Fi;t!==e&&(this.Fi=e,this.g("allowCopy",t,e))}},allowDelete:{get:function(){return this.Gi},set:function(e){var t=this.Gi;t!==e&&(this.Gi=e,this.g("allowDelete",t,e))}},allowTextEdit:{get:function(){return this.Pi},set:function(e){var t=this.Pi;t!==e&&(this.Pi=e,this.g("allowTextEdit",t,e))}},allowGroup:{get:function(){return this.Hi},set:function(e){var t=this.Hi;t!==e&&(this.Hi=e,this.g("allowGroup",t,e))}},allowUngroup:{get:function(){return this.Qi},set:function(e){var t=this.Qi;t!==e&&(this.Qi=e,this.g("allowUngroup",t,e))}},allowLink:{get:function(){return this.Ii},set:function(e){var t=this.Ii;t!==e&&(this.Ii=e,this.g("allowLink",t,e))}},allowRelink:{get:function(){return this.Ki},set:function(e){var t=this.Ki;t!==e&&(this.Ki=e,this.g("allowRelink",t,e))}},allowMove:{get:function(){return this.Ji},set:function(e){var t=this.Ji;t!==e&&(this.Ji=e,this.g("allowMove",t,e))}},allowReshape:{get:function(){return this.Li},set:function(e){var t=this.Li;t!==e&&(this.Li=e,this.g("allowReshape",t,e))}},allowResize:{get:function(){return this.Mi},set:function(e){var t=this.Mi;t!==e&&(this.Mi=e,this.g("allowResize",t,e))}},allowRotate:{get:function(){return this.Ni},set:function(e){var t=this.Ni;t!==e&&(this.Ni=e,this.g("allowRotate",t,e))}},allowSelect:{get:function(){return this.Oi},set:function(e){var t=this.Oi;t!==e&&(this.Oi=e,this.g("allowSelect",t,e))}}}),Qr.prototype.findObjectsNear=Qr.prototype.og,Qr.prototype.findObjectsIn=Qr.prototype.Cf,Qr.prototype.findObjectsAt=Qr.prototype.ji,Qr.prototype.findObjectAt=Qr.prototype.ic,Qr.className="Layer";function Ct(e,t){if(xg||(sa(),xg=!0),Ge(this),Ya=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,Po){var n=this,r=function(){n.removeEventListener(vn.document,"DOMContentLoaded",r,!1),n.setRTL()};vn.document.body!==null?this.setRTL():n.addEventListener(vn.document,"DOMContentLoaded",r,!1)}this.ol=null,fd.add("Model",Si);var i=this;return this.Hb=function(o){var a=i.partManager;if(o.model===a.diagram.model&&a.diagram.aa){a.diagram.aa=!1;try{var p=o.change;o.modelChange===""&&p===Fi&&a.updateDataBindings(o.object,o.propertyName)}finally{a.diagram.aa=!0}}},this.Oc=function(o){i.partManager.doModelChanged(o)},this.hu=this.ku=null,Ec(this),this.model=Ey(),this.Wg=!0,mh(this),this.layout=new co,this.Wg=!1,this.ck=this.ek=this.fk=this.dk=this.ui=this.aA=this.$j=this.Ov=null,this.hk=function(){},this.preventDefault=null,this.rn=!1,this.Yf=new Eg,e!==void 0&&(typeof e=="string"||vn.Element&&e instanceof Element?Kh(this,e):t=e),this.vb=!1,t&&this.nm(t),this}var Tu,Ya;function Ec(e){e.Yd=new ss,e.Yd.Xe(e),e.Db=17,e.Gw=!1,e.tn=!1,e.bu="default",e.Wa=new tn,e.pj=new nn,e.nl="default",e.Tx(),e.Sx(),e.pb=1,e.pa=new Ue(NaN,NaN).freeze(),e.du=new Ue(NaN,NaN),e.Ca=1,e.Pp=1,e.zt=new Ue(NaN,NaN).freeze(),e.At=NaN,e.Ot=1e-4,e.Mt=100,e.Ab=new dr,e.zu=new Ue(NaN,NaN).freeze(),e.ut=new Nt(NaN,NaN,NaN,NaN).freeze(),e.rj=new Wn(0,0,0,0).freeze(),e.sj=Kc,e.nu=!1,e.Zt=null,e.fu=null,e.yh=pa,e.zk=is,e.Fg=pa,e.pq=is,e.yt=No,e.Bt=No,e.Fc=!0,e.pn=!1,e.De=new ut,e.Eh=new nn,e.Xm=!0,e.vp=250,e.vk=-1,e.xp=new Wn(16,16,16,16).freeze(),e.kg=!1,e.Jk=!1,e.fn=!0,e.bq=new Ds,e.bq.diagram=e,e.Qg=new Ds,e.Qg.diagram=e,e.cj=new Ds,e.cj.diagram=e,e.zg=null,e.pf=null,e.qu=!1,dv(e),e.ai=new ut,e.Ht=!0,e.uu=Yc,e.pw=!1,e.wu=Rf,e.it="auto",e.Op="auto",e.zh=null,e.Fh=null,e.Bh=null,e.Qh=null,e.Oh=null,e.Nh=null,e.Qt=null,e.Lh=null,e.xt=!1,e.Mh=null,e.Ph=null,e.$h=null,e.Ch=null,e.Rt=!1,e.Yt={},e.oj=[null,null],e.Wg=!1,e.Iw=!1,e.ou=!1,e.lt=!1,e.rw=!0,e.ld=!1,e.$i=!1,e.Tw=!0,e.Ce=-2,e.Og=new nn,e.Xn=new tn,e.Gg=!1,e.Jd=!0,e.Us=!0,e.Fi=!0,e.Gi=!0,e.Vs=!1,e.Ws=!0,e.Pi=!0,e.Hi=!0,e.Qi=!0,e.Ys=!0,e.Ii=!0,e.Ki=!0,e.Ji=!0,e.Li=!0,e.Mi=!0,e.Ni=!0,e.Oi=!0,e.Zs=!0,e.at=!0,e.qw=!1,e.Vk=!1,e.mn=!0,e.nn=!0,e.Xs=!0,e.$s=!0,e.iu=16,e.mu=16,e.qr=!1,e.gu=!1,e.lu=0,e.ju=0,e.yb=new Wn(5).freeze(),e.Hw=new ut().freeze(),e.Nt=999999999,e.nw=new ut().freeze(),e.Zi=!0,e.Ee=!0,e.vd=!0,e.Be=!1,e.gf=!1,e.xh=!0,e.hf=!1,e.sy=new ut,e.ow=new ut,e.Xh=null,e.aw=new Yt(8,8),e.bw=999,e.Bw=1,e.Jw=0,e.fc={scale:1,position:new Ue,bounds:new Nt,Py:new Yt,bA:new Yt,Oz:!1},e.fc.canvasSize=e.fc.Py,e.fc.newCanvasSize=e.fc.bA,e.fc.isScroll=!1,e.Rw=new Nt(NaN,NaN,NaN,NaN).freeze(),e.wo=new Yt(NaN,NaN).freeze(),e.Sp=new Nt(NaN,NaN,NaN,NaN).freeze(),e.It=!1,e.Lg=new nn;var t=new En,n=new Vi;n.bind(new qo("text","",Di)),t.add(n),e.ny=t,e.Lg.add("",t),t=new En,n=new Vi,n.stroke="brown",n.bind(new qo("text","",Di)),t.add(n),e.Lg.add("Comment",t),t=new En,t.selectable=!1,t.avoidable=!1,n=new vr,n.figure="Ellipse",n.fill="black",n.stroke=null,n.desiredSize=new Yt(3,3).ja(),t.add(n),e.Lg.add("LinkLabel",t),e.Yi=new nn,t=new lr,t.selectionObjectName="GROUPPANEL",t.type=qt.Vertical,n=new Vi,n.font="bold 12pt sans-serif",n.bind(new qo("text","",Di)),t.add(n),n=new qt(qt.Auto),n.name="GROUPPANEL";var r=new vr;r.figure="Rectangle",r.fill="rgba(128,128,128,0.2)",r.stroke="black",n.add(r),r=new _a,r.padding=new Wn(5,5,5,5).ja(),n.add(r),t.add(n),e.ly=t,e.Yi.add("",t),e.Kh=new nn,t=new cn,n=new vr,n.isPanelMain=!0,t.add(n),n=new vr,n.toArrow="Standard",n.fill="black",n.stroke=null,n.strokeWidth=0,t.add(n),e.my=t,e.Kh.add("",t),t=new cn,n=new vr,n.isPanelMain=!0,n.stroke="brown",t.add(n),e.Kh.add("Comment",t),t=new qr,t.type=qt.Auto,n=new vr,n.fill=null,n.stroke="dodgerblue",n.strokeWidth=3,t.add(n),n=new _a,n.margin=new Wn(1.5,1.5,1.5,1.5).ja(),t.add(n),e.St=t,e.wt=t,t=new qr,t.type=qt.Link,n=new vr,n.isPanelMain=!0,n.fill=null,n.stroke="dodgerblue",n.strokeWidth=3,t.add(n),e.Kt=t,e.fe=null,e.mq=!1,e.Ck=null,e.partManager=new Si,e.toolManager=new Wi,e.toolManager.initializeStandardTools(),e.defaultTool=e.toolManager,e.currentTool=e.defaultTool,e.nt=null,e.Wm=new C,e.Vt=null,e.Wt=null,e.Mr=!1,e.commandHandler=Tf(),e.eq=null,e.fq=Jr,e.Pw=!1,e.Mb=1,e.Yh=null,e.Oq=1,e.Sq=0,e.zw=[0,0,0,0,0],e.Tq=0,e.yq=1,e.tw=0,e.uw=new Ue,e.zy=500,e.wp=new Ue,e.wq=!1}Ct.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),tf=null,xh="",Cf(this,!1),this.Xn.clear(),Td(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function Cf(e,t){e.animationManager.Cc(!0),e.Hw=new ut().freeze(),e.nw=new ut().freeze();var n=e.skipsUndoManager,r=e.cc!==null&&e.cc!==void 0;r&&(e.skipsUndoManager=!0);var i=null;e.fe!==null&&(i=e.fe.part,i!==null&&e.remove(i));var o=[],a=e.Wa.length;if(t){for(t=0;t<a;t++)for(var p=e.Wa.s[t].parts;p.next();){var w=p.value;w!==i&&w.data===null&&o.push(w)}for(t=0;t<o.length;t++)e.remove(o[t])}for(t=0;t<a;t++)e.Wa.s[t].clear();return e.partManager.clear(),e.De.clear(),e.Eh.clear(),e.ai.clear(),e.Ck=null,e.Xn.clear(),Td(),e.Og.clear(),Ro=[],i!==null&&(e.add(i),e.partManager.parts.remove(i)),r&&(e.skipsUndoManager=n),o}function Tf(){return null}Ct.prototype.reset=function(){this.clear(),this.vb=!0,Ec(this),Yu(this),this.Wg=!0,mh(this),this.layout=new co,this.Wg=!1,this.model=Ey(),this.model.undoManager=new ro,this.vb=this.rn=!1,this.N()},Ct.prototype.setRTL=function(e){e=e===void 0?this.div:e,e===null&&(e=vn.document.body);var t=mi("div");t.dir="rtl",t.style.cssText="font-size: 14px; width: 1px; height: 1px; position: absolute; top: -1000px; overflow: scroll;",t.textContent="A",e.appendChild(t);var n="reverse";0<t.scrollLeft?n="default":(t.scrollLeft=1,t.scrollLeft===0&&(n="negative")),e.removeChild(t),this.bu=n},Ct.prototype.setScrollWidth=function(e){e=e===void 0?this.div:e,e===null&&(e=vn.document.body);var t=0;if(Po){var n=Sg;t=Tu,n===null&&(n=Sg=mi("p"),n.style.width="100%",n.style.height="200px",n.style.boxSizing="content-box",t=Tu=mi("div"),t.style.position="absolute",t.style.visibility="hidden",t.style.width="200px",t.style.height="150px",t.style.boxSizing="content-box",t.appendChild(n)),t.style.overflow="hidden",e.appendChild(t);var r=n.offsetWidth;t.style.overflow="scroll",n=n.offsetWidth,r===n&&(n=t.clientWidth),e.removeChild(t),t=r-n,t!==0||Wo||(t=11)}this.Db=t,this.Gw=!0},Ct.prototype.qb=function(e){e.classType===Ct&&(this.autoScale=e)},Ct.prototype.toString=function(e){e===void 0&&(e=0);var t="";if(this.div&&this.div.id&&(t=this.div.id),t='Diagram "'+t+'"',0>=e)return t;for(var n=this.Wa.iterator;n.next();)t+=`
`+n.value.toString(e-1);return t};function Kh(e,t){if(Po){if(t!=null||Lt("Diagram setup requires an argument DIV."),e.Ka!==null&&Lt("Diagram has already completed setup."),typeof t=="string"?e.Ka=vn.document.getElementById(t):t instanceof HTMLDivElement?e.Ka=t:Lt("No DIV or DIV id supplied: "+t),e.Ka===null&&Lt("Invalid DIV id; could not get element with id: "+t),e.Ka.H!==void 0&&Lt("Invalid div id; div already has a Diagram associated with it."),!e.ol&&vn.ResizeObserver){var n=bi(function(){e.$b()},250);e.ol=new vn.ResizeObserver(function(){n()}),e.ol.observe(e.Ka)}vn.getComputedStyle(e.Ka,null).position==="static"&&(e.Ka.style.position="relative"),t=5;var r="rgba(2"+t+"5, 255, 255, 0)";t--,e.Ka.style["-webkit-tap-highlight-color"]=r,e.Ka.innerHTML="",e.Ka.H=e,e.Ka.goDiagram=e,e.Ka.go=vn.go;var i=new Ql(e);if(i.style!==void 0&&(i.style.position="absolute",i.style.top="0px",i.style.left="0px",vn.getComputedStyle(e.Ka,null).getPropertyValue("direction")==="rtl"&&(e.tn=!0),i.style.zIndex="2",i.style.userSelect="none",i.style.MozUserSelect="none",i.style.touchAction="none",i.style.letterSpacing="normal !important",i.style.wordSpacing="normal !important"),e.ta=i,e.ib=i.context,r=e.ib,e.Mb=e.computePixelRatio(),e.viewSize.w()||(e.Aa=e.Ka.clientWidth||1,e.ya=e.Ka.clientHeight||1),tp(e,e.Aa,e.ya),e.Ka.insertBefore(i.Oa,e.Ka.firstChild),i=new Ql(null),i.width=1,i.height=1,e.jw=i,e.oy=i.context,Po){i=mi("div");var o=mi("div");i.style.position="absolute",i.style.overflow="auto",i.style.width=e.Aa+"px",i.style.height=e.ya+"px",i.style.zIndex="1",o.style.position="absolute",o.style.width="1px",o.style.height="1px",e.Ka.appendChild(i),i.appendChild(o),i.onscroll=Xh,i.addEventListener("pointerdown",_f),i.H=e,i.uy=!0,i.vy=!0,e.ku=i,e.hu=o}e.hk=bi(function(){e.Yh=null,e.N()},300),e.Ov=bi(function(){Yh(e)},250),e.preventDefault=function(a){return a.preventDefault(),!1},e.$j=function(a){if(e.isEnabled){var p=$a(e,a,!0);p.bubbles=!0;var w=0,O=0;p.delta=0,a.deltaX!==void 0?(a.deltaX!==0&&(w=0<a.deltaX?1:-1),a.deltaY!==0&&(O=0<a.deltaY?1:-1),p.delta=Math.abs(a.deltaX)>Math.abs(a.deltaY)?-w:-O):a.wheelDeltaX!==void 0?(a.wheelDeltaX!==0&&(w=0<a.wheelDeltaX?-1:1),a.wheelDeltaY!==0&&(O=0<a.wheelDeltaY?-1:1),p.delta=Math.abs(a.wheelDeltaX)>Math.abs(a.wheelDeltaY)?-w:-O):a.wheelDelta!==void 0&&a.wheelDelta!==0&&(p.delta=0<a.wheelDelta?1:-1),e.doMouseWheel(),Xi(p,a)}},e.aA=function(a){e.isEnabled&&(e.Vk=!1,$a(e,a,!0),a=e.currentTool,a.cancelWaitAfter(),a.standardMouseOver())},e.ui=function(a){if(e.isEnabled){e.Vk=!0;var p=e.Yt;p[a.pointerId]===void 0&&(p[a.pointerId]=a),p=e.oj;var w=!1;if(p[0]===null||p[0].pointerId!==a.pointerId&&p[0].pointerType===a.pointerType)if(p[1]!==null&&p[1].pointerId===a.pointerId)p[1]=a,w=!0;else if(p[0]===null)p[0]=a;else if(p[1]===null)p[1]=a,w=!0;else{a.preventDefault();return}else p[0]=a;(p=a.pointerType==="touch"||a.pointerType==="pen")&&(e.qu=!1,e.wq=!0);var O=w;w=vo(e,a,!0,!1,!0,O),$s(e,a,w),w.targetDiagram=kf(a,a.target),w.targetObject=null,O||w.clone(e.bq),O=e.uw,p=p?25:10,a.timeStamp-e.tw<e.zy&&!(Math.abs(O.x-a.screenX)>p||Math.abs(O.y-a.screenY)>p)?e.yq++:e.yq=1,w.clickCount=e.yq,e.tw=a.timeStamp,e.uw.sg(a.screenX,a.screenY),e.doMouseDown(),a.button===1?a.preventDefault():Xi(w,a)}},e.dk=function(a){if(e.isEnabled){e.Vk=!0;var p=e.oj;if(p[0]===null||p[0].pointerId!==a.pointerId&&p[0].pointerType===a.pointerType){if(p[1]!==null&&p[1].pointerId===a.pointerId){p[1]=a;return}if(p[0]===null)p[0]=a;else return}else p[0]=a;if(p[0].pointerId===a.pointerId){p=vo(e,a,!1,!1,!1,p[1]!==null);var w=vn.document.elementFromPoint(a.clientX,a.clientY)||null;w!==null&&w.shadowRoot!==void 0&&w.shadowRoot!==null&&(w=w.shadowRoot.elementFromPoint(a.clientX,a.clientY));var O=e,D=a;w&&w.H&&(D=a,O=w.H),p.targetDiagram=O,$s(e,D,p),p.targetObject=null,e.doMouseMove(),Xi(p,a)}}},e.fk=function(a){if(e.isEnabled){e.Vk=!0;var p=a.pointerType==="touch"||a.pointerType==="pen",w=e.Yt;if(p&&e.qu)delete w[a.pointerId],a.preventDefault();else if(w=e.oj,w[0]===null||w[0].pointerId!==a.pointerId&&w[0].pointerType===a.pointerType)w[1]!==null&&w[1].pointerId===a.pointerId&&(w[1]=null);else{w[0]=null,w=vo(e,a,!1,!0,!0,!1);var O=vn.document.elementFromPoint(a.clientX,a.clientY)||null;O!==null&&O.shadowRoot!==void 0&&O.shadowRoot!==null&&(O=O.shadowRoot.elementFromPoint(a.clientX,a.clientY)),O!==null&&O.H instanceof Ct&&O.H!==e&&$s(O.H,a,w),O===null&&(O=a.target),$s(e,a,w),w.clickCount=e.yq,w.targetDiagram=kf(a,O),w.targetObject=null,e.doMouseUp(),Xi(w,a),p&&(e.wq=!1)}}},e.ek=function(a){if(e.isEnabled){e.Vk=!1;var p=e.Yt;p[a.pointerId]&&delete p[a.pointerId],p=e.oj,p[0]!==null&&p[0].pointerId===a.pointerId&&(p[0]=null),p[1]!==null&&p[1].pointerId===a.pointerId&&(p[1]=null),a.pointerType!=="touch"&&a.pointerType!=="pen"&&(a=e.currentTool,a.cancelWaitAfter(),a.standardMouseOver())}},e.ck=function(a){var p=e.oj;p[0]!==null&&p[0].pointerId===a.pointerId?(p[0]=null,e.wq=!1):p[1]!==null&&p[1].pointerId===a.pointerId&&(p[1]=null)},e.Vp=r.Z["d"+Lf[1]+Lf[2]+"wI"+rf.slice(1,5)]["b"+X1.slice(1,t)](r.Z,Of,t,t),r.Vc(!0),ep(e),e.nl==="svg"&&(t=e.pj.get("svg"),e.Ka.appendChild(t.Oa),e.ib=t.context)}}Ct.prototype.addEventListener=function(e,t,n,r){e.addEventListener(t,n,{capture:r,passive:!1})},Ct.prototype.removeEventListener=function(e,t,n,r){e.removeEventListener(t,n,{capture:r})};function ep(e){var t=e.ta.Oa;t instanceof HTMLCanvasElement||(t=e.div),e.addEventListener(t,"pointerdown",e.ui,!1),e.addEventListener(t,"pointermove",e.dk,!1),e.addEventListener(t,"pointerup",e.fk,!1),e.addEventListener(t,"pointerout",e.ek,!1),e.addEventListener(t,"pointercancel",e.ck,!1),e.addEventListener(t,"pointerenter",e.bz,!1),e.addEventListener(t,"pointerleave",e.cz,!1),e.addEventListener(t,"wheel",e.$j,!1),e.addEventListener(t,"keydown",e.Qz,!1),e.addEventListener(t,"keyup",e.Rz,!1),e.addEventListener(t,"blur",e.Ny,!1),e.addEventListener(t,"focus",e.Oy,!1),e.addEventListener(t,"selectstart",function(n){return n.preventDefault(),!1},!1),e.addEventListener(t,"contextmenu",function(n){return n.preventDefault(),!1},!1),e.addEventListener(vn,"resize",e.Ov,!1)}function da(e){30<e.Sq&&(e.Yh=1)}function gh(e,t){e.Yh!==null&&(e.Yh=null,t&&e.hk(),Bs&&Bs.nx||(e.Sq=0,e.zw=[0,0,0,0,0],e.Tq=0))}Ct.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:vn.devicePixelRatio||1},Ct.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},Ct.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},Ct.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},Ct.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},Ct.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},Ct.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},Ct.prototype.doFocus=function(){this.focus()},Ct.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var e=vn.scrollX||vn.pageXOffset,t=vn.scrollY||vn.pageYOffset;this.ta.focus(),vn.scrollTo(e,t)}},Ct.prototype.Oy=function(){this.H.R("GainedFocus")},Ct.prototype.Ny=function(){this.H.R("LostFocus")};function Yh(e){if(e.ta!==null){var t=e.Ka;if(t!==null&&t.clientWidth!==0&&t.clientHeight!==0){e.Gw||e.setScrollWidth();var n=e.gf?e.Db:0,r=e.Be?e.Db:0,i=e.Mb;e.Mb=e.computePixelRatio(),e.Mb!==i&&(e.pn=!0,e.$b()),(t.clientWidth!==e.Aa+n||t.clientHeight!==e.ya+r)&&(e.Ee=!0,e.Fc=!0,t=e.layout,t!==null&&t.isViewportSized&&e.autoScale===pa&&(e.Jk=!0,t.C()),e.ld||e.$b())}}}function mh(e){var t=new Qr;t.name="Background",e.Al(t),t=new Qr,t.name="",e.Al(t),t=new Qr,t.name="Foreground",e.Al(t),t=new Qr,t.name="Adornment",t.isTemporary=!0,t.isInDocumentBounds=!1,e.Al(t),t=new Qr,t.name="Tool",t.isTemporary=!0,t.isInDocumentBounds=!0,e.Al(t),t=new Qr,t.name="Grid",t.allowSelect=!1,t.pickable=!1,t.isTemporary=!0,t.isInDocumentBounds=!1,e.Ww(t,e.Qj("Background"))}function $h(e){var t=new qt(qt.Grid);t.name="GRID";var n=new vr;return n.figure="LineH",n.stroke="lightgray",n.strokeWidth=.5,n.interval=1,t.add(n),n=new vr,n.figure="LineH",n.stroke="gray",n.strokeWidth=.5,n.interval=5,t.add(n),n=new vr,n.figure="LineH",n.stroke="gray",n.strokeWidth=1,n.interval=10,t.add(n),n=new vr,n.figure="LineV",n.stroke="lightgray",n.strokeWidth=.5,n.interval=1,t.add(n),n=new vr,n.figure="LineV",n.stroke="gray",n.strokeWidth=.5,n.interval=5,t.add(n),n=new vr,n.figure="LineV",n.stroke="gray",n.strokeWidth=1,n.interval=10,t.add(n),n=new zn,n.add(t),n.layerName="Grid",n.zOrder=0,n.isInDocumentBounds=!1,n.isAnimated=!1,n.pickable=!1,n.locationObjectName="GRID",e.add(n),e.partManager.parts.remove(n),t.visible=!1,t}function Xh(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):qh(this.H)}function _f(e){this.H.isEnabled?(this.H.lu=e.target.scrollTop,this.H.ju=e.target.scrollLeft):qh(this.H)}Ct.prototype.kx=function(e){if(this.ta!==null){var t=this.ku,n=this.hu;this.qr=!0;var r=this.documentBounds,i=this.viewportBounds,o=this.rj,a=r.x-o.left,p=r.y-o.top,w=r.width+o.left+o.right,O=r.height+o.top+o.bottom,D=r.right+o.right;o=r.bottom+o.bottom;var X=i.x;r=i.y;var re=i.width,de=i.height,Se=i.right,Te=i.bottom;i=this.scale;var Xe=e.scrollLeft;if(this.tn)switch(this.bu){case"negative":Xe=Xe+e.scrollWidth-e.clientWidth;break;case"reverse":Xe=e.scrollWidth-Xe-e.clientWidth}var We=Xe;re<w||de<O?(Xe=Ue.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==We&&(Xe.x=We/i+a,this.ju=We),this.allowVerticalScroll&&this.lu!==e.scrollTop&&(Xe.y=e.scrollTop/i+p,this.lu=e.scrollTop),this.position=Xe,Ue.free(Xe),this.Ee=this.qr=!1):(Xe=Ue.alloc(),e.uy&&this.allowHorizontalScroll&&(a<X&&(this.position=Xe.h(We+a,this.position.y)),D>Se&&(this.position=Xe.h(-(t.scrollWidth-this.Aa)+We-this.Aa/i+D,this.position.y))),e.vy&&this.allowVerticalScroll&&(p<r&&(this.position=Xe.h(this.position.x,e.scrollTop+p)),o>Te&&(this.position=Xe.h(this.position.x,-(t.scrollHeight-this.ya)+e.scrollTop-this.ya/i+o))),Ue.free(Xe),this.vd=!0,this.Ee=this.qr=!1,r=this.documentBounds,i=this.viewportBounds,D=r.right,Se=i.right,o=r.bottom,Te=i.bottom,a=r.x,X=i.x,p=r.y,r=i.y,re>=w&&a>=X&&D<=Se&&(n.style.width="1px"),de>=O&&p>=r&&o<=Te&&(n.style.height="1px"))}},Ct.prototype.computeBounds=function(e){return e===void 0&&(e=new Nt),Cs(this),Zh(this,e)};function Zh(e,t){if(e.fixedBounds.w())return t.assign(e.fixedBounds),t.Co(e.yb),t;for(var n=!0,r=e.Wa.s,i=r.length,o=0;o<i;o++){var a=r[o];if(a.visible&&a.isInDocumentBounds){a=a.Pa.s;for(var p=a.length,w=0;w<p;w++){var O=a[w];O.isInDocumentBounds&&O.isVisible()&&(O=O.actualBounds,O.w()&&(n?(n=!1,t.assign(O)):t.ed(O)))}}}return n&&t.h(0,0,0,0),t.Co(e.yb),t}Ct.prototype.computePartsBounds=function(e,t){t===void 0&&(t=!1);var n=null;if(or(e))for(var r=0;r<e.length;r++){var i=e[r];!t&&i instanceof cn||(i.Va(),n===null?n=i.actualBounds.copy():n.ed(i.actualBounds))}else for(e=e.iterator;e.next();)r=e.value,!t&&r instanceof cn||(r.Va(),n===null?n=r.actualBounds.copy():n.ed(r.actualBounds));return n===null?new Nt(NaN,NaN,0,0):n};function ol(e,t){if((t||e.hf)&&!e.vb&&e.ta!==null&&e.documentBounds.w()){if(e.vb=!0,t){var n=e.initialPosition;if(n.w()){e.vb=!1,e.position=n;return}n=Ue.alloc(),n.xi(e.documentBounds,e.initialDocumentSpot);var r=e.viewportBounds;r=Nt.allocAt(0,0,r.width,r.height);var i=Ue.alloc();i.xi(r,e.initialViewportSpot),i.h(n.x-i.x,n.y-i.y),e.position=i,Nt.free(r),Ue.free(i),Ue.free(n)}n=e.yh,t&&e.Fg!==pa&&(n=e.Fg);var o=n!==pa?wc(e,n):e.scale;n=e.pa.x,r=e.pa.y,i=e.Aa/o;var a=e.ya/o,p=e.zk,w=e.pq;t&&!p.sb()&&(w.sb()||w.Xb())&&(p=w.Xb()?jr:w),Af(e,e.documentBounds,i,a,p,t),t=e.scale,e.scale=o,e.vb=!1,o=e.viewportBounds,vt.B(o.x,n)&&vt.B(o.y,r)&&vt.B(o.width,i)&&vt.B(o.height,a)||e.onViewportBoundsChanged(new Nt(n,r,i,a),o,t,!1)}}function wc(e,t){var n=e.Pp;if(e.ta===null)return n;e.Va();var r=e.documentBounds;if(!r.w())return n;var i=r.width;r=r.height;var o=e.Aa+(e.gf?e.Db:0),a=e.ya+(e.Be?e.Db:0),p=o/i,w=a/r;return t===Sl?(t=Math.min(w,p),t>n&&(t=n),t<e.minScale&&(t=e.minScale),t>e.maxScale&&(t=e.maxScale),t):t===Eh?(t=w>p?(a-e.Db)/r:(o-e.Db)/i,t>n&&(t=n),t<e.minScale&&(t=e.minScale),t>e.maxScale&&(t=e.maxScale),t):e.scale}Ct.prototype.zoomToFit=function(){var e=this.sj;this.sj=Kc,this.scale=wc(this,Sl),e!==Kc&&(ol(this,!1),Af(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=e},ye=Ct.prototype,ye.BA=function(e,t){t===void 0&&(t=Sl);var n=e.width,r=e.height;if(!(n===0||r===0||isNaN(n)&&isNaN(r))){var i=1;if(t===Sl||t===Eh)if(isNaN(n))i=this.viewportBounds.height*this.scale/r;else if(isNaN(r))i=this.viewportBounds.width*this.scale/n;else{i=this.Aa;var o=this.ya;i=t===Eh?o/r>i/n?(o-(this.Be?this.Db:0))/r:(i-(this.gf?this.Db:0))/n:Math.min(o/r,i/n)}this.scale=i,this.position=new Ue(e.x,e.y)}},ye.Jy=function(e,t){this.Va();var n=this.documentBounds,r=this.viewportBounds;this.position=new Ue(n.x+(e.x*n.width+e.offsetX)-(t.x*r.width-t.offsetX),n.y+(e.y*n.height+e.offsetY)-(t.y*r.height-t.offsetY))},ye.zz=function(e){if(e instanceof gt){this.eq=e;var t=Ue.alloc();this.fq=this.op(e.ga(No,t)),Ue.free(t)}else this.eq=null,this.fq=Jr};function Af(e,t,n,r,i,o){var a=Ue.allocAt(e.pa.x,e.pa.y),p=a.x,w=a.y;if(e.eq!==null){var O=Ue.alloc();O=e.eq.ga(No,O),p=O.x-e.fq.x/e.scale,w=O.y-e.fq.y/e.scale,i=So,Ue.free(O)}(o||e.scrollMode===Kc)&&(i.sb()&&(n>t.width&&(p=t.x+(i.x*t.width+i.offsetX)-(i.x*n-i.offsetX)),r>t.height&&(w=t.y+(i.y*t.height+i.offsetY)-(i.y*r-i.offsetY))),i=e.rj,o=n-t.width,n<t.width+i.left+i.right?(p=Math.min(p+n/2,t.right+Math.max(o,i.right)-n/2),p=Math.max(p,t.left-Math.max(o,i.left)+n/2),p-=n/2):p>t.left?p=t.left:p<t.right-n&&(p=t.right-n),n=r-t.height,r<t.height+i.top+i.bottom?(w=Math.min(w+r/2,t.bottom+Math.max(n,i.bottom)-r/2),w=Math.max(w,t.top-Math.max(n,i.top)+r/2),w-=r/2):w>t.top?w=t.top:w<t.bottom-r&&(w=t.bottom-r)),a.x=isFinite(p)?p:-e.yb.left,a.y=isFinite(w)?w:-e.yb.top,e.positionComputation!==null&&(t=e.positionComputation(e,a),a.x=t.x,a.y=t.y),cu(e.Yd,e.pa,a),e.pa.h(a.x,a.y),Yu(e),Ue.free(a)}ye.Ol=function(e,t){if(t===void 0&&(t=!0),t){if(e=fu(this,e,function(n){return n.part},function(n){return n.canSelect()}),e instanceof zn)return e}else if(e=fu(this,e,function(n){return n.part}),e instanceof zn)return e;return null},ye.ic=function(e,t,n){t===void 0&&(t=null),n===void 0&&(n=null),Cs(this);for(var r=this.Wa.iteratorBackwards;r.next();){var i=r.value;if(i.visible&&(i=i.ic(e,t,n),i!==null))return i}return null};function fu(e,t,n,r){for(n===void 0&&(n=null),r===void 0&&(r=null),Cs(e),e=e.Wa.iteratorBackwards;e.next();){var i=e.value;if(i.visible&&!i.isTemporary&&(i=i.ic(t,n,r),i!==null))return i}return null}ye.lz=function(e,t,n){return t===void 0&&(t=!0),Cc(this,e,function(r){return r.part},t?function(r){return r instanceof zn&&r.canSelect()}:null,n)};function Cc(e,t,n,r,i){for(n===void 0&&(n=null),r===void 0&&(r=null),i instanceof tn||i instanceof ut||(i=new ut),Cs(e),e=e.Wa.iteratorBackwards;e.next();){var o=e.value;o.visible&&!o.isTemporary&&o.ji(t,n,r,i)}return i}ye.ji=function(e,t,n,r){t===void 0&&(t=null),n===void 0&&(n=null),r instanceof tn||r instanceof ut||(r=new ut),Cs(this);for(var i=this.Wa.iteratorBackwards;i.next();){var o=i.value;o.visible&&o.ji(e,t,n,r)}return r},ye.ux=function(e,t,n,r){return t===void 0&&(t=!1),n===void 0&&(n=!0),vh(this,e,function(i){return i instanceof zn&&(!n||i.canSelect())},t,r)},ye.Cf=function(e,t,n,r,i){t===void 0&&(t=null),n===void 0&&(n=null),r===void 0&&(r=!1),i instanceof tn||i instanceof ut||(i=new ut),Cs(this);for(var o=this.Wa.iteratorBackwards;o.next();){var a=o.value;a.visible&&a.Cf(e,t,n,r,i)}return i},ye.Nu=function(e,t,n,r,i,o){var a=new ut;Cs(this);for(var p=this.Wa.iteratorBackwards;p.next();){var w=p.value;w.visible&&w.Nu(e,t,n,r,a,i,o)}return a};function vh(e,t,n,r,i){var o=null;for(o===void 0&&(o=null),n===void 0&&(n=null),r===void 0&&(r=!1),i instanceof tn||i instanceof ut||(i=new ut),Cs(e),e=e.Wa.iteratorBackwards;e.next();){var a=e.value;a.visible&&!a.isTemporary&&a.Cf(t,o,n,r,i)}return i}ye.mz=function(e,t,n,r,i){return n===void 0&&(n=!0),r===void 0&&(r=!0),Tc(this,e,t,function(o){return o instanceof zn&&(!r||o.canSelect())},n,i)},ye.og=function(e,t,n,r,i,o){n===void 0&&(n=null),r===void 0&&(r=null),i===void 0&&(i=!0),i!==!1&&i!==!0&&((i instanceof tn||i instanceof ut)&&(o=i),i=!0),o instanceof tn||o instanceof ut||(o=new ut),Cs(this);for(var a=this.Wa.iteratorBackwards;a.next();){var p=a.value;p.visible&&p.og(e,t,n,r,i,o)}return o};function Tc(e,t,n,r,i,o){var a=null;for(a===void 0&&(a=null),r===void 0&&(r=null),i===void 0&&(i=!0),i!==!1&&i!==!0&&((i instanceof tn||i instanceof ut)&&(o=i),i=!0),o instanceof tn||o instanceof ut||(o=new ut),Cs(e),e=e.Wa.iteratorBackwards;e.next();){var p=e.value;p.visible&&!p.isTemporary&&p.og(t,n,a,r,i,o)}return o}Ct.prototype.acceptEvent=function(e){return $a(this,e,e instanceof MouseEvent)};function $a(e,t,n){var r=e.Qg;return e.Qg=e.cj,e.cj=r,r.diagram=e,r.event=t,n?$s(e,t,r):(r.viewPoint=e.Qg.viewPoint,r.documentPoint=e.Qg.documentPoint),e=0,t.ctrlKey&&(e+=1),t.altKey&&(e+=2),t.shiftKey&&(e+=4),t.metaKey&&(e+=8),r.modifiers=e,r.button=t.button,t.buttons!==void 0&&(r.buttons=t.buttons),Wo&&t.button===0&&t.ctrlKey&&(r.button=2),r.down=!1,r.up=!1,r.clickCount=1,r.delta=0,r.handled=!1,r.bubbles=!1,r.timestamp=t.timeStamp,r.isMultiTouch=!1,r.targetDiagram=kf(t,t.target),r.targetObject=null,r}function kf(e,t){return t===null?null:(t=t.H)?t:((t=e.path)||typeof e.composedPath!="function"||(t=e.composedPath()),t&&t[0]&&t[0].H?t[0].H:null)}function vo(e,t,n,r,i,o){var a=e.Qg;return e.Qg=e.cj,e.cj=a,a.diagram=e,a.clickCount=1,e=a.delta=0,t.ctrlKey&&(e+=1),t.altKey&&(e+=2),t.shiftKey&&(e+=4),t.metaKey&&(e+=8),a.modifiers=e,a.event=t,a.timestamp=t.timeStamp,a.button=t.button,a.buttons=t.buttons,Wo&&t.button===0&&t.ctrlKey&&(a.button=2),a.down=n,a.up=r,a.handled=!1,a.bubbles=i,a.isMultiTouch=o,a}function Xi(e,t){return e.bubbles?!0:(t.stopPropagation!==void 0&&t.stopPropagation(),t.cancelable!==!1&&t.preventDefault(),t.cancelBubble=!0,!1)}Ct.prototype.Qz=function(e){var t=this.H;if(!this.H.isEnabled)return!1;var n=$a(t,e,!1);switch(n.key=String.fromCharCode(e.which),n.down=!0,e.which){case 8:n.key="Backspace";break;case 33:n.key="PageUp";break;case 34:n.key="PageDown";break;case 35:n.key="End";break;case 36:n.key="Home";break;case 37:n.key="Left";break;case 38:n.key="Up";break;case 39:n.key="Right";break;case 40:n.key="Down";break;case 45:n.key="Insert";break;case 46:n.key="Del";break;case 48:n.key="0";break;case 187:case 61:case 107:n.key="Add";break;case 189:case 173:case 109:n.key="Subtract";break;case 27:n.key="Esc"}return t.doKeyDown(),Xi(n,e)},Ct.prototype.Rz=function(e){var t=this.H;if(!t.isEnabled)return!1;var n=$a(t,e,!1);switch(n.key=String.fromCharCode(e.which),n.up=!0,e.which){case 8:n.key="Backspace";break;case 33:n.key="PageUp";break;case 34:n.key="PageDown";break;case 35:n.key="End";break;case 36:n.key="Home";break;case 37:n.key="Left";break;case 38:n.key="Up";break;case 39:n.key="Right";break;case 40:n.key="Down";break;case 45:n.key="Insert";break;case 46:n.key="Del"}return t.doKeyUp(),Xi(n,e)},Ct.prototype.bz=function(e){var t=this.H;if(!t.isEnabled)return!1;var n=$a(t,e,!0);return t.mouseEnter!==null&&t.mouseEnter(n),t.currentTool.standardMouseOver(),Xi(n,e)},Ct.prototype.cz=function(e){var t=this.H;if(!t.isEnabled)return!1;var n=$a(t,e,!0);return t.mouseLeave!==null&&t.mouseLeave(n),Xi(n,e)},Ct.prototype.getMouse=function(e){var t=this.ta;if(t===null)return new Ue(0,0);var n=t.getBoundingClientRect();return t=e.clientX-this.Aa/n.width*n.left,e=e.clientY-this.ya/n.height*n.top,this.Ab!==null?wr(new Ue(t,e),this.Ab):new Ue(t,e)};function $s(e,t,n){var r=e.ta,i=e.Aa,o=e.ya,a=0,p=0;r!==null&&(r=r.getBoundingClientRect(),a=t.clientX-i/r.width*r.left,p=t.clientY-o/r.height*r.top),n.viewPoint.h(a,p),e.Ab!==null?(t=Ue.allocAt(a,p),e.Ab.Cd(t),n.documentPoint.assign(t),Ue.free(t)):n.documentPoint.h(a,p)}function bl(e,t,n){if(e.oj[0]!==null){t=e.oj[t];var r=e.ta;r!==null&&(r=r.getBoundingClientRect(),n.h(t.clientX-e.Aa/r.width*r.left,t.clientY-e.ya/r.height*r.top))}}Ct.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function Ea(e){e.ld||Cs(e),e.Va()}Ct.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},ye=Ct.prototype,ye.Pz=function(){return this.kg},ye.Xy=function(e){e===void 0&&(e=null);var t=this.animationManager,n=t.isEnabled;t.Cc(),t.isEnabled=!1,ta(this),this.hf=!1,this.du=new Ue(NaN,NaN),t.isEnabled=n,this.ld=!0;var r=this;e!==null&&gi(function(){r.ld=!1,ra(t,"Model"),e(r)},1)},ye.$b=function(e){if(e===void 0&&(e=!1),this.kg!==!0&&!(this.vb||e===!1&&this.ld)){this.kg=!0;var t=this;vn.requestAnimationFrame(function(){t.kg&&t.bd()})}},ye.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),ta(this))};function Zl(e,t,n){!e.Ee||e.vb||e.animationManager.defaultAnimation.isAnimating||qh(e)||(t&&Cs(e),n&&ol(e,!1))}function ta(e,t){if(!e.ld&&(e.kg=!1,e.Ka!==null||e.wo.w())){e.ld=!0;var n=e.animationManager,r=e.Xn;if(!n.isAnimating&&r.length!==0){for(var i=r.s,o=i.length,a=0;a<o;a++){var p=i[a];gs(p,!1),p.v()}r.clear()}r=e.ow,0<r.count&&(r.each(function(w){w.Nv()}),r.clear()),i=r=!1,n.defaultAnimation.isAnimating&&(i=!0,r=e.skipsUndoManager,e.skipsUndoManager=!0),n.zb||Yh(e),Zl(e,!1,!0),e.fe!==null&&(e.fe.visible&&!e.mq&&(Ku(e),e.mq=!0),!e.fe.visible&&e.mq&&(e.mq=!1)),Cs(e),o=!1,(!e.hf||e.xh)&&(e.hf?up(e,!e.Jk):(e.Ea("Initial Layout"),n.isEnabled===!1&&n.Cc(),up(e,!1)),o=!0),e.Jk=!1,Cs(e),e.ou||Ea(e),Zl(e,!0,!1),a=!1,o?(n=Nt.alloc(),n.assign(e.viewportBounds),e.hf||(a=e.hf=!0,e.skipsUndoManager||(e.undoManager.isPendingClear=!0),e.undoManager.isPendingUnmodified=!0,Vu(e)),e.R("LayoutCompleted"),Zl(e,!0,!1),Nt.free(n)):n.Ok&&n.Qw&&(e.Fg!==pa?e.scale=wc(e,e.Fg):e.yh!==pa?e.scale=wc(e,e.yh):(n=e.initialScale,isFinite(n)&&0<n&&(e.scale=n)),ol(e,!0)),o&&a&&e.eb("Initial Layout"),Cs(e),t||e.gc(e.ib),i&&(e.skipsUndoManager=r),e.ld=!1}}function Vu(e){if(e.Fg!==pa)e.scale=wc(e,e.Fg);else if(e.yh!==pa)e.scale=wc(e,e.yh);else{var t=e.initialScale;isFinite(t)&&0<t&&(e.scale=t)}ol(e,!0),t=e.Wa.s,e.Fd(t,t.length,e,e.viewportBounds),e.R("InitialLayoutCompleted"),e.du.assign(e.pa),Ku(e)}function Cs(e){if(e.De.count!==0&&(e.ld||!e.animationManager.isTicking)){for(var t=0;23>t;t++){var n=e.De.iterator;if(n===null||e.De.count===0)break;e.De=new ut,e.Nv(n,e.De)}e.nodes.each(function(r){r instanceof lr&&r.U&65536&&(r.U=r.U^65536)})}}ye.Nv=function(e,t){for(e.reset();e.next();){var n=e.value;!n.Zc()||n instanceof lr||(n.si()?(n.measure(1/0,1/0),n.arrange()):t.add(n))}for(e.reset();e.next();)n=e.value,n instanceof lr&&n.isVisible()&&_c(this,n);for(e.reset();e.next();)n=e.value,n instanceof cn&&n.isVisible()&&(n.si()?(n.measure(1/0,1/0),n.arrange()):t.add(n));for(e.reset();e.next();)n=e.value,n instanceof qr&&n.isVisible()&&(n.si()?(n.measure(1/0,1/0),n.arrange()):t.add(n))};function _c(e,t){for(var n=yr(),r=yr(),i=t.memberParts;i.next();){var o=i.value;o.isVisible()&&(o instanceof lr?(El(o)||Ca(o)||Ch(o))&&_c(e,o):o instanceof cn?o.fromNode===t||o.toNode===t?r.push(o):n.push(o):(o.measure(1/0,1/0),o.arrange()))}for(e=n.length,i=0;i<e;i++)o=n[i],o.measure(1/0,1/0),o.arrange();for(Mr(n),t.measure(1/0,1/0),t.arrange(),e=r.length,t=0;t<e;t++)n=r[t],n.measure(1/0,1/0),n.arrange();Mr(r)}ye.Fd=function(e,t,n,r){if(this.vd||this.animationManager.isAnimating)for(var i=0;i<t;i++)e[i].Fd(n,r)},ye.gc=function(e){if(this.Ka!==null){if(this.ta===null&&Lt("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var t=this.animationManager;if(!t.zb&&(!t.isAnimating||t.isTicking)){Qh(this);var n=this.Aa,r=this.ya;if(e.Gv.resize(n,r,n,r),n=this.Wa.s,r=n.length,this.Fd(n,r,this,this.viewportBounds),this.Fc||t.isAnimating){t=this.pa;var i=this.Ca,o=Math.round(t.x*i)/i,a=Math.round(t.y*i)/i,p=this.Ab;for(p.reset(),i!==1&&p.scale(i),t.x===0&&t.y===0||p.translate(-o,-a),e.ti=null,a0(e,p.m11,p.m12,p.m21,p.m22,p.dx,p.dy),this.pb!==1&&(e.globalAlpha=this.pb),Wc(this,e),t=this.Mb,this.ta.context.setTransform(t,0,0,t,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya),t=0;t<r;t++)n[t].gc(e,this);e=!1,this.Yf?of(this.Yf,this)&&(e=this.Vp()):e=!0,e&&(dr.prototype.Cd=dr.prototype.Eu),this.Fc=this.vd=!1}}}}else e:if(o=this.animationManager,!o.zb&&(!o.isAnimating||o.isTicking)&&(n=new Date,Qh(this),this.Ka.style.opacity!=="0")){if(r=e!==this.ib,t=this.Wa.s,i=t.length,this.Fd(t,i,this,this.viewportBounds),r)e.Vc(!0),this.vd=!0;else if(!this.Fc&&!o.isAnimating)break e;o=this.Ab,o.reset(),a=this.Mb,p=this.pa;var w=this.Ca,O=Math.round(p.x*w)/w,D=Math.round(p.y*w)/w;for(w!==1&&o.scale(w),p.x===0&&p.y===0||o.translate(-O,-D),e.setTransform(a,0,0,a,0,0),e.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(e.globalAlpha=this.pb),Wc(this,e),p=0;p<i;p++)e.setTransform(a,0,0,a,0,0),e.transform(o.m11,o.m12,o.m21,o.m22,o.dx,o.dy),e.yc(),t[p].gc(e,this);if(t=!1,this.Yf?of(this.Yf,this)&&(t=this.Vp()):t=!0,t&&(dr.prototype.Cd=dr.prototype.Eu),r?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,t=+new Date-+n,r=Bs&&Bs.nx,n=this.zw,r||this.Yh===null){for(n[this.Tq]=t,this.Tq=(this.Tq+1)%n.length,i=t=0;i<n.length;i++)t+=n[i];this.Sq=t/n.length}if(this.pb!==1&&(e.globalAlpha=1),r)for(e.setTransform(1,0,0,1,0,0),r=0;r<n.length;r++)e.fillText(n[r].toString(),20,150+ +(20*r))}}};function rd(e,t,n,r,i,o,a,p,w,O){if(e.Ka!==null){e.ta===null&&Lt("No canvas specified"),a===void 0&&(a=null),p===void 0&&(p=null),w===void 0&&(w=!1),O===void 0&&(O=!1),Qh(e),e.ib.Vc(!0),e.vd=!0,e.$i=!0;var D=e.Ca;e.Ca=i;var X=e.Wa.s,re=X.length;try{var de=new Nt(o.x,o.y,r.width/i,r.height/i),Se=de.copy();Se.Co(n),Ku(e,Se),Cs(e),e.Fd(X,re,e,de),t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,r.width,r.height),p!==null&&p!==""&&(t.fillStyle=p,t.ox(0,0,r.width,r.height));var Te=e.Mb;t.scale(Te,Te);var Xe=dr.alloc();Xe.reset(),Xe.translate(n.left,n.top),Xe.scale(i),o.x===0&&o.y===0||Xe.translate(-o.x,-o.y),t.setTransform(Xe.m11,Xe.m12,Xe.m21,Xe.m22,Xe.dx,Xe.dy),t.yc(),t instanceof sl&&a0(t,Xe.m11,Xe.m12,Xe.m21,Xe.m22,Xe.dx,Xe.dy),dr.free(Xe),Wc(e,t),t.globalAlpha=e.pb;var We=e.Qj("Grid");if(a){var qe=new ut,tt=a.iterator;for(tt.reset();tt.next();){var rt=tt.value;rt instanceof zn&&(O||rt.layer!==We)&&(rt.Gj(),qe.add(rt))}for(O=0;O<re;O++)ea(X[O],t,e,qe,w);qe.each(function(Tt){return Tt.Gj()})}else for(qe=0;qe<re;qe++){var ft=X[qe];ft===We?O&&ft.gc(t,e,!0):ft.gc(t,e,w)}e.$i=!1,e.Yf&&of(e.Yf,e)&&e.Vp()}finally{e.Ca=D,e.ib.Vc(!0),e.vd=!0,e.Fd(X,re,e,e.viewportBounds),Ku(e),e.ib instanceof sl&&(e.ib.Nj.PA(),e.redraw())}}}ye.Gf=function(e){return this.Rg[e]},ye.Xx=function(e,t){e==="minDrawingLength"&&(this.Oq=t),this.Rg[e]=t,this.redraw()},ye.Tx=function(){this.Rg=new yo,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(Wo||ys),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function Wc(e,t){e=e.Rg,e!==null&&(e.imageSmoothingEnabled!==void 0&&t.Wx(!!e.imageSmoothingEnabled),e=e.defaultFont,e!=null&&(t.font=e))}ye.Ql=function(e){return this.on[e]},ye.sA=function(e,t){this.on[e]=t},ye.Sx=function(){this.on=new yo,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},ye.set=function(e){return Object.assign(this,e),this},ye.Du=function(e){return this.nm(e)},ye.nm=function(e){return Jh(this,e),this};function Jh(e,t){var n=e instanceof qt,r=e instanceof Ct,i;for(i in t){i===""&&Lt("Setting properties requires non-empty property names");var o=e,a=i;if(n||r){var p=i.indexOf(".");if(0<p){var w=i.substring(0,p);n?o=e.fb(w):(o=e[w],o==null&&(o=e.toolManager[w])),bn(o)?a=i.substr(p+1):Lt("Unable to find object named: "+w+" in "+e.toString()+" when trying to set property: "+i)}}if(a[0]!=="_"&&!so(o,a))if(r&&a==="ModelChanged"){e.Yw(t[a]);continue}else if(r&&a==="Changed"){e.Pe(t[a]);continue}else if(r&&so(e.toolManager,a))o=e.toolManager;else if(r&&vg(e,a)){e.Bj(a,t[a]);continue}else if(e instanceof Pn&&a==="Changed"){e.Pe(t[a]);continue}else Lt('Trying to set undefined property "'+a+'" on object: '+o.toString());o[a]=t[i],a[0]==="_"&&o instanceof gt&&o.Vw(a)}}ye.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var e=this.Eh;for(this.Eh=new nn,e=e.iterator;e.next();){var t=e.key;t.Xo(e.value),t.qc()}}this.N()}},ye.N=function(e){if(e===void 0)this.Fc=!0,this.$b();else{var t=this.viewportBounds;e.w()&&t.Yc(e)&&(this.Fc=!0,this.$b())}this.R("InvalidateDraw")},Ct.prototype.invalidateViewport=function(e,t){if(this.Fc!==!0)if(this.Fc=!0,this.nl==="svg")this.bd();else{var n=this.Gf("temporaryPixelRatio")===!0;if(this.Gf("viewportOptimizations")===!0&&this.scrollMode!==If&&this.rj.hi(0,0,0,0)&&t.width===e.width&&t.height===e.height){var r=this.scale,i=Math.max(e.y,t.y),o=Math.min(e.y+e.height,t.y+t.height);if(0<Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x))*r&&0<Math.max(0,o-i)*r){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(r=Nt.alloc(),lp(this,this.computeBounds(r)),Nt.free(r)),r=this.ta,r===null||r instanceof $u)))){var a=this.Mb;i=this.Aa*a;var p=this.ya*a,w=this.scale*a;o=Math.round(Math.round(t.x*w)-Math.round(e.x*w)),t=Math.round(Math.round(t.y*w)-Math.round(e.y*w)),w=this.jw,e=this.oy,w.width!==i&&(w.width=i),w.height!==p&&(w.height=p),e.clearRect(0,0,i,p),w=190*a;var O=70*a,D=Math.max(o,0),X=Math.max(t,0),re=Math.floor(i-D),de=Math.floor(p-X);e.drawImage(r.Oa,D,X,re,de,0,0,re,de),of(this.Yf,this)&&e.clearRect(0,0,w,O),r=yr(),e=yr(),de=Math.abs(o),re=Math.abs(t);var Se=D===0?0:i-de;D=Ue.allocAt(Se,0),de=Ue.allocAt(de+Se,p),e.push(new Nt(Math.min(D.x,de.x),Math.min(D.y,de.y),Math.abs(D.x-de.x),Math.abs(D.y-de.y)));var Te=this.Ab;if(Te.reset(),Te.scale(a,a),this.Ca!==1&&Te.scale(this.Ca),a=this.pa,(a.x!==0||a.y!==0)&&isFinite(a.x)&&isFinite(a.y)&&Te.translate(-a.x,-a.y),wr(D,Te),wr(de,Te),r.push(new Nt(Math.min(D.x,de.x),Math.min(D.y,de.y),Math.abs(D.x-de.x),Math.abs(D.y-de.y))),Se=X===0?0:p-re,D.h(0,Se),de.h(i,re+Se),e.push(new Nt(Math.min(D.x,de.x),Math.min(D.y,de.y),Math.abs(D.x-de.x),Math.abs(D.y-de.y))),wr(D,Te),wr(de,Te),r.push(new Nt(Math.min(D.x,de.x),Math.min(D.y,de.y),Math.abs(D.x-de.x),Math.abs(D.y-de.y))),of(this.Yf,this)&&(i=0<o?0:-o,p=0<t?0:-t,D.h(i,p),de.h(w+i,O+p),e.push(new Nt(Math.min(D.x,de.x),Math.min(D.y,de.y),Math.abs(D.x-de.x),Math.abs(D.y-de.y))),wr(D,Te),wr(de,Te),r.push(new Nt(Math.min(D.x,de.x),Math.min(D.y,de.y),Math.abs(D.x-de.x),Math.abs(D.y-de.y)))),Ue.free(D),Ue.free(de),Zl(this,!1,!0),this.Ka===null&&Lt("No div specified"),this.ta===null&&Lt("No canvas specified"),!this.animationManager.zb&&(i=this.ib,this.Fc)){for(Qh(this),p=this.Mb,i.setTransform(1,0,0,1,0,0),i.clearRect(0,0,this.Aa*p,this.ya*p),i.drawImage(this.jw.Oa,0<o?0:Math.round(-o),0<t?0:Math.round(-t)),o=this.pa,a=this.Ca,w=Math.round(o.x*a)/a,O=Math.round(o.y*a)/a,t=this.Ab,t.reset(),a!==1&&t.scale(a),o.x===0&&o.y===0||t.translate(-w,-O),i.save(),i.beginPath(),o=e.length,a=0;a<o;a++)w=e[a],w.width!==0&&w.height!==0&&i.rect(Math.floor(w.x),Math.floor(w.y),Math.ceil(w.width),Math.ceil(w.height));for(i.clip(),i.setTransform(p,0,0,p,0,0),i.transform(t.m11,t.m12,t.m21,t.m22,t.dx,t.dy),i.yc(),t=this.Wa.s,o=t.length,this.Fd(t,o,this,this.viewportBounds),Wc(this,i),i.globalAlpha=this.pb,p=0;p<o;p++)if(a=t[p],w=r,a.visible&&a.pb!==0){O=Yo(a,i),X=a.Zq,X.length=0,D=this.scale,re=Nt.alloc(),de=a.Pa.s,Te=de.length,Se=w.length;for(var Xe=0;Xe<Te;Xe++){var We=de[Xe],qe=ff(We,We.actualBounds);e:{for(var tt=2/D,rt=4/D,ft=0;ft<Se;ft++){var Tt=w[ft];if(Tt.width!==0&&Tt.height!==0&&qe.Vu(Tt.x-tt,Tt.y-tt,Tt.width+rt,Tt.height+rt)){qe=!0;break e}}qe=!1}qe&&a.Oj(i,We,this,X,D,re,!0)}Nt.free(re),i.globalAlpha=O}i.restore(),i.Vc(!0),this.Yf&&of(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}Mr(r),Mr(e),this.ld=!1}}else this.bd();n&&(da(this),this.bd(),gh(this,!0))}else n?(da(this),this.bd(),gh(this,!0)):this.bd()}};function Qh(e){e.pn!==!1&&(e.pn=!1,tp(e,e.Aa,e.ya))}function tp(e,t,n){Yu(e);var r=e.Mb;e.ta.resize(t*r,n*r,t,n)&&(e.Fc=!0,e.ib.Vc(!0))}function qh(e){var t=e.ta;if(t===null||e.wo.w())return!0;var n=e.Aa,r=e.ya,i=e.Ka,o=!1,a=e.gf?e.Db:0,p=e.Be?e.Db:0,w=i.clientWidth||n+a,O=i.clientHeight||r+p,D=e.viewportBounds;i=D.x;var X=D.y,re=D.width,de=D.height;if((w!==n+a||O!==r+p)&&(e.gf=!1,e.Be=!1,p=a=0,e.Aa=w,e.ya=O,o=e.pn=!0,Yu(e)),!e.hf||!e.viewportBounds.w())return!0;var Se=e.ku,Te=e.hu;if(e.Ee=!1,!(o||e.gf||e.Be||e.mn||e.nn))return!0;var Xe=e.documentBounds,We=0,qe=0,tt=0,rt=0,ft=D.width,Tt=D.height,Sn=e.rj;e.contentAlignment.sb()?(Xe.width>ft&&(We=Sn.left,qe=Sn.right),Xe.height>Tt&&(tt=Sn.top,rt=Sn.bottom)):(We=Sn.left,qe=Sn.right,tt=Sn.top,rt=Sn.bottom);var Rn=Xe.width+We+qe,_n=Xe.height+tt+rt;Sn=e.scale;var ln=Rn>w/Sn,Gt=_n>O/Sn;if(!(o||e.gf||e.Be||ln||Gt))return!0;We=Xe.x-We,w=D.x,qe=Xe.right+qe,O=D.right+a,tt=Xe.y-tt;var ar=D.y;Xe=Xe.bottom+rt,D=D.bottom+p;var er="1px";if(rt="1px",e.scrollMode===Kc&&(ln||Gt)&&(ln&&e.hasHorizontalScrollbar&&e.allowHorizontalScroll&&(ln=1,We+1<w&&(ln=Math.max((w-We)*Sn+e.Aa,ln)),qe>O+1&&(ln=Math.max((qe-O)*Sn+e.Aa,ln)),ft+a+1<Rn&&(ln=Math.max((Rn-ft)*Sn+e.Aa,ln)),er=ln.toString()+"px"),Gt&&e.hasVerticalScrollbar&&e.allowVerticalScroll&&(ln=1,tt+1<ar&&(ln=Math.max((ar-tt)*Sn+e.ya,ln)),Xe>D+1&&(ln=Math.max((Xe-D)*Sn+e.ya,ln)),Tt+p+1<_n&&(ln=Math.max((_n-Tt)*Sn+e.ya,ln)),rt=ln.toString()+"px")),ln=er!=="1px",Gt=rt!=="1px",ln&&Gt||!ln&&!Gt||(Gt&&(O-=e.Db),ln&&(D-=e.Db),Rn<ft+a||!e.hasHorizontalScrollbar||!e.allowHorizontalScroll||(a=1,We+1<w&&(a=Math.max((w-We)*Sn+e.Aa,a)),qe>O+1&&(a=Math.max((qe-O)*Sn+e.Aa,a)),ft+1<Rn&&(a=Math.max((Rn-ft)*Sn+e.Aa,a)),er=a.toString()+"px"),ln=er!=="1px",a=e.ya,ln!==e.Be&&(a=ln?e.ya-e.Db:e.ya+e.Db),_n<Tt+p||!e.hasVerticalScrollbar||!e.allowVerticalScroll||(p=1,tt+1<ar&&(p=Math.max((ar-tt)*Sn+a,p)),Xe>D+1&&(p=Math.max((Xe-D)*Sn+a,p)),Tt+1<_n&&(p=Math.max((_n-Tt)*Sn+a,p)),rt=p.toString()+"px"),Gt=rt!=="1px"),e.qr&&ln===e.Be&&Gt===e.gf)return n===e.Aa&&r===e.ya||e.bd(),!1;if(ln!==e.Be&&(er==="1px"?e.ya=e.ya+e.Db:e.ya=Math.max(e.ya-e.Db,1),o=!0),e.Be=ln,Te.style.width=er,Gt!==e.gf&&(rt==="1px"?e.Aa=e.Aa+e.Db:e.Aa=Math.max(e.Aa-e.Db,1),o=!0,e.tn&&(p=Ue.alloc(),Gt?(t.style.left=e.Db+"px",e.position=p.h(e.pa.x+e.Db/e.scale,e.pa.y)):(t.style.left="0px",e.position=p.h(e.pa.x-e.Db/e.scale,e.pa.y)),Ue.free(p))),o&&Yu(e),e.gf=Gt,Te.style.height=rt,e.gu=!0,o&&(e.pn=!0),t=Se.scrollLeft,e.hasHorizontalScrollbar&&e.allowHorizontalScroll&&(ft+1<Rn?t=(e.position.x-We)*Sn:We+1<w?t=Se.scrollWidth-Se.clientWidth:qe>O+1&&(t=e.position.x*Sn)),e.tn)switch(e.bu){case"negative":t=-(Se.scrollWidth-t-Se.clientWidth);break;case"reverse":t=Se.scrollWidth-t-Se.clientWidth}return Se.scrollLeft=t,e.hasVerticalScrollbar&&e.allowVerticalScroll&&(Tt+1<_n?Se.scrollTop=(e.position.y-tt)*Sn:tt+1<ar?Se.scrollTop=Se.scrollHeight-Se.clientHeight:Xe>D+1&&(Se.scrollTop=e.position.y*Sn)),w=e.Aa,O=e.ya,Se.style.width=w+(e.gf?e.Db:0)+"px",Se.style.height=O+(e.Be?e.Db:0)+"px",n!==w||r!==O||e.animationManager.zb?(n=Nt.allocAt(i,X,re,de),e.onViewportBoundsChanged(n,e.viewportBounds,Sn,o),Nt.free(n),!1):!0}ye=Ct.prototype,ye.add=function(e){var t=e.diagram;if(t!==this&&(t!==null&&Lt("Cannot add part "+e.toString()+" to "+this.toString()+". It is already a part of "+t.toString()),t=this.Qj(e.layerName),t===null&&(t=this.Qj("")),t===null&&Lt('Cannot add a Part when unable find a Layer named "'+e.layerName+'" and there is no default Layer'),e.layer!==t)){var n=t.oi(99999999,e,e.diagram===this);0<=n&&this.cb(xo,"parts",t,null,e,null,n),t.isTemporary||this.Ya(),e.C(1),n=e.layerChanged,n!==null&&n(e,null,t)}},ye.oi=function(e){this.partManager.oi(e);var t=this;uf(e,function(n){ef(t,n)}),(e instanceof qr||e instanceof lr&&e.placeholder!==null)&&e.v(),e.data!==null&&uf(e,function(n){by(t.partManager,n)}),Ca(e)!==!0&&Ch(e)!==!0||this.De.add(e),Z0(e,!0,this),Q0(e)?(e.actualBounds.w()&&this.N(ff(e,e.actualBounds)),this.Ya()):e.isVisible()&&e.actualBounds.w()&&this.N(ff(e,e.actualBounds)),this.$b()},ye.pc=function(e){e.Ej(),this.partManager.pc(e);var t=this;e.data!==null&&uf(e,function(n){Sy(t.partManager,n,t)}),this.De.remove(e),Q0(e)?(e.actualBounds.w()&&this.N(ff(e,e.actualBounds)),this.Ya()):e.isVisible()&&e.actualBounds.w()&&this.N(ff(e,e.actualBounds)),this.$b()},ye.remove=function(e){np(this,e,!0)};function np(e,t,n){var r=t.layer;r!==null&&r.diagram===e&&(t.isSelected=!1,t.isHighlighted=!1,t.C(2),n&&t.Lj(),n=r.pc(-1,t,!1),0<=n&&e.cb(Lo,"parts",r,t,null,n,null),e=t.layerChanged,e!==null&&e(t,r,null))}ye.Is=function(e,t){if(t===void 0&&(t=!1),or(e))for(var n=e.length,r=0;r<n;r++){var i=e[r];t&&!i.canDelete()||this.remove(i)}else for(n=new ut,n.addAll(e),e=n.iterator;e.next();)n=e.value,t&&!n.canDelete()||this.remove(n)},ye.Kj=function(e,t,n){return n===void 0&&(n=!1),this.partManager.Kj(e,t,n)},Ct.prototype.moveParts=function(e,t,n,r){if(n===void 0&&(n=!1),r===void 0&&(r=id(this)),this.toolManager!==null){var i=new nn;if(e!==null)if(or(e))for(var o=0;o<e.length;o++)rc(this,i,e[o],n,r);else for(e=e.iterator;e.next();)rc(this,i,e.value,n,r);else{for(e=this.parts;e.next();)rc(this,i,e.value,n,r);for(e=this.nodes;e.next();)rc(this,i,e.value,n,r);for(e=this.links;e.next();)rc(this,i,e.value,n,r)}yh(this,i,t,r,n)}};function rc(e,t,n,r,i,o){if(!t.contains(n)&&(o===void 0&&(o=!1),!r||o||n.canMove()||n.canCopy()))if(i===void 0&&(i=id(e)),n instanceof En){if(t.add(n,e.Pd(i,n,n.location)),n instanceof lr&&(n.placeholder!==null||i.dragsMembers))for(o=n.memberParts;o.next();)rc(e,t,o.value,r,i,i.groupsAlwaysMove);for(o=n.linksConnected;o.next();){var a=o.value;if(!t.contains(a)){var p=a.fromNode,w=a.toNode;p!==null&&t.contains(p)&&w!==null&&t.contains(w)&&rc(e,t,a,r,i)}}if(i.dragsTree)for(n=n.Ou();n.next();)rc(e,t,n.value,r,i)}else if(n instanceof cn)for(t.add(n,e.Pd(i,n)),n=n.labelNodes;n.next();)rc(e,t,n.value,r,i);else n instanceof qr||t.add(n,e.Pd(i,n,n.location))}function yh(e,t,n,r,i){if(t!==null&&t.count!==0){var o=Ue.alloc(),a=Ue.alloc();a.assign(n),isNaN(a.x)&&(a.x=0),isNaN(a.y)&&(a.y=0),(n=e.Mr)||sd(e,t);for(var p=yr(),w=yr(),O=t.iterator,D=Ue.alloc();O.next();){var X=O.key,re=O.value;if(X.Zc()){var de=rp(e,X,t);de!==null?p.push(new l(X,re,de)):(!i||X.canMove())&&(de=re.point,o.assign(de),e.computeMove(X,o.add(a),r,D),X.location=D,re.shifted===void 0&&(re.shifted=new Ue),re.shifted.assign(D.re(de)))}else O.key instanceof cn&&w.push(O.sa)}for(Ue.free(D),i=p.length,O=0;O<i;O++)X=p[O],o.assign(X.info.point),X.Su.shifted===void 0&&(X.Su.shifted=new Ue),X.node.location=o.add(X.Su.shifted);for(i=Ue.alloc(),O=Ue.alloc(),X=w.length,re=0;re<X;re++){var Se=w[re];if(de=Se.key,de instanceof cn)if(de.suspendsRouting){de.Tg=null,D=de.fromNode;var Te=de.toNode;if(e.draggedLink!==null&&r.dragsLink)if(Te=Se.value.point,de.dragComputation===null)t.add(de,e.Pd(r,de,a)),eh(de,a.x-Te.x,a.y-Te.y);else{Se=Ue.allocAt(0,0),(D=de.i(0))&&D.w()&&Se.assign(D);var Xe=D=Ue.alloc().assign(Se).add(a);r.isGridSnapEnabled&&(r.isGridSnapRealtime||e.lastInput.up)&&(Xe=Ue.alloc(),od(e,de,D,Xe,r)),D.assign(de.dragComputation(de,D,Xe)).re(Se),t.add(de,e.Pd(r,de,D)),eh(de,D.x-Te.x,D.y-Te.y),Ue.free(Se),Ue.free(D),Xe!==D&&Ue.free(Xe)}else D!==null&&(i.assign(D.location),Xe=t.I(D),Xe!==null&&i.re(Xe.point)),Te!==null&&(O.assign(Te.location),Xe=t.I(Te),Xe!==null&&O.re(Xe.point)),D!==null&&Te!==null?i.Xa(O)?(D=Se.value.point,Te=o,Te.assign(i),Te.re(D),t.add(de,e.Pd(r,de,i)),eh(de,Te.x,Te.y)):(de.suspendsRouting=!1,de.bb()):(Se=Se.value.point,D=D!==null?i:Te!==null?O:a,t.add(de,e.Pd(r,de,D)),eh(de,D.x-Se.x,D.y-Se.y))}else(de.fromNode===null||de.toNode===null)&&(D=Se.value.point,t.add(de,e.Pd(r,de,a)),eh(de,a.x-D.x,a.y-D.y))}Ue.free(o),Ue.free(a),Ue.free(i),Ue.free(O),Mr(p),Mr(w),n||(Cs(e),bh(e,t))}}Ct.prototype.computeMove=function(e,t,n,r){if(r===void 0&&(r=new Ue),r.assign(t),e===null)return r;var i=t,o=n.isGridSnapEnabled;o&&(n.isGridSnapRealtime||this.lastInput.up)&&(i=Ue.alloc(),od(this,e,t,i,n)),n=e.dragComputation!==null?e.dragComputation(e,t,i):i;var a=e.minLocation,p=a.x;isNaN(p)&&(p=o?Math.round(1e3*e.location.x)/1e3:e.location.x),a=a.y,isNaN(a)&&(a=o?Math.round(1e3*e.location.y)/1e3:e.location.y);var w=e.maxLocation,O=w.x;return isNaN(O)&&(O=o?Math.round(1e3*e.location.x)/1e3:e.location.x),w=w.y,isNaN(w)&&(w=o?Math.round(1e3*e.location.y)/1e3:e.location.y),r.h(Math.max(p,Math.min(n.x,O)),Math.max(a,Math.min(n.y,w))),i!==t&&Ue.free(i),r};function id(e){var t=e.toolManager.findTool("Dragging");return t!==null?t.dragOptions:e.Wm}function od(e,t,n,r,i){if(i===void 0&&(i=id(e)),r.assign(n),t!==null){var o=e.grid;t=i.gridSnapCellSize,e=t.width,t=t.height;var a=i.gridSnapOrigin,p=a.x;if(a=a.y,i=i.gridSnapCellSpot,o!==null){var w=o.gridCellSize;isNaN(e)&&(e=w.width),isNaN(t)&&(t=w.height),o=o.gridOrigin,isNaN(p)&&(p=o.x),isNaN(a)&&(a=o.y)}o=Ue.allocAt(0,0),o.yi(0,0,e,t,i),vt.No(n.x,n.y,p+o.x,a+o.y,e,t,r),Ue.free(o)}}function sd(e,t){if(t!==null)for(e.Mr=!0,e=t.iterator;e.next();)t=e.key,t instanceof cn&&(t.suspendsRouting=!0)}function bh(e,t){if(t!==null){for(t=t.iterator;t.next();){var n=t.key;n instanceof cn&&(n.suspendsRouting=!1,oy(n)&&n.bb())}e.Mr=!1}}function rp(e,t,n){return t=t.containingGroup,t!==null&&(e=rp(e,t,n),e!==null||(e=n.I(t),e!==null))?e:null}ye=Ct.prototype,ye.Pd=function(e,t,n){if(n===void 0)return new Ac(kr);var r=e.isGridSnapEnabled;return e.groupsSnapMembers||t.containingGroup===null||(r=!1),r?new Ac(new Ue(Math.round(1e3*n.x)/1e3,Math.round(1e3*n.y)/1e3)):new Ac(n.copy())};function ip(e,t,n){if(t.diagram!==null&&t.diagram!==e&&Lt("Cannot share a Layer with another Diagram: "+t+" of "+t.diagram),n===null?t.diagram!==null&&Lt("Cannot add an existing Layer to this Diagram again: "+t):(n.diagram!==e&&Lt("Existing Layer must be in this Diagram: "+n+" not in "+n.diagram),t===n&&Lt("Cannot move a Layer before or after itself: "+t)),t.diagram!==e){t=t.name,e=e.Wa,n=e.count;for(var r=0;r<n;r++)e.M(r).name===t&&Lt("Cannot add Layer with the name '"+t+"'; a Layer with the same name is already present in this Diagram.")}}ye.Al=function(e){ip(this,e,null),e.Xe(this);var t=this.Wa,n=t.count-1;if(!e.isTemporary)for(;0<=n&&t.M(n).isTemporary;)n--;return t.Gb(n+1,e),this.cc!==null&&this.cb(xo,"layers",this,null,e,null,n+1),this.N(),this.Ya(),this},ye.Ww=function(e,t){ip(this,e,t),e.Xe(this);var n=this.Wa,r=n.indexOf(e);0<=r&&(n.remove(e),this.cc!==null&&this.cb(Lo,"layers",this,e,null,r,null));var i=n.count,o;for(o=0;o<i;o++)if(n.M(o)===t){n.Gb(o,e);break}return this.cc!==null&&this.cb(xo,"layers",this,null,e,null,o),this.N(),0>r&&this.Ya(),this},ye.Cy=function(e,t){ip(this,e,t),e.Xe(this);var n=this.Wa,r=n.indexOf(e);0<=r&&(n.remove(e),this.cc!==null&&this.cb(Lo,"layers",this,e,null,r,null));var i=n.count,o;for(o=0;o<i;o++)if(n.M(o)===t){n.Gb(o+1,e);break}return this.cc!==null&&this.cb(xo,"layers",this,null,e,null,o+1),this.N(),0>r&&this.Ya(),this},ye.kA=function(e){if(e.diagram!==this&&Lt("Cannot remove a Layer from another Diagram: "+e+" of "+e.diagram),e.name!==""){var t=this.Wa,n=t.indexOf(e);if(t.remove(e)){for(t=e.Pa.copy().iterator;t.next();){var r=t.value,i=r.layerName;i!==e.name?r.layerName=i:r.layerName=""}this.cc!==null&&this.cb(Lo,"layers",this,e,null,n,null),this.N(),this.Ya()}}},ye.Qj=function(e){for(var t=this.layers;t.next();){var n=t.value;if(n.name===e)return n}return null},ye.Yw=function(e){return this.pf===null&&(this.pf=new tn),this.pf.add(e),this.model.Pe(e),this},ye.mA=function(e){this.pf!==null&&(this.pf.remove(e),this.pf.count===0&&(this.pf=null)),this.model.ik(e)},ye.Pe=function(e){return this.zg===null&&(this.zg=new tn),this.zg.add(e),this},ye.ik=function(e){this.zg!==null&&(this.zg.remove(e),this.zg.count===0&&(this.zg=null))},ye.ds=function(e){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(e),e.change!==Gs&&(this.isModified=!0),this.zg!==null)for(var t=this.zg,n=t.length,r=0;r<n;r++)t.M(r)(e)},ye.cb=function(e,t,n,r,i,o,a){o===void 0&&(o=null),a===void 0&&(a=null);var p=new Qi;p.diagram=this,p.change=e,p.propertyName=t,p.object=n,p.oldValue=r,p.oldParam=o,p.newValue=i,p.newParam=a,this.ds(p)},ye.g=function(e,t,n,r,i){this.cb(Fi,e,this,t,n,r,i)},Ct.prototype.changeState=function(e,t){if(e!==null&&e.diagram===this){var n=this.skipsModelSourceBindings;try{this.skipsModelSourceBindings=!0;var r=e.change;if(r===Fi){var i=e.object;if(oo(i,e.propertyName,e.I(t)),i instanceof gt){var o=i.part;o!==null&&o.Wb()}this.isModified=!0}else if(r===xo){var a=e.object,p=e.newParam,w=e.newValue;if(a instanceof qt)if(typeof p=="number"&&w instanceof gt){t?a.pc(p):a.Gb(p,w);var O=a.part;O!==null&&O.Wb()}else typeof p=="number"&&w instanceof ms&&(w.isRow?w0(a,p,t?void 0:w):C0(a,p,t?void 0:w));else if(a instanceof Qr){var D=e.oldParam===!0;typeof p=="number"&&w instanceof zn&&(t?(w.isSelected=!1,w.isHighlighted=!1,w.Wb(),a.pc(D?p:-1,w,D)):a.oi(p,w,D))}else a instanceof Ct?typeof p=="number"&&w instanceof Qr&&(t?this.Wa.mb(p):(w.Xe(this),this.Wa.Gb(p,w))):Lt("unknown ChangedEvent.Insert object: "+e.toString());this.isModified=!0}else if(r===Lo){var X=e.object,re=e.oldParam,de=e.oldValue;if(X instanceof qt)typeof re=="number"&&de instanceof gt?t?X.Gb(re,de):X.pc(re):typeof re=="number"&&de instanceof ms&&(de.isRow?w0(X,re,t?de:void 0):C0(X,re,t?de:void 0));else if(X instanceof Qr){var Se=e.newParam===!0;typeof re=="number"&&de instanceof zn&&(t?0>X.Pa.indexOf(de)&&X.oi(re,de,Se):(de.isSelected=!1,de.isHighlighted=!1,de.Wb(),X.pc(Se?re:-1,de,Se)))}else X instanceof Ct?typeof re=="number"&&de instanceof Qr&&(t?(de.Xe(this),this.Wa.Gb(re,de)):this.Wa.mb(re)):Lt("unknown ChangedEvent.Remove object: "+e.toString());this.isModified=!0}else r!==Gs&&Lt("unknown ChangedEvent: "+e.toString())}finally{this.skipsModelSourceBindings=n}}},Ct.prototype.Ea=function(e){return this.undoManager.Ea(e)},Ct.prototype.eb=function(e){return this.undoManager.eb(e)},Ct.prototype.Kf=function(){return this.undoManager.Kf()},Ct.prototype.commit=function(e,t){t===void 0&&(t="");var n=this.skipsUndoManager;t===null&&(this.skipsUndoManager=!0,t=""),this.undoManager.Ea(t);var r=!1;try{e(this),r=!0}finally{r?this.undoManager.eb(t):this.undoManager.Kf(),this.skipsUndoManager=n}},Ct.prototype.updateAllTargetBindings=function(e){this.partManager.updateAllTargetBindings(e)},Ct.prototype.rp=function(){this.partManager.rp()};function op(e,t,n){var r=e.animationManager;if(e.vb||e.ld)e.Ca=n,Yu(e),e.N(),e.Ee=!0,r.zb&&(rl(r)||r.ce.add(r.H,"scale",t,e.Ca));else if(e.ta===null)e.Ca=n,Yu(e);else{e.vb=!0;var i=e.viewportBounds.copy(),o=e.Aa,a=e.ya,p=e.zoomPoint.x,w=e.zoomPoint.y,O=e.contentAlignment;isNaN(p)&&(O.$c()?O.Hf(tl)?p=0:O.Hf(rs)&&(p=o-1):p=O.sb()?O.x*(o-1):o/2),isNaN(w)&&(O.$c()?O.Hf(Ma)?w=0:O.Hf(Bo)&&(w=a-1):w=O.sb()?O.y*(a-1):a/2),e.scaleComputation===null||e.animationManager.defaultAnimation.isAnimating||(n=e.scaleComputation(e,n)),n<e.minScale&&(n=e.minScale),n>e.maxScale&&(n=e.maxScale),o=Ue.allocAt(e.pa.x+p/t-p/n,e.pa.y+w/t-w/n),e.position=o,Ue.free(o),e.Ca=n,Yu(e),e.vb=!1,e.onViewportBoundsChanged(i,e.viewportBounds,t,!1),ol(e,!1),r.zb&&(rl(r)||r.ce.add(r.H,"scale",t,e.Ca))}}Ct.prototype.onViewportBoundsChanged=function(e,t,n,r){if(!e.D(t)){r===void 0&&(r=!1),r||(this.Ee=!0),this.vd=!0;var i=this.layout;i===null||!i.isViewportSized||this.autoScale!==pa||e.width===t.width&&e.height===t.height||i.C(),i=this.currentTool,this.Vk===!0&&i instanceof Wi&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),zc(i,this)),this.vb||this.invalidateViewport(e,t),Ku(this),this.fc.scale=n,this.fc.position.x=e.x,this.fc.position.y=e.y,this.fc.bounds.assign(e),this.fc.canvasSize.width=Math.round(e.width*n),this.fc.canvasSize.height=Math.round(e.height*n),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=r,this.R("ViewportBoundsChanged",this.fc,e),this.isVirtualized&&this.links.each(function(o){o.isAvoiding&&o.actualBounds.Yc(t)&&o.bb()})}};function Ku(e,t){var n=e.fe;if(n!==null&&n.visible){for(var r=Yt.alloc(),i=1,o=1,a=n.O.s,p=a.length,w=0;w<p;w++){var O=a[w],D=Math.abs(O.interval);2>D||(Av(O.figure)?o=o*D/vt.vx(o,D):i=i*D/vt.vx(i,D))}if(a=n.gridCellSize,r.h(o*a.width,i*a.height),t!==void 0)i=t.width,o=t.height,e=t.x,a=t.y;else{if(t=Nt.alloc(),e=e.viewportBounds,t.h(e.x,e.y,e.width,e.height),!t.w()){Nt.free(t);return}i=t.width,o=t.height,e=t.x,a=t.y,Nt.free(t)}n.width=i+2*r.width,n.height=o+2*r.height,t=Ue.alloc(),vt.No(e,a,0,0,r.width,r.height,t),t.offset(-r.width,-r.height),Yt.free(r),n.part.location=t,Ue.free(t)}}Ct.prototype.clearSelection=function(e){e===void 0&&(e=!1);var t=this.selection;if(t.count!==0){e||this.R("ChangingSelection",t);for(var n=t.Fa(),r=n.length,i=0;i<r;i++)n[i].isSelected=!1;t.ka(),t.clear(),t.freeze(),e||this.R("ChangedSelection",t)}},Ct.prototype.select=function(e){e!==null&&e.diagram===this&&(!e.isSelected||1<this.selection.count)&&(this.R("ChangingSelection",this.selection),this.clearSelection(!0),e.isSelected=!0,this.R("ChangedSelection",this.selection))},Ct.prototype.rA=function(e){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),or(e))for(var t=e.length,n=0;n<t;n++){var r=e[n];r instanceof zn||Lt("Diagram.selectCollection given something that is not a Part: "+r),r.isSelected=!0}else for(e=e.iterator;e.next();)t=e.value,t instanceof zn||Lt("Diagram.selectCollection given something that is not a Part: "+t),t.isSelected=!0;this.R("ChangedSelection",this.selection)},Ct.prototype.clearHighlighteds=function(){var e=this.highlighteds;if(0<e.count){for(var t=e.Fa(),n=t.length,r=0;r<n;r++)t[r].isHighlighted=!1;e.ka(),e.clear(),e.freeze()}},ye=Ct.prototype,ye.Iz=function(e){e!==null&&e.diagram===this&&(!e.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),e.isHighlighted=!0)},ye.Jz=function(e){e=new ut().addAll(e);for(var t=this.highlighteds.copy().hp(e).iterator;t.next();)t.value.isHighlighted=!1;for(e=e.iterator;e.next();)t=e.value,t instanceof zn||Lt("Diagram.highlightCollection given something that is not a Part: "+t),t.isHighlighted=!0},ye.scroll=function(e,t,n){n===void 0&&(n=1);var r=t==="up"||t==="down",i=0,o=Ue.alloc();if(e==="pixel")i=n;else if(e==="line")i=n*(r?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(e==="page")e=r?this.viewportBounds.height:this.viewportBounds.width,e*=this.scale,e!==0&&(i=n*Math.max(e-(r?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(e==="document"){i=this.documentBounds,n=this.viewportBounds,t==="up"?this.position=o.h(n.x,i.y):t==="left"?this.position=o.h(i.x,n.y):t==="down"?this.position=o.h(n.x,i.bottom-n.height):t==="right"&&(this.position=o.h(i.right-n.width,n.y)),Ue.free(o);return}Lt("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+e)}i/=this.scale,n=this.position,t==="up"?this.position=o.h(n.x,n.y-i):t==="down"?this.position=o.h(n.x,n.y+i):t==="left"?this.position=o.h(n.x-i,n.y):t==="right"?this.position=o.h(n.x+i,n.y):Lt("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+t),Ue.free(o)},ye.tv=function(e){var t=this.viewportBounds;t.Re(e)||(e=e.center,e.x-=t.width/2,e.y-=t.height/2,this.position=e)},ye.es=function(e){var t=this.viewportBounds;e=e.center,e.x-=t.width/2,e.y-=t.height/2,this.position=e},ye.op=function(e){var t=this.Ab;t.reset(),this.Ca!==1&&t.scale(this.Ca);var n=this.pa;return(n.x!==0||n.y!==0)&&isFinite(n.x)&&isFinite(n.y)&&t.translate(-n.x,-n.y),e.copy().transform(this.Ab)},ye.zA=function(e){var t=this.Ab,n=e.x,r=e.y,i=n+e.width,o=r+e.height,a=t.m11,p=t.m12,w=t.m21,O=t.m22,D=t.dx,X=t.dy,re=n*a+r*w+D;t=n*p+r*O+X;var de=i*a+r*w+D;return e=i*p+r*O+X,r=n*a+o*w+D,n=n*p+o*O+X,a=i*a+o*w+D,i=i*p+o*O+X,o=Math.min(re,de),re=Math.max(re,de),de=Math.min(t,e),t=Math.max(t,e),o=Math.min(o,r),re=Math.max(re,r),de=Math.min(de,n),t=Math.max(t,n),o=Math.min(o,a),re=Math.max(re,a),de=Math.min(de,i),t=Math.max(t,i),new Nt(o,de,re-o,t-de)},ye.Ps=function(e){var t=this.Ab;t.reset(),this.Ca!==1&&t.scale(this.Ca);var n=this.pa;return(n.x!==0||n.y!==0)&&isFinite(n.x)&&isFinite(n.y)&&t.translate(-n.x,-n.y),wr(e.copy(),this.Ab)};function gg(e){var t=e.isModified;e.Tw!==t&&(e.Tw=t,e.R("Modified"))}function sp(e){return e=fd.get(e),e!==null?new e:new Si}Ct.prototype.doModelChanged=function(e){var t=this;if(e.model===this.model){var n=e.change,r=e.propertyName;if(n===Gs&&r[0]==="S")if(r==="StartingFirstTransaction"){var i=this;e=this.toolManager,e.mouseDownTools.each(function(w){return w.diagram=i}),e.mouseMoveTools.each(function(w){return w.diagram=i}),e.mouseUpTools.each(function(w){return w.diagram=i}),this.ld||this.hf||(this.Jk=!0,this.fn&&(this.kg=!0))}else r==="StartingUndo"||r==="StartingRedo"?(e=this.animationManager,e.defaultAnimation.isAnimating&&!this.skipsUndoManager&&e.Cc(),this.R("ChangingSelection",this.selection)):r==="StartedTransaction"&&(e=this.animationManager,e.defaultAnimation.isAnimating&&!this.skipsUndoManager&&e.Cc());else if(this.aa){this.aa=!1;try{if(e.modelChange===""&&n===Gs){(r==="FinishedUndo"||r==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),Cs(this));var o=this.animationManager;r==="RolledBackTransaction"&&o.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||Pa(o),r==="CommittedTransaction"&&this.undoManager.isJustDiscarded&&(this.Ce=Math.min(this.Ce,this.undoManager.historyIndex-1)),r!=="CommittedTransaction"&&r!=="RolledBackTransaction"||!this.undoManager.isPendingUnmodified||setTimeout(function(){t.isModified=!1},1);var a=e.isTransactionFinished;if(a&&(gg(this),this.As.clear(),zu(this.animationManager)),!this.Rt&&a&&this.lastInput.targetDiagram){this.Rt=!0;var p=this;gi(function(){p.currentTool.standardMouseOver(),p.Rt=!1},10)}}}finally{this.aa=!0}}}};function ef(e,t){t=t.O.s;for(var n=t.length,r=0;r<n;r++)Sh(e,t[r])}function Sh(e,t){if(t instanceof Ua){var n=t.element;if(n!==null&&n instanceof HTMLImageElement){n.Bg instanceof ut&&n.Bg.add(e);var r=t.Eg;if(r!==null&&r.sq===!0&&t.diagram!==null&&t.diagram.Xn.add(t),n.hn)if(n=n.getAttribute("src")||"",r=e.Og.I(n),r===null)r=[],r.push(t),e.Og.add(n,r);else{for(e=0;e<r.length;e++)if(r[e]===t)return;r.push(t)}}}}function ap(e,t){if(t instanceof Ua){var n=t.element;if(n!==null&&n instanceof HTMLImageElement&&n.hn){var r=n.getAttribute("src")||"",i=e.Og.I(r);if(i!==null){for(var o=0;o<i.length;o++)if(i[o]===t){i.splice(o,1),i.length===0&&(e.Og.remove(r),n.Fq&&n.removeEventListener("load",n.Fq),n.Yp&&n.removeEventListener("error",n.Yp),delete n.Fq,delete n.Yp,n.Bg instanceof ut&&n.Bg.remove(e),Td(r));break}}}}}Ct.prototype.Wd=function(){this.partManager.Wd()},Ct.prototype.Aj=function(e,t){this.Yd.Aj(e,t)},Ct.prototype.Cj=function(e,t){this.Yd.Cj(e,t)},Ct.prototype.findPartForKey=function(e){return this.partManager.findPartForKey(e)},Ct.prototype.Vb=function(e){return this.partManager.Vb(e)},Ct.prototype.findLinkForKey=function(e){return this.partManager.findLinkForKey(e)},ye=Ct.prototype,ye.Lc=function(e){return this.partManager.Lc(e)},ye.ii=function(e){return this.partManager.ii(e)},ye.Kc=function(e){return this.partManager.Kc(e)},ye.ms=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.partManager.ms.apply(this.partManager,t instanceof Array?t:Xn(rn(t)))},ye.ls=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.partManager.ls.apply(this.partManager,t instanceof Array?t:Xn(rn(t)))};function Yu(e){var t=e.pa,n=e.Ca;e.Rw.h(t.x,t.y,Math.max(e.Aa,0)/n,Math.max(e.ya,0)/n),e.vd=!0}function lp(e,t){e.Zi=!1;var n=e.Sp;n.D(t)||(n=n.copy(),e.Sp.assign(t),ol(e,!1),e.R("DocumentBoundsChanged",void 0,n),e.Ee=!0,e.N())}ye.Va=function(){if(this.Zi){var e=Nt.alloc();lp(this,this.computeBounds(e)),Nt.free(e)}},ye.rz=function(){for(var e=new ut,t=this.nodes;t.next();){var n=t.value;n.isTopLevel&&e.add(n)}for(t=this.links;t.next();)n=t.value,n.isTopLevel&&e.add(n);return e.iterator},ye.qz=function(){return this.ai.iterator},ye.Uz=function(e){Cs(this),e&&ad(this,!0),this.ld?up(this,!1):(this.Jk=!0,ta(this))};function ad(e,t){for(var n=e.ai.iterator;n.next();)mg(e,n.value,t);e.layout&&(t?e.layout.isValidLayout=!1:e.layout.C())}function mg(e,t,n){if(t!==null){for(var r=t.gl.iterator;r.next();)mg(e,r.value,n);t.layout!==null&&(n?t.layout.isValidLayout=!1:t.layout.C())}}function up(e,t){if(e.xh&&!e.lt){var n=e.aa;e.aa=!0;var r=e.undoManager.transactionLevel,i=e.layout,o=e.animationManager;try{r===0&&(e.undoManager.isInternalTransaction=!0,e.Ea("Layout")),1>=r&&!o.defaultAnimation.isAnimating&&!o.zb&&(t||ra(o,"Layout")),e.xh=!1;for(var a=e.ai.iterator;a.next();)cp(e,a.value,t,r);i.isValidLayout||(!t||i.isRealtime||i.isRealtime===null||r===0?(i.doLayout(e),Cs(e),i.isValidLayout=!0):e.xh=!0)}finally{t=e.undoManager.isInternalTransaction,r===0&&(e.eb("Layout"),e.undoManager.isInternalTransaction=!1),!t||r!==0&&r!==1||Pa(o),e.aa=n}}}function cp(e,t,n,r){if(t!==null){for(var i=t.gl.iterator;i.next();)cp(e,i.value,n,r);i=t.layout,i===null||i.isValidLayout||(!n||i.isRealtime||r===0?(t.rh=!t.location.w(),i.doLayout(t),t.C(32),_c(e,t),i.isValidLayout=!0):e.xh=!0)}}ye.yz=function(){for(var e=new tn,t=this.nodes;t.next();){var n=t.value;n.isTopLevel&&n.kh()===null&&e.add(n)}return e.iterator};function dv(e){function t(i){var o=i.toLowerCase(),a=new tn;n.add(i,a),n.add(o,a),r.add(i,i),r.add(o,i)}var n=new nn,r=new nn;t("InitialAnimationStarting"),t("AnimationStarting"),t("AnimationFinished"),t("BackgroundSingleClicked"),t("BackgroundDoubleClicked"),t("BackgroundContextClicked"),t("ClipboardChanged"),t("ClipboardPasted"),t("DocumentBoundsChanged"),t("ExternalObjectsDropped"),t("GainedFocus"),t("InitialLayoutCompleted"),t("LayoutCompleted"),t("LinkDrawn"),t("LinkRelinked"),t("LinkReshaped"),t("LostFocus"),t("Modified"),t("ObjectSingleClicked"),t("ObjectDoubleClicked"),t("ObjectContextClicked"),t("PartCreated"),t("PartResized"),t("PartRotated"),t("SelectionMoved"),t("SelectionCopied"),t("SelectionDeleting"),t("SelectionDeleted"),t("SelectionGrouped"),t("SelectionUngrouped"),t("ChangingSelection"),t("ChangedSelection"),t("SubGraphCollapsed"),t("SubGraphExpanded"),t("TextEdited"),t("TreeCollapsed"),t("TreeExpanded"),t("ViewportBoundsChanged"),t("InvalidateDraw"),e.iw=n,e.hw=r}function vg(e,t){var n=e.hw.I(t);return n!==null?n:e.hw.I(t.toLowerCase())}function ld(e,t){var n=e.iw.I(t);if(n!==null||(n=e.iw.I(t.toLowerCase()),n!==null))return n;Lt("Unknown DiagramEvent name: "+t)}ye.Bj=function(e,t){return e=ld(this,e),e!==null&&e.add(t),this},ye.am=function(e,t){e=ld(this,e),e!==null&&e.remove(t)},ye.R=function(e,t,n){var r=ld(this,e),i=new gl;if(i.diagram=this,e=vg(this,e),e!==null&&(i.name=e),t!==void 0&&(i.subject=t),n!==void 0&&(i.parameter=n),t=r.length,t===1)r.M(0)(i);else if(t!==0)for(r=r.Fa(),n=0;n<t;n++)(0,r[n])(i)};function ud(e){if(e.animationManager.isTicking)return!1;var t=e.currentTool;return t===e.toolManager.findTool("Dragging")?!e.Mr||t.isComplexRoutingRealtime:!0}ye.Yj=function(e,t){return cd(this,!1,null,t||null).Yj(e.x,e.y,e.width,e.height)},Ct.prototype.computeOccupiedArea=function(e){return this.isVirtualized?this.viewportBounds.copy():this.Zi?Zh(this,e):e.assign(this.documentBounds)};function cd(e,t,n,r){var i=e.Xh;if(i===null&&(e.Xh=i=new jp(e.avoidanceCellSize)),i.vs||i.group!==n||i.Yx!==r){if(i.Hx=Math.max(i.Os+1,Math.floor(e.avoidanceLimit/e.avoidanceCellSize.width)),i.Ix=Math.max(i.Os+1,Math.floor(e.avoidanceLimit/e.avoidanceCellSize.height)),n!==null&&(n=yg(e,n)),n===null){t=Nt.alloc(),e.computeOccupiedArea(t),t.Bc(100,100),i.initialize(t);for(var o=e.nodes;o.next();){var a=o.value,p=a.layer;p!==null&&p.visible&&!p.isTemporary&&hd(e,a,r,t)}Nt.free(t)}else{for(0<n.memberParts.count&&(t=e.computePartsBounds(n.memberParts,!1),t.Bc(20,20),i.initialize(t)),t=Nt.alloc(),o=n.memberParts;o.next();)a=o.value,a instanceof En&&hd(e,a,r,t);Nt.free(t)}i.group=n,i.Yx=r,i.vs=!1}else t&&vb(i);return i}function yg(e,t){return t.avoidable&&!t.isLinkLabel?t:t.containingGroup!==null?yg(e,t.containingGroup):null}function hd(e,t,n,r){if(t!==n&&t.isVisible()){if(t.avoidable&&!t.isLinkLabel){t=t.getAvoidableRect(r),e=e.Xh;var i=t.x,o=t.y;if(Id(e,i,o))for(n=(o-e.Od)/e.sc|0,r=Math.min((i+t.width-e.Nd)/e.rc|0,e.di),t=Math.min((o+t.height-e.Od)/e.sc|0,e.ei),i=(i-e.Nd)/e.rc|0;i<=r;i++)if(o=e.ac[i],o.fill)o.fill(nh,n,t+1);else for(var a=n;a<=t;a++)o[a]=nh}else if(t instanceof lr)for(t=t.memberParts;t.next();)i=t.value,i instanceof En&&hd(e,i,n,r)}}function Vc(e,t){e.Xh===null||e.Xh.vs||t!==void 0&&(!t.avoidable||t.isLinkLabel)||(e.Xh.vs=!0)}Ct.prototype.gs=function(e){this.wp.assign(e),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():hp(this)};function hp(e){e.vk===-1&&(e.vk=gi(function(){if(e.vk!==-1&&(e.ug(),e.lastInput.event!==null)){var t=e.computeAutoScrollPosition(e.wp);t.Xa(e.position)||(e.position=t,e.lastInput.documentPoint=e.Ps(e.wp),e.doMouseMove(),e.Zi=!0,t=Nt.alloc(),e.computeBounds(t),t.ed(e.documentBounds),lp(e,t),Nt.free(t),e.Fc=!0,e.bd(),hp(e))}},e.vp))}Ct.prototype.ug=function(){this.vk!==-1&&(vn.clearTimeout(this.vk),this.vk=-1)},Ct.prototype.computeAutoScrollPosition=function(e){var t=this.position,n=this.xp;if(0>=n.top&&0>=n.left&&0>=n.right&&0>=n.bottom)return t;var r=this.viewportBounds,i=this.scale;r=Nt.allocAt(0,0,r.width*i,r.height*i);var o=Ue.allocAt(0,0);if(e.x>=r.x&&e.x<r.x+n.left&&this.allowHorizontalScroll){var a=Math.max(this.scrollHorizontalLineChange,1);a|=0,o.x-=a,e.x<r.x+n.left/2&&(o.x-=a),e.x<r.x+n.left/4&&(o.x-=4*a)}else e.x<=r.x+r.width&&e.x>r.x+r.width-n.right&&this.allowHorizontalScroll&&(a=Math.max(this.scrollHorizontalLineChange,1),a|=0,o.x+=a,e.x>r.x+r.width-n.right/2&&(o.x+=a),e.x>r.x+r.width-n.right/4&&(o.x+=4*a));return e.y>=r.y&&e.y<r.y+n.top&&this.allowVerticalScroll?(a=Math.max(this.scrollVerticalLineChange,1),a|=0,o.y-=a,e.y<r.y+n.top/2&&(o.y-=a),e.y<r.y+n.top/4&&(o.y-=4*a)):e.y<=r.y+r.height&&e.y>r.y+r.height-n.bottom&&this.allowVerticalScroll&&(a=Math.max(this.scrollVerticalLineChange,1),a|=0,o.y+=a,e.y>r.y+r.height-n.bottom/2&&(o.y+=a),e.y>r.y+r.height-n.bottom/4&&(o.y+=4*a)),o.Xa(kr)||(t=new Ue(t.x+o.x/i,t.y+o.y/i)),Nt.free(r),Ue.free(o),t},ye=Ct.prototype,ye.Cs=function(){return null},ye.av=function(){return null},ye.bs=function(e,t){this.pj.add(e,t)},ye.Fu=function(e){(this.Pw=e)||this.nodes.each(function(t){t instanceof lr&&(t.$p=null)})};function Nf(e,t,n){function r(){var D=+new Date;for(o=!0,a.reset();a.next();)if(!a.value[0].al){o=!1;break}o||D-O>w?t(n,i,p):vn.requestAnimationFrame(r)}for(var i=n.callback,o=!0,a=e.Og.iterator;a.next();)if(!a.value[0].al){o=!1;break}if(typeof i!="function"||o)return t(n,i,e);var p=e,w=n.callbackTimeout||300,O=+new Date;return vn.requestAnimationFrame(function(){r()}),null}ye.Wz=function(e){return Po?(e===void 0&&(e={}),e.returnType="Image",this.Jx(e)):null},ye.Jx=function(e){return e===void 0&&(e={}),Nf(this,this.Xz,e)},ye.Xz=function(e,t,n){var r=bg(n,e,"canvas",null);if(r===null)return null;n=r.Z.canvas;var i=null;if(n!==null)switch(i=e.returnType,i===void 0?i="string":i=i.toLowerCase(),i){case rf+"data":i=r.getImageData(0,0,n.width,n.height);break;case rf:r=(e.document||document).createElement("img"),r.src=n.toDataURL(e.type,e.details),i=r;break;case"blob":return typeof t!="function"&&Lt('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof n.toBlob=="function"?(n.toBlob(t,e.type,e.details),"toBlob"):(t(null),null);default:i=n.toDataURL(e.type,e.details)}return typeof t=="function"?(t(i),null):i};function bg(e,t,n,r){if(e.animationManager.Cc(),e.bd(),e.ta===null)return null;typeof t!="object"&&Lt("properties argument must be an Object.");var i=t.size||null,o=t.scale||null;t.scale!==void 0&&isNaN(t.scale)&&(o="NaN");var a=t.maxSize;t.maxSize===void 0&&(a=n==="SVG"?new Yt(1/0,1/0):new Yt(2e3,2e3));var p=t.position||null,w=t.parts||null,O=t.padding===void 0?1:t.padding,D=t.background||null,X=t.omitTemporary;X===void 0&&(X=!0);var re=t.document||document,de=t.elementFinished||null,Se=t.showTemporary;Se===void 0&&(Se=!X),t=t.showGrid,t===void 0&&(t=Se),i!==null&&isNaN(i.width)&&isNaN(i.height)&&(i=null),typeof O=="number"?O=new Wn(O):O instanceof Wn||Lt("MakeImage padding must be a Margin or a number."),O.left=Math.max(O.left,0),O.right=Math.max(O.right,0),O.top=Math.max(O.top,0),O.bottom=Math.max(O.bottom,0),e.ib.Vc(!0),X=new Ql(null,re,void 0,!0);var Te=X.context;if(!(i||o||w||p))return X.width=e.Aa+Math.ceil(O.left+O.right),X.height=e.ya+Math.ceil(O.top+O.bottom),n==="SVG"?r===null?null:(r.resize(X.width,X.height,X.width,X.height),r.ownerDocument=re,r.hs=de,rd(e,r.context,O,new Yt(X.width,X.height),e.Ca,e.pa,w,D,Se,t),r.context):(e.Xm=!1,rd(e,Te,O,new Yt(X.width,X.height),e.Ca,e.pa,w,D,Se,t),e.Xm=!0,X.context);var Xe=e.Pp,We=e.documentBounds.copy();if(We.Fv(e.yb),Se)for(var qe=e.Wa.s,tt=qe.length,rt=0;rt<tt;rt++){var ft=qe[rt];if(ft.visible&&ft.isTemporary){ft=ft.Pa.s;for(var Tt=ft.length,Sn=0;Sn<Tt;Sn++){var Rn=ft[Sn];Rn.isInDocumentBounds&&Rn.isVisible()&&(Rn=Rn.actualBounds,Rn.w()&&We.ed(Rn))}}}if(qe=new Ue(We.x,We.y),w!==null){for(tt=new Nt(0,0,0,0),rt=!0,ft=w.iterator,ft.reset();ft.next();)Tt=ft.value,Tt instanceof zn&&(Sn=Tt.layer,Sn!==null&&!Sn.visible||Sn!==null&&!Se&&Sn.isTemporary||!Tt.isVisible()||(Tt=Tt.actualBounds,Tt.w()&&(rt?(rt=!1,tt.assign(Tt)):tt.ed(Tt))));We.width=tt.width,We.height=tt.height,qe.x=tt.x,qe.y=tt.y}return p!==null&&p.w()&&(qe=p,o||(o=Xe)),tt=p=0,O!==null&&(p=O.left+O.right,tt=O.top+O.bottom),rt=ft=0,i!==null&&(ft=i.width,rt=i.height,isFinite(ft)&&(ft=Math.max(0,ft-p)),isFinite(rt)&&(rt=Math.max(0,rt-tt))),i!==null&&o!==null?(o==="NaN"&&(o=Xe),i.w()?(i=ft,We=rt):isNaN(rt)?(i=ft,We=We.height*o):(i=We.width*o,We=rt)):i!==null?i.w()?(o=Math.min(ft/We.width,rt/We.height),i=ft,We=rt):isNaN(rt)?(o=ft/We.width,i=ft,We=We.height*o):(o=rt/We.height,i=We.width*o,We=rt):o!==null?o==="NaN"&&a.w()?(o=Math.min((a.width-p)/We.width,(a.height-tt)/We.height),o>Xe?(o=Xe,i=We.width,We=We.height):(i=a.width,We=a.height)):(i=We.width*o,We=We.height*o):(o=Xe,i=We.width,We=We.height),O!==null?(i+=p,We+=tt):O=new Wn(0),a!==null&&(Xe=a.width,a=a.height,isNaN(Xe)&&(Xe=2e3),isNaN(a)&&(a=2e3),isFinite(Xe)&&(i=Math.min(i,Xe)),isFinite(a)&&(We=Math.min(We,a))),X.width=Math.ceil(i),X.height=Math.ceil(We),n==="SVG"?r===null?null:(r.resize(X.width,X.height,X.width,X.height),r.ownerDocument=re,r.hs=de,rd(e,r.context,O,new Yt(Math.ceil(i),Math.ceil(We)),o,qe,w,D,Se,t),r.context):(e.Xm=!1,rd(e,Te,O,new Yt(Math.ceil(i),Math.ceil(We)),o,qe,w,D,Se,t),e.Xm=!0,X.context)}kn.Object.defineProperties(Ct.prototype,{renderer:{get:function(){return this.nl},set:function(e){this instanceof q||(e===""&&(e="default"),e=e.toLowerCase(),e!==this.nl&&(this.nl=e,e==="default"||e==="canvas"?(e=this.pj.get("svg"),e!==null&&e.Oa.remove(),this.ta&&(this.ib=this.ta.context)):e==="svg"?(this.pj.contains("svg")?e=this.pj.get("svg"):(e=new $u(this,vn.document),this.bs("svg",e)),this.div!==null&&this.div.appendChild(e.Oa),this.ib=e.context,this.ta&&(this.ta.context.setTransform(this.Mb,0,0,this.Mb,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya))):e!=="debug"||this.pj.contains("SVG")||(e=new $u(this,vn.document),this.bs("SVG",e),e.Oa.style.backgroundColor="whitesmoke",this.div!==null&&this.div.after(e.Oa)),this.hk()))}},div:{get:function(){return this.Ka},set:function(e){if(this.Ka!==e){var t=this.Ka;t!==null?(t.H=void 0,t.goDiagram=void 0,t.go=void 0,t.innerHTML="",this.ta!==null&&(t=this.ta.Oa,this.removeEventListener(t,"pointermove",this.dk,!1),this.removeEventListener(t,"pointerdown",this.ui,!1),this.removeEventListener(t,"pointerup",this.fk,!1),this.removeEventListener(t,"pointerout",this.ek,!1),this.removeEventListener(t,"pointercancel",this.ck,!1),this.ta.mx()),this.ol&&(this.ol.disconnect(),this.ol=null),t=this.toolManager,t!==null&&(t.mouseDownTools.each(function(n){n.cancelWaitAfter()}),t.mouseMoveTools.each(function(n){n.cancelWaitAfter()}),t.mouseUpTools.each(function(n){n.cancelWaitAfter()})),t.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(vn,"resize",this.Ov,!1),this.removeEventListener(vn,"wheel",this.$j,!0),Ya===this&&(Ya=null)):this.ui===null&&(this.hf=!1),this.Ka=null,e!==null&&((t=e.H)&&(t.div=null),Kh(this,e),this.hk())}}},$w:{get:function(){return this.Sq}},pi:{get:function(){return this.hf}},draggedLink:{get:function(){return this.nt},set:function(e){this.nt!==e&&(this.nt=e,e!==null&&(this.Vt=e.fromPort,this.Wt=e.toPort))}},Mx:{get:function(){return this.Vt},set:function(e){this.Vt=e}},Nx:{get:function(){return this.Wt},set:function(e){this.Wt=e}},animationManager:{get:function(){return this.Yd}},undoManager:{get:function(){return this.cc.undoManager}},skipsUndoManager:{get:function(){return this.Wg},set:function(e){this.Wg=e,this.cc.skipsUndoManager=e}},delaysLayout:{get:function(){return this.lt},set:function(e){this.lt=e}},opacity:{get:function(){return this.pb},set:function(e){var t=this.pb;t!==e&&((0>e||1<e)&&hr(e,"0 <= value <= 1",Ct,"opacity"),this.pb=e,this.g("opacity",t,e),this.N())}},validCycle:{get:function(){return this.wu},set:function(e){var t=this.wu;t!==e&&(this.wu=e,this.g("validCycle",t,e))}},layers:{get:function(){return this.Wa.iterator}},isModelReadOnly:{get:function(){var e=this.cc;return e===null?!1:e.isReadOnly},set:function(e){var t=this.cc;t!==null&&(t.isReadOnly=e)}},isReadOnly:{get:function(){return this.Gg},set:function(e){var t=this.Gg;t!==e&&(this.Gg=e,this.g("isReadOnly",t,e))}},isEnabled:{get:function(){return this.Jd},set:function(e){var t=this.Jd;t!==e&&(this.Jd=e,this.g("isEnabled",t,e))}},allowClipboard:{get:function(){return this.Us},set:function(e){var t=this.Us;t!==e&&(this.Us=e,this.g("allowClipboard",t,e))}},allowCopy:{get:function(){return this.Fi},set:function(e){var t=this.Fi;t!==e&&(this.Fi=e,this.g("allowCopy",t,e))}},allowDelete:{get:function(){return this.Gi},set:function(e){var t=this.Gi;t!==e&&(this.Gi=e,this.g("allowDelete",t,e))}},allowDragOut:{get:function(){return this.Vs},set:function(e){var t=this.Vs;t!==e&&(this.Vs=e,this.g("allowDragOut",t,e))}},allowDrop:{get:function(){return this.Ws},set:function(e){var t=this.Ws;t!==e&&(this.Ws=e,this.g("allowDrop",t,e))}},allowTextEdit:{get:function(){return this.Pi},set:function(e){var t=this.Pi;t!==e&&(this.Pi=e,this.g("allowTextEdit",t,e))}},allowGroup:{get:function(){return this.Hi},set:function(e){var t=this.Hi;t!==e&&(this.Hi=e,this.g("allowGroup",t,e))}},allowUngroup:{get:function(){return this.Qi},set:function(e){var t=this.Qi;t!==e&&(this.Qi=e,this.g("allowUngroup",t,e))}},allowInsert:{get:function(){return this.Ys},set:function(e){var t=this.Ys;t!==e&&(this.Ys=e,this.g("allowInsert",t,e))}},allowLink:{get:function(){return this.Ii},set:function(e){var t=this.Ii;t!==e&&(this.Ii=e,this.g("allowLink",t,e))}},allowRelink:{get:function(){return this.Ki},set:function(e){var t=this.Ki;t!==e&&(this.Ki=e,this.g("allowRelink",t,e))}},allowMove:{get:function(){return this.Ji},set:function(e){var t=this.Ji;t!==e&&(this.Ji=e,this.g("allowMove",t,e))}},allowReshape:{get:function(){return this.Li},set:function(e){var t=this.Li;t!==e&&(this.Li=e,this.g("allowReshape",t,e))}},allowResize:{get:function(){return this.Mi},set:function(e){var t=this.Mi;t!==e&&(this.Mi=e,this.g("allowResize",t,e))}},allowRotate:{get:function(){return this.Ni},set:function(e){var t=this.Ni;t!==e&&(this.Ni=e,this.g("allowRotate",t,e))}},allowSelect:{get:function(){return this.Oi},set:function(e){var t=this.Oi;t!==e&&(this.Oi=e,this.g("allowSelect",t,e))}},allowUndo:{get:function(){return this.Zs},set:function(e){var t=this.Zs;t!==e&&(this.Zs=e,this.g("allowUndo",t,e))}},allowZoom:{get:function(){return this.at},set:function(e){var t=this.at;t!==e&&(this.at=e,this.g("allowZoom",t,e))}},hasVerticalScrollbar:{get:function(){return this.nn},set:function(e){var t=this.nn;t!==e&&(this.nn=e,this.Ee=!0,this.N(),this.g("hasVerticalScrollbar",t,e),ol(this,!1))}},hasHorizontalScrollbar:{get:function(){return this.mn},set:function(e){var t=this.mn;t!==e&&(this.mn=e,this.Ee=!0,this.N(),this.g("hasHorizontalScrollbar",t,e),ol(this,!1))}},allowHorizontalScroll:{get:function(){return this.Xs},set:function(e){var t=this.Xs;t!==e&&(this.Xs=e,this.g("allowHorizontalScroll",t,e),ol(this,!1))}},allowVerticalScroll:{get:function(){return this.$s},set:function(e){var t=this.$s;t!==e&&(this.$s=e,this.g("allowVerticalScroll",t,e),ol(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(e){var t=this.iu;t!==e&&(0>e&&hr(e,">= 0",Ct,"scrollHorizontalLineChange"),this.iu=e,this.g("scrollHorizontalLineChange",t,e))}},scrollVerticalLineChange:{get:function(){return this.mu},set:function(e){var t=this.mu;t!==e&&(0>e&&hr(e,">= 0",Ct,"scrollVerticalLineChange"),this.mu=e,this.g("scrollVerticalLineChange",t,e))}},lastInput:{get:function(){return this.cj},set:function(e){this.cj=e}},previousInput:{get:function(){return this.Qg},set:function(e){this.Qg=e}},firstInput:{get:function(){return this.bq},set:function(e){this.bq=e}},currentCursor:{get:function(){return this.it},set:function(e){if(e===""&&(e=this.Op),this.it!==e){var t=this.ta,n=this.Ka;if(t!==null&&n!==null){this.it=e;var r=t.style.cursor;t.style.cursor=e,n.style.cursor=e,t.style.cursor===r&&(t.style.cursor="-webkit-"+e,n.style.cursor="-webkit-"+e,t.style.cursor===r&&(t.style.cursor="-moz-"+e,n.style.cursor="-moz-"+e,t.style.cursor===r&&(t.style.cursor=e,n.style.cursor=e)))}}}},defaultCursor:{get:function(){return this.Op},set:function(e){e===""&&(e="auto");var t=this.Op;t!==e&&(this.Op=e,this.g("defaultCursor",t,e))}},click:{get:function(){return this.zh},set:function(e){var t=this.zh;t!==e&&(this.zh=e,this.g("click",t,e))}},doubleClick:{get:function(){return this.Fh},set:function(e){var t=this.Fh;t!==e&&(this.Fh=e,this.g("doubleClick",t,e))}},contextClick:{get:function(){return this.Bh},set:function(e){var t=this.Bh;t!==e&&(this.Bh=e,this.g("contextClick",t,e))}},mouseOver:{get:function(){return this.Qh},set:function(e){var t=this.Qh;t!==e&&(this.Qh=e,this.g("mouseOver",t,e))}},mouseHover:{get:function(){return this.Oh},set:function(e){var t=this.Oh;t!==e&&(this.Oh=e,this.g("mouseHover",t,e))}},mouseHold:{get:function(){return this.Nh},set:function(e){var t=this.Nh;t!==e&&(this.Nh=e,this.g("mouseHold",t,e))}},mouseDragOver:{get:function(){return this.Qt},set:function(e){var t=this.Qt;t!==e&&(this.Qt=e,this.g("mouseDragOver",t,e))}},mouseDrop:{get:function(){return this.Lh},set:function(e){var t=this.Lh;t!==e&&(this.Lh=e,this.g("mouseDrop",t,e))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(e){var t=this.xt;t!==e&&(this.xt=e,this.g("handlesDragDropForTopLevelParts",t,e))}},mouseEnter:{get:function(){return this.Mh},set:function(e){var t=this.Mh;t!==e&&(this.Mh=e,this.g("mouseEnter",t,e))}},mouseLeave:{get:function(){return this.Ph},set:function(e){var t=this.Ph;t!==e&&(this.Ph=e,this.g("mouseLeave",t,e))}},toolTip:{get:function(){return this.$h},set:function(e){var t=this.$h;t!==e&&(this.$h=e,this.g("toolTip",t,e))}},contextMenu:{get:function(){return this.Ch},set:function(e){var t=this.Ch;t!==e&&(this.Ch=e,this.g("contextMenu",t,e))}},commandHandler:{get:function(){return this.nb},set:function(e){this.nb!==e&&(this.nb=e,e.Xe(this))}},toolManager:{get:function(){return this.te},set:function(e){this.te!==e&&(this.te=e,e.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(e){var t=this.ob;t!==e&&(this.ob=e,e.diagram=this,this.currentTool===t&&(this.currentTool=e))}},currentTool:{get:function(){return this.hb},set:function(e){var t=this.hb;t&&(t.isActive&&t.doDeactivate(),t.cancelWaitAfter(),t.doStop()),e===null&&(e=this.defaultTool),e!==null&&(this.hb=e,e.diagram=this,e.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(e){var t=this.Nt;if(t!==e)if(0<=e&&!isNaN(e)){if(this.Nt=e,this.g("maxSelectionCount",t,e),!this.undoManager.isUndoingRedoing&&(e=this.selection.count-e,0<e)){this.R("ChangingSelection",this.selection),t=this.selection.Fa();for(var n=0;n<e;n++)t[n].isSelected=!1;this.R("ChangedSelection",this.selection)}}else hr(e,">= 0",Ct,"maxSelectionCount")}},nodeSelectionAdornmentTemplate:{get:function(){return this.St},set:function(e){var t=this.St;t!==e&&(this.St=e,this.g("nodeSelectionAdornmentTemplate",t,e))}},groupSelectionAdornmentTemplate:{get:function(){return this.wt},set:function(e){var t=this.wt;t!==e&&(this.wt=e,this.g("groupSelectionAdornmentTemplate",t,e))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kt},set:function(e){var t=this.Kt;t!==e&&(this.Kt=e,this.g("linkSelectionAdornmentTemplate",t,e))}},highlighteds:{get:function(){return this.nw}},isModified:{get:function(){var e=this.undoManager;return e.isEnabled?e.currentTransaction!==null?!0:this.rn&&this.Ce!==e.historyIndex:this.rn},set:function(e){if(this.rn!==e){this.rn=e;var t=this.undoManager;!e&&t.isEnabled&&(this.Ce=t.historyIndex),e||gg(this)}}},model:{get:function(){return this.cc},set:function(e){var t=this.cc;if(t!==e){this.currentTool.doCancel(),t&&t.undoManager!==e.undoManager&&t.undoManager.isInTransaction&&Lt("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var n=Cf(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var r=this.vb;this.vb=!0,ra(this.animationManager,"Model"),t&&(this.pf!==null&&this.pf.each(function(o){return t.ik(o)}),t.ik(this.Oc)),this.cc=e,this.partManager=sp(this.cc.type);for(var i=0;i<n.length;i++)this.add(n[i]);e.Pe(this.Hb),this.partManager.addAllModeledParts(),e.ik(this.Hb),e.Pe(this.Oc),this.pf!==null&&this.pf.each(function(o){return e.Pe(o)}),this.vb=r,this.Ya(),this.vb||this.N(),t&&e.undoManager.copyProperties(t.undoManager)}}},aa:{get:function(){return this.rw},set:function(e){this.rw=e}},As:{get:function(){return this.sy}},skipsModelSourceBindings:{get:function(){return this.Iw},set:function(e){this.Iw=e}},Ns:{get:function(){return this.ou},set:function(e){this.ou=e}},nodeTemplate:{get:function(){return this.Lg.I("")},set:function(e){var t=this.Lg.I("");t!==e&&(this.Lg.add("",e),this.g("nodeTemplate",t,e),this.undoManager.isUndoingRedoing||this.Wd())}},nodeTemplateMap:{get:function(){return this.Lg},set:function(e){var t=this.Lg;t!==e&&(this.Lg=e,this.g("nodeTemplateMap",t,e),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplate:{get:function(){return this.Yi.I("")},set:function(e){var t=this.Yi.I("");t!==e&&(this.Yi.add("",e),this.g("groupTemplate",t,e),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplateMap:{get:function(){return this.Yi},set:function(e){var t=this.Yi;t!==e&&(this.Yi=e,this.g("groupTemplateMap",t,e),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplate:{get:function(){return this.Kh.I("")},set:function(e){var t=this.Kh.I("");t!==e&&(this.Kh.add("",e),this.g("linkTemplate",t,e),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplateMap:{get:function(){return this.Kh},set:function(e){var t=this.Kh;t!==e&&(this.Kh=e,this.g("linkTemplateMap",t,e),this.undoManager.isUndoingRedoing||this.Wd())}},isMouseCaptured:{get:function(){return this.qw},set:function(e){var t=this.ta;t!==null&&(t=t.Oa,t instanceof SVGElement||(e?(this.lastInput.bubbles=!1,this.removeEventListener(t,"pointermove",this.dk,!1),this.removeEventListener(t,"pointerdown",this.ui,!1),this.removeEventListener(t,"pointerup",this.fk,!1),this.removeEventListener(t,"pointerout",this.ek,!1),this.removeEventListener(t,"pointercancel",this.ck,!1),this.addEventListener(vn,"pointermove",this.dk,!0),this.addEventListener(vn,"pointerdown",this.ui,!0),this.addEventListener(vn,"pointerup",this.fk,!0),this.addEventListener(vn,"pointerout",this.ek,!0),this.addEventListener(vn,"pointercancel",this.ck,!0),this.removeEventListener(t,"wheel",this.$j,!1),this.addEventListener(vn,"wheel",this.$j,!0),this.addEventListener(vn,"selectstart",this.preventDefault,!1)):(this.removeEventListener(vn,"pointermove",this.dk,!0),this.removeEventListener(vn,"pointerdown",this.ui,!0),this.removeEventListener(vn,"pointerup",this.fk,!0),this.removeEventListener(vn,"pointerout",this.ek,!0),this.removeEventListener(vn,"pointercancel",this.ck,!0),this.addEventListener(t,"pointermove",this.dk,!1),this.addEventListener(t,"pointerdown",this.ui,!1),this.addEventListener(t,"pointerup",this.fk,!1),this.addEventListener(t,"pointerout",this.ek,!1),this.addEventListener(t,"pointercancel",this.ck,!1),this.removeEventListener(vn,"wheel",this.$j,!0),this.removeEventListener(vn,"selectstart",this.preventDefault,!1),this.addEventListener(t,"wheel",this.$j,!1)),this.qw=e))}},position:{get:function(){return this.pa},set:function(e){var t=Ue.alloc().assign(this.pa);if(!t.D(e)){var n=this.viewportBounds.copy();this.pa.assign(e),cu(this.animationManager,t,this.pa),this.vb||this.ta===null&&!this.wo.w()?Yu(this):(this.vb=!0,e=this.scale,Af(this,this.Sp,this.Aa/e,this.ya/e,this.zk,!1),this.vb=!1),this.vb||this.onViewportBoundsChanged(n,this.viewportBounds,this.Ca,!1)}Ue.free(t)}},initialPosition:{get:function(){return this.zt},set:function(e){this.zt.D(e)||(this.zt=e.J())}},initialScale:{get:function(){return this.At},set:function(e){this.At!==e&&(this.At=e)}},grid:{get:function(){return this.fe===null&&(this.fe=$h(this)),this.fe},set:function(e){var t=this.fe;if(t!==e){t===null&&(t=this.fe=$h(this)),e.type!==qt.Grid&&Lt("Diagram.grid must be a Panel of type Panel.Grid");var n=t.panel;n!==null&&n.remove(t),this.fe=e,e.name="GRID",n!==null&&n.add(e),Ku(this),this.N(),this.g("grid",t,e)}}},viewportBounds:{get:function(){return this.Rw}},viewSize:{get:function(){return this.wo},set:function(e){var t=this.viewSize;t.D(e)||(this.wo=e=e.J(),this.ya=this.Aa=0,e.w()?(this.Aa=e.width,this.ya=e.height):this.Ka!==null&&(this.Aa=this.Ka.clientWidth||1,this.ya=this.Ka.clientHeight||1),Yu(this),this.Ya(),this.g("viewSize",t,e),this.redraw())}},fixedBounds:{get:function(){return this.ut},set:function(e){var t=this.ut;t.D(e)||(e.width!==-1/0&&e.height!==1/0&&e.height!==-1/0||Lt("fixedBounds width/height must not be Infinity"),this.ut=e=e.J(),this.Ya(),this.g("fixedBounds",t,e))}},scrollMargin:{get:function(){return this.rj},set:function(e){typeof e=="number"&&(e=new Wn(e));var t=this.rj;t.D(e)||(this.rj=e=e.J(),this.g("scrollMargin",t,e),this.hk())}},scrollMode:{get:function(){return this.sj},set:function(e){var t=this.sj;t!==e&&(this.sj=e,e===Kc&&ol(this,!1),this.g("scrollMode",t,e),this.Ee=!0,this.N())}},scrollsPageOnFocus:{get:function(){return this.nu},set:function(e){var t=this.nu;t!==e&&(this.nu=e,this.g("scrollsPageOnFocus",t,e))}},positionComputation:{get:function(){return this.Zt},set:function(e){var t=this.Zt;t!==e&&(this.Zt=e,ol(this,!1),this.g("positionComputation",t,e))}},scaleComputation:{get:function(){return this.fu},set:function(e){var t=this.fu;t!==e&&(this.fu=e,op(this,this.scale,this.scale),this.g("scaleComputation",t,e))}},documentBounds:{get:function(){return this.Sp}},isVirtualized:{get:function(){return this.It},set:function(e){var t=this.It;t!==e&&(this.It=e,this.g("isVirtualized",t,e))}},scale:{get:function(){return this.Ca},set:function(e){var t=this.Ca;t!==e&&op(this,t,e)}},defaultScale:{get:function(){return this.Pp},set:function(e){this.Pp=e}},autoScale:{get:function(){return this.yh},set:function(e){var t=this.yh;t!==e&&(this.yh=e,this.g("autoScale",t,e),e!==pa&&ol(this,!1))}},initialAutoScale:{get:function(){return this.Fg},set:function(e){var t=this.Fg;t!==e&&(this.Fg=e,this.g("initialAutoScale",t,e))}},initialViewportSpot:{get:function(){return this.Bt},set:function(e){var t=this.Bt;t!==e&&(e.sb()||Lt("initialViewportSpot must be a specific Spot: "+e),this.Bt=e,this.g("initialViewportSpot",t,e))}},initialDocumentSpot:{get:function(){return this.yt},set:function(e){var t=this.yt;t!==e&&(e.sb()||Lt("initialViewportSpot must be a specific Spot: "+e),this.yt=e,this.g("initialDocumentSpot",t,e))}},minScale:{get:function(){return this.Ot},set:function(e){var t=this.Ot;t!==e&&(0<e?(this.Ot=e,this.g("minScale",t,e),e>this.scale&&(this.scale=e)):hr(e,"> 0",Ct,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(e){var t=this.Mt;t!==e&&(0<e?(this.Mt=e,this.g("maxScale",t,e),e<this.scale&&(this.scale=e)):hr(e,"> 0",Ct,"maxScale"))}},zoomPoint:{get:function(){return this.zu},set:function(e){this.zu.D(e)||(this.zu=e=e.J())}},contentAlignment:{get:function(){return this.zk},set:function(e){var t=this.zk;t.D(e)||(this.zk=e=e.J(),this.g("contentAlignment",t,e),ol(this,!1))}},initialContentAlignment:{get:function(){return this.pq},set:function(e){var t=this.pq;t.D(e)||(this.pq=e=e.J(),this.g("initialContentAlignment",t,e))}},padding:{get:function(){return this.yb},set:function(e){typeof e=="number"&&(e=new Wn(e));var t=this.yb;t.D(e)||(this.yb=e=e.J(),this.Ya(),this.g("padding",t,e))}},partManager:{get:function(){return this.Pc},set:function(e){var t=this.Pc;t!==e&&(e.diagram!==null&&Lt("Cannot share PartManagers between Diagrams: "+e.toString()),t&&t.Xe(null),this.Pc=e,e.Xe(this))}},nodes:{get:function(){return this.partManager.nodes.iterator}},links:{get:function(){return this.partManager.links.iterator}},parts:{get:function(){return this.partManager.parts.iterator}},layout:{get:function(){return this.Sc},set:function(e){var t=this.Sc;t!==e&&(this.Sc=e,e.diagram=this,e.group=null,this.xh=!0,this.g("layout",t,e),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(e){var t=this.Ht;if(t!==e&&(this.Ht=e,this.g("isTreePathToChildren",t,e),!this.undoManager.isUndoingRedoing))for(e=this.nodes;e.next();)Np(e.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(e){var t=this.uu;t!==e&&(e!==Yc&&e!==ps&&e!==dd&&Lt("Unknown Diagram.treeCollapsePolicy: "+e),this.uu=e,this.g("treeCollapsePolicy",t,e))}},Ue:{get:function(){return this.pw},set:function(e){this.pw=e}},avoidanceCellSize:{get:function(){return this.aw},set:function(e){this.Xh=null,this.aw=new Yt(Math.max(1,e.width),Math.max(1,e.height))}},avoidanceLimit:{get:function(){return this.bw},set:function(e){this.bw=Math.max(1,e)}},autoScrollInterval:{get:function(){return this.vp},set:function(e){var t=this.vp;t!==e&&(this.vp=e,this.g("autoScrollInterval",t,e))}},autoScrollRegion:{get:function(){return this.xp},set:function(e){typeof e=="number"&&(e=new Wn(e));var t=this.xp;t.D(e)||(this.xp=e=e.J(),this.Ya(),this.g("autoScrollRegion",t,e))}}}),kn.Object.defineProperties(Ct,{licenseKey:{get:function(){return vp.jc()},set:function(e){vp.add(e.replace(/\s/g,""))}},version:{get:function(){return nf}}}),Ct.prototype.makeImageData=Ct.prototype.Jx,Ct.prototype.makeImage=Ct.prototype.Wz,Ct.prototype.cacheGroupExternalLinks=Ct.prototype.Fu,Ct.prototype.addRenderer=Ct.prototype.bs,Ct.prototype.makeSVG=Ct.prototype.av,Ct.prototype.makeSvg=Ct.prototype.Cs,Ct.prototype.stopAutoScroll=Ct.prototype.ug,Ct.prototype.doAutoScroll=Ct.prototype.gs,Ct.prototype.isUnoccupied=Ct.prototype.Yj,Ct.prototype.raiseDiagramEvent=Ct.prototype.R,Ct.prototype.removeDiagramListener=Ct.prototype.am,Ct.prototype.addDiagramListener=Ct.prototype.Bj,Ct.prototype.findTreeRoots=Ct.prototype.yz,Ct.prototype.layoutDiagram=Ct.prototype.Uz,Ct.prototype.findTopLevelGroups=Ct.prototype.qz,Ct.prototype.findTopLevelNodesAndLinks=Ct.prototype.rz,Ct.prototype.ensureBounds=Ct.prototype.Va,Ct.prototype.findLinksByExample=Ct.prototype.ls,Ct.prototype.findNodesByExample=Ct.prototype.ms,Ct.prototype.findLinkForData=Ct.prototype.Kc,Ct.prototype.findNodeForData=Ct.prototype.ii,Ct.prototype.findPartForData=Ct.prototype.Lc,Ct.prototype.findLinkForKey=Ct.prototype.findLinkForKey,Ct.prototype.findNodeForKey=Ct.prototype.Vb,Ct.prototype.findPartForKey=Ct.prototype.findPartForKey,Ct.prototype.rebuildParts=Ct.prototype.Wd,Ct.prototype.transformViewToDoc=Ct.prototype.Ps,Ct.prototype.transformRectDocToView=Ct.prototype.zA,Ct.prototype.transformDocToView=Ct.prototype.op,Ct.prototype.centerRect=Ct.prototype.es,Ct.prototype.scrollToRect=Ct.prototype.tv,Ct.prototype.scroll=Ct.prototype.scroll,Ct.prototype.highlightCollection=Ct.prototype.Jz,Ct.prototype.highlight=Ct.prototype.Iz,Ct.prototype.selectCollection=Ct.prototype.rA,Ct.prototype.select=Ct.prototype.select,Ct.prototype.updateAllRelationshipsFromData=Ct.prototype.rp,Ct.prototype.updateAllTargetBindings=Ct.prototype.updateAllTargetBindings,Ct.prototype.commit=Ct.prototype.commit,Ct.prototype.rollbackTransaction=Ct.prototype.Kf,Ct.prototype.commitTransaction=Ct.prototype.eb,Ct.prototype.startTransaction=Ct.prototype.Ea,Ct.prototype.raiseChanged=Ct.prototype.g,Ct.prototype.raiseChangedEvent=Ct.prototype.cb,Ct.prototype.removeChangedListener=Ct.prototype.ik,Ct.prototype.addChangedListener=Ct.prototype.Pe,Ct.prototype.removeModelChangedListener=Ct.prototype.mA,Ct.prototype.addModelChangedListener=Ct.prototype.Yw,Ct.prototype.findLayer=Ct.prototype.Qj,Ct.prototype.removeLayer=Ct.prototype.kA,Ct.prototype.addLayerAfter=Ct.prototype.Cy,Ct.prototype.addLayerBefore=Ct.prototype.Ww,Ct.prototype.addLayer=Ct.prototype.Al,Ct.prototype.moveParts=Ct.prototype.moveParts,Ct.prototype.copyParts=Ct.prototype.Kj,Ct.prototype.removeParts=Ct.prototype.Is,Ct.prototype.remove=Ct.prototype.remove,Ct.prototype.add=Ct.prototype.add,Ct.prototype.clearDelayedGeometries=Ct.prototype.bx,Ct.prototype.setProperties=Ct.prototype.nm,Ct.prototype.attach=Ct.prototype.Du,Ct.prototype.set=Ct.prototype.set,Ct.prototype.resetInputOptions=Ct.prototype.Sx,Ct.prototype.setInputOption=Ct.prototype.sA,Ct.prototype.getInputOption=Ct.prototype.Ql,Ct.prototype.resetRenderingHints=Ct.prototype.Tx,Ct.prototype.setRenderingHint=Ct.prototype.Xx,Ct.prototype.getRenderingHint=Ct.prototype.Gf,Ct.prototype.maybeUpdate=Ct.prototype.bd,Ct.prototype.requestUpdate=Ct.prototype.$b,Ct.prototype.delayInitialization=Ct.prototype.Xy,Ct.prototype.isUpdateRequested=Ct.prototype.Pz,Ct.prototype.invalidateDocumentBounds=Ct.prototype.Ya,Ct.prototype.findObjectsNear=Ct.prototype.og,Ct.prototype.findPartsNear=Ct.prototype.mz,Ct.prototype.findObjectsIn=Ct.prototype.Cf,Ct.prototype.findPartsIn=Ct.prototype.ux,Ct.prototype.findObjectsAt=Ct.prototype.ji,Ct.prototype.findPartsAt=Ct.prototype.lz,Ct.prototype.findObjectAt=Ct.prototype.ic,Ct.prototype.findPartAt=Ct.prototype.Ol,Ct.prototype.focusObject=Ct.prototype.zz,Ct.prototype.alignDocument=Ct.prototype.Jy,Ct.prototype.zoomToRect=Ct.prototype.BA,Ct.prototype.zoomToFit=Ct.prototype.zoomToFit,Ct.prototype.diagramScroll=Ct.prototype.kx,Ct.prototype.focus=Ct.prototype.focus;var fd=new nn,Sg=null,Po=vn.document!==void 0,tf=null,xh="",pa=new hn(Ct,"None",0),Sl=new hn(Ct,"Uniform",1),Eh=new hn(Ct,"UniformToFill",2),Rf=new hn(Ct,"CycleAll",10),fp=new hn(Ct,"CycleNotDirected",11),dp=new hn(Ct,"CycleNotDirectedFast",12),pp=new hn(Ct,"CycleNotUndirected",13),gp=new hn(Ct,"CycleDestinationTree",14),mp=new hn(Ct,"CycleSourceTree",15),Kc=new hn(Ct,"DocumentScroll",1),If=new hn(Ct,"InfiniteScroll",2),Yc=new hn(Ct,"TreeParentCollapsed",21),ps=new hn(Ct,"AllParentsCollapsed",22),dd=new hn(Ct,"AnyParentsCollapsed",23),vp=new tn,nf="2.3.10",rf="image",Of=null,xg=!1;function sa(){if(Po){var e=vn.document.createElement("canvas"),t=e.getContext("2d"),n=sr("7ca11abfd022028846");t[n]=sr("398c3597c01238");for(var r=["5da73c80a36455d7038e4972187c3cae51fd22",Jn.Dx+"4ae6247590da4bb21c324ba3a84e385776",dr.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",vt.za],i=1;5>i;i++)t[sr("7ca11abfd7330390")](sr(r[i-1]),10,15*i);for(t[n]=sr("39f046ebb36e4b"),n=1;5>n;n++)t[sr("7ca11abfd7330390")](sr(r[n-1]),10,15*n);(r.length!==4||r[0][0]!=="5"||r[3][0]!=="7")&&(dr.prototype.Cd=dr.prototype.Eu),Of=e}}Ct.className="Diagram",Ct.fromDiv=function(e){var t=e;return typeof e=="string"&&(t=vn.document.getElementById(e)),t instanceof HTMLDivElement&&t.H instanceof Ct?t.H:null},Ct.inherit=function(e,t){function n(){}if(Object.getPrototypeOf(e).prototype)throw Error(`Used go.Diagram.inherit defining already defined class
`+e);n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e},Ct.useDOM=function(e){Po=e?vn.document!==void 0:!1},Ct.isUsingDOM=function(){return Po},Ct.None=pa,Ct.Uniform=Sl,Ct.UniformToFill=Eh,Ct.CycleAll=Rf,Ct.CycleNotDirected=fp,Ct.CycleNotDirectedFast=dp,Ct.CycleNotUndirected=pp,Ct.CycleDestinationTree=gp,Ct.CycleSourceTree=mp,Ct.DocumentScroll=Kc,Ct.InfiniteScroll=If,Ct.TreeParentCollapsed=Yc,Ct.AllParentsCollapsed=ps,Ct.AnyParentsCollapsed=dd;function Eg(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function of(e,t){if(t.ib.setTransform(t.Mb,0,0,t.Mb,0,0),t.ib.yc(),e.Rc===null)e:{t="f";var n=vn[sr("76a715b2f73f148a")][sr("72ba13b5")]||"";if(e.Rc=!0,Po){var r=Ct[sr("76a115b6ed251eaf4692")];if(r)for(var i=vp.iterator;i.next()&&(r=i.value,r=sr(r).split(sr("39e9")),!(6>r.length));){var o=sr(r[1]).split(".");if(r[4]!=="7da71ca0")break;var a=sr(Jn[sr("6cae19")]).split(".");if(o[0]>a[0]||o[0]===a[0]&&o[1]>=a[1]){var p=vn[sr("74a900bae4370f8b51")][sr("6fbb13a1c2311e8a57")].toLowerCase();if(a=p[sr("73a612b6fb191d")](sr("3aad1ab6e022098b4dc4")),o=sr(r[2]),-1<a&&(p=p[sr("73a612b6fb191d")](o.toLowerCase()+"/"),e.Rc=!(-1<p&&p<a),!e.Rc))break;for(a=n[sr("76ad18b4f73e")],p=n[sr("73a612b6fb191d")](sr("35e7"))+2;p<a;p++)t+=n[p];if(a=t[sr("73a612b6fb191d")](o),0>a&&o!==sr("7da71ca0ad381e90")&&(a=t[sr("73a612b6fb191d")](sr("76a715b2ef3e149757"))),0>a&&(a=t[sr("73a612b6fb191d")](sr("76a715b2ef3e149757"))),0>a&&(a=t[sr("73a612b6fb191d")](sr("2bfa41fdb3784bca12"))),0>a&&(a=n[sr("73a612b6fb191d")](sr("7baa19a6f76c1988428554"))),e.Rc=!(0<=a&&a<t[sr("73a612b6fb191d")](sr("35"))||t[sr("73a612b6fb191d")](sr("35"))===-1),!e.Rc||n[sr("73a612b6fb191d")](sr("7fb002b6ed25128b4da25b2e"))&&(e.Rc=!(-1<n[sr("73a612b6fb191d")](o)),!e.Rc)||(a=vn[sr("76a715b2f73f148a")][sr("69ad17a1e03e")],p=a[sr("73a612b6fb191d")](sr("7fb002b6ed25128b4da25b2e")),-1<p&&(e.Rc=!(a[sr("73a612b6fb191d")](o)>p),!e.Rc)))break;if(o[0]==="#"){a=vn.document.createElement("div");for(var w=r[0].replace(/[A-Za-z]/g,"");4>w.length;)w+="9";if(p=w,w=w.substr(w.length-4),r="",r+=["gsh","gsf"][parseInt(w.substr(0,1),10)%2],r+=["Header","Background","Display","Feedback"][parseInt(w.substr(0,1),10)%4],a[sr("79a417a0f0181a8946")]=r,vn.document[sr("78a712aa")]){vn.document[sr("78a712aa")][sr("7bb806b6ed32388c4a875b")](a),w=vn.getComputedStyle(a).getPropertyValue(sr("78a704b7e62456904c9b12701b6532a8"));var O=vn.getComputedStyle(a).getPropertyValue(sr("75b817b0ea2202"));if(vn.document[sr("78a712aa")][sr("68ad1bbcf533388c4a875b")](a),w){if(a=vn[sr("77a902b0eb1b1e804a8a")],O==="0."+parseInt(p,10)%100||w.indexOf(parseInt(o[1]+o[2],16))!==-1&&w.indexOf(parseInt(o[3]+o[4],16))!==-1){e.Rc=!1;break}else if(a&&a(sr("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(r="."+r,o=0;o<document.styleSheets.length;o++){a=document.styleSheets[o].rules||document.styleSheets[o].cssRules;for(var D in a)if(r===a[D].selectorText){e.Rc=!1;break e}}}}else e.Rc=null,e.Rc=!1}}}else{for(D=n[sr("76ad18b4f73e")],i=n[sr("73a612b6fb191d")](sr("35e7"))+2;i<D;i++)t+=n[i];n=t[sr("73a612b6fb191d")](sr("7da71ca0ad381e90")),e.Rc=!(0<=n&&n<t[sr("73a612b6fb191d")](sr("35")))}}}return 0<e.Rc&&e!==e.wy}Eg.className="DiagramHelper";function Ac(e){this.j=e===void 0?new Ue:e,this.o=new Ue}kn.Object.defineProperties(Ac.prototype,{point:{get:function(){return this.j},set:function(e){this.j=e}},shifted:{get:function(){return this.o},set:function(e){this.o=e}}});var Lf="DraggingInfo";Ac.className="DraggingInfo";function l(e,t,n){this.node=e,this.info=t,this.Su=n}l.className="DraggingNodeInfoPair";function C(){this.reset()}C.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new Yt(NaN,NaN).freeze(),this.gridSnapCellSpot=No,this.gridSnapOrigin=new Ue(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},C.className="DraggingOptions";function K(e,t){if(typeof e=="string"||vn.Element&&e instanceof Element)var n=Ct.call(this,e)||this;else n=Ct.call(this)||this,t=e;return W(n),t&&n.nm(t),n}Tn(K,Ct);function W(e){e.allowDragOut=!0,e.allowMove=!1,e.isReadOnly=!0,e.contentAlignment=Es,e.layout=new Hs}K.prototype.reset=function(){Ct.prototype.reset.call(this),W(this)},K.className="Palette";function q(e,t){if(typeof e=="string"||vn.Element&&e instanceof Element)var n=Ct.call(this,e)||this;else n=Ct.call(this)||this,t=e;var r=n;n.animationManager.isEnabled=!1,n.vb=!0,n.V=null,n.mn=!1,n.nn=!1,n.F=!0,n.u=!0,n.ia=0,n.o=!1,n.ql=null,n.Xx("drawShadows",!1),e=new zn;var i=new vr;return i.stroke="magenta",i.strokeWidth=2,i.fill="transparent",i.name="BOXSHAPE",e.selectable=!0,e.selectionAdorned=!1,e.selectionObjectName="BOXSHAPE",e.locationObjectName="BOXSHAPE",e.resizeObjectName="BOXSHAPE",e.cursor="move",e.add(i),n.j=e,n.allowCopy=!1,n.allowDelete=!1,n.allowSelect=!0,n.autoScrollRegion=new Wn(0,0,0,0),n.pa.h(0,0),n.toolManager.gb("Dragging",new Ze,n.toolManager.mouseMoveTools),n.click=function(){var o=r.observed;if(o!==null){var a=o.viewportBounds,p=r.lastInput.documentPoint;o.position=new Ue(p.x-a.width/2,p.y-a.height/2)}},n.Pf=function(){r.Ya(),je(r)},n.Xd=function(){r.observed!==null&&(r.Ya(),r.N())},n.Ha=function(){1>r.updateDelay?r.N():r.o||(r.o=!0,setTimeout(function(){return r.redraw()},r.updateDelay))},n.Of=function(){r.observed!==null&&je(r)},n.autoScale=Sl,n.vb=!1,t&&Object.assign(n,t),n}Tn(q,Ct),q.prototype.computePixelRatio=function(){return 1},q.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var e=this.ta,t=this.ib;if(e!==null&&t!==null){if(Qh(this),this.ql===null){var n=new Ql(null);n.width=e.width,n.height=e.height,this.ql=n}try{this.ta=this.ql,this.ib=this.ta.context,this.ib.Vc(!0),this.ib.setTransform(1,0,0,1,0,0),this.ib.clearRect(0,0,this.ta.width,this.ta.height),xe(this)}finally{this.ta=e,this.ib=t}}}Ct.prototype.redraw.call(this)},q.prototype.gc=function(){if(this.Ka===null&&Lt("No div specified"),this.ta===null&&Lt("No canvas specified"),!(this.ta instanceof $u)&&(Yv(this.box),this.Fc)){var e=this.observed;if(e!==null&&!e.animationManager.defaultAnimation.isAnimating&&e.pi){Qh(this);var t=this.ta;e=this.ib,e.Vc(!0),e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,t.width,t.height),1>this.updateDelay?xe(this):this.ql!==null&&(e.drawImage(this.ql.Oa,0,0),t=this.Ab,t.reset(),this.scale!==1&&t.scale(this.scale),this.position.x===0&&this.position.y===0||t.translate(-this.position.x,-this.position.y),e.scale(this.Mb,this.Mb),e.transform(t.m11,t.m12,t.m21,t.m22,t.dx,t.dy),e.yc()),t=this.Wa.s;for(var n=t.length,r=0;r<n;r++)t[r].gc(e,this);this.Fc=this.vd=!1}}};function xe(e){var t=e.observed;if(t!==null){var n=e.drawsTemporaryLayers,r=e.drawsGrid&&n,i=t.grid;r&&i!==null&&i.visible&&!isNaN(i.width)&&!isNaN(i.height)&&(i=Nt.alloc().assign(e.viewportBounds).ed(t.viewportBounds),Ku(t,i),Nt.free(i),Cs(t));var o=e.Ab;o.reset(),e.scale!==1&&o.scale(e.scale),e.position.x===0&&e.position.y===0||o.translate(-e.position.x,-e.position.y),i=e.ib,i.scale(e.Mb,e.Mb),i.transform(o.m11,o.m12,o.m21,o.m22,o.dx,o.dy),i.yc(),t=t.Wa.s,o=t.length;for(var a=0;a<o;a++){var p=t[a],w=e;if(p.visible&&p.opacity!==0){var O=p.diagram.grid.part;if(!n&&p.isTemporary)r&&O.layer===p&&(p=Yo(p,i),O.gc(i,w),i.globalAlpha=p);else{for(var D=Yo(p,i),X=w.scale,re=Nt.alloc(),de=p.Pa.s,Se=de.length,Te=0;Te<Se;Te++){var Xe=de[Te];(r||Xe!==O)&&p.Oj(i,Xe,w,null,X,re,!1)}Nt.free(re),i.globalAlpha=D}}}}}function je(e){var t=e.box;if(t!==null){var n=e.observed;if(n!==null){e.Fc=!0,n=n.viewportBounds;var r=t.selectionObject,i=Yt.alloc();i.h(n.width,n.height),r.desiredSize=i,Yt.free(i),e=2/e.scale,r instanceof vr&&(r.strokeWidth=e),t.location=new Ue(n.x-e/2,n.y-e/2),t.isSelected=!0}}}q.prototype.computeBounds=function(){var e=this.observed;if(e===null)return Yr;var t=e.documentBounds.copy();return t.ed(e.viewportBounds),t},q.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},q.prototype.onViewportBoundsChanged=function(e,t,n,r){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),je(this),this.fc.scale=n,this.fc.position.x=e.x,this.fc.position.y=e.y,this.fc.bounds.assign(e),this.fc.Oz=r,this.R("ViewportBoundsChanged",this.fc,e))},kn.Object.defineProperties(q.prototype,{observed:{get:function(){return this.V},set:function(e){var t=this.V;if(e instanceof q&&Lt("Overview.observed Diagram may not be an Overview itself: "+e),t!==e){if(t!==null&&(this.remove(this.box),t.am("ViewportBoundsChanged",this.Pf),t.am("DocumentBoundsChanged",this.Xd),t.am("InvalidateDraw",this.Ha),t.am("AnimationFinished",this.Of)),this.V=e,e!==null&&(e.Bj("ViewportBoundsChanged",this.Pf),e.Bj("DocumentBoundsChanged",this.Xd),e.Bj("InvalidateDraw",this.Ha),e.Bj("AnimationFinished",this.Of),this.add(this.box)),this.Ya(),e===null){this.ql=null;var n=this.ta,r=this.ib;n&&r&&(r.setTransform(1,0,0,1,0,0),r.clearRect(0,0,n.width,n.height))}else this.Ha(null),je(this),this.N();this.g("observed",t,e)}}},box:{get:function(){return this.j},set:function(e){var t=this.j;t!==e&&(this.j=e,this.remove(t),this.add(this.j),je(this),this.g("box",t,e))}},drawsTemporaryLayers:{get:function(){return this.F},set:function(e){this.F!==e&&(this.F=e,this.redraw())}},drawsGrid:{get:function(){return this.u},set:function(e){this.u!==e&&(this.u=e,this.redraw())}},updateDelay:{get:function(){return this.ia},set:function(e){0>e&&(e=0),this.ia!==e&&(this.ia=e)}}}),q.className="Overview";function Ze(){io.call(this),this.j=null}Tn(Ze,io),Ze.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;if(e===null||!e.allowMove||!e.allowSelect)return!1;var t=e.observed;if(t===null)return!1;var n=e.lastInput;return!n.left||e.currentTool!==this&&(!this.isBeyondDragSize()||n.isTouchEvent&&n.timestamp-e.firstInput.timestamp<this.delay)?!1:(this.findDraggablePart()===null&&(n=t.viewportBounds,this.j=new Ue(n.width/2,n.height/2),e=e.firstInput.documentPoint,t.position=new Ue(e.x-this.j.x,e.y-this.j.y)),!0)},Ze.prototype.doActivate=function(){this.j=null,io.prototype.doActivate.call(this)},Ze.prototype.doUpdateCursor=function(){var e=this.diagram,t=e.box;t!==null&&t.cursor&&(e.currentCursor=t.cursor)},Ze.prototype.moveParts=function(){var e=this.diagram,t=e.observed;if(t!==null){var n=e.box;if(n!==null){if(this.j===null){var r=e.firstInput.documentPoint;n=n.location,this.j=new Ue(r.x-n.x,r.y-n.y)}e=e.lastInput.documentPoint,t.position=new Ue(e.x-this.j.x,e.y-this.j.y)}}},Ze.className="OverviewDraggingTool";function $e(){Ge(this),this.H=Ya,this.Ha=this.u=this.o=!0,this.F=this.V=this.nb=this.ia=!1,this.ij=this.j=null,this.Hb=1.05,this.Jt=NaN,this.sw=null,this.Au=NaN,this.yu=Yr,this.hb=!0,this.cg=null,this.ob=200}$e.prototype.toString=function(){return"CommandHandler"},$e.prototype.Xe=function(e){this.H=e},$e.prototype.doKeyDown=function(){var e=this.diagram,t=e.lastInput,n=Wo?t.meta:t.control,r=t.shift,i=t.alt,o=t.key;!n||o!=="C"&&o!=="Insert"?n&&o==="X"||r&&o==="Del"?this.canCutSelection()&&this.cutSelection():n&&o==="V"||r&&o==="Insert"?this.canPasteSelection()&&this.pasteSelection():n&&o==="Y"||i&&r&&o==="Backspace"?this.canRedo()&&this.redo():n&&o==="Z"||i&&o==="Backspace"?this.canUndo()&&this.undo():o==="Del"||o==="Backspace"?this.canDeleteSelection()&&this.deleteSelection():n&&o==="A"?this.canSelectAll()&&this.selectAll():o==="Esc"?this.canStopCommand()&&this.stopCommand():o==="Up"?e.allowVerticalScroll&&(n?e.scroll("pixel","up"):e.scroll("line","up")):o==="Down"?e.allowVerticalScroll&&(n?e.scroll("pixel","down"):e.scroll("line","down")):o==="Left"?e.allowHorizontalScroll&&(n?e.scroll("pixel","left"):e.scroll("line","left")):o==="Right"?e.allowHorizontalScroll&&(n?e.scroll("pixel","right"):e.scroll("line","right")):o==="PageUp"?r&&e.allowHorizontalScroll?e.scroll("page","left"):e.allowVerticalScroll&&e.scroll("page","up"):o==="PageDown"?r&&e.allowHorizontalScroll?e.scroll("page","right"):e.allowVerticalScroll&&e.scroll("page","down"):o==="Home"?n&&e.allowVerticalScroll?e.scroll("document","up"):!n&&e.allowHorizontalScroll&&e.scroll("document","left"):o==="End"?n&&e.allowVerticalScroll?e.scroll("document","down"):!n&&e.allowHorizontalScroll&&e.scroll("document","right"):o===" "?this.canScrollToPart()&&this.scrollToPart():o==="Subtract"?this.canDecreaseZoom()&&this.decreaseZoom():o==="Add"?this.canIncreaseZoom()&&this.increaseZoom():n&&o==="0"?this.canResetZoom()&&this.resetZoom():r&&o==="Z"?this.canZoomToFit()&&this.zoomToFit():n&&!r&&o==="G"?this.canGroupSelection()&&this.groupSelection():n&&r&&o==="G"?this.canUngroupSelection()&&this.ungroupSelection():o==="F2"||t.event&&t.event.key==="F2"?this.canEditTextBlock()&&this.editTextBlock():o==="ContextMenu"||t.event&&t.event.key==="ContextMenu"?this.canShowContextMenu()&&this.showContextMenu():t.bubbles=!0:this.canCopySelection()&&this.copySelection()},$e.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},$e.prototype.stopCommand=function(){var e=this.diagram,t=e.currentTool;t instanceof Wi&&e.allowSelect&&e.clearSelection(),t!==null&&t.doCancel()},$e.prototype.canStopCommand=function(){return!0},$e.prototype.selectAll=function(){var e=this.diagram;e.N();try{e.currentCursor="wait",e.R("ChangingSelection",e.selection);for(var t=e.parts;t.next();)t.value.isSelected=!0;for(var n=e.nodes;n.next();)n.value.isSelected=!0;for(var r=e.links;r.next();)r.value.isSelected=!0}finally{e.R("ChangedSelection",e.selection),e.currentCursor=""}},$e.prototype.canSelectAll=function(){return this.diagram.allowSelect},$e.prototype.deleteSelection=function(){var e=this.diagram;try{e.currentCursor="wait",e.R("ChangingSelection",e.selection),e.Ea("Delete"),e.R("SelectionDeleting",e.selection);for(var t=new ut,n=e.selection.iterator;n.next();)_h(t,n.value,!0,this.deletesTree?1/0:0,this.deletesConnectedLinks?null:!1,function(r){return r.canDelete()});e.Is(t,!0),e.R("SelectionDeleted",t)}finally{e.eb("Delete"),e.R("ChangedSelection",e.selection),e.currentCursor=""}},$e.prototype.canDeleteSelection=function(){var e=this.diagram;return!(e.isReadOnly||e.isModelReadOnly||!e.allowDelete||e.selection.count===0)},$e.prototype.copySelection=function(){var e=this.diagram,t=new ut;for(e=e.selection.iterator;e.next();)_h(t,e.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(n){return n.canCopy()});this.copyToClipboard(t)},$e.prototype.canCopySelection=function(){var e=this.diagram;return!!(e.allowCopy&&e.allowClipboard&&e.selection.count!==0)},$e.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},$e.prototype.canCutSelection=function(){var e=this.diagram;return!!(!e.isReadOnly&&!e.isModelReadOnly&&e.allowCopy&&e.allowDelete&&e.allowClipboard&&e.selection.count!==0)},$e.prototype.copyToClipboard=function(e){var t=this.diagram,n=null;if(e===null)tf=null,xh="";else{n=t.model;var r=!1,i=!1,o=null;try{n.Tl()&&(r=n.Jj,n.Jj=this.copiesParentKey),n.Wj()&&(i=n.Ij,n.Ij=this.copiesGroupKey),o=t.Kj(e,null,!0)}finally{n.Tl()&&(n.Jj=r),n.Wj()&&(n.Ij=i),n=new tn,n.addAll(o),tf=n,xh=t.model.dataFormat}}t.R("ClipboardChanged",n)},$e.prototype.pasteFromClipboard=function(){var e=new ut,t=tf;if(t===null)return e;var n=this.diagram;if(xh!==n.model.dataFormat)return e;var r=n.model,i=!1,o=!1,a=null;try{r.Tl()&&(i=r.Jj,r.Jj=this.copiesParentKey),r.Wj()&&(o=r.Ij,r.Ij=this.copiesGroupKey),a=n.Kj(t,n,!1)}finally{for(r.Tl()&&(r.Jj=i),r.Wj()&&(r.Ij=o),t=a.iterator;t.next();)n=t.value,r=t.key,n.location.w()||(r.location.w()?n.location=r.location:!n.position.w()&&r.position.w()&&(n.position=r.position)),e.add(n)}return e},$e.prototype.pasteSelection=function(e){e===void 0&&(e=null);var t=this.diagram;try{t.currentCursor="wait",t.R("ChangingSelection",t.selection),t.Ea("Paste");var n=this.pasteFromClipboard();0<n.count&&t.clearSelection(!0);for(var r=n.iterator;r.next();)r.value.isSelected=!0;if(e!==null){var i=t.computePartsBounds(t.selection);if(i.w()){var o=this.computeEffectiveCollection(t.selection,t.Wm);yh(t,o,new Ue(e.x-i.centerX,e.y-i.centerY),t.Wm,!1)}}t.R("ClipboardPasted",n)}finally{t.eb("Paste"),t.R("ChangedSelection",t.selection),t.currentCursor=""}},$e.prototype.canPasteSelection=function(){var e=this.diagram;return!(e.isReadOnly||e.isModelReadOnly||!e.allowInsert||!e.allowClipboard||tf===null||tf.count===0||xh!==e.model.dataFormat)},$e.prototype.undo=function(){this.diagram.undoManager.undo()},$e.prototype.canUndo=function(){var e=this.diagram;return e.isReadOnly||e.isModelReadOnly?!1:e.allowUndo&&e.undoManager.canUndo()},$e.prototype.redo=function(){this.diagram.undoManager.redo()},$e.prototype.canRedo=function(){var e=this.diagram;return e.isReadOnly||e.isModelReadOnly?!1:e.allowUndo&&e.undoManager.canRedo()},$e.prototype.decreaseZoom=function(e){e===void 0&&(e=1/this.zoomFactor);var t=this.diagram;t.autoScale===pa&&(e=t.scale*e,e<t.minScale||e>t.maxScale||(t.scale=e))},$e.prototype.canDecreaseZoom=function(e){e===void 0&&(e=1/this.zoomFactor);var t=this.diagram;return t.autoScale!==pa?!1:(e=t.scale*e,e<t.minScale||e>t.maxScale?!1:t.allowZoom)},$e.prototype.increaseZoom=function(e){e===void 0&&(e=this.zoomFactor);var t=this.diagram;t.autoScale===pa&&(e=t.scale*e,e<t.minScale||e>t.maxScale||(t.scale=e))},$e.prototype.canIncreaseZoom=function(e){e===void 0&&(e=this.zoomFactor);var t=this.diagram;return t.autoScale!==pa?!1:(e=t.scale*e,e<t.minScale||e>t.maxScale?!1:t.allowZoom)},$e.prototype.resetZoom=function(e){e===void 0&&(e=this.defaultScale);var t=this.diagram;e<t.minScale||e>t.maxScale||(t.scale=e)},$e.prototype.canResetZoom=function(e){e===void 0&&(e=this.defaultScale);var t=this.diagram;return e<t.minScale||e>t.maxScale?!1:t.allowZoom},$e.prototype.zoomToFit=function(){var e=this.diagram,t=e.animationManager;t.Cc(),e.redraw();var n=e.position,r=e.scale;ra(t,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&r===this.Au&&!isNaN(this.Jt)&&e.documentBounds.D(this.yu)?(e.scale=this.Jt,e.position=this.sw,this.Au=NaN,this.yu=Yr):(this.Jt=r,this.sw=n.copy(),e.zoomToFit(),this.Au=e.scale,this.yu=e.documentBounds.copy()),Pa(t)},$e.prototype.canZoomToFit=function(){return this.diagram.allowZoom},$e.prototype.scrollToPart=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.Va(),e===null){try{this.cg!==null&&(this.cg.next()?e=this.cg.value:this.cg=null)}catch(w){this.cg=null}e===null&&(0<t.highlighteds.count?this.cg=t.highlighteds.iterator:0<t.selection.count&&(this.cg=t.selection.iterator),this.cg!==null&&this.cg.next()&&(e=this.cg.value))}if(e!==null){var n=t.animationManager;ra(n,"Scroll To Part");var r=this.scrollToPartPause;if(0<r){var i=ot(this,e,[e]);if(i.length===1)t.Ea(),t.es(e.actualBounds),t.eb("Scroll To Part");else{var o=function(){t.Ea();for(var w=i.pop();0<i.length&&w instanceof En&&w.isTreeExpanded&&(!(w instanceof lr)||w.isSubGraphExpanded);)w=i.pop();0<i.length?(w instanceof zn&&t.tv(w.actualBounds),w instanceof En&&!w.isTreeExpanded&&(w.isTreeExpanded=!0),w instanceof lr&&!w.isSubGraphExpanded&&(w.isSubGraphExpanded=!0)):(w instanceof zn&&t.es(w.actualBounds),t.am("LayoutCompleted",a)),t.eb("Scroll To Part")},a=function(){gi(o,(n.isEnabled?n.duration:0)+r)};t.Bj("LayoutCompleted",a),o()}}else{var p=t.position.copy();t.es(e.actualBounds),p.Xa(t.position)&&n.Cc()}}};function ot(e,t,n){if(t.isVisible())return n;if(t instanceof qr)ot(e,t.adornedPart,n);else if(t instanceof cn){var r=t.fromNode;r!==null&&ot(e,r,n),t=t.toNode,t!==null&&ot(e,t,n)}else t instanceof En&&(r=t.labeledLink,r!==null&&ot(e,r,n),r=t.pg(),r!==null&&(r.isTreeExpanded||r.wasTreeExpanded||n.push(r),ot(e,r,n))),t=t.containingGroup,t!==null&&(t.isSubGraphExpanded||t.wasSubGraphExpanded||n.push(t),ot(e,t,n));return n}$e.prototype.canScrollToPart=function(e){return e===void 0&&(e=null),e!==null&&!(e instanceof zn)?!1:(e=this.diagram,e.selection.count===0&&e.highlighteds.count===0?!1:e.allowHorizontalScroll&&e.allowVerticalScroll)},$e.prototype.collapseTree=function(e){e===void 0&&(e=null);var t=this.diagram;try{t.Ea("Collapse Tree"),ra(t.animationManager,"Collapse Tree");var n=new tn;if(e!==null&&e.isTreeExpanded)e.collapseTree(),n.add(e);else if(e===null)for(var r=t.selection.iterator;r.next();){var i=r.value;i instanceof En&&i.isTreeExpanded&&(i.collapseTree(),n.add(i))}t.R("TreeCollapsed",n)}finally{t.eb("Collapse Tree")}},$e.prototype.canCollapseTree=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.isReadOnly)return!1;if(e!==null){if(!(e instanceof En&&e.isTreeExpanded))return!1;if(0<e.Qo().count)return!0}else for(e=t.selection.iterator;e.next();)if(t=e.value,t instanceof En&&t.isTreeExpanded&&0<t.Qo().count)return!0;return!1},$e.prototype.expandTree=function(e){e===void 0&&(e=null);var t=this.diagram;try{t.Ea("Expand Tree"),ra(t.animationManager,"Expand Tree");var n=new tn;if(e!==null&&!e.isTreeExpanded)e.expandTree(),n.add(e);else if(e===null)for(var r=t.selection.iterator;r.next();){var i=r.value;i instanceof En&&!i.isTreeExpanded&&(i.expandTree(),n.add(i))}t.R("TreeExpanded",n)}finally{t.eb("Expand Tree")}},$e.prototype.canExpandTree=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.isReadOnly)return!1;if(e!==null){if(!(e instanceof En)||e.isTreeExpanded)return!1;if(0<e.Qo().count)return!0}else for(e=t.selection.iterator;e.next();)if(t=e.value,t instanceof En&&!t.isTreeExpanded&&0<t.Qo().count)return!0;return!1},$e.prototype.groupSelection=function(){var e=this.diagram,t=e.model;if(t.Xj()){var n=this.archetypeGroupData;if(n!==null){var r=null;try{e.currentCursor="wait",e.R("ChangingSelection",e.selection),e.Ea("Group");for(var i=new tn,o=e.selection.iterator;o.next();){var a=o.value;a.Zc()&&a.canGroup()&&i.add(a)}for(var p=new tn,w=i.iterator;w.next();){var O=w.value;o=!1;for(var D=i.iterator;D.next();)if(O.Td(D.value)){o=!0;break}o||p.add(O)}if(0<p.count){var X=p.first().containingGroup;if(X!==null)for(;X!==null;){i=!1;for(var re=p.iterator;re.next();)if(!re.value.Td(X)){i=!0;break}if(i)X=X.containingGroup;else break}if(n instanceof lr)ql(n),r=n.copy(),r!==null&&e.add(r);else if(t.Yu(n)){var de=t.copyNodeData(n);bn(de)&&(t.xf(de),r=e.ii(de))}if(r!==null){X!==null&&this.isValidMember(X,r)&&(r.containingGroup=X);for(var Se=p.iterator;Se.next();){var Te=Se.value;this.isValidMember(r,Te)&&(Te.containingGroup=r)}e.clearSelection(!0),r.isSelected=!0}}e.R("SelectionGrouped",r)}finally{e.eb("Group"),e.R("ChangedSelection",e.selection),e.currentCursor=""}}}},$e.prototype.canGroupSelection=function(){var e=this.diagram;if(e.isReadOnly||e.isModelReadOnly||!e.allowInsert||!e.allowGroup||!e.model.Xj()||this.archetypeGroupData===null)return!1;for(e=e.selection.iterator;e.next();){var t=e.value;if(t.Zc()&&t.canGroup())return!0}return!1};function Ot(e){var t=yr();for(e=e.iterator;e.next();){var n=e.value;n instanceof cn||t.push(n)}e=new ut,n=t.length;for(var r=0;r<n;r++){for(var i=t[r],o=!0,a=0;a<n;a++)if(i.Td(t[a])){o=!1;break}o&&e.add(i)}return Mr(t),e}$e.prototype.isValidMember=function(e,t){if(t===null||e===t||t instanceof cn)return!1;if(e!==null){if(e===t||e.Td(t))return!1;var n=e.memberValidation;if(n!==null&&!n(e,t)||e.data===null&&t.data!==null||e.data!==null&&t.data===null)return!1}return n=this.memberValidation,n!==null?n(e,t):!0},$e.prototype.ungroupSelection=function(e){e===void 0&&(e=null);var t=this.diagram,n=t.model;if(n.Xj())try{t.currentCursor="wait",t.R("ChangingSelection",t.selection),t.Ea("Ungroup");var r=new tn;if(e!==null)r.add(e);else for(var i=t.selection.iterator;i.next();){var o=i.value;o instanceof lr&&o.canUngroup()&&r.add(o)}var a=new tn;if(0<r.count){t.clearSelection(!0);for(var p=r.iterator;p.next();){var w=p.value;w.expandSubGraph();var O=w.containingGroup,D=O!==null&&O.data!==null?n.wa(O.data):void 0;a.addAll(w.memberParts);for(var X=a.iterator;X.next();){var re=X.value;if(re.isSelected=!0,!(re instanceof cn)){var de=re.data;de!==null?n.mp(de,D):re.containingGroup=O}}t.remove(w)}}t.R("SelectionUngrouped",r,a)}finally{t.eb("Ungroup"),t.R("ChangedSelection",t.selection),t.currentCursor=""}},$e.prototype.canUngroupSelection=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.isReadOnly||t.isModelReadOnly||!t.allowDelete||!t.allowUngroup||!t.model.Xj())return!1;if(e!==null){if(!(e instanceof lr))return!1;if(e.canUngroup())return!0}else for(e=t.selection.iterator;e.next();)if(t=e.value,t instanceof lr&&t.canUngroup())return!0;return!1},$e.prototype.addTopLevelParts=function(e,t){var n=!0;for(e=Ot(e).iterator;e.next();){var r=e.value;r.containingGroup!==null&&(!t||this.isValidMember(null,r)?r.containingGroup=null:n=!1)}return n},$e.prototype.collapseSubGraph=function(e){e===void 0&&(e=null);var t=this.diagram;try{t.Ea("Collapse SubGraph"),ra(t.animationManager,"Collapse SubGraph");var n=new tn;if(e!==null&&e.isSubGraphExpanded)e.collapseSubGraph(),n.add(e);else if(e===null)for(var r=t.selection.iterator;r.next();){var i=r.value;i instanceof lr&&i.isSubGraphExpanded&&(i.collapseSubGraph(),n.add(i))}t.R("SubGraphCollapsed",n)}finally{t.eb("Collapse SubGraph")}},$e.prototype.canCollapseSubGraph=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.isReadOnly)return!1;if(e!==null)return!!(e instanceof lr&&e.isSubGraphExpanded);for(e=t.selection.iterator;e.next();)if(t=e.value,t instanceof lr&&t.isSubGraphExpanded)return!0;return!1},$e.prototype.expandSubGraph=function(e){e===void 0&&(e=null);var t=this.diagram;try{t.Ea("Expand SubGraph"),ra(t.animationManager,"Expand SubGraph");var n=new tn;if(e!==null&&!e.isSubGraphExpanded)e.expandSubGraph(),n.add(e);else if(e===null)for(var r=t.selection.iterator;r.next();){var i=r.value;i instanceof lr&&!i.isSubGraphExpanded&&(i.expandSubGraph(),n.add(i))}t.R("SubGraphExpanded",n)}finally{t.eb("Expand SubGraph")}},$e.prototype.canExpandSubGraph=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.isReadOnly)return!1;if(e!==null)return e instanceof lr&&!e.isSubGraphExpanded;for(e=t.selection.iterator;e.next();)if(t=e.value,t instanceof lr&&!t.isSubGraphExpanded)return!0;return!1},$e.prototype.editTextBlock=function(e){e===void 0&&(e=null);var t=this.diagram,n=t.toolManager.findTool("TextEditing");if(n!==null){if(e===null){e=null;for(var r=t.selection.iterator;r.next();){var i=r.value;if(i.canEdit()){e=i;break}}if(e===null)return;e=e.Nl(function(o){return o instanceof Vi&&o.editable})}e!==null&&(t.currentTool=null,n.textBlock=e,t.currentTool=n)}},$e.prototype.canEditTextBlock=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.isReadOnly||t.isModelReadOnly||!t.allowTextEdit||t.toolManager.findTool("TextEditing")===null)return!1;if(e!==null){if(!(e instanceof Vi))return!1;if(e=e.part,e!==null&&e.canEdit())return!0}else for(t=t.selection.iterator;t.next();)if(e=t.value,e.canEdit()&&(e=e.Nl(function(n){return n instanceof Vi&&n.editable}),e!==null))return!0;return!1},$e.prototype.showContextMenu=function(e){var t=this.diagram,n=t.toolManager.findTool("ContextMenu");if(n!==null&&(e===void 0&&(e=0<t.selection.count?t.selection.first():t),e=n.findObjectWithContextMenu(e),e!==null)){var r=t.lastInput,i=null;e instanceof gt?i=e.ga(jr):t.viewportBounds.ca(r.documentPoint)||(i=t.viewportBounds,i=new Ue(i.x+i.width/2,i.y+i.height/2)),i!==null&&(r.viewPoint=t.op(i),r.documentPoint=i,r.left=!1,r.right=!0,r.up=!0),t.currentTool=n,Tr(n,!1,e)}},$e.prototype.canShowContextMenu=function(e){var t=this.diagram,n=t.toolManager.findTool("ContextMenu");return n===null?!1:(e===void 0&&(e=0<t.selection.count?t.selection.first():t),n.findObjectWithContextMenu(e)!==null)},$e.prototype.computeEffectiveCollection=function(e,t){var n=this.diagram,r=n.toolManager.findTool("Dragging"),i=n.currentTool===r;if(t===void 0&&(t=i?r.dragOptions:n.Wm),r=new nn,e===null)return r;for(var o=e.iterator;o.next();)rc(n,r,o.value,i,t);if(n.draggedLink!==null&&t.dragsLink)return r;for(o=e.iterator;o.next();)e=o.value,e instanceof cn&&(t=e.fromNode,t===null||r.contains(t)?(t=e.toNode,t===null||r.contains(t)||r.remove(e)):r.remove(e));return r},kn.Object.defineProperties($e.prototype,{diagram:{get:function(){return this.H}},copiesClipboardData:{get:function(){return this.o},set:function(e){this.o=e}},copiesConnectedLinks:{get:function(){return this.u},set:function(e){this.u=e}},deletesConnectedLinks:{get:function(){return this.Ha},set:function(e){this.Ha=e}},copiesTree:{get:function(){return this.ia},set:function(e){this.ia=e}},deletesTree:{get:function(){return this.nb},set:function(e){this.nb=e}},copiesParentKey:{get:function(){return this.V},set:function(e){this.V=e}},copiesGroupKey:{get:function(){return this.F},set:function(e){this.F=e}},archetypeGroupData:{get:function(){return this.j},set:function(e){this.j=e}},memberValidation:{get:function(){return this.ij},set:function(e){this.ij=e}},defaultScale:{get:function(){return this.diagram.defaultScale},set:function(e){this.diagram.defaultScale=e}},zoomFactor:{get:function(){return this.Hb},set:function(e){1<e||Lt("zoomFactor must be larger than 1.0, not: "+e),this.Hb=e}},isZoomToFitRestoreEnabled:{get:function(){return this.hb},set:function(e){this.hb=e}},scrollToPartPause:{get:function(){return this.ob},set:function(e){this.ob=e}}}),$e.className="CommandHandler",Tf=function(){return new $e};function gt(){Ge(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new Ue(NaN,NaN).freeze(),this.jd=To,this.Ab=new dr,this.wh=new dr,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=fo,this.uc=new Nt(NaN,NaN,NaN,NaN).freeze(),this.Ib=new Nt(NaN,NaN,NaN,NaN).freeze(),this.dc=new Nt(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=is,this.Ag=this.io=0,this.V=this.tb=this.Dh=this.A=this.Ua=null,this.Uc=!1,this.jo=this.Ng=null}var Xt,Wt,Dn,Bn,Kn,cr,Hr,Er,Kr,Ti;gt.prototype.cloneProtected=function(e){e.l=this.l|6144,e.pb=this.pb,e.bn=this.bn,e.Ma=this.Ma,e.pa.assign(this.pa),e.jd=this.jd.J(),this.Lb!==null?e.Lb=this.Lb.copy():e.Lb=null,e.Ca=this.Ca,e.Kb=this.Kb,e.Kg=this.Kg.J(),e.uc.assign(this.uc),e.Ib.assign(this.Ib),e.dc.assign(this.dc),e.Yn=this.Yn,this.ba!==null&&(e.ba=this.ba.copy()),e.Jb=this.Jb.J(),e.sk=this.sk.J(),e.io=this.io,e.Ag=this.Ag,this.Ua!==null&&(e.Ua=this.Ua.copy()),this.A!==null&&(e.A=this.A.nc?this.A:this.A.copy()),this.Dh!==null&&(e.Dh=Ei(this.Dh)),this.tb!==null&&(e.tb=this.tb.copy())},gt.prototype.Vw=function(e){var t=this.Dh;if(or(t)){for(var n=0;n<t.length;n++)if(t[n]===e)return}else this.Dh=t=[];t.push(e)},gt.prototype.Af=function(e){e.Zn=null,e.Ng=null,e.v()},gt.prototype.clone=function(){var e=new this.constructor;if(this.cloneProtected(e),this.Dh!==null)for(var t=0;t<this.Dh.length;t++){var n=this.Dh[t];e[n]=this[n]}return e},gt.prototype.copy=function(){return this.clone()},ye=gt.prototype,ye.qb=function(e){e.classType===cn?e.name.indexOf("Orient")===0?this.segmentOrientation=e:Lt("Unknown Link enum value for GraphObject.segmentOrientation property: "+e):e.classType===gt&&(this.stretch=e)},ye.toString=function(){return Fr(this.constructor)+"#"+it(this)},ye.th=function(){this.A!==null&&(this.A.nc=!0)};function br(e){e.A===null?e.A=new Df:e.A.nc&&(e.A=e.A.copy())}ye.Xc=function(){if(this.ba===null){var e=new yp;e.Xi=So,e.yj=So,e.Vi=10,e.wj=10,e.Wi=0,e.xj=0,this.ba=e}},ye.cb=function(e,t,n,r,i,o,a){var p=this.part;if(p!==null&&(p.gk(e,t,n,r,i,o,a),n===this&&e===Fi&&Ws(this)&&to(this,p,t),o=this.diagram,this.animationTriggers===null||o===null||!o.pi||o.undoManager.isUndoingRedoing||o.animationManager.Dm||(e=this.animationTriggers.get(t),e!==null&&o.animationManager.isEnabled&&!o.animationManager.isTicking&&(this.jo===null&&(this.jo=new nn),a=o.undoManager.transactionLevel===0,e.startCondition===vi?a=!0:e.startCondition===oi&&(a=!1),a?(o=new Ii,Gu(e,o),a=this.jo.get(e),a!==null&&a.stop(),this.jo.add(e,o),o.vu=this,o.Nw=e,o.add(this,t,r,i),o.start()):(ra(o.animationManager,"Trigger"),o.animationManager.defaultAnimation.add(this,t,r,i)))),this instanceof qt&&n===p&&(p.l&16777216)!==0&&p.data!==null))for(n=this.O.s,r=n.length,i=0;i<r;i++)p=n[i],p instanceof qt&&uf(p,function(w){w.data!==null&&w.l&16777216&&w.La(t)})};function to(e,t,n){var r=e.ih();if(r!==null)for(var i=e.localBindings.iterator;i.next();){var o=i.value,a=null;if(o.sourceName!==null){if(a=jb(o,r,e),a===null)continue;o.sp(e,a,n,null)}else if(o.isToModel){var p=t.diagram;p===null||p.skipsModelSourceBindings||o.sp(e,p.model.modelData,n,r)}else{if(p=r.data,p===null)continue;var w=t.diagram;w===null||w.skipsModelSourceBindings||o.sp(e,p,n,r)}a===e&&(p=r.ks(o.Ai),p!==null&&o.Mv(p,a,n))}}ye.ks=function(e){return this.bindingId===e?this:null},ye.g=function(e,t,n){this.cb(Fi,e,this,t,n)},ye.Ge=function(e,t,n,r){var i=this.uc;if(i.h(e,t,n,r),this.Ca!==1||this.Kb!==0){this.Lb===null&&(this.Lb=new dr);var o=this.Lb;o.reset(),this.no(o,e,t,n,r),o.pp(i)}};function Ts(e,t,n,r){return e.pickable===!1?!1:(r.multiply(e.transform),n?e.Yc(t,r):e.fh(t,r))}ye.tx=function(e,t,n){if(this.pickable===!1)return!1;var r=this.naturalBounds;return t=e.Bf(t),n?rr(e.x,e.y,0,0,0,r.height)<=t||rr(e.x,e.y,0,r.height,r.width,r.height)<=t||rr(e.x,e.y,r.width,r.height,r.width,0)<=t||rr(e.x,e.y,r.width,0,0,0)<=t:e.zd(0,0)<=t&&e.zd(0,r.height)<=t&&e.zd(r.width,0)<=t&&e.zd(r.width,r.height)<=t},ye.se=function(){return!0},ye.ca=function(e){var t=Ue.alloc();t.assign(e),this.transform.Ga(t);var n=this.actualBounds;if(!n.w())return Ue.free(t),!1;var r=this.diagram;if(r!==null&&r.wq){var i=r.Ql("extraTouchThreshold"),o=r.Ql("extraTouchArea"),a=o/2,p=this.naturalBounds;r=this.Df()*r.scale;var w=1/r;if(p.width*r<i&&p.height*r<i)return e=$i(n.x-a*w,n.y-a*w,n.width+o*w,n.height+o*w,t.x,t.y),Ue.free(t),e}return i=!1,(this instanceof qr||this instanceof vr?$i(n.x-5,n.y-5,n.width+10,n.height+10,t.x,t.y):n.ca(t))&&(this.tb&&!this.tb.ca(t)?i=!1:this.areaBackground!==null&&n.ca(t)||this.Ma!==null&&this.dc.ca(e)?i=!0:i=this.gh(e)),Ue.free(t),i},ye.gh=function(e){var t=this.naturalBounds;return $i(0,0,t.width,t.height,e.x,e.y)},ye.Re=function(e){if(this.angle===0)return this.actualBounds.Re(e);var t=this.naturalBounds;t=Nt.allocAt(0,0,t.width,t.height);var n=this.transform,r=!1,i=Ue.allocAt(e.x,e.y);return t.ca(n.Cd(i))&&(i.h(e.x,e.bottom),t.ca(n.Cd(i))&&(i.h(e.right,e.bottom),t.ca(n.Cd(i))&&(i.h(e.right,e.y),t.ca(n.Cd(i))&&(r=!0)))),Ue.free(i),Nt.free(t),r},ye.fh=function(e,t){if(t===void 0)return e.Re(this.actualBounds);var n=this.naturalBounds,r=!1,i=Ue.allocAt(0,0);return e.ca(t.Ga(i))&&(i.h(0,n.height),e.ca(t.Ga(i))&&(i.h(n.width,n.height),e.ca(t.Ga(i))&&(i.h(n.width,0),e.ca(t.Ga(i))&&(r=!0)))),Ue.free(i),r},ye.Yc=function(e,t){if(t===void 0&&(t=this.transform,this.angle===0))return e.Yc(this.actualBounds);var n=this.naturalBounds,r=Ue.allocAt(0,0),i=Ue.allocAt(0,n.height),o=Ue.allocAt(n.width,n.height),a=Ue.allocAt(n.width,0),p=!1;if(e.ca(t.Ga(r))||e.ca(t.Ga(i))||e.ca(t.Ga(o))||e.ca(t.Ga(a)))p=!0;else{n=Nt.allocAt(0,0,n.width,n.height);var w=Ue.allocAt(e.x,e.y);n.ca(t.Cd(w))?p=!0:(w.h(e.x,e.bottom),n.ca(t.Cd(w))?p=!0:(w.h(e.right,e.bottom),n.ca(t.Cd(w))?p=!0:(w.h(e.right,e.y),n.ca(t.Cd(w))&&(p=!0)))),Ue.free(w),Nt.free(n),!p&&(vt.us(e,r,i)||vt.us(e,i,o)||vt.us(e,o,a)||vt.us(e,a,r))&&(p=!0)}return Ue.free(r),Ue.free(i),Ue.free(o),Ue.free(a),p},ye.ga=function(e,t){if(t===void 0&&(t=new Ue),e instanceof Nn){var n=this.naturalBounds;t.h(e.x*n.width+e.offsetX,e.y*n.height+e.offsetY)}else t.set(e);return this.oe.Ga(t),t},ye.mi=function(e){e===void 0&&(e=new Nt);var t=this.naturalBounds,n=this.oe,r=Ue.allocAt(0,0).transform(n);return e.h(r.x,r.y,0,0),r.h(t.width,0).transform(n),fi(e,r.x,r.y,0,0),r.h(t.width,t.height).transform(n),fi(e,r.x,r.y,0,0),r.h(0,t.height).transform(n),fi(e,r.x,r.y,0,0),Ue.free(r),e},ye.li=function(){var e=this.oe;return e.m11===1&&e.m12===0?e=0:(e=180*Math.atan2(e.m12,e.m11)/Math.PI,0>e&&(e+=360)),e},ye.Df=function(){if(!(this.l&4096))return this.Kk;var e=this.Ca;return this.panel!==null?e*this.panel.Df():e},ye.qs=function(e,t){return t===void 0&&(t=new Ue),t.assign(e),this.oe.Cd(t),t},ye.rs=function(e,t,n){return this.Sj(e.x,e.y,t.x,t.y,n)},ye.Sj=function(e,t,n,r,i){var o=this.transform,a=1/(o.m11*o.m22-o.m12*o.m21),p=o.m22*a,w=-o.m12*a,O=-o.m21*a,D=o.m11*a,X=a*(o.m21*o.dy-o.m22*o.dx),re=a*(o.m12*o.dx-o.m11*o.dy);return this.areaBackground!==null?(o=this.actualBounds,vt.Ff(o.left,o.top,o.right,o.bottom,e,t,n,r,i)):(a=e*p+t*O+X,e=e*w+t*D+re,t=n*p+r*O+X,n=n*w+r*D+re,i.h(0,0),r=this.naturalBounds,n=vt.Ff(0,0,r.width,r.height,a,e,t,n,i),i.transform(o),n)},gt.prototype.measure=function(e,t,n,r){if(El(this)!==!1){var i=this.Kg,o=i.right+i.left;i=i.top+i.bottom,e=Math.max(e-o,0),t=Math.max(t-i,0),n=Math.max((n||0)-o,0),r=Math.max((r||0)-i,0),o=this.angle,i=this.desiredSize;var a=this.kq();o===90||o===270?(e=isFinite(i.height)?i.height+a:e,t=isFinite(i.width)?i.width+a:t):(e=isFinite(i.width)?i.width+a:e,t=isFinite(i.height)?i.height+a:t),i=n||0,a=r||0;var p=this instanceof qt;switch(Ba(this,!0)){case Wt:a=i=0,p&&(t=e=1/0);break;case Xt:isFinite(e)&&e>n&&(i=e),isFinite(t)&&t>r&&(a=t);break;case Bn:isFinite(e)&&e>n&&(i=e),a=0,p&&(t=1/0);break;case Kn:isFinite(t)&&t>r&&(a=t),i=0,p&&(e=1/0)}p=this.maxSize;var w=this.minSize;i>p.width&&w.width<p.width&&(i=p.width),a>p.height&&w.height<p.height&&(a=p.height),n=Math.max(i,w.width),r=Math.max(a,w.height),p.width<n&&(n=Math.min(w.width,n)),p.height<r&&(r=Math.min(w.height,r)),e=Math.min(p.width,e),t=Math.min(p.height,t),e=Math.max(n,e),t=Math.max(r,t),(o===90||o===270)&&(o=e,e=t,t=o,o=n,n=r,r=o),this.uc.ka(),this.Wl(e,t,n,r),this.uc.freeze(),this.uc.w()||Lt("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),gs(this,!1)}},gt.prototype.Wl=function(){},gt.prototype.Dd=function(){return!1},gt.prototype.arrange=function(e,t,n,r,i){this.Uk();var o=Nt.alloc();o.assign(this.Ib),this.Ib.ka(),Ca(this)===!1?this.Ib.h(e,t,n,r):this.eh(e,t,n,r),this.Ib.freeze(),i===void 0?this.tb=null:this.tb=i,n=!1,i!==void 0?n=!0:(i=this.panel,i!==null&&Zc(i)&&(i=i.panel),i!==null&&(i=i.dc,r=this.measuredBounds,this.areaBackground!==null&&(r=this.Ib),n=t+r.height,r=e+r.width,n=!(0<=e+.05&&r<=i.width+.05&&0<=t+.05&&n<=i.height+.05),this instanceof Vi&&(e=this.naturalBounds,this.Lq>e.height||this.Cb>e.width))&&(n=!0)),this.l=n?this.l|256:this.l&-257,this.Ib.w()||Lt("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(o,this.Ib),ic(this,!1),Nt.free(o)},ye=gt.prototype,ye.eh=function(){};function ga(e,t,n,r,i){if(e.Ib.h(t,n,r,i),!e.desiredSize.w()){var o=e.uc;n=e.Kg,t=n.right+n.left;var a=n.top+n.bottom;switch(n=o.width+t,o=o.height+a,r+=t,i+=a,t=Ba(e,!0),n===r&&o===i&&(t=Wt),t){case Wt:(n>r||o>i)&&(gs(e,!0),e.measure(n>r?r:n,o>i?i:o,0,0));break;case Xt:gs(e,!0),e.measure(r,i,0,0);break;case Bn:gs(e,!0),e.measure(r,o,0,0);break;case Kn:gs(e,!0),e.measure(n,i,0,0)}}}ye.Xl=function(e,t){var n=this.part;n!==null&&n.diagram!==null&&(n.selectionObject!==this&&n.resizeObject!==this&&n.rotateObject!==this||Zv(n,!0),this.N(),ho(e,t)||(n.oh(),this.Pn(n)))},ye.Pn=function(e){this.portId!==null&&(Zv(e,!0),e instanceof En&&nb(e,this))},ye.gc=function(e,t){if(!Dl(this,e,t)&&this.visible){var n=this.opacity;if(n!==0){var r=1;n!==1&&(r=e.globalAlpha,e.globalAlpha=r*n);var i="";this.filter!==""&&(i=e.filter,e.filter=this.filter);var o=this instanceof qt&&Zc(this),a=this.Ib;if(o){var p=this.Ib,w=this.dc,O=this.areaBackground,D=this.Ma;O===null&&D===null||e.yc(),O!==null&&(Ho(this,e,O,!0,!0,w,p),O instanceof yi&&O.type===Bl?(e.beginPath(),e.rect(p.x,p.y,p.width,p.height),e.ng(O)):e.fillRect(p.x,p.y,p.width,p.height)),D!==null&&(Ho(this,e,D,!0,!1,w,p),D instanceof yi&&D.type===Bl?(e.beginPath(),e.rect(p.x,p.y,p.width,p.height),e.ng(D)):e.fillRect(p.x,p.y,p.width,p.height)),this.hh(e,t)}if(!o&&(o||a.width!==0&&a.height!==0&&!isNaN(a.x)&&!isNaN(a.y))){o=this.transform,p=this.panel,this.l&4096&&Us(this),O=this.part,w=!1;var X=0;O&&t.Gf("drawShadows")&&(w=O.isShadowed)&&(D=O.shadowOffset,X=Math.max(D.y,D.x)*t.scale*t.Mb),D=this.Dd();var re;if(!(re=t.$i||!D)){var de=this.naturalBounds;re=this.wh;var Se=re.m11,Te=re.m21,Xe=re.dx,We=re.m12,qe=re.m22,tt=re.dy,rt,ft=rt=0;re=rt*Se+ft*Te+Xe;var Tt=rt*We+ft*qe+tt;rt=de.width+X,ft=0;var Sn=rt*Se+ft*Te+Xe;rt=rt*We+ft*qe+tt,ft=Math.min(re,Sn);var Rn=Math.min(Tt,rt),_n=Math.max(re+0,Sn)-ft,ln=Math.max(Tt+0,rt)-Rn;re=ft,Tt=Rn,rt=de.width+X,ft=de.height+X,Sn=rt*Se+ft*Te+Xe,rt=rt*We+ft*qe+tt,ft=Math.min(re,Sn),Rn=Math.min(Tt,rt),_n=Math.max(re+_n,Sn)-ft,ln=Math.max(Tt+ln,rt)-Rn,re=ft,Tt=Rn,rt=0,ft=de.height+X,Sn=rt*Se+ft*Te+Xe,rt=rt*We+ft*qe+tt,ft=Math.min(re,Sn),Rn=Math.min(Tt,rt),_n=Math.max(re+_n,Sn)-ft,ln=Math.max(Tt+ln,rt)-Rn,re=ft,Tt=Rn,X=t.viewportBounds,de=X.x,Se=X.y,re=!(re>X.width+de||de>_n+re||Tt>X.height+Se||Se>ln+Tt)}if(re){if(re=(this.l&256)!==0,e.clipInsteadOfFill&&(re=!1),this instanceof Vi&&(e.font=this.font),re){if(Tt=p.se()?p.naturalBounds:p.actualBounds,_n=Math.max(a.x,Tt.x),ln=Math.max(a.y,Tt.y),X=Math.min(a.right,Tt.right)-_n,de=Math.min(a.bottom,Tt.bottom)-ln,Se=this.tb,Se!==null&&(_n=Se.x,ln=Se.y,X=Se.width,de=Se.height),_n>a.width+a.x||a.x>Tt.width+Tt.x){n!==1&&(e.globalAlpha=r),this.filter!==""&&(e.filter=i);return}e.save(),e.beginPath(),e.rect(_n,ln,X,de),e.clip()}if(D){if(!O.isVisible()){n!==1&&(e.globalAlpha=r),this.filter!==""&&(e.filter=i);return}w&&(Tt=O.shadowOffset,e.Ev(Tt.x*t.scale*this.scale*t.Mb,Tt.y*t.scale*this.scale*t.Mb,O.shadowBlur),kc(e),e.shadowColor=O.shadowColor)}w&&this.shadowVisible===!0?kc(e):w&&this.shadowVisible===!1&&oc(e),O=this.naturalBounds,this.areaBackground!==null&&(e.yc(),xl(this,e,O,a)),e.transform(o.m11,o.m12,o.m21,o.m22,o.dx,o.dy),w&&Ps(this,p)&&this.shadowVisible===null&&oc(e),this.Ma!==null&&(e.yc(),Xa(this,e,O,a)),w&&(this.Ma!==null||this.areaBackground!==null||Ps(this,p))?(du(this,!0),this.shadowVisible===null&&oc(e)):du(this,!1),this.hh(e,t),w&&this.l&512&&kc(e),D&&w&&oc(e),re&&(e.restore(),e.Vc(this instanceof qt)),o.ws()||(t=1/(o.m11*o.m22-o.m12*o.m21),e.transform(o.m22*t,-o.m12*t,-o.m21*t,o.m11*t,t*(o.m21*o.dy-o.m22*o.dx),t*(o.m12*o.dx-o.m11*o.dy)))}}n!==1&&(e.globalAlpha=r),this.filter!==""&&(e.filter=i)}}};function Ps(e,t){return t===null?!1:(Zc(t)&&(t=t.panel),(t.l&512)!==0||(t.type===qt.Auto||t.type===qt.Spot)&&t.Pb()!==e)}ye.Dv=function(){};function xl(e,t,n,r){Ho(e,t,e.areaBackground,!0,!0,n,r),e.areaBackground instanceof yi&&e.areaBackground.type===Bl?(t.beginPath(),t.rect(r.x,r.y,r.width,r.height),t.ng(e.areaBackground)):t.fillRect(r.x,r.y,r.width,r.height)}function Xa(e,t,n,r){var i=e.kq(),o=n.x,a=n.y,p=n.width+i,w=n.height+i;Ho(e,t,e.Ma,!0,!1,n,r),e.Ma instanceof yi&&e.Ma.type===Bl?(t.beginPath(),t.rect(o-i/2,a-i/2,p,w),t.ng(e.Ma)):t.fillRect(o-i/2,a-i/2,p,w)}function aa(e,t,n){for(var r=t.O.s,i=r.length,o=-1,a=0;a<i;a++)if(r[a]===e){o=a;break}if(e=o,e!==-1)if(e===0)t.svg.gd?t.svg.gd.after(n):t.svg.Ma?t.svg.Ma.after(n):t.type===qt.Table?(t=t.svg.getElementsByClassName("gojs-ts"),t=t.length!==0?t[0]:null,t!==null&&t.after(n)):t.svg.prepend(n);else{for(;e!==0&&!t.M(e-1).Ed();)e--;e===0?t.svg.prepend(n):(e=t.M(e-1).svg,e!==null?e.after(n):t.svg.appendChild(n))}}function Dl(e,t,n){if(!(t instanceof sl))return!1;if(!e.visible||e.opacity===0||e.Dd()&&!e.isVisible())return e.svg!==null&&e.svg.parentNode!==null&&e.svg.remove(),!0;var r=e.panel,i=e.nk(t);if(e.kk(t,n,i))return e.svg.parentElement!==null?(e.Dd()&&(t.ti=e.svg),!0):(e.Dd()?(t.ti!==null?t.ti.after(e.svg):t.Nj.prepend(e.svg),t.ti=e.svg):r&&aa(e,r,e.svg),!0);if(e.Dd()&&e.isShadowed){var o=e.shadowOffset;t.Ev(o.x*n.scale*e.scale*n.Mb,o.y*n.scale*e.scale*n.Mb,e.shadowBlur),kc(t),t.shadowColor=e.shadowColor}e instanceof Vi&&(t.font=e.font),t.yd=null;var a=e.transform;o=e instanceof qt;var p=e instanceof qt?Zc(e):!1;e.l&4096&&Us(e);var w=e.Ib;if(t.rb.ha=[1,0,0,1,0,0],t.o=!1,i&&(t.o=!0,o&&p?(bp(t,1,0,0,1,0,0),e.svg=t.ad):o?(bp(t,a.m11,a.m12,a.m21,a.m22,a.dx,a.dy),e.svg=t.ad):bp(t,1,0,0,1,0,0)),i=e.naturalBounds,e.areaBackground!==null){var O=a.copy().Vj();t.rb.ha=[O.m11,O.m12,O.m21,O.m22,O.dx,O.dy],xl(e,t,i,w),t.rb.ha=[1,0,0,1,0,0],t.yd.gd=t.ad,t.yd.prepend(t.ad)}return o||(t.rb.ha=[a.m11,a.m12,a.m21,a.m22,a.dx,a.dy]),e.background!==null&&(o?(p&&(t.rb.ha=[a.m11,a.m12,a.m21,a.m22,a.dx,a.dy]),Xa(e,t,i,w),p&&(t.rb.ha=[1,0,0,1,0,0])):(t.rb.ha=[a.m11,a.m12,a.m21,a.m22,a.dx,a.dy],Xa(e,t,i,w)),t.yd.Ma=t.ad,t.yd.prepend(t.ad)),a=t.yd,i=e.part,p=!1,i&&n.Gf("drawShadows")&&(p=i.isShadowed),t.clipInsteadOfFill&&(p=!1),e.Dd()&&p&&kc(t),p&&e.shadowVisible===!0?kc(t):p&&e.shadowVisible===!1&&oc(t),i=e.panel,p&&Ps(e,i)&&e.shadowVisible===null&&oc(t),t.Il&&(O=n.computePixelRatio(),O="drop-shadow("+t.shadowOffsetX/O+"px "+t.shadowOffsetY/O+"px "+t.shadowBlur/O/2+"px "+t.shadowColor+")",e.background!==null&&a.Ma.setAttributeNS(null,"filter",O),e.areaBackground!==null&&a.gd.setAttributeNS(null,"filter",O)),p&&(e.Ma!==null||e.areaBackground!==null||Ps(e,i))?(du(e,!0),e.shadowVisible===null&&oc(t)):du(e,!1),i=p,e.hh(t,n),o&&t.nh.pop(),t.o&&t.nh.pop(),a=t.Gv.hs,p=o?e.svg:t.yd,O=e.svg,!o&&O!==null&&p!==O&&O.parentNode===e.panel.svg?(e.svg.replaceWith(p),e.svg=p,p!==null&&e.$o(t,r,w,p),Fa(t,O),!0):(e.svg=p,a!==null&&p===null&&(Cg(t),t.nh.pop()),p===null||(e.$o(t,r,w,p),t.Il&&(n=n.computePixelRatio(),e.Dv(p,"drop-shadow("+t.shadowOffsetX/n+"px "+t.shadowOffsetY/n+"px "+t.shadowBlur/n/2+"px "+t.shadowColor+")")),i&&e.l&512&&kc(t),e.Dd()&&oc(t),n=e.Dd()?e.opacity*t.globalAlpha:e.opacity,n!==1&&p.setAttributeNS(null,"opacity",n.toString()),e.filter!==""&&p.setAttributeNS(null,"filter",e.filter),e.Dd()?(t.ti?t.ti.after(p):t.Nj.prepend(p),t.ti=p):r!==null&&aa(e,r,p),a!==null&&a(e,p)),!0)}ye.$o=function(e,t,n,r){var i=(this.l&256)!==0;if(e.clipInsteadOfFill&&(i=!1),i){var o=t.se()?t.naturalBounds:t.actualBounds;t=Math.max(n.x,o.x),i=Math.max(n.y,o.y);var a=Math.min(n.right,o.right)-t;n=Math.min(n.bottom,o.bottom)-i,o=this.tb,o!==null&&(t=o.x,i=o.y,a=o.width,n=o.height),o=r.getAttribute("clip-path");var p=null;o!==null&&(p=e.svg.getElementById(o.split("#")[1].slice(0,-1))),p===null?(o="CLIP"+dt++,p=e.Ud("clipPath",{id:o}),t=e.Ud("rect",{x:t,y:i,width:a,height:n}),this instanceof qt&&(i=this.transform.copy().Vj(),t.setAttribute("transform","matrix("+i.m11+", "+i.m12+", "+i.m21+", "+i.m22+", "+i.dx+", "+i.dy+")")),p.appendChild(t),e.svg.appendChild(p),r.setAttributeNS(null,"clip-path","url(#"+o+")")):(e=p.firstElementChild,e.setAttribute("x",t.toString()),e.setAttribute("y",i.toString()),e.setAttribute("width",a.toString()),e.setAttribute("height",n.toString()))}else r.removeAttributeNS(null,"clip-path"),Fa(e,r)};function Fa(e,t){t=t.getAttribute("clip-path"),t!==null&&(e=e.svg.getElementById(t.split("#")[1].slice(0,-1)),e!==null&&e.remove())}function la(e){if(e.svg!==null){var t=e.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),n=e.svg.ownerDocument;if(t!==null){t=rn(t);for(var r=t.next();!r.done;r=t.next())r=n.getElementById(r.value.split("#")[1].slice(0,-1)),r!==null&&r.remove()}e.svg.remove()}}ye.hh=function(){},ye.lv=function(){this.Uc=!0},ye.kk=function(e,t,n){if(this.Uc)return this.lv(),this.Uc=!1;if(t=this.svg,t===null)return!1;if(!this.visible)return t.remove(),!1;if(t.nodeName!=="g"&&n||t.nodeName==="g"&&!n)return!1;var r=this.transform,i=this instanceof qt?Zc(this):!1;if(!(this instanceof qt&&i))if(this instanceof Ua){var o=this.bt;e.rb.ha=[r.m11,r.m12,r.m21,r.m22,r.dx,r.dy],o!==null&&l0(e,o[0],o[1],o[2],o[3],o[4],o[5],o[6],o[7]),n?t.lastElementChild.setAttributeNS(null,"transform",u0(e)):t.setAttributeNS(null,"transform",u0(e))}else if(!n||this instanceof qt)t.setAttributeNS(null,"transform","matrix("+r.m11+", "+r.m12+", "+r.m21+", "+r.m22+", "+r.dx+", "+r.dy+")");else if(this instanceof vr){o=t.getElementsByTagName("path");for(var a=0;a<o.length;a++)o[a].setAttributeNS(null,"transform","matrix("+r.m11+", "+r.m12+", "+r.m21+", "+r.m22+", "+r.dx+", "+r.dy+")")}else t.lastElementChild.setAttributeNS(null,"transform","matrix("+r.m11+", "+r.m12+", "+r.m21+", "+r.m22+", "+r.dx+", "+r.dy+")");return o=this.Dd()?this.opacity*e.globalAlpha:this.opacity,o===1?t.removeAttribute("opacity"):t.setAttributeNS(null,"opacity",o.toString()),e.rb.ha=[1,0,0,1,0,0],(this.areaBackground!==null||t.gd!==void 0)&&(o=t.gd,this.areaBackground===null?(t.gd.remove(),t.gd=void 0):(a=r.copy().Vj(),e.rb.ha=[a.m11,a.m12,a.m21,a.m22,a.dx,a.dy],xl(this,e,this.naturalBounds,this.actualBounds),e.rb.ha=[1,0,0,1,0,0],t.gd?(a=t.gd.getAttribute("filter"),a!==null&&e.ad.setAttribute("filter",a),t.gd.replaceWith(e.ad)):t.prepend(e.ad),t.gd=e.ad),o&&Tg(e,o)),(this.background!==null||t.Ma!==void 0)&&(o=t.Ma,this.background===null?(Tg(e,t.Ma),t.Ma.remove(),t.Ma=void 0):((i||n&&!(this instanceof qt))&&(e.rb.ha=[r.m11,r.m12,r.m21,r.m22,r.dx,r.dy]),Xa(this,e,this.naturalBounds,this.actualBounds),t.Ma?(Tg(e,t.Ma),n=t.Ma.getAttribute("filter"),n!==null&&e.ad.setAttribute("filter",n),t.Ma.replaceWith(e.ad)):t.prepend(e.ad),t.Ma=e.ad),o&&Tg(e,o)),this.$o(e,this.panel,this.actualBounds,t),!0},ye.nk=function(e){if(this.background!==null||this.areaBackground!==null)return!0;var t=(this.l&256)!==0;return e.clipInsteadOfFill&&(t=!1),!!t};function Ho(e,t,n,r,i,o,a){if(n!==null){var p=1,w=1;if(typeof n=="string")r?t.fillStyle=n:t.strokeStyle=n;else if(n.type===Xc)r?t.fillStyle=n.color:t.strokeStyle=n.color;else{var O=e.kq();if(p=o.width,w=o.height,i?(p=a.width,w=a.height):r||(p+=O,w+=O),(o=t instanceof lf)&&n.xe&&(n.type===Sd||n.yk===p&&n.ft===w))var D=n.xe;else{var X=0,re=0,de=0,Se=0,Te=0,Xe=0;if(Xe=Te=0,i?(Te=a.x,Xe=a.y):r||(Te-=O/2,Xe-=O/2),X=n.start.x*p+n.start.offsetX,re=n.start.y*w+n.start.offsetY,de=n.end.x*p+n.end.offsetX,Se=n.end.y*w+n.end.offsetY,X+=Te,de+=Te,re+=Xe,Se+=Xe,n.type===Rc)D=t.createLinearGradient(X,re,de,Se);else if(n.type===Bl)Xe=isNaN(n.endRadius)?Math.max(p,w)/2:n.endRadius,isNaN(n.startRadius)?(Te=0,Xe=Math.max(p,w)/2):Te=n.startRadius,D=t.createRadialGradient(X,re,Te,de,Se,Xe);else if(n.type===Sd)try{D=t.createPattern(n.pattern,"repeat")}catch(qe){D=null}if(n.type!==Sd&&(i=n.colorStops,i!==null))for(i=i.iterator;i.next();)D.addColorStop(i.key,i.value);if(o&&(n.xe=D,D!==null&&(n.yk=p,n.ft=w),D===null&&n.type===Sd&&n.yk!==-1)){n.yk=-1;var We=e.diagram;We!==null&&n.yk===-1&&gi(function(){We.redraw()},600)}}r?t.fillStyle=D:t.strokeStyle=D}}}ye.rg=function(e){if(e instanceof qt)e:{if(this!==e&&e!==null)for(var t=this.panel;t!==null;){if(t===e){e=!0;break e}t=t.panel}e=!1}else e=!1;return e},ye.Ed=function(){if(!this.visible)return!1;var e=this.panel;return e!==null?e.Ed():!0},ye.If=function(){for(var e=this instanceof qt?this:this.panel;e!==null&&e.isEnabled;)e=e.panel;return e===null};function Us(e){if(e.l&2048){var t=e.Ab;if(t.reset(),!e.Ib.w()||!e.uc.w()){Jl(e,!1);return}if(t.translate(e.Ib.x-e.uc.x,e.Ib.y-e.uc.y),e.scale!==1||e.angle!==0){var n=e.naturalBounds;e.no(t,n.x,n.y,n.width,n.height)}Jl(e,!1),Pl(e,!0)}e.l&4096&&(t=e.panel,t===null?(e.wh.set(e.Ab),e.Kk=e.scale,Pl(e,!1)):t.oe!==null&&(n=e.wh,n.reset(),t.se()?n.multiply(t.wh):t.panel!==null&&n.multiply(t.panel.wh),n.multiply(e.Ab),e.Kk=e.scale*t.Kk,Pl(e,!1)))}ye.no=function(e,t,n,r,i){if(this.Ca!==1&&e.scale(this.Ca),this.Kb!==0){var o=Ue.alloc();o.yi(t,n,r,i,jr),e.rotate(this.Kb,o.x,o.y),Ue.free(o)}},ye.v=function(e){if(!El(this)){e===void 0&&(e=!1),gs(this,!0),ic(this,!0);var t=this.panel;t===null||e||t.v()}},ye.Uj=function(){El(this)||(gs(this,!0),ic(this,!0))};function wa(e){if(!Ca(e)){var t=e.panel;t!==null?t.v():e.Dd()&&(t=e.diagram,t!==null&&(t.De.add(e),e instanceof En&&e.Bd(),t.$b())),ic(e,!0)}}ye.Uk=function(){!(this.l&2048)&&(Jl(this,!0),Pl(this,!0))},ye.Wu=function(){Pl(this,!0)},ye.N=function(){var e=this.part;e!==null&&e.N()};function Ba(e,t){var n=e.stretch,r=e.panel;return r!==null&&r.type===qt.Table?_u(e,r.Fb(e.row),r.Eb(e.column),t):r!==null&&r.type===qt.Auto&&r.Pb()===e?Fs(e,Xt,t):n===cr?r!==null?r.type===qt.Spot&&r.Pb()===e?Fs(e,Xt,t):(n=r.defaultStretch,n===cr?Fs(e,Wt,t):Fs(e,n,t)):Fs(e,Wt,t):Fs(e,n,t)}function _u(e,t,n,r){var i=e.stretch;if(i!==cr)return Fs(e,i,r);var o=i=null;switch(t.stretch){case Kn:o=!0;break;case Xt:o=!0}switch(n.stretch){case Bn:i=!0;break;case Xt:i=!0}return t=e.panel.defaultStretch,i===null&&(i=t===Bn||t===Xt),o===null&&(o=t===Kn||t===Xt),i===!0&&o===!0?Fs(e,Xt,r):i===!0?Fs(e,Bn,r):o===!0?Fs(e,Kn,r):Fs(e,Wt,r)}function Fs(e,t,n){if(n)return t;if(t===Wt||(n=e.desiredSize,n.w()))return Wt;if(e=e.angle,!isNaN(n.width))if(e!==90&&e!==270){if(t===Bn)return Wt;if(t===Xt)return Kn}else{if(t===Kn)return Wt;if(t===Xt)return Bn}if(!isNaN(n.height))if(e!==90&&e!==270){if(t===Kn)return Wt;if(t===Xt)return Bn}else{if(t===Bn)return Wt;if(t===Xt)return Kn}return t}function du(e,t){e.l=t?e.l|512:e.l&-513}function Ws(e){return(e.l&1024)!==0}function Mf(e,t){e.l=t?e.l|1024:e.l&-1025}function Jl(e,t){e.l=t?e.l|2048:e.l&-2049}function Pl(e,t){e.l=t?e.l|4096:e.l&-4097}function El(e){return(e.l&8192)!==0}function gs(e,t){e.l=t?e.l|8192:e.l&-8193}function Ca(e){return(e.l&16384)!==0}function ic(e,t){e.l=t?e.l|16384:e.l&-16385}ye.Gj=function(){this.svg=null},ye.wi=function(e){this.Me=e,this.svg!==null&&this.svg.remove()},ye.Av=function(){},ye.zv=function(e){return this.pa=e,wa(this),!0},ye.mm=function(e,t){(this.pa.x!==e||this.pa.y!==t)&&(this.pa.h(e,t),this.Uk())},ye.kq=function(){return 0};function sf(e){var t=e.part;if(t instanceof En&&(e.portId!==null||e===t.port)){var n=t.diagram;n===null||n.undoManager.isUndoingRedoing||nb(t,e)}}function s0(e){var t=e.diagram;t===null||t.undoManager.isUndoingRedoing||(e instanceof qt?e instanceof En?e.Bd():e.qm(e,function(n){sf(n)}):sf(e))}ye.bind=function(e,t,n,r){var i=null;return typeof e=="string"?i=new qo(e,t,n,r):i=e,i.xd=this,e=this.ih(),e!==null&&T0(e)&&Lt("Cannot add a Binding to a template that has already been copied: "+i),this.localBindings===null&&(this.localBindings=new tn),this.localBindings.add(i),this},ye.set=function(e){return Object.assign(this,e),this},ye.Du=function(e){return pv(this,e),this},ye.apply=function(e){return e(this),this},ye.nm=function(e){return Jh(this,e),this},ye.pz=function(){return this.ih()},ye.ih=function(){for(var e=this instanceof qt?this:this.panel;e!==null;){if(e.allBindings!==null)return e;e=e.panel}return null},ye.Jv=function(e){return e.xd=this,this.animationTriggers===null&&(this.animationTriggers=new nn),this.animationTriggers.add(e.propertyName,e),this};function Fl(e,t){for(var n=1;n<arguments.length;++n);n=arguments;var r=null,i=null;if(typeof e=="function")i=e;else if(typeof e=="string"){var o=pd.I(e);typeof o=="function"?(n=Ei(arguments),r=o(n),bn(r)||Lt('GraphObject.make invoked object builder "'+e+'", but it did not return an Object')):i=vn.go[e]}if(r===null&&(i!=null&&i.constructor||Lt("GraphObject.make requires a class function or GoJS class name or name of an object builder, not: "+e),r=new i),i=1,r instanceof Ct&&1<n.length){o=r;var a=n[1];(typeof a=="string"||a instanceof HTMLDivElement)&&(Kh(o,a),i++)}for(;i<n.length;i++)o=n[i],o===void 0?Lt("Undefined value at argument "+i+" for object being constructed by GraphObject.make: "+r):pv(r,o);return r}function pv(e,t){if(typeof t=="string")if(e instanceof Vi)e.text=t;else if(e instanceof vr)e.figure=t;else if(e instanceof Ua)e.source=t;else if(e instanceof qt)t=pu.I(t),t!==null&&(e.type=t);else if(e instanceof yi){var n=us(yi,t);n!==null?e.type=n:Lt("Unknown Brush type as an argument to GraphObject.make: "+t)}else e instanceof un?(t=us(un,t),t!==null&&(e.type=t)):e instanceof zr&&(t=us(zr,t),t!==null&&(e.type=t));else if(t instanceof gt)e instanceof qt||Lt("A GraphObject can only be added to a Panel, not to: "+e),e.add(t);else if(t instanceof ms){var r;t.isRow&&typeof e.getRowDefinition=="function"?r=e.getRowDefinition(t.index):t.isRow||typeof e.getColumnDefinition!="function"||(r=e.getColumnDefinition(t.index)),r instanceof ms?Hg(r,t):Lt("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+e)}else if(t instanceof hn)typeof e.qb=="function"&&e.qb(t);else if(t instanceof Ss)e.type=t;else if(t instanceof qo)e instanceof gt||e instanceof ms?e.bind(t):Lt("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+e);else if(t instanceof il)e instanceof gt?e.Jv(t):Lt("An AnimationTrigger can only be applied to a GraphObject, not to: "+e);else if(t instanceof jo)e instanceof un&&e.type===un.o?e.figures.add(t):Lt("A PathFigure can only be added to a Path Geometry, not to: "+e);else if(t instanceof zr)e instanceof jo?e.segments.add(t):Lt("A PathSegment can only be added to a PathFigure, not to: "+e);else if(t instanceof co)e instanceof Ct||e instanceof lr?e.layout=t:Lt("A Layout can only be assigned to a Diagram or a Group, not to: "+e);else if(Array.isArray(t))for(n=0;n<t.length;n++)pv(e,t[n]);else if(typeof t=="object"&&t!==null)if(e instanceof yi){n=new yo;for(var i in t)r=parseFloat(i),isNaN(r)?n[i]=t[i]:e.addColorStop(r,t[i]);Jh(e,n)}else if(e instanceof ms){t.row!==void 0?(i=t.row,(i==null||i===1/0||isNaN(i)||0>i)&&Lt("Must specify non-negative integer row for RowColumnDefinition "+t+", not: "+i),e.isRow=!0,e.index=i):t.column!==void 0&&(i=t.column,(i==null||i===1/0||isNaN(i)||0>i)&&Lt("Must specify non-negative integer column for RowColumnDefinition "+t+", not: "+i),e.isRow=!1,e.index=i),i=new yo;for(n in t)n!=="row"&&n!=="column"&&(i[n]=t[n]);Jh(e,i)}else Jh(e,t);else Lt('Unknown initializer "'+t+'" for object being constructed by GraphObject.make: '+e)}function $c(e,t){pd.add(e,t)}function wg(e,t,n){n===void 0&&(n=null);var r=e[1];if(typeof n=="function"?n(r):typeof r=="string")return e.splice(1,1),r;if(t===void 0)throw Error("no "+(typeof n=="function"?"satisfactory":"string")+" argument for GraphObject builder "+e[0]);return t}kn.Object.defineProperties(gt.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(e){this.bindingId!==e&&(this.A===null&&(this.A=new Df),this.A.zp=e)}},localBindings:{get:function(){return this.A!==null?this.A.te:null},set:function(e){this.localBindings!==e&&(this.A===null&&(this.A=new Df),this.A.te=e)}},srcBindings:{get:function(){return this.A!==null?this.A.wm:null},set:function(e){this.srcBindings!==e&&(this.A===null&&(this.A=new Df),this.A.wm=e)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(e){var t=this.shadowVisible;t!==e&&(br(this),this.A.Ci=e,this.Uc=!0,this.N(),this.g("shadowVisible",t,e))}},enabledChanged:{get:function(){return this.A!==null?this.A.Hb:null},set:function(e){var t=this.enabledChanged;t!==e&&(br(this),this.A.Hb=e,this.g("enabledChanged",t,e))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Aa},set:function(e){var t=this.segmentOrientation;t!==e&&(this.Ua===null&&(this.Ua=new wh),this.Ua.rr=e,this.v(),this.g("segmentOrientation",t,e),e===Aa&&(this.angle=0))}},segmentIndex:{get:function(){return this.Ua!==null?this.Ua.u:-1/0},set:function(e){e=Math.round(e);var t=this.segmentIndex;t!==e&&(this.Ua===null&&(this.Ua=new wh),this.Ua.u=e,this.v(),this.g("segmentIndex",t,e))}},segmentFraction:{get:function(){return this.Ua!==null?this.Ua.o:0},set:function(e){isNaN(e)||0>e?e=0:1<e&&(e=1);var t=this.segmentFraction;t!==e&&(this.Ua===null&&(this.Ua=new wh),this.Ua.o=e,this.v(),this.g("segmentFraction",t,e))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:kr},set:function(e){var t=this.segmentOffset;t.D(e)||(e=e.J(),this.Ua===null&&(this.Ua=new wh),this.Ua.F=e,this.v(),this.g("segmentOffset",t,e))}},stretch:{get:function(){return this.A!==null?this.A.hg:cr},set:function(e){var t=this.stretch;t!==e&&(br(this),this.A.hg=e,this.v(),this.g("stretch",t,e))}},name:{get:function(){return this.A!==null?this.A.xa:""},set:function(e){var t=this.name;t!==e&&(br(this),this.A.xa=e,this.part!==null&&(this.part.Rh=null),this.g("name",t,e))}},opacity:{get:function(){return this.pb},set:function(e){var t=this.pb;t!==e&&((0>e||1<e)&&hr(e,"0 <= value <= 1",gt,"opacity"),this.pb=e,this.g("opacity",t,e),e=this.diagram,t=this.part,e!==null&&t!==null&&e.N(ff(t,t.actualBounds)))}},filter:{get:function(){return this.bn},set:function(e){var t=this.bn;t!==e&&(this.bn=e,this.Uc=!0,this.g("filter",t,e),e=this.diagram,t=this.part,e!==null&&t!==null&&e.N(ff(t,t.actualBounds)))}},visible:{get:function(){return(this.l&1)!==0},set:function(e){var t=(this.l&1)!==0;t!==e&&(this.l^=1,this.g("visible",t,e),t=this.panel,t!==null?t.v():this.Dd()&&this.Zb(e),this.N(),s0(this))}},pickable:{get:function(){return(this.l&2)!==0},set:function(e){var t=(this.l&2)!==0;t!==e&&(this.l^=2,this.g("pickable",t,e))}},fromLinkableDuplicates:{get:function(){return(this.l&4)!==0},set:function(e){var t=(this.l&4)!==0;t!==e&&(this.l^=4,this.g("fromLinkableDuplicates",t,e))}},fromLinkableSelfNode:{get:function(){return(this.l&8)!==0},set:function(e){var t=(this.l&8)!==0;t!==e&&(this.l^=8,this.g("fromLinkableSelfNode",t,e))}},toLinkableDuplicates:{get:function(){return(this.l&16)!==0},set:function(e){var t=(this.l&16)!==0;t!==e&&(this.l^=16,this.g("toLinkableDuplicates",t,e))}},toLinkableSelfNode:{get:function(){return(this.l&32)!==0},set:function(e){var t=(this.l&32)!==0;t!==e&&(this.l^=32,this.g("toLinkableSelfNode",t,e))}},isPanelMain:{get:function(){return(this.l&64)!==0},set:function(e){var t=(this.l&64)!==0;t!==e&&(this.l^=64,this.v(),this.g("isPanelMain",t,e))}},isActionable:{get:function(){return(this.l&128)!==0},set:function(e){var t=(this.l&128)!==0;t!==e&&(this.l^=128,this.g("isActionable",t,e))}},areaBackground:{get:function(){return this.A!==null?this.A.gd:null},set:function(e){var t=this.areaBackground;t!==e&&(e!==null&&Ff(e,"GraphObject.areaBackground"),e instanceof yi&&e.freeze(),br(this),this.A.gd=e,this.N(),this.g("areaBackground",t,e))}},background:{get:function(){return this.Ma},set:function(e){var t=this.Ma;t!==e&&(e!==null&&Ff(e,"GraphObject.background"),e instanceof yi&&e.freeze(),this.Ma=e,this.N(),this.g("background",t,e))}},part:{get:function(){if(this.Dd())return this;if(this.Ng!==null)return this.Ng;var e;for(e=this.panel;e;){if(e instanceof zn)return this.Ng=e;e=e.panel}return null}},svg:{get:function(){return this.V},set:function(e){this.V=e}},panel:{get:function(){return this.Me}},layer:{get:function(){var e=this.part;return e!==null?e.layer:null}},diagram:{get:function(){var e=this.part;return e!==null?e.diagram:null}},position:{get:function(){return this.pa},set:function(e){var t=e.x,n=e.y,r=this.pa,i=r.x;r=r.y,(i===t||isNaN(i)&&isNaN(t))&&(r===n||isNaN(r)&&isNaN(n))?this.Av():(e=e.copy(),this.zv(e,i,r)&&this.g("position",new Ue(i,r),e))}},actualBounds:{get:function(){return this.Ib}},scale:{get:function(){return this.Ca},set:function(e){var t=this.Ca;t!==e&&(0>=e&&Lt("GraphObject.scale for "+this+" must be greater than zero, not: "+e),this.Ca=e,this.v(),this.g("scale",t,e))}},angle:{get:function(){return this.Kb},set:function(e){var t=this.Kb;t!==e&&(e%=360,0>e&&(e+=360),t!==e&&(this.Kb=e,s0(this),this.v(),this.g("angle",t,e)))}},desiredSize:{get:function(){return this.jd},set:function(e){var t=e.width,n=e.height,r=this.jd,i=r.width,o=r.height;(i===t||isNaN(i)&&isNaN(t))&&(o===n||isNaN(o)&&isNaN(n))||(this.jd=e=e.J(),this.v(),this instanceof vr&&this.qc(),this.g("desiredSize",r,e),Ws(this)&&(e=this.part,e!==null&&(to(this,e,"width"),to(this,e,"height"))))}},width:{get:function(){return this.jd.width},set:function(e){var t=this.jd.width;t===e||isNaN(t)&&isNaN(e)||(t=this.jd,this.jd=e=new Yt(e,this.jd.height).freeze(),this.v(),this instanceof vr&&this.qc(),this.g("desiredSize",t,e),Ws(this)&&(e=this.part,e!==null&&to(this,e,"width")))}},height:{get:function(){return this.jd.height},set:function(e){var t=this.jd.height;t===e||isNaN(t)&&isNaN(e)||(t=this.jd,this.jd=e=new Yt(this.jd.width,e).freeze(),this.v(),this instanceof vr&&this.qc(),this.g("desiredSize",t,e),Ws(this)&&(e=this.part,e!==null&&to(this,e,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:Sr},set:function(e){var t=this.minSize;t.D(e)||(e=e.copy(),isNaN(e.width)&&(e.width=0),isNaN(e.height)&&(e.height=0),e.freeze(),br(this),this.A.u=e,this.v(),this.g("minSize",t,e))}},maxSize:{get:function(){return this.A!==null?this.A.o:Ji},set:function(e){var t=this.maxSize;t.D(e)||(e=e.copy(),isNaN(e.width)&&(e.width=1/0),isNaN(e.height)&&(e.height=1/0),e.freeze(),br(this),this.A.o=e,this.v(),this.g("maxSize",t,e))}},measuredBounds:{get:function(){return this.uc}},naturalBounds:{get:function(){return this.dc}},margin:{get:function(){return this.Kg},set:function(e){typeof e=="number"&&(e=new Wn(e));var t=this.Kg;t.D(e)||(this.Kg=e=e.J(),this.v(),this.g("margin",t,e))}},transform:{get:function(){return this.l&2048&&Us(this),this.Ab}},oe:{get:function(){return this.l&4096&&Us(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(e){this.animationTriggers!==e&&(br(this),this.A.hb=e)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:Wt},set:function(e){this.reshapingBehavior!==e&&(br(this),this.A.Pf=e)}},alignment:{get:function(){return this.Jb},set:function(e){var t=this.Jb;t.D(e)||(e.Mc()&&!e.Xb()&&Lt("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+e),this.Jb=e=e.J(),wa(this),this.g("alignment",t,e))}},column:{get:function(){return this.Ag},set:function(e){e=Math.round(e);var t=this.Ag;t!==e&&(0>e&&hr(e,">= 0",gt,"column"),this.Ag=e,this.v(),this.g("column",t,e),this.svg!==null&&this.svg.remove())}},columnSpan:{get:function(){return this.A!==null?this.A.ob:1},set:function(e){e=Math.round(e);var t=this.columnSpan;t!==e&&(1>e&&hr(e,">= 1",gt,"columnSpan"),br(this),this.A.ob=e,this.v(),this.g("columnSpan",t,e))}},row:{get:function(){return this.io},set:function(e){e=Math.round(e);var t=this.io;t!==e&&(0>e&&hr(e,">= 0",gt,"row"),this.io=e,this.v(),this.g("row",t,e),this.svg!==null&&this.svg.remove())}},rowSpan:{get:function(){return this.A!==null?this.A.Bi:1},set:function(e){e=Math.round(e);var t=this.rowSpan;t!==e&&(1>e&&hr(e,">= 1",gt,"rowSpan"),br(this),this.A.Bi=e,this.v(),this.g("rowSpan",t,e))}},spanAllocation:{get:function(){return this.A!==null?this.A.Di:null},set:function(e){var t=this.spanAllocation;t!==e&&(br(this),this.A.Di=e,this.v(),this.g("spanAllocation",t,e))}},alignmentFocus:{get:function(){return this.sk},set:function(e){var t=this.sk;t.D(e)||(this.sk=e=e.J(),this.v(),this.g("alignmentFocus",t,e))}},portId:{get:function(){return this.Yn},set:function(e){var t=this.Yn;if(t!==e){var n=this.part;n===null||n instanceof En||Lt("Cannot set portID on a Link: "+e),t!==null&&n!==null&&ey(n,this),this.Yn=e,e!==null&&n!==null&&(n.Te=!0,ob(n,this)),this.g("portId",t,e)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:So},set:function(e){var t=this.toSpot;t.D(e)||(e=e.J(),this.Xc(),this.ba.yj=e,this.g("toSpot",t,e),sf(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(e){var t=this.toEndSegmentLength;t!==e&&(0>e&&hr(e,">= 0",gt,"toEndSegmentLength"),this.Xc(),this.ba.wj=e,this.g("toEndSegmentLength",t,e),sf(this))}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:0},set:function(e){var t=this.toShortLength;t!==e&&(this.Xc(),this.ba.xj=e,this.g("toShortLength",t,e),sf(this))}},toLinkable:{get:function(){return this.ba!==null?this.ba.Tr:null},set:function(e){var t=this.toLinkable;t!==e&&(this.Xc(),this.ba.Tr=e,this.g("toLinkable",t,e))}},toMaxLinks:{get:function(){return this.ba!==null?this.ba.Ur:1/0},set:function(e){var t=this.toMaxLinks;t!==e&&(0>e&&hr(e,">= 0",gt,"toMaxLinks"),this.Xc(),this.ba.Ur=e,this.g("toMaxLinks",t,e))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:So},set:function(e){var t=this.fromSpot;t.D(e)||(e=e.J(),this.Xc(),this.ba.Xi=e,this.g("fromSpot",t,e),sf(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(e){var t=this.fromEndSegmentLength;t!==e&&(0>e&&hr(e,">= 0",gt,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=e,this.g("fromEndSegmentLength",t,e),sf(this))}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:0},set:function(e){var t=this.fromShortLength;t!==e&&(this.Xc(),this.ba.Wi=e,this.g("fromShortLength",t,e),sf(this))}},fromLinkable:{get:function(){return this.ba!==null?this.ba.hq:null},set:function(e){var t=this.fromLinkable;t!==e&&(this.Xc(),this.ba.hq=e,this.g("fromLinkable",t,e))}},fromMaxLinks:{get:function(){return this.ba!==null?this.ba.iq:1/0},set:function(e){var t=this.fromMaxLinks;t!==e&&(0>e&&hr(e,">= 0",gt,"fromMaxLinks"),this.Xc(),this.ba.iq=e,this.g("fromMaxLinks",t,e))}},cursor:{get:function(){return this.A!==null?this.A.j:""},set:function(e){var t=this.cursor;t!==e&&(br(this),this.A.j=e,this.g("cursor",t,e))}},click:{get:function(){return this.A!==null?this.A.zh:null},set:function(e){var t=this.click;t!==e&&(br(this),this.A.zh=e,this.g("click",t,e))}},doubleClick:{get:function(){return this.A!==null?this.A.Fh:null},set:function(e){var t=this.doubleClick;t!==e&&(br(this),this.A.Fh=e,this.g("doubleClick",t,e))}},contextClick:{get:function(){return this.A!==null?this.A.Bh:null},set:function(e){var t=this.contextClick;t!==e&&(br(this),this.A.Bh=e,this.g("contextClick",t,e))}},mouseEnter:{get:function(){return this.A!==null?this.A.Mh:null},set:function(e){var t=this.mouseEnter;t!==e&&(br(this),this.A.Mh=e,this.g("mouseEnter",t,e))}},mouseLeave:{get:function(){return this.A!==null?this.A.Ph:null},set:function(e){var t=this.mouseLeave;t!==e&&(br(this),this.A.Ph=e,this.g("mouseLeave",t,e))}},mouseOver:{get:function(){return this.A!==null?this.A.Qh:null},set:function(e){var t=this.mouseOver;t!==e&&(br(this),this.A.Qh=e,this.g("mouseOver",t,e))}},mouseHover:{get:function(){return this.A!==null?this.A.Oh:null},set:function(e){var t=this.mouseHover;t!==e&&(br(this),this.A.Oh=e,this.g("mouseHover",t,e))}},mouseHold:{get:function(){return this.A!==null?this.A.Nh:null},set:function(e){var t=this.mouseHold;t!==e&&(br(this),this.A.Nh=e,this.g("mouseHold",t,e))}},mouseDragEnter:{get:function(){return this.A!==null?this.A.Of:null},set:function(e){var t=this.mouseDragEnter;t!==e&&(br(this),this.A.Of=e,this.g("mouseDragEnter",t,e))}},mouseDragLeave:{get:function(){return this.A!==null?this.A.Xd:null},set:function(e){var t=this.mouseDragLeave;t!==e&&(br(this),this.A.Xd=e,this.g("mouseDragLeave",t,e))}},mouseDrop:{get:function(){return this.A!==null?this.A.Lh:null},set:function(e){var t=this.mouseDrop;t!==e&&(br(this),this.A.Lh=e,this.g("mouseDrop",t,e))}},actionDown:{get:function(){return this.A!==null?this.A.V:null},set:function(e){var t=this.actionDown;t!==e&&(br(this),this.A.V=e,this.g("actionDown",t,e))}},actionMove:{get:function(){return this.A!==null?this.A.ia:null},set:function(e){var t=this.actionMove;t!==e&&(br(this),this.A.ia=e,this.g("actionMove",t,e))}},actionUp:{get:function(){return this.A!==null?this.A.Ha:null},set:function(e){var t=this.actionUp;t!==e&&(br(this),this.A.Ha=e,this.g("actionUp",t,e))}},actionCancel:{get:function(){return this.A!==null?this.A.F:null},set:function(e){var t=this.actionCancel;t!==e&&(br(this),this.A.F=e,this.g("actionCancel",t,e))}},toolTip:{get:function(){return this.A!==null?this.A.$h:null},set:function(e){var t=this.toolTip;t!==e&&(br(this),this.A.$h=e,this.g("toolTip",t,e))}},contextMenu:{get:function(){return this.A!==null?this.A.Ch:null},set:function(e){var t=this.contextMenu;t!==e&&(br(this),this.A.Ch=e,this.g("contextMenu",t,e))}}}),gt.prototype.trigger=gt.prototype.Jv,gt.prototype.findBindingPanel=gt.prototype.ih,gt.prototype.findTemplateBinder=gt.prototype.pz,gt.prototype.setProperties=gt.prototype.nm,gt.prototype.apply=gt.prototype.apply,gt.prototype.attach=gt.prototype.Du,gt.prototype.set=gt.prototype.set,gt.prototype.isEnabledObject=gt.prototype.If,gt.prototype.isVisibleObject=gt.prototype.Ed,gt.prototype.isContainedBy=gt.prototype.rg,gt.prototype.getNearestIntersectionPoint=gt.prototype.rs,gt.prototype.getLocalPoint=gt.prototype.qs,gt.prototype.getDocumentScale=gt.prototype.Df,gt.prototype.getDocumentAngle=gt.prototype.li,gt.prototype.getDocumentBounds=gt.prototype.mi,gt.prototype.getDocumentPoint=gt.prototype.ga,gt.prototype.intersectsRect=gt.prototype.Yc,gt.prototype.containedInRect=gt.prototype.fh,gt.prototype.containsRect=gt.prototype.Re,gt.prototype.containsPoint=gt.prototype.ca,gt.prototype.raiseChanged=gt.prototype.g,gt.prototype.raiseChangedEvent=gt.prototype.cb,gt.prototype.addCopyProperty=gt.prototype.Vw;var pd=null;gt.className="GraphObject",pd=new nn,$c("Button",function(){function e(n,r){return n.diagram.ic(n.documentPoint,function(i){for(;i.panel!==null&&!i.isActionable;)i=i.panel;return i},function(i){return i===r})!==null}var t=Fl(qt,qt.Auto,{isActionable:!0,enabledChanged:function(n,r){if(n instanceof qt){var i=n.fb("ButtonBorder");i!==null&&(i.fill=r?n._buttonFillNormal:n._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},Fl(vr,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new Nn(0,0,2.76142374915397,2.761423749153969),spot2:new Nn(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return t.mouseEnter=function(n,r){if(r.If()&&r instanceof qt&&(n=r.fb("ButtonBorder"),n instanceof vr)){var i=r._buttonFillOver;r._buttonFillNormal=n.fill,n.fill=i,i=r._buttonStrokeOver,r._buttonStrokeNormal=n.stroke,n.stroke=i}},t.mouseLeave=function(n,r){r.If()&&r instanceof qt&&(n=r.fb("ButtonBorder"),n instanceof vr&&(n.fill=r._buttonFillNormal,n.stroke=r._buttonStrokeNormal))},t.actionDown=function(n,r){if(r.If()&&r instanceof qt&&r._buttonFillPressed!==null&&n.button===0){var i=r.fb("ButtonBorder");if(i instanceof vr){n=n.diagram;var o=n.skipsUndoManager;n.skipsUndoManager=!0;var a=r._buttonFillPressed;r._buttonFillOver=i.fill,i.fill=a,a=r._buttonStrokePressed,r._buttonStrokeOver=i.stroke,i.stroke=a,n.skipsUndoManager=o}}},t.actionUp=function(n,r){if(r.If()&&r instanceof qt&&r._buttonFillPressed!==null&&n.button===0){var i=r.fb("ButtonBorder");if(i instanceof vr){var o=n.diagram,a=o.skipsUndoManager;o.skipsUndoManager=!0,e(n,r)?(i.fill=r._buttonFillOver,i.stroke=r._buttonStrokeOver):(i.fill=r._buttonFillNormal,i.stroke=r._buttonStrokeNormal),o.skipsUndoManager=a}}},t.actionCancel=function(n,r){if(r.If()&&r instanceof qt&&r._buttonFillPressed!==null){var i=r.fb("ButtonBorder");if(i instanceof vr){var o=n.diagram,a=o.skipsUndoManager;o.skipsUndoManager=!0,e(n,r)?(i.fill=r._buttonFillOver,i.stroke=r._buttonStrokeOver):(i.fill=r._buttonFillNormal,i.stroke=r._buttonStrokeNormal),o.skipsUndoManager=a}}},t.actionMove=function(n,r){if(r.If()&&r instanceof qt&&r._buttonFillPressed!==null){var i=n.diagram;if(i.firstInput.button===0&&(i.currentTool.standardMouseOver(),e(n,r)&&(n=r.fb("ButtonBorder"),n instanceof vr))){var o=i.skipsUndoManager;i.skipsUndoManager=!0;var a=r._buttonFillPressed;n.fill!==a&&(n.fill=a),a=r._buttonStrokePressed,n.stroke!==a&&(n.stroke=a),i.skipsUndoManager=o}}},t}),$c("TreeExpanderButton",function(){var e=Fl("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},Fl(vr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Pi},new qo("figure","isTreeExpanded",function(t,n){return n=n.panel,t?n._treeExpandedFigure:n._treeCollapsedFigure}).cp()),{visible:!1},new qo("visible","isTreeLeaf",function(t){return!t}).cp());return e.click=function(t,n){if(n=n.part,n instanceof qr&&(n=n.adornedPart),n instanceof En){var r=n.diagram;if(r!==null){if(r=r.commandHandler,n.isTreeExpanded){if(!r.canCollapseTree(n))return}else if(!r.canExpandTree(n))return;t.handled=!0,n.isTreeExpanded?r.collapseTree(n):r.expandTree(n)}}},e}),$c("SubGraphExpanderButton",function(){var e=Fl("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},Fl(vr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Pi},new qo("figure","isSubGraphExpanded",function(t,n){return n=n.panel,t?n._subGraphExpandedFigure:n._subGraphCollapsedFigure}).cp()));return e.click=function(t,n){if(n=n.part,n instanceof qr&&(n=n.adornedPart),n instanceof lr){var r=n.diagram;if(r!==null){if(r=r.commandHandler,n.isSubGraphExpanded){if(!r.canCollapseSubGraph(n))return}else if(!r.canExpandSubGraph(n))return;t.handled=!0,n.isSubGraphExpanded?r.collapseSubGraph(n):r.expandSubGraph(n)}}},e}),$c("ToolTip",function(){return Fl(qr,qt.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Ue(0,3),shadowBlur:5},Fl(vr,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new Nn(0,0,4,6),spot2:new Nn(1,1,-4,-4)}))}),$c("ContextMenu",function(){return Fl(qr,qt.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Ue(0,3),shadowBlur:5},new qo("background","",function(e){return e.adornedPart!==null&&e.placeholder!==null?null:"#F5F5F5"}))}),$c("ContextMenuButton",function(){var e=Fl("Button");e.stretch=Bn;var t=e.fb("ButtonBorder");return t instanceof vr&&(t.figure="Rectangle",t.strokeWidth=0,t.spot1=new Nn(0,0,2,3),t.spot2=new Nn(1,1,-2,-2)),e}),$c("PanelExpanderButton",function(e){var t=wg(e,"COLLAPSIBLE"),n=Fl("Button",{_buttonExpandedFigure:"M0 0 M0 6 L4 2 8 6 M8 8",_buttonCollapsedFigure:"M0 0 M0 2 L4 6 8 2 M8 8",_buttonFillNormal:"rgba(0, 0, 0, 0)",_buttonStrokeNormal:null,_buttonFillOver:"rgba(0, 0, 0, .2)",_buttonStrokeOver:null,_buttonFillPressed:"rgba(0, 0, 0, .4)",_buttonStrokePressed:null},Fl(vr,{name:"ButtonIcon",strokeWidth:2},new qo("geometryString","visible",function(r){return r?n._buttonExpandedFigure:n._buttonCollapsedFigure}).cp(t)));return e=n.fb("ButtonBorder"),e instanceof vr&&(e.stroke=null,e.fill="rgba(0, 0, 0, 0)"),n.click=function(r,i){var o=i.diagram;if(o!==null&&!o.isReadOnly){var a=i.ih();a===null&&(a=i.part),a!==null&&(i=a.fb(t),i!==null&&(r.handled=!0,o.Ea("Collapse/Expand Panel"),i.visible=!i.visible,o.eb("Collapse/Expand Panel")))}},n}),$c("CheckBoxButton",function(e){var t=wg(e);return e=Fl("Button",{desiredSize:new Yt(14,14)},Fl(vr,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Xt,geometryStretch:Dn,visible:!1},t!==""?new qo("visible",t).Kx():[])),e.click=function(n,r){if(r instanceof qt){var i=n.diagram;if(!(i===null||i.isReadOnly||t!==""&&i.model.isReadOnly)){n.handled=!0;var o=r.fb("ButtonIcon");i.Ea("checkbox"),o.visible=!o.visible,typeof r._doClick=="function"&&r._doClick(n,r),i.eb("checkbox")}}},e}),$c("CheckBox",function(e){e=wg(e),e=Fl("CheckBoxButton",e,{name:"Button",isActionable:!1,margin:new Wn(0,1,0,0)});var t=Fl(qt,"Horizontal",e,{isActionable:!0,cursor:e.cursor,margin:new Wn(1),_buttonFillNormal:e._buttonFillNormal,_buttonStrokeNormal:e._buttonStrokeNormal,_buttonFillOver:e._buttonFillOver,_buttonStrokeOver:e._buttonStrokeOver,_buttonFillPressed:e._buttonFillPressed,_buttonStrokePressed:e._buttonStrokePressed,_buttonFillDisabled:e._buttonFillDisabled,mouseEnter:e.mouseEnter,mouseLeave:e.mouseLeave,actionDown:e.actionDown,actionUp:e.actionUp,actionCancel:e.actionCancel,actionMove:e.actionMove,click:e.click,_buttonClick:e.click});return e.mouseEnter=null,e.mouseLeave=null,e.actionDown=null,e.actionUp=null,e.actionCancel=null,e.actionMove=null,e.click=null,t}),gt.None=Wt=new hn(gt,"None",0),gt.Default=cr=new hn(gt,"Default",0),gt.Vertical=Kn=new hn(gt,"Vertical",4),gt.Horizontal=Bn=new hn(gt,"Horizontal",5),gt.Fill=Xt=new hn(gt,"Fill",3),gt.Uniform=Dn=new hn(gt,"Uniform",1),gt.UniformToFill=Hr=new hn(gt,"UniformToFill",2),gt.FlipVertical=Er=new hn(gt,"FlipVertical",1),gt.FlipHorizontal=Kr=new hn(gt,"FlipHorizontal",2),gt.FlipBoth=Ti=new hn(gt,"FlipBoth",3),gt.make=Fl,gt.getBuilders=function(){var e=new nn,t;for(t in pd)if(t!==t.toLowerCase()){var n=pd.I(t);typeof n=="function"&&e.add(t,n)}return e.freeze(),e},gt.defineBuilder=$c,gt.build=function(e,t,n){for(var r=[],i=2;i<arguments.length;++i)r[i-2]=arguments[i];if(i=pd.I(e),typeof i=="function"&&(r=i([e].concat(r)),r instanceof gt))return t&&r.set(t),r;Lt('GraphObject.build invoked object builder "'+e+'", but it did not return an Object')},gt.takeBuilderArgument=wg;function Df(){this.nc=!1,this.xa="",this.zp=-1,this.nb=this.wm=this.te=null,this.j="",this.hb=this.Di=this.Hb=this.Ch=this.$h=this.F=this.Ha=this.ia=this.V=this.Lh=this.Xd=this.Of=this.Nh=this.Oh=this.Qh=this.Ph=this.Mh=this.Bh=this.Fh=this.zh=null,this.u=Sr,this.o=Ji,this.hg=cr,this.ob=this.Bi=1,this.Pf=Wt,this.Pc=this.Ci=this.gd=null,this.Oc="category"}Df.prototype.copy=function(){var e=new Df;return e.xa=this.xa,e.zp=this.zp,e.te=this.te,e.nb=this.nb,e.j=this.j,e.zh=this.zh,e.Fh=this.Fh,e.Bh=this.Bh,e.Mh=this.Mh,e.Ph=this.Ph,e.Qh=this.Qh,e.Oh=this.Oh,e.Nh=this.Nh,e.Of=this.Of,e.Xd=this.Xd,e.Lh=this.Lh,e.V=this.V,e.ia=this.ia,e.Ha=this.Ha,e.F=this.F,e.$h=this.$h,e.Ch=this.Ch,e.Hb=this.Hb,e.Di=this.Di,e.hb=this.hb,e.u=this.u.J(),e.o=this.o.J(),e.hg=this.hg,e.Bi=this.Bi,e.ob=this.ob,e.Pf=this.Pf,e.gd=this.gd,e.Ci=this.Ci,e.Pc=this.Pc,e.Oc=this.Oc,e};function wh(){this.u=-1/0,this.o=0,this.F=kr,this.rr=Aa,this.j=this.V="None"}wh.prototype.copy=function(){var e=new wh;return e.u=this.u,e.o=this.o,e.F=this.F.J(),e.rr=this.rr,e.V=this.V,e.j=this.j,e},wh.className="LinkElementSettings";function yp(){this.yj=this.Xi=is,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}yp.prototype.copy=function(){var e=new yp;return e.Xi=this.Xi.J(),e.yj=this.yj.J(),e.Vi=this.Vi,e.wj=this.wj,e.Wi=this.Wi,e.xj=this.xj,e.hq=this.hq,e.Tr=this.Tr,e.iq=this.iq,e.Ur=this.Ur,e},yp.className="LinkSettings";function af(){this.ha=[1,0,0,1,0,0]}af.prototype.copy=function(){var e=new af;return e.ha[0]=this.ha[0],e.ha[1]=this.ha[1],e.ha[2]=this.ha[2],e.ha[3]=this.ha[3],e.ha[4]=this.ha[4],e.ha[5]=this.ha[5],e},af.prototype.translate=function(e,t){this.ha[4]+=this.ha[0]*e+this.ha[2]*t,this.ha[5]+=this.ha[1]*e+this.ha[3]*t},af.prototype.scale=function(e,t){this.ha[0]*=e,this.ha[1]*=e,this.ha[2]*=t,this.ha[3]*=t},af.prototype.rotate=function(e,t,n){if(360<=e?e-=360:0>e&&(e+=360),e!==0){if(this.translate(t,n),e===90){e=0;var r=1}else e===180?(e=-1,r=0):e===270?(e=0,r=-1):(r=e*Math.PI/180,e=Math.cos(r),r=Math.sin(r));var i=this.ha[1]*e+this.ha[3]*r,o=this.ha[0]*-r+this.ha[2]*e,a=this.ha[1]*-r+this.ha[3]*e;this.ha[0]=this.ha[0]*e+this.ha[2]*r,this.ha[1]=i,this.ha[2]=o,this.ha[3]=a,this.translate(-t,-n)}},af.className="STransform";function Pf(e){this.type=e,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}Pf.prototype.addColorStop=function(e,t){this.gx.push({offset:e,color:t})},Pf.className="SGradient";function $u(e,t,n){this.ownerDocument=e=t===void 0?vn.document:t,this.cA="http://www.w3.org/2000/svg",e!==void 0&&(this.Oa=this.Ud("svg",{width:"1px",height:"1px",viewBox:"0 0 1 1"}),this.style.display="block",this.style.letterSpacing="normal",this.style.wordSpacing="normal",this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink")),this.hs=null,this.context=new sl(this,n)}$u.prototype.resize=function(e,t,n,r){return this.width!==e||this.height!==t?(this.width=e,this.height=t,this.style.width=n+"px",this.style.height=r+"px",this.Oa.setAttributeNS(null,"width",n+"px"),this.Oa.setAttributeNS(null,"height",r+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+n+" "+r),this.context.ww.firstElementChild.setAttributeNS(null,"width",n+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",r+"px"),!0):!1},$u.prototype.Ud=function(e,t,n){if(e=this.ownerDocument.createElementNS(this.cA,e),bn(t))for(var r in t)e.setAttributeNS(r==="href"?"http://www.w3.org/1999/xlink":"",r,t[r]);return n!==void 0&&(e.textContent=n),e},$u.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},$u.prototype.focus=function(){this.Oa.focus()},$u.prototype.mx=function(){this.ownerDocument=null},kn.Object.defineProperties($u.prototype,{width:{get:function(){return this.Oa.width.baseVal.value},set:function(e){this.Oa.setAttribute("width",e+"px")}},height:{get:function(){return this.Oa.height.baseVal.value},set:function(e){this.Oa.setAttribute("height",e+"px")}},style:{get:function(){return this.Oa.style}}}),$u.className="SVGSurface";function sl(e,t){this.Gv=e,this.svg=e.Oa,this.stack=[],this.nh=[],this.fillStyle="#000000",this.font="10px sans-serif",this.globalAlpha=1,this.lineCap="butt",this.lineDashOffset=0,this.lineJoin="miter",this.lineWidth=1,this.miterLimit=10,this.shadowBlur=0,this.shadowColor="rgba(0, 0, 0, 0)",this.shadowOffsetY=this.shadowOffsetX=0,this.Il=!1,this.strokeStyle="#000000",this.textAlign="start",this.clipInsteadOfFill=!1,this.Vg=this.Br=this.Ar=0,this.yd=this.ad=null,this.path=[],this.Yl={},this.Ct=!1,this.Yg=null,this.uj=0,this.rb=new af,this.j=Cg(this),this.Nj=Cg(this,"gojs-diagram"),this.Hl=this.ti=null;var n=dt++,r=this.Ud("clipPath",{id:"mainClip"+n});r.appendChild(this.Ud("rect",{x:0,y:0,width:e.width,height:e.height})),this.ww=r,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(r),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+n+")"),this.eA={},this.isTemporary=!!t,this.filter="",this.bk=null}function a0(e,t,n,r,i,o,a){e.Nj===void 0?bp(e,t,n,r,i,o,a):e.Nj.setAttribute("transform","matrix("+t+", "+n+", "+r+", "+i+", "+o+", "+a+")")}ye=sl.prototype,ye.arc=function(e,t,n,r,i,o,a,p){var w=2*Math.PI,O=w-1e-6,D=n*Math.cos(r),X=n*Math.sin(r),re=e+D,de=t+X,Se=o?0:1;r=o?r-i:i-r,(1e-6<Math.abs(a-re)||1e-6<Math.abs(p-de))&&this.path.push(["L",re,+de]),0>r&&(r=r%w+w),r>O?(this.path.push(["A",n,n,0,1,Se,e-D,t-X]),this.path.push(["A",n,n,0,1,Se,re,de])):1e-6<r&&this.path.push(["A",n,n,0,+(r>=Math.PI),Se,e+n*Math.cos(i),t+n*Math.sin(i)])},ye.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},ye.Se=function(e){this.addPath(this.path,this.rb,e||0)},ye.bezierCurveTo=function(e,t,n,r,i,o){this.path.push(["C",e,t,n,r,i,o])},ye.clearRect=function(){},ye.clip=function(){this.Yl.clipPath=!0},ye.closePath=function(){this.path.push(["z"])},ye.createLinearGradient=function(e,t,n,r){var i=new Pf("linear");return i.x1=e,i.y1=t,i.x2=n,i.y2=r,i},ye.createPattern=function(e){var t="";e instanceof HTMLCanvasElement&&(t=e.toDataURL()),e instanceof HTMLImageElement&&(t=e.getAttribute("src"));var n=this.eA;if(n[t])return"url(#"+n[t]+")";var r="PATTERN"+dt++,i={x:0,y:0,width:e.width,height:e.height,href:t};return e=this.Ud("pattern",{width:e.width,height:e.height,id:r,patternUnits:"userSpaceOnUse"}),e.appendChild(this.Ud(rf,i)),this.svg.appendChild(e),n[t]=r,"url(#"+r+")"},ye.createRadialGradient=function(e,t,n,r,i,o){var a=new Pf("radial");return a.x1=e,a.y1=t,a.r1=n,a.x2=r,a.y2=i,a.r2=o,a};function l0(e,t,n,r,i,o,a,p,w){r=p/r,i=w/i,o===0&&a===0||e.rb.translate(o,a),r===1&&i===1||e.rb.scale(r,i),t===0&&n===0||e.rb.translate(-t,-n)}ye.drawImage=function(e,t,n,r,i,o,a,p,w){var O="";e instanceof HTMLCanvasElement&&(O=e.toDataURL()),e instanceof HTMLImageElement&&(O=e.getAttribute("src"));var D=e instanceof HTMLImageElement?e.naturalWidth:e.width;e=e instanceof HTMLImageElement?e.naturalHeight:e.height,r===void 0&&(o=t,a=n,p=r=D,w=i=e),r=r||0,i=i||0,p=p||0,w=w||0,l0(this,t,n,r,i,o||0,a||0,p,w),o={x:0,y:0,width:D||r,height:e||i,href:O},vt.$(r,p)&&vt.$(i,w)?O.toLowerCase().indexOf(".svg")===-1&&O.toLowerCase().indexOf("data:image/svg")===-1&&(o.preserveAspectRatio="xMidYMid slice"):o.preserveAspectRatio="none",(t!==0||n!==0||r!==D||i!==e)&&(r+=t,i+=n,o["clip-path"]="path('M "+t+","+n+" L "+r+" "+n+" L "+r+" "+i+" L "+t+" "+i+" z')"),gd(this,rf,o,this.rb),this.addElement(rf,o)},ye.fill=function(e){e&&(this.Yl["fill-rule"]="evenodd"),gv(this,this.Yl)},ye.ng=function(e,t){this.clipInsteadOfFill?this.clip():this.fill(t)},ye.fillRect=function(e,t,n,r){e=[e,t,n,r],e={x:e[0],y:e[1],width:e[2],height:e[3]},gd(this,"fill",e,this.rb),this.addElement("rect",e)},ye.ox=function(e,t,n,r){e={x:e,y:t,width:n,height:r},gd(this,"fill",e,this.rb),gv(this,e),this.svg.prepend(this.Ud("rect",e))},ye.fillText=function(e,t,n){e=[e,t,n],t=this.textAlign,t==="left"?t="start":t==="right"?t="end":t==="center"&&(t="middle"),t={x:e[1],y:e[2],style:"font: "+this.font,"text-anchor":t},gd(this,"fill",t,this.rb),this.addElement("text",t,e[0])},ye.lineTo=function(e,t){this.path.push(["L",e,t])},ye.moveTo=function(e,t){this.path.push(["M",e,t])},ye.quadraticCurveTo=function(e,t,n,r){this.path.push(["Q",e,t,n,r])},ye.rect=function(e,t,n,r){this.path.push(["M",e,t],["L",e+n,t],["L",e+n,t+r],["L",e,t+r],["z"])},ye.restore=function(){this.rb=this.stack.pop(),this.path=this.stack.pop();var e=this.stack.pop();this.fillStyle=e.fillStyle,this.font=e.font,this.globalAlpha=e.globalAlpha,this.lineCap=e.lineCap,this.lineDashOffset=e.lineDashOffset,this.lineJoin=e.lineJoin,this.lineWidth=e.lineWidth,this.miterLimit=e.miterLimit,this.shadowBlur=e.shadowBlur,this.shadowColor=e.shadowColor,this.shadowOffsetX=e.shadowOffsetX,this.shadowOffsetY=e.shadowOffsetY,this.strokeStyle=e.strokeStyle,this.textAlign=e.textAlign,this.bk=e.bk},ye.save=function(){this.stack.push({fillStyle:this.fillStyle,font:this.font,globalAlpha:this.globalAlpha,lineCap:this.lineCap,lineDashOffset:this.lineDashOffset,lineJoin:this.lineJoin,lineWidth:this.lineWidth,miterLimit:this.miterLimit,shadowBlur:this.shadowBlur,shadowColor:this.shadowColor,shadowOffsetX:this.shadowOffsetX,shadowOffsetY:this.shadowOffsetY,strokeStyle:this.strokeStyle,textAlign:this.textAlign,bk:this.bk});for(var e=[],t=0;t<this.path.length;t++)e.push(this.path[t]);this.stack.push(e),this.stack.push(this.rb.copy())},ye.setTransform=function(e,t,n,r,i,o){e===1&&t===0&&n===0&&r===1&&i===0&&o===0||bp(this,e,t,n,r,i,o)};function u0(e){return e=e.rb.ha,"matrix("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+")"}ye.scale=function(e,t){this.rb.scale(e,t)},ye.translate=function(e,t){this.rb.translate(e,t)},ye.transform=function(){},ye.yc=function(){},ye.stroke=function(){h0(this,this.Yl)},ye.jk=function(){this.clipInsteadOfFill||this.stroke()},ye.Ud=function(e,t,n){return this.Gv.Ud(e,t,n)},ye.addElement=function(e,t,n){return e=this.Ud(e,t,n),this.yd!==null?this.yd.appendChild(e):this.yd=e,this.ad=e};function gd(e,t,n,r){t==="fill"?gv(e,n):t==="stroke"&&h0(e,n),r!==null&&(e=r.ha,n.transform="matrix("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+")")}function gv(e,t){e.fillStyle instanceof Pf?t.fill=mv(e,e.fillStyle,!0):/^rgba\(/.test(e.fillStyle)?(e=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(e.fillStyle),t.fill="rgb("+e[1]+","+e[2]+","+e[3]+")",t["fill-opacity"]=e[4]):t.fill=e.fillStyle}function c0(e,t,n){n=n?"fill":"stroke",e.fillStyle instanceof Pf?t.setAttributeNS(null,"fill",mv(e,e.fillStyle,!0)):/^rgba\(/.test(e.fillStyle)?(e=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(e.fillStyle),t.setAttributeNS(null,n,"rgb("+e[1]+","+e[2]+","+e[3]+")"),t.setAttributeNS(null,n+"-opacity",e[4])):t.setAttributeNS(null,n,e.fillStyle)}function h0(e,t){if(e.strokeStyle instanceof Pf)t.stroke=mv(e,e.strokeStyle,!1);else if(/^rgba\(/.test(e.strokeStyle)){var n=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(e.strokeStyle);t.stroke="rgb("+n[1]+","+n[2]+","+n[3]+")",t["stroke-opacity"]=n[4]}else t.stroke=e.strokeStyle;t["stroke-width"]=e.lineWidth,t["stroke-linecap"]=e.lineCap,t["stroke-linejoin"]=e.lineJoin,t["stroke-miterlimit"]=e.miterLimit,e.Ct&&(t["stroke-dasharray"]=e.Yg.toString(),t["stroke-dashoffset"]=e.uj)}function mv(e,t,n){var r="";if(r=e.Hl!==null?e.Hl.getAttribute(n?"fill":"stroke"):null,r!==null&&r.indexOf("GRAD")!==-1?(r=r.split("#")[1].slice(0,-1),n=e.svg.getElementById(r),n!==null&&n.remove()):r="GRAD"+dt++,t.type==="linear")n=e.Ud("linearGradient",{x1:t.x1,x2:t.x2,y1:t.y1,y2:t.y2,id:r,gradientUnits:"userSpaceOnUse"});else if(t.type==="radial")n=e.Ud("radialGradient",{x1:t.x1,x2:t.x2,y1:t.y1,y2:t.y2,r1:t.r1,r2:t.r2,id:r});else throw Error("invalid gradient");var i=t.gx;t=i.length;for(var o=[],a=0;a<t;a++){var p=i[a],w=p.color;p={offset:p.offset,"stop-color":w},/^rgba\(/.test(w)&&(w=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(w),p["stop-color"]="rgb("+w[1]+","+w[2]+","+w[3]+")",p["stop-opacity"]=w[4]),o.push(p)}for(o.sort(function(O,D){return O.offset>D.offset?1:-1}),i=0;i<t;i++)n.appendChild(e.Ud("stop",o[i]));return e.svg.appendChild(n),"url(#"+r+")"}ye.addPath=function(e,t,n){for(var r=[],i=0;i<e.length;i++){var o=Ei(e[i]),a=[o.shift()];if(a[0]==="A")a.push(o.shift()+","+o.shift(),o.shift(),o.shift()+","+o.shift(),o.shift()+","+o.shift());else for(;o.length;)a.push(o.shift()+","+o.shift());r.push(a.join(" "))}if(r=r.join(" "),e=this.Yl,e.clipPath)0<this.nh.length&&this.nh[this.nh.length-1].setAttributeNS(null,"clip-path",'path("'+r+'")');else if(e.d=r,gd(this,"",e,t),this.Hl!==null)if(t=this.Hl,t.nodeName!=="g")for(var p in e)p!=="transform"&&t.setAttributeNS(null,p,e[p]);else{p=t.getElementsByTagName("path");for(var w in e)w!=="transform"&&p[n].setAttributeNS(null,w,e[w])}else this.addElement("path",e)};function bp(e,t,n,r,i,o,a){var p=new af;p.ha=[t,n,r,i,o,a],t={},gd(e,"g",t,p),p=e.addElement("g",t),e.nh.push(p)}function Cg(e,t){var n={};return t&&(n.class=t),t=e.addElement("g",n),e.nh.push(t),t}ye.Ev=function(e,t,n){this.Ar=e,this.Br=t,this.Vg=n};function oc(e){e.Il=!1,e.shadowOffsetX=0,e.shadowOffsetY=0,e.shadowBlur=0}function kc(e){e.Il=!0,e.shadowOffsetX=e.Ar,e.shadowOffsetY=e.Br,e.shadowBlur=e.Vg}ye.js=function(e,t){this.Ct=!0,this.Yg=e,this.uj=t},ye.fs=function(){this.Ct=!1},ye.Vc=function(){},ye.Wx=function(){},sl.prototype.rotate=function(e){this.rb.rotate(57.2958*e,0,0)},sl.prototype.getImageData=function(){return null},sl.prototype.measureText=function(){return null};function Tg(e,t){t=t.getAttribute("fill"),t!==null&&(t=t.split("#"),t.length!==1&&(t=e.svg.getElementById(t[1].slice(0,-1)),t!==null&&e.svg.innerHTML.match(new RegExp(t.id,"g")).length===1&&t.remove()))}sl.prototype.Hs=function(e){e.svg!==null&&e.svg.parentNode===this.Nj&&e.svg.remove()},sl.className="SVGContext",Ct.prototype.Cs=function(e){this.pj.contains("SVG")||this.bs("SVG",new $u(this,vn.document));var t=new $u(this,vn.document,!0);e===void 0&&(e=new yo);var n=this;return Nf(this,function(r,i){return r=bg(n,r,"SVG",t),r=r!==null?r.svg:null,typeof i=="function"?(i(r),null):r},e)},Ct.prototype.makeSvg=Ct.prototype.Cs,Ct.prototype.av=function(e){return this.Cs(e)},Ct.prototype.makeSVG=Ct.prototype.av;function Ql(e,t,n,r){this.ownerDocument=t=t===void 0?vn.document:t,this.hs=null,t=t.createElement("canvas"),t.tabIndex=0,this.Oa=t,this.context=new lf(t,n,r),t.H=e}Ql.prototype.resize=function(e,t,n,r){return this.width!==e||this.height!==t?(this.width=e,this.height=t,this.style.width=n+"px",this.style.height=r+"px",!0):!1},Ql.prototype.toDataURL=function(e,t){return this.Oa.toDataURL(e,t)},Ql.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Ql.prototype.focus=function(){this.Oa.focus()},Ql.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},kn.Object.defineProperties(Ql.prototype,{width:{get:function(){return this.Oa.width},set:function(e){this.Oa.width=e}},height:{get:function(){return this.Oa.height},set:function(e){this.Oa.height=e}},style:{get:function(){return this.Oa.style}}}),Ql.className="CanvasSurface";function lf(e,t,n){this.Z=e.getContext?e.getContext("2d",t):null,this.Z===null&&Lt("Browser does not support HTML Canvas Element"),this.ct=this.et=this.dt="",this.Hm=!1,this.Vg=this.Br=this.Ar=0,this.Il=!1,this.El=new dr,this.isTemporary=!!n}ye=lf.prototype,ye.Wx=function(e){this.Z.imageSmoothingEnabled=e},ye.arc=function(e,t,n,r,i,o){this.Z.arc(e,t,n,r,i,o)},ye.beginPath=function(){this.Z.beginPath()},ye.Se=function(){},ye.bezierCurveTo=function(e,t,n,r,i,o){this.Z.bezierCurveTo(e,t,n,r,i,o)},ye.clearRect=function(e,t,n,r){this.yc(),this.Z.clearRect(e,t,n,r)},ye.clip=function(){this.Z.clip()},ye.closePath=function(){this.Z.closePath()},ye.createLinearGradient=function(e,t,n,r){return this.Z.createLinearGradient(e,t,n,r)},ye.createPattern=function(e,t){return this.Z.createPattern(e,t)},ye.createRadialGradient=function(e,t,n,r,i,o){return this.Z.createRadialGradient(e,t,n,r,i,o)},ye.drawImage=function(e,t,n,r,i,o,a,p,w){r===void 0?this.Z.drawImage(e,t,n):this.Z.drawImage(e,t,n,r,i,o,a,p,w)},ye.fill=function(e){this.Z.fill(e?"evenodd":"nonzero")},ye.fillRect=function(e,t,n,r){this.Z.fillRect(e,t,n,r)},ye.ox=function(e,t,n,r){this.Z.fillRect(e,t,n,r)},ye.fillText=function(e,t,n){this.Z.fillText(e,t,n)},ye.getImageData=function(e,t,n,r){return this.Z.getImageData(e,t,n,r)},ye.lineTo=function(e,t){this.Z.lineTo(e,t)},ye.measureText=function(e){return this.Z.measureText(e)},ye.moveTo=function(e,t){this.Z.moveTo(e,t)},ye.quadraticCurveTo=function(e,t,n,r){this.Z.quadraticCurveTo(e,t,n,r)},ye.rect=function(e,t,n,r){this.Z.rect(e,t,n,r)},ye.restore=function(){this.Z.restore()},ye.save=function(){this.yc(),this.Z.save()},lf.prototype.rotate=function(e){this.El.rotate(57.2958*e,0,0)},ye=lf.prototype,ye.setTransform=function(e,t,n,r,i,o){this.El.setTransform(e,t,n,r,i,o)},ye.scale=function(e,t){this.El.scale(e,t)},ye.translate=function(e,t){this.El.translate(e,t)},ye.stroke=function(){this.Z.stroke()},ye.transform=function(e,t,n,r,i,o){if(e!==1||t!==0||n!==0||r!==1||i!==0||o!==0){var a=this.El,p=a.m11*e+a.m21*t;e=a.m12*e+a.m22*t,t=a.m11*n+a.m21*r,n=a.m12*n+a.m22*r,a.dx=a.m11*i+a.m21*o+a.dx,a.dy=a.m12*i+a.m22*o+a.dy,a.m11=p,a.m12=e,a.m21=t,a.m22=n}},ye.yc=function(){var e=this.El;this.Z.setTransform(e.m11,e.m12,e.m21,e.m22,e.dx,e.dy)},ye.ng=function(e,t){if(e instanceof yi&&e.type===Bl){var n=e.yk;e=e.ft,e>n?(this.scale(n/e,1),this.translate((e-n)/2,0)):n>e&&(this.scale(1,e/n),this.translate(0,(n-e)/2)),this.Hm?this.clip():this.fill(t),e>n?(this.translate(-(e-n)/2,0),this.scale(1/(n/e),1)):n>e&&(this.translate(0,-(n-e)/2),this.scale(1,1/(e/n)))}else this.Hm?this.clip():this.fill(t)},ye.jk=function(){this.Hm||this.stroke()},ye.Ev=function(e,t,n){this.Ar=e,this.Br=t,this.Vg=n},ye.js=function(e,t){var n=this.Z;n.setLineDash!==void 0&&(n.setLineDash(e),n.lineDashOffset=t)},ye.fs=function(){var e=this.Z;e.setLineDash!==void 0&&(e.setLineDash(L1),e.lineDashOffset=0)},ye.Vc=function(e){e&&(this.dt=""),this.ct=this.et=""},ye.Hs=function(){},kn.Object.defineProperties(lf.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(e){this.ct!==e&&(this.ct=this.Z.fillStyle=e)}},font:{get:function(){return this.Z.font},set:function(e){this.dt!==e&&(this.dt=this.Z.font=e)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(e){this.Z.globalAlpha=e}},lineCap:{get:function(){return this.Z.lineCap},set:function(e){this.Z.lineCap=e}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(e){this.Z.lineDashOffset=e}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(e){this.Z.lineJoin=e}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(e){this.Z.lineWidth=e}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(e){this.Z.miterLimit=e}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(e){this.Z.shadowBlur=e}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(e){this.Z.shadowColor=e}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(e){this.Z.shadowOffsetX=e}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(e){this.Z.shadowOffsetY=e}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(e){this.et!==e&&(this.et=this.Z.strokeStyle=e)}},textAlign:{get:function(){return this.Z.textAlign},set:function(e){this.Z.textAlign=e}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(e){this.Z.imageSmoothingEnabled=e}},filter:{get:function(){return this.Z.filter},set:function(e){this.Z.filter=e===""?"none":e}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(e){this.Hm=e}}});var L1=Object.freeze([]);lf.className="CanvasSurfaceContext";function Sp(){this.F=this.o=this.u=this.j=0}Sp.className="ColorNumbers";function yi(e,t){bd||(Ev(),bd=!0),Ge(this),this._isFrozen=!1,e===void 0?(this.na=Xc,this.xk="black"):typeof e=="string"?(this.na=Xc,this.xk=e):(this.na=e,this.xk="black"),e=this.na,e===Rc?(this.Qd=Es,this.Lk=Qo):this.Lk=e===Bl?this.Qd=jr:this.Qd=So,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,t&&Object.assign(this,t)}yi.prototype.copy=function(){var e=new yi;return e.na=this.na,e.xk=this.xk,e.Qd=this.Qd.J(),e.Lk=this.Lk.J(),e.Gr=this.Gr,e.Xp=this.Xp,this.we!==null&&(e.we=this.we.copy()),e.cr=this.cr,e},ye=yi.prototype,ye.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},ye.ka=function(){return Object.isFrozen(this)&&Lt("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},ye.qb=function(e){e.classType===yi&&(this.type=e)},ye.toString=function(){var e="Brush(";if(this.type===Xc)e+=this.color;else if(e=this.type===Rc?e+"Linear ":this.type===Bl?e+"Radial ":this.type===Sd?e+"Pattern ":e+"(unknown) ",e+=this.start+" "+this.end,this.colorStops!==null)for(var t=this.colorStops.iterator;t.next();)e+=" "+t.key+":"+t.value;return e+")"},ye.addColorStop=function(e,t){return this._isFrozen&&Yn(this),(typeof e!="number"||!isFinite(e)||1<e||0>e)&&hr(e,"0 <= loc <= 1",yi,"addColorStop:loc"),this.we===null&&(this.we=new nn),this.we.add(e,t),this.na===Xc&&(this.type=Rc),this.xe=null,this},ye.Vz=function(e,t){if(this._isFrozen&&Yn(this),e=e===void 0||typeof e!="number"?.2:e,t=t===void 0?xd:t,this.type===Xc)Nc(this.color),this.color=vd(e,t);else if((this.type===Rc||this.type===Bl)&&this.colorStops!==null)for(var n=this.colorStops.iterator;n.next();)Nc(n.value),this.addColorStop(n.key,vd(e,t));return this};function f0(e,t,n){return t=t===void 0||typeof t!="number"?.2:t,n=n===void 0?xd:n,Nc(e),vd(t,n)}ye.Wy=function(e,t){if(this._isFrozen&&Yn(this),e=e===void 0||typeof e!="number"?.2:e,t=t===void 0?xd:t,this.type===Xc)Nc(this.color),this.color=vd(-e,t);else if((this.type===Rc||this.type===Bl)&&this.colorStops!==null)for(var n=this.colorStops.iterator;n.next();)Nc(n.value),this.addColorStop(n.key,vd(-e,t));return this};function d0(e,t,n){return t=t===void 0||typeof t!="number"?.2:t,n=n===void 0?xd:n,Nc(e),vd(-t,n)}function vv(e,t,n){Nc(e),e=Zi.j;var r=Zi.u,i=Zi.o,o=Zi.F;return Nc(t),n===void 0&&(n=.5),"rgba("+Math.round((Zi.j-e)*n+e)+", "+Math.round((Zi.u-r)*n+r)+", "+Math.round((Zi.o-i)*n+i)+", "+Math.round((Zi.F-o)*n+o)+")"}ye.Gx=function(){if(this.type===Xc)return md(this.color);if((this.type===Rc||this.type===Bl)&&this.colorStops!==null){var e=this.colorStops;if(this.type===Bl)return md(e.first().value);if(e.get(.5)!==null)return md(e.get(.5));if(e.count===2)return e=e.Fa(),md(vv(e[0].value,e[1].value));for(var t=e.iterator,n=-1,r=-1,i=1,o=1;t.next();){var a=t.key,p=Math.abs(.5-t.key);i>o&&p<i?(n=a,i=p):o>=i&&p<o&&(r=a,o=p)}return n>r&&(o=n,n=r,r=o,o=i),i=r-n,md(vv(e.get(n),e.get(r),1-o/i))}return!1};function md(e){return e?e instanceof yi?e.Gx():(Nc(e),128>(299*Zi.j+587*Zi.u+114*Zi.o)/1e3):!1}function vd(e,t){switch(t){case xd:t=100*bv(Zi.j);var n=100*bv(Zi.u),r=100*bv(Zi.o);return Ta.j=.4124564*t+.3575761*n+.1804375*r,Ta.u=.2126729*t+.7151522*n+.072175*r,Ta.o=.0193339*t+.119192*n+.9503041*r,Ta.F=Zi.F,t=xv(Ta.j/yd[0]),n=xv(Ta.u/yd[1]),r=xv(Ta.o/yd[2]),sc.j=116*n-16,sc.u=500*(t-n),sc.o=200*(n-r),sc.F=Ta.F,sc.j=Math.min(100,Math.max(0,sc.j+100*e)),e=(sc.j+16)/116,t=e-sc.o/200,Ta.j=yd[0]*p0(sc.u/500+e),Ta.u=yd[1]*(sc.j>_g*wv?Math.pow(e,3):sc.j/_g),Ta.o=yd[2]*p0(t),Ta.F=sc.F,e=-.969266*Ta.j+1.8760108*Ta.u+.041556*Ta.o,t=.0556434*Ta.j+-.2040259*Ta.u+1.0572252*Ta.o,Zi.j=255*Sv((3.2404542*Ta.j+-1.5371385*Ta.u+-.4985314*Ta.o)/100),Zi.u=255*Sv(e/100),Zi.o=255*Sv(t/100),Zi.F=Ta.F,Zi.j=Math.round(Zi.j),255<Zi.j?Zi.j=255:0>Zi.j&&(Zi.j=0),Zi.u=Math.round(Zi.u),255<Zi.u?Zi.u=255:0>Zi.u&&(Zi.u=0),Zi.o=Math.round(Zi.o),255<Zi.o?Zi.o=255:0>Zi.o&&(Zi.o=0),"rgba("+Zi.j+", "+Zi.u+", "+Zi.o+", "+Zi.F+")";case g0:return yv(),wl.o=Math.min(100,Math.max(0,wl.o+100*e)),"hsla("+wl.j+", "+wl.u+"%, "+wl.o+"%, "+wl.F+")";default:Lt("Unknown color space: "+t)}}function Nc(e){bd||(Ev(),bd=!0);var t=Cv;if(t!==null){t.clearRect(0,0,1,1),t.fillStyle="#000000";var n=t.fillStyle;t.fillStyle=e,t.fillStyle!==n?(t.fillRect(0,0,1,1),e=t.getImageData(0,0,1,1).data,Zi.j=e[0],Zi.u=e[1],Zi.o=e[2],Zi.F=e[3]/255):(t.fillStyle="#FFFFFF",t.fillStyle=e,Zi.j=0,Zi.u=0,Zi.o=0,Zi.F=1)}}function yv(){var e=Zi.j/255,t=Zi.u/255,n=Zi.o/255,r=Math.max(e,t,n),i=Math.min(e,t,n),o=r-i;if(i=(r+i)/2,o===0)var a=e=0;else{switch(r){case e:a=(t-n)/o%6;break;case t:a=(n-e)/o+2;break;case n:a=(e-t)/o+4}a*=60,0>a&&(a+=360),e=o/(1-Math.abs(2*i-1))}wl.j=Math.round(a),wl.u=Math.round(100*e),wl.o=Math.round(100*i),wl.F=Zi.F}function bv(e){return e/=255,.04045>=e?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Sv(e){return .0031308>=e?12.92*e:1.055*Math.pow(e,1/2.4)-.055}function xv(e){return e>wv?Math.pow(e,1/3):(_g*e+16)/116}function p0(e){var t=e*e*e;return t>wv?t:(116*e-16)/_g}function Ff(e,t){typeof e!="string"&&(e instanceof yi||Lt("Value for "+t+" must be a color string or a Brush, not "+e))}function Ev(){Cv=Po?new Ql(null,void 0,{willReadFrequently:!0}).context:null}kn.Object.defineProperties(yi.prototype,{type:{get:function(){return this.na},set:function(e){this._isFrozen&&Yn(this,e),this.na=e,this.start.Mc()&&(e===Rc?this.start=Es:e===Bl&&(this.start=jr)),this.end.Mc()&&(e===Rc?this.end=Qo:e===Bl&&(this.end=jr)),this.xe=null}},color:{get:function(){return this.xk},set:function(e){this._isFrozen&&Yn(this,e),this.xk=e,this.xe=null}},start:{get:function(){return this.Qd},set:function(e){this._isFrozen&&Yn(this,e),this.Qd=e.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(e){this._isFrozen&&Yn(this,e),this.Lk=e.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(e){this._isFrozen&&Yn(this,e),0>e&&hr(e,">= zero",yi,"startRadius"),this.Gr=e,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(e){this._isFrozen&&Yn(this,e),0>e&&hr(e,">= zero",yi,"endRadius"),this.Xp=e,this.xe=null}},colorStops:{get:function(){return this.we},set:function(e){this._isFrozen&&Yn(this,e),this.we=e,this.xe=null}},pattern:{get:function(){return this.cr},set:function(e){this._isFrozen&&Yn(this,e),this.cr=e,this.xe=null}}}),yi.prototype.isDark=yi.prototype.Gx,yi.prototype.darkenBy=yi.prototype.Wy,yi.prototype.lightenBy=yi.prototype.Vz,yi.prototype.addColorStop=yi.prototype.addColorStop;var wv=216/24389,_g=24389/27,yd=[95.047,100,108.883],Cv=null,Zi=new Sp,wl=new Sp,Ta=new Sp,sc=new Sp,bd=!1;yi.className="Brush";var Xc;yi.Solid=Xc=new hn(yi,"Solid",0);var Rc;yi.Linear=Rc=new hn(yi,"Linear",1);var Bl;yi.Radial=Bl=new hn(yi,"Radial",2);var Sd;yi.Pattern=Sd=new hn(yi,"Pattern",4);var xd;yi.Lab=xd=new hn(yi,"Lab",5);var g0;yi.HSL=g0=new hn(yi,"HSL",6),yi.randomColor=function(e,t){e===void 0&&(e=128),t===void 0&&(t=Math.max(e,255));var n=Math.abs(t-e);t=Math.floor(e+Math.random()*n).toString(16);var r=Math.floor(e+Math.random()*n).toString(16);return e=Math.floor(e+Math.random()*n).toString(16),2>t.length&&(t="0"+t),2>r.length&&(r="0"+r),2>e.length&&(e="0"+e),"#"+t+r+e},yi.isValidColor=function(e){if(e==="black")return!0;if(e==="")return!1;bd||(Ev(),bd=!0);var t=Cv;if(t===null)return!0;t.fillStyle="#000000";var n=t.fillStyle;return t.fillStyle=e,t.fillStyle!==n?!0:(t.fillStyle="#FFFFFF",n=t.fillStyle,t.fillStyle=e,t.fillStyle!==n)},yi.lighten=function(e){return f0(e)},yi.lightenBy=f0,yi.darken=function(e){return d0(e)},yi.darkenBy=d0,yi.mix=vv,yi.isDark=md;function Ss(){this.xa="Base"}Ss.prototype.measure=function(){},Ss.prototype.Yz=function(e,t,n,r,i){e.measure(t,n,r,i)},Ss.prototype.arrange=function(){},Ss.prototype.Ly=function(e,t,n,r,i,o){e.arrange(t,n,r,i,o)},Ss.prototype.iA=function(e){e.Uj()},Ss.prototype.gc=function(){},kn.Object.defineProperties(Ss.prototype,{name:{get:function(){return this.xa},set:function(e){this.xa=e}},classType:{get:function(){return qt}}}),Ss.prototype.remeasureObject=Ss.prototype.iA,Ss.prototype.arrangeElement=Ss.prototype.Ly,Ss.prototype.measureElement=Ss.prototype.Yz,Ss.className="PanelLayout";function Ag(){this.xa="Base"}Tn(Ag,Ss),Ag.prototype.measure=function(e,t,n,r,i,o,a){var p=r.length;e=Ic(e);for(var w=0;w<p;w++){var O=r[w];if(O.visible||O===e){var D=O.margin,X=D.right+D.left;D=D.top+D.bottom,O.measure(t,n,o,a);var re=O.measuredBounds;X=Math.max(re.width+X,0),D=Math.max(re.height+D,0),re=O.position.x;var de=O.position.y;isFinite(re)||(re=0),isFinite(de)||(de=0),O instanceof vr&&O.isGeometryPositioned&&(O=O.strokeWidth/2,re-=O,de-=O),fi(i,re,de,X,D)}}},Ag.prototype.arrange=function(e,t,n){var r=t.length,i=e.padding;for(e=n.x-i.left,n=n.y-i.top,i=0;i<r;i++){var o=t[i],a=o.measuredBounds,p=o.margin,w=o.position.x,O=o.position.y;if(w=isNaN(w)?-e:w-e,O=isNaN(O)?-n:O-n,o instanceof vr&&o.isGeometryPositioned){var D=o.strokeWidth/2;w-=D,O-=D}o.visible&&o.arrange(w+p.left,O+p.top,a.width,a.height)}};function kg(){this.xa="Base"}Tn(kg,Ss),kg.prototype.measure=function(e,t,n,r,i,o,a){var p=r.length;t=yr(),o=Ic(e);for(var w=0;w<p;w++){var O=r[w];if(O.visible||O===o){var D=Ba(O,!1);if(D!==Wt&&D!==Bn)t.push(O);else{O.measure(1/0,n,0,a),D=O.margin,O=O.measuredBounds;var X=Math.max(O.height+D.top+D.bottom,0);i.width+=Math.max(O.width+D.right+D.left,0),i.height=Math.max(i.height,X)}}}for(r=t.length,e.desiredSize.height?n=Math.min(e.desiredSize.height,e.maxSize.height):i.height!==0&&(n=Math.min(i.height,e.maxSize.height)),e=0;e<r;e++)w=t[e],(w.visible||w===o)&&(D=w.margin,p=D.right+D.left,D=D.top+D.bottom,w.measure(1/0,n,0,a),w=w.measuredBounds,D=Math.max(w.height+D,0),i.width+=Math.max(w.width+p,0),i.height=Math.max(i.height,D));Mr(t)},kg.prototype.arrange=function(e,t,n){for(var r=t.length,i=e.padding,o=i.top,a=e.isOpposite,p=a?n.width:i.left,w=0;w<r;w++){var O=o,D=t[w];if(D.visible){var X=D.measuredBounds,re=D.margin,de=re.top+re.bottom,Se=o+i.bottom,Te=X.height,Xe=Ba(D,!1);(isNaN(D.desiredSize.height)&&Xe===Xt||Xe===Kn)&&(Te=Math.max(n.height-de-Se,0)),de=Te+de+Se,Se=D.alignment,Se.Xb()&&(Se=e.defaultAlignment),Se.sb()||(Se=jr),a&&(p-=X.width+re.left+re.right),D.arrange(p+Se.offsetX+re.left,O+Se.offsetY+re.top+(n.height*Se.y-de*Se.y),X.width,Te),a||(p+=X.width+re.left+re.right)}}};function Ng(){this.xa="Base"}Tn(Ng,Ss),Ng.prototype.measure=function(e,t,n,r,i,o){var a=r.length;n=yr();for(var p=Ic(e),w=0;w<a;w++){var O=r[w];if(O.visible||O===p){var D=Ba(O,!1);if(D!==Wt&&D!==Kn)n.push(O);else{var X=O.margin;D=X.right+X.left,X=X.top+X.bottom,O.measure(t,1/0,o,0),O=O.measuredBounds,no(i,Math.max(i.width,Math.max(O.width+D,0)),i.height+Math.max(O.height+X,0))}}}if(r=n.length,r!==0){for(e.desiredSize.width?t=Math.min(e.desiredSize.width,e.maxSize.width):i.width!==0&&(t=Math.min(i.width,e.maxSize.width)),e=0;e<r;e++)w=n[e],(w.visible||w===p)&&(O=w.margin,a=O.right+O.left,O=O.top+O.bottom,w.measure(t,1/0,o,0),w=w.measuredBounds,O=Math.max(w.height+O,0),i.width=Math.max(i.width,Math.max(w.width+a,0)),i.height+=O);Mr(n)}},Ng.prototype.arrange=function(e,t,n){for(var r=t.length,i=e.padding,o=i.left,a=e.isOpposite,p=a?n.height:i.top,w=0;w<r;w++){var O=o,D=t[w];if(D.visible){var X=D.measuredBounds,re=D.margin,de=re.left+re.right,Se=o+i.right,Te=X.width,Xe=Ba(D,!1);(isNaN(D.desiredSize.width)&&Xe===Xt||Xe===Bn)&&(Te=Math.max(n.width-de-Se,0)),de=Te+de+Se,Se=D.alignment,Se.Xb()&&(Se=e.defaultAlignment),Se.sb()||(Se=jr),a&&(p-=X.height+re.bottom+re.top),D.arrange(O+Se.offsetX+re.left+(n.width*Se.x-de*Se.x),p+Se.offsetY+re.top,Te,X.height),a||(p+=X.height+re.bottom+re.top)}}};function Rg(){this.xa="Base"}Tn(Rg,Ss),Rg.prototype.measure=function(e,t,n,r,i,o,a){var p=r.length,w=e.Pb(),O=w.margin,D=O.right+O.left,X=O.top+O.bottom;w.measure(t,n,o,a);var re=w.measuredBounds;o=re.width,a=re.height;var de=Math.max(o+D,0),Se=Math.max(a+X,0),Te=e.isClipping,Xe=Nt.allocAt(-O.left,-O.top,de,Se),We=Nt.allocAt(0,0,o,a);Tv(w,We,!0),o=We.width,a=We.height;for(var qe=!0,tt=Ic(e),rt=0;rt<p;rt++){var ft=r[rt];re=t;var Tt=n;if(ft!==w&&(ft.visible||ft===tt)){O=ft.margin;var Sn=O.left,Rn=O.top;switch(de=O.right+O.left,Se=O.top+O.bottom,O=Ba(ft,!1),O){case Xt:re=o,Tt=a,Rn=Sn=Se=de=0;break;case Bn:re=o,Sn=de=0;break;case Kn:Tt=a,Rn=Se=0}ft.measure(re,Tt,0,0),re=ft.measuredBounds,de=Math.max(re.width+de,0),Se=Math.max(re.height+Se,0),O=ft.alignment,O.Xb()&&(O=e.defaultAlignment),O.sb()||(O=jr);var _n=ft.alignmentFocus;if(_n.Xb()&&(_n=jr),Tt=null,ft instanceof qt&&ft.$e!==""&&(Tt=ft.fb(ft.$e),Tt===ft&&(Tt=null)),Sn=We.x-Sn,Rn=We.y-Rn,Tt!==null){for(ft.arrange(0,0,re.width,re.height),re=Tt.actualBounds,re=Ue.allocAt(re.x+(_n.x*re.width-_n.offsetX),re.y+(_n.y*re.height-_n.offsetY)),Tt=Tt.panel;Tt!==ft;)Tt.transform.Ga(re),Tt=Tt.panel;Sn+=O.x*o+O.offsetX-re.x,Rn+=O.y*a+O.offsetY-re.y,Ue.free(re)}else Sn+=O.x*o+O.offsetX-(_n.x*re.width+_n.offsetX),Rn+=O.y*a+O.offsetY-(_n.y*re.height+_n.offsetY);qe?(qe=!1,i.h(Sn,Rn,de,Se)):fi(i,Sn,Rn,de,Se)}}switch(qe?i.assign(Xe):Te?i.Uu(We.x,We.y,We.width,We.height):fi(i,Xe.x,Xe.y,Xe.width,Xe.height),Nt.free(Xe),Nt.free(We),O=w.stretch,O===cr&&(O=Ba(w,!1)),O){case Wt:return;case Xt:if(!isFinite(t)&&!isFinite(n))return;break;case Bn:if(!isFinite(t))return;break;case Kn:if(!isFinite(n))return}for(re=w.measuredBounds,o=re.width,a=re.height,de=Math.max(o+D,0),Se=Math.max(a+X,0),O=w.margin,We=Nt.allocAt(-O.left,-O.top,de,Se),Tv(w,We,!0),o=We.width,a=We.height,t=0;t<p;t++)n=r[t],n===w||!n.visible&&n!==tt||(O=n.margin,de=O.right+O.left,Se=O.top+O.bottom,re=n.measuredBounds,de=Math.max(re.width+de,0),Se=Math.max(re.height+Se,0),D=n.alignment,D.Xb()&&(D=e.defaultAlignment),D.sb()||(D=jr),n=n.alignmentFocus,n.Xb()&&(n=jr),qe?(qe=!1,i.h(D.x*o+D.offsetX-(n.x*re.width+n.offsetX)-O.left,D.y*a+D.offsetY-(n.y*re.height+n.offsetY)-O.top,de,Se)):fi(i,D.x*o+D.offsetX-(n.x*re.width+n.offsetX)-O.left,D.y*a+D.offsetY-(n.y*re.height+n.offsetY)-O.top,de,Se));qe?i.assign(Xe):Te?i.Uu(We.x,We.y,We.width,We.height):fi(i,Xe.x,Xe.y,Xe.width,Xe.height),Nt.free(We)},Rg.prototype.arrange=function(e,t,n){var r=t.length,i=e.Pb(),o=i.measuredBounds,a=o.width,p=o.height,w=e.padding;o=w.left,w=w.top;var O=o-n.x,D=w-n.y;for(i.arrange(O,D,a,p),a=Nt.allocAt(0,0,a,p),Tv(i,a,!1),p=0;p<r;p++){var X=t[p];if(X!==i){O=X.measuredBounds;var re=O.width,de=O.height;D=X.alignment,D.Xb()&&(D=e.defaultAlignment),D.sb()||(D=jr);var Se=X.alignmentFocus;if(Se.Xb()&&(Se=jr),O=null,X instanceof qt&&X.$e!==""&&(O=X.fb(X.$e),O===X&&(O=null)),O!==null){var Te=O.actualBounds;for(Se=Ue.allocAt(Te.x+(Se.x*Te.width-Se.offsetX),Te.y+(Se.y*Te.height-Se.offsetY)),O=O.panel;O!==X;)O.transform.Ga(Se),O=O.panel;O=D.x*a.width+D.offsetX-Se.x,D=D.y*a.height+D.offsetY-Se.y,Ue.free(Se)}else O=D.x*a.width+D.offsetX-(Se.x*re+Se.offsetX),D=D.y*a.height+D.offsetY-(Se.y*de+Se.offsetY);O+=a.x-n.x,D+=a.y-n.y,X.visible&&X.arrange(o+O,w+D,re,de)}}Nt.free(a)};function Tv(e,t,n){var r=null;if(e instanceof qt&&e.$e!==""&&(r=e.fb(e.$e),r===e&&(r=null)),r!==null)for(n&&e.arrange(0,0,t.width,t.height),t.assign(r.actualBounds),r=r.panel;r!==e;)r.transform.pp(t),r=r.panel}function Ig(){this.xa="Base"}Tn(Ig,Ss),Ig.prototype.measure=function(e,t,n,r,i,o,a){var p=r.length,w=e.Pb(),O=w.margin,D=t,X=n,re=O.right+O.left,de=O.top+O.bottom;w.measure(t,n,o,a),O=w.measuredBounds;var Se=0,Te=null;w instanceof vr&&(Te=w,Se=Te.strokeWidth*Te.scale);var Xe=Math.max(O.width+re,0);O=Math.max(O.height+de,0);var We=Nv(w),qe=We.x*Xe+We.offsetX;We=We.y*O+We.offsetY;var tt=Rv(w),rt=tt.x*Xe+tt.offsetX;for(tt=tt.y*O+tt.offsetY,isFinite(t)&&(D=Math.max(Math.abs(qe-rt)-Se,0)),isFinite(n)&&(X=Math.max(Math.abs(We-tt)-Se,0)),Se=Yt.alloc(),Se.h(0,0),e=Ic(e),tt=0;tt<p;tt++)We=r[tt],We===w||!We.visible&&We!==e||(O=We.margin,Xe=O.right+O.left,qe=O.top+O.bottom,We.measure(D,X,0,0),O=We.measuredBounds,Xe=Math.max(O.width+Xe,0),O=Math.max(O.height+qe,0),Se.h(Math.max(Xe,Se.width),Math.max(O,Se.height)));if(p===1)i.width=Xe,i.height=O,Yt.free(Se);else{switch(We=Nv(w),tt=Rv(w),p=r=0,tt.x!==We.x&&tt.y!==We.y&&(r=Se.width/Math.abs(tt.x-We.x),p=Se.height/Math.abs(tt.y-We.y)),Yt.free(Se),Se=0,Te!==null&&(Se=Te.strokeWidth*Te.scale,Pv(Te)===Dn&&(r=p=Math.max(r,p))),r+=Math.abs(We.offsetX)+Math.abs(tt.offsetX)+Se,p+=Math.abs(We.offsetY)+Math.abs(tt.offsetY)+Se,Te=w.stretch,Te===cr&&(Te=Ba(w,!1)),Te){case Wt:a=o=0;break;case Xt:isFinite(t)&&(r=t),isFinite(n)&&(p=n);break;case Bn:isFinite(t)&&(r=t),a=0;break;case Kn:o=0,isFinite(n)&&(p=n)}w.Uj(),w.measure(r,p,o,a),i.width=w.measuredBounds.width+re,i.height=w.measuredBounds.height+de}},Ig.prototype.arrange=function(e,t){var n=t.length,r=e.Pb(),i=r.measuredBounds,o=Nt.alloc();o.h(0,0,1,1);var a=r.margin,p=a.left;a=a.top;var w=e.padding,O=w.left;w=w.top,r.arrange(O+p,w+a,i.width,i.height);var D=Nv(r),X=Rv(r),re=D.y*i.height+D.offsetY,de=X.x*i.width+X.offsetX;for(X=X.y*i.height+X.offsetY,o.x=D.x*i.width+D.offsetX,o.y=re,fi(o,de,X,0,0),o.x+=p+O,o.y+=a+w,i=0;i<n;i++)p=t[i],p!==r&&(O=p.measuredBounds,a=p.margin,w=Math.max(O.width+a.right+a.left,0),D=Math.max(O.height+a.top+a.bottom,0),re=p.alignment,re.Xb()&&(re=e.defaultAlignment),re.sb()||(re=jr),w=o.width*re.x+re.offsetX-w*re.x+a.left+o.x,a=o.height*re.y+re.offsetY-D*re.y+a.top+o.y,p.visible&&($i(o.x,o.y,o.width,o.height,w,a,O.width,O.height)?p.arrange(w,a,O.width,O.height):p.arrange(w,a,O.width,O.height,new Nt(o.x,o.y,o.width,o.height))));Nt.free(o)};function Og(){this.xa="Base",this.name="Table"}Tn(Og,Ss),Og.prototype.measure=function(e,t,n,r,i){for(var o=r.length,a=yr(),p=yr(),w=0;w<o;w++){var O=r[w],D=O instanceof qt?O:null;if(D!==null&&Zc(D)&&O.visible){p.push(D);for(var X=D.O.s,re=X.length,de=0;de<re;de++){var Se=X[de];D.type===qt.TableRow?Se.row=O.row:D.type===qt.TableColumn&&(Se.column=O.column),a.push(Se)}}else a.push(O)}o=a.length,o===0&&(e.Fb(0),e.Eb(0));for(var Te=[],Xe=0;Xe<o;Xe++){var We=a[Xe];We.visible&&(gs(We,!0),ic(We,!0),Te[We.row]||(Te[We.row]=[]),Te[We.row][We.column]||(Te[We.row][We.column]=[]),Te[We.row][We.column].push(We))}Mr(a);var qe=yr(),tt=yr(),rt=yr(),ft={count:0},Tt={count:0},Sn=t,Rn=n,_n=e.rowDefs,ln=e.colDefs,Gt=null;o=_n.length;for(var ar=0;ar<o;ar++)Gt=_n[ar],Gt!==void 0&&(Gt.actual=0);o=ln.length;for(var er=0;er<o;er++)Gt=ln[er],Gt!==void 0&&(Gt.actual=0);for(var si=Te.length,Hi=0,_s=0;_s<si;_s++)Te[_s]&&(Hi=Math.max(Hi,Te[_s].length));var Ms=Math.min(e.topIndex,si-1),ma=Math.min(e.leftIndex,Hi-1),As=0;si=Te.length;for(var sh=Ic(e),es=0;es<si;es++)if(Te[es]){Hi=Te[es].length;var Iu=e.Fb(es);Iu.actual=0;for(var va=Iu.oc=0;va<Hi;va++)if(Te[es][va]){var ah=e.Eb(va);qe[va]===void 0&&(ah.actual=0,ah.oc=0,qe[va]=!0);for(var _l=Te[es][va],nu=_l.length,ul=0;ul<nu;ul++){var Ja=_l[ul];if(Ja.visible||Ja===sh){var Fh=1<Ja.rowSpan||1<Ja.columnSpan;Fh&&(es<Ms||va<ma||tt.push(Ja));var Ou=Ja.margin,Wd=Ou.right+Ou.left,cl=Ou.top+Ou.bottom,ya=_u(Ja,Iu,ah,!1),ag=Ja.desiredSize,Xf=!isNaN(ag.height),Ju=!isNaN(ag.width)&&Xf;if(Fh||ya===Wt||Ju||es<Ms||va<ma||(ft[va]!==void 0||ya!==Xt&&ya!==Bn||(ft[va]=-1,ft.count++),Tt[es]!==void 0||ya!==Xt&&ya!==Kn||(Tt[es]=-1,Tt.count++),rt.push(Ja)),Ja.measure(1/0,1/0,0,0),!(es<Ms||va<ma)){var Qa=Ja.measuredBounds,vf=Math.max(Qa.width+Wd,0),hl=Math.max(Qa.height+cl,0);if(Ja.rowSpan===1&&(ya===Wt||ya===Bn)){Gt=e.Fb(es);var Bh=Gt.Wc();As=Math.max(hl-Gt.actual,0),As+Bh>Rn&&(As=Math.max(Rn-Bh,0));var tv=Gt.oa===0;Gt.oc=Gt.oc+As,Gt.actual=Gt.oa+As,Rn=Math.max(Rn-(As+(tv?Bh:0)),0)}if(Ja.columnSpan===1&&(ya===Wt||ya===Kn)){Gt=e.Eb(va);var lg=Gt.Wc();As=Math.max(vf-Gt.actual,0),As+lg>Sn&&(As=Math.max(Sn-lg,0));var Qy=Gt.oa===0;Gt.oc=Gt.oc+As,Gt.actual=Gt.oa+As,Sn=Math.max(Sn-(As+(Qy?lg:0)),0)}Fh&&Ja.Uj()}}}}}Mr(qe);var gc=0,Mc=0;o=e.columnCount;for(var Zf=0;Zf<o;Zf++){var jh=ln[Zf];jh!==void 0&&(gc+=isNaN(jh.Hc)?jh.oc:jh.Hc,jh.oc!==0&&(gc+=jh.Wc()))}o=e.rowCount;for(var Vd=0;Vd<o;Vd++){var Uh=_n[Vd];Uh!==void 0&&(Mc+=isNaN(Uh.Hc)?Uh.oc:Uh.Hc,Uh.oc!==0&&(Mc+=Uh.Wc()))}Sn=Math.max(t-gc,0);var mc=Rn=Math.max(n-Mc,0),lh=Sn;o=rt.length;for(var qa=0;qa<o;qa++){var Qu=rt[qa],nv=e.Fb(Qu.row),Dc=e.Eb(Qu.column),Kd=Qu.measuredBounds,Lu=Qu.margin,yf=Lu.right+Lu.left,qu=Lu.top+Lu.bottom;ft[Qu.column]=Dc.oc===0&&ft[Qu.column]!==void 0?Math.max(Kd.width+yf,ft[Qu.column]):null,Tt[Qu.row]=nv.oc===0&&Tt[Qu.row]!==void 0?Math.max(Kd.height+qu,Tt[Qu.row]):null}var Jf=0,Yd=0,Su;for(Su in Tt)Su!=="count"&&(Jf+=Tt[Su]);for(Su in ft)Su!=="count"&&(Yd+=ft[Su]);for(var zs=Yt.alloc(),ug=0;ug<o;ug++){var Oa=rt[ug];if(Oa.visible||Oa===sh){var ts=e.Fb(Oa.row),La=e.Eb(Oa.column),Pc=0;isFinite(La.width)?Pc=La.width:(isFinite(Sn)&&ft[Oa.column]!==null?Yd===0?Pc=La.actual+Sn:Pc=ft[Oa.column]/Yd*lh:ft[Oa.column]!==null?Pc=Sn:Pc=La.actual||Sn,Pc=Math.max(0,Pc-La.Wc()));var uh=0;switch(isFinite(ts.height)?uh=ts.height:(isFinite(Rn)&&Tt[Oa.row]!==null?Jf===0?uh=ts.actual+Rn:uh=Tt[Oa.row]/Jf*mc:Tt[Oa.row]!==null?uh=Rn:uh=ts.actual||Rn,uh=Math.max(0,uh-ts.Wc())),zs.h(Math.max(La.minimum,Math.min(Pc,La.maximum)),Math.max(ts.minimum,Math.min(uh,ts.maximum))),ya=_u(Oa,ts,La,!1),ya){case Bn:zs.height=Math.max(zs.height,ts.actual+Rn);break;case Kn:zs.width=Math.max(zs.width,La.actual+Sn)}var bf=Oa.margin,qy=bf.right+bf.left,rv=bf.top+bf.bottom;Oa.Uj(),Oa.measure(zs.width,zs.height,La.minimum,ts.minimum);var $d=Oa.measuredBounds,Sf=Math.max($d.width+qy,0),Qf=Math.max($d.height+rv,0);isFinite(Sn)&&(Sf=Math.min(Sf,zs.width)),isFinite(Rn)&&(Qf=Math.min(Qf,zs.height));var el=0;el=ts.actual,ts.actual=Math.max(ts.actual,Qf),ts.oc=Math.max(ts.oc,Qf),As=ts.actual-el,Rn=Math.max(Rn-As,0),Tt[Oa.row]===null&&(mc=Math.max(mc-As,0)),el=La.actual,La.actual=Math.max(La.actual,Sf),La.oc=Math.max(La.oc,Sf),As=La.actual-el,Sn=Math.max(Sn-As,0),ft[Oa.column]===null&&(lh=Math.max(lh-As,0))}}Mr(rt);var Fc=Yt.alloc(),Mu=yr(),Gl=yr();if(o=tt.length,o!==0){for(var Hh=0;Hh<si;Hh++)if(Te[Hh]){Hi=Te[Hh].length;var Xd=e.Fb(Hh);Mu[Hh]=Xd.actual;for(var zh=0;zh<Hi;zh++)if(Te[Hh][zh]){var iv=e.Eb(zh);Gl[zh]=iv.actual}}}for(var Zd=0;Zd<o;Zd++){var zo=tt[Zd];if(zo.visible||zo===sh){var xu=e.Fb(zo.row),ru=e.Eb(zo.column);switch(zs.h(Math.max(ru.minimum,Math.min(t,ru.maximum)),Math.max(xu.minimum,Math.min(n,xu.maximum))),ya=_u(zo,xu,ru,!1),ya){case Xt:Gl[ru.index]!==0&&(zs.width=Math.min(zs.width,Gl[ru.index])),Mu[xu.index]!==0&&(zs.height=Math.min(zs.height,Mu[xu.index]));break;case Bn:Gl[ru.index]!==0&&(zs.width=Math.min(zs.width,Gl[ru.index]));break;case Kn:Mu[xu.index]!==0&&(zs.height=Math.min(zs.height,Mu[xu.index]))}isFinite(ru.width)&&(zs.width=ru.width),isFinite(xu.height)&&(zs.height=xu.height),Fc.h(0,0);for(var ov=ru.minimum,fl=xu.minimum,ch=1;ch<zo.rowSpan&&!(zo.row+ch>=e.rowCount);ch++)Gt=e.Fb(zo.row+ch),As=0,As=ya===Xt||ya===Kn?Math.max(Gt.minimum,Mu[zo.row+ch]===0?Gt.maximum:Math.min(Mu[zo.row+ch],Gt.maximum)):Math.max(Gt.minimum,isNaN(Gt.Hc)?Gt.maximum:Math.min(Gt.Hc,Gt.maximum)),Fc.height+=As,fl+=Gt.minimum;for(var iu=1;iu<zo.columnSpan&&!(zo.column+iu>=e.columnCount);iu++)Gt=e.Eb(zo.column+iu),As=0,As=ya===Xt||ya===Bn?Math.max(Gt.minimum,Gl[zo.column+iu]===0?Gt.maximum:Math.min(Gl[zo.column+iu],Gt.maximum)):Math.max(Gt.minimum,isNaN(Gt.Hc)?Gt.maximum:Math.min(Gt.Hc,Gt.maximum)),Fc.width+=As,ov+=Gt.minimum;zs.width+=Fc.width,zs.height+=Fc.height;var Jd=zo.margin,Gh=Jd.right+Jd.left,cg=Jd.top+Jd.bottom;zo.measure(zs.width,zs.height,ov,fl);for(var Qd=zo.measuredBounds,ec=Math.max(Qd.width+Gh,0),xf=Math.max(Qd.height+cg,0),Wh=0,qd=0;qd<zo.rowSpan&&!(zo.row+qd>=e.rowCount);qd++)Gt=e.Fb(zo.row+qd),Wh+=Gt.total||0;if(Wh<xf){var hh=xf-Wh,vc=xf-Wh;if(zo.spanAllocation!==null)for(var fh=zo.spanAllocation,Bc=0;Bc<zo.rowSpan&&!(0>=hh)&&!(zo.row+Bc>=e.rowCount);Bc++){Gt=e.Fb(zo.row+Bc);var dh=Gt.oa||0,Ef=fh(zo,Gt,vc);Gt.actual=Math.min(Gt.maximum,dh+Ef),Gt.oa!==dh&&(hh-=Gt.oa-dh)}for(;0<hh;){var Du=Gt.oa||0;if(isNaN(Gt.height)&&Gt.maximum>Du&&(Gt.actual=Math.min(Gt.maximum,Du+hh),Gt.oa!==Du&&(hh-=Gt.oa-Du)),Gt.index===0)break;Gt=e.Fb(Gt.index-1)}}for(var qf=0,ph=0;ph<zo.columnSpan&&!(zo.column+ph>=e.columnCount);ph++)Gt=e.Eb(zo.column+ph),qf+=Gt.total||0;if(qf<ec){var ed=ec-qf,e0=ec-qf;if(zo.spanAllocation!==null)for(var jc=zo.spanAllocation,wf=0;wf<zo.columnSpan&&!(0>=ed)&&!(zo.column+wf>=e.columnCount);wf++){Gt=e.Eb(zo.column+wf);var hg=Gt.oa||0,t0=jc(zo,Gt,e0);Gt.actual=Math.min(Gt.maximum,hg+t0),Gt.oa!==hg&&(ed-=Gt.oa-hg)}for(;0<ed;){var sv=Gt.oa||0;if(isNaN(Gt.width)&&Gt.maximum>sv&&(Gt.actual=Math.min(Gt.maximum,sv+ed),Gt.oa!==sv&&(ed-=Gt.oa-sv)),Gt.index===0)break;Gt=e.Eb(Gt.index-1)}}}}Mr(tt),Yt.free(Fc),Yt.free(zs),Mu!==void 0&&Mr(Mu),Gl!==void 0&&Mr(Gl);var td=0,nd=0,av=e.desiredSize,A1=e.maxSize;ya=Ba(e,!0);var fg=Mc=gc=0,dg=0;o=e.columnCount;for(var lv=0;lv<o;lv++)ln[lv]!==void 0&&(Gt=e.Eb(lv),isFinite(Gt.width)?(fg+=Gt.width,fg+=Gt.Wc()):zg(Gt)===Cp?(fg+=Gt.oa,fg+=Gt.Wc()):Gt.oa!==0&&(gc+=Gt.oa,gc+=Gt.Wc()));isFinite(av.width)?td=Math.min(av.width,A1.width):td=ya!==Wt&&isFinite(t)?t:gc,td=Math.max(td,e.minSize.width),td=Math.max(td-fg,0);for(var pS=gc===0?1:Math.max(td/gc,1),uv=0;uv<o;uv++)ln[uv]!==void 0&&(Gt=e.Eb(uv),isFinite(Gt.width)||zg(Gt)===Cp||(Gt.actual=Gt.oa*pS),Gt.position=i.width,Gt.oa!==0&&(i.width+=Gt.oa,i.width+=Gt.Wc()));o=e.rowCount;for(var cv=0;cv<o;cv++)_n[cv]!==void 0&&(Gt=e.Fb(cv),isFinite(Gt.height)?(dg+=Gt.height,dg+=Gt.Wc()):zg(Gt)===Cp?(dg+=Gt.oa,dg+=Gt.Wc()):Gt.oa!==0&&(Mc+=Gt.oa,Mc+=Gt.Wc()));isFinite(av.height)?nd=Math.min(av.height,A1.height):nd=ya!==Wt&&isFinite(n)?n:Mc,nd=Math.max(nd,e.minSize.height),nd=Math.max(nd-dg,0);for(var gS=Mc===0?1:Math.max(nd/Mc,1),hv=0;hv<o;hv++)_n[hv]!==void 0&&(Gt=e.Fb(hv),isFinite(Gt.height)||zg(Gt)===Cp||(Gt.actual=Gt.oa*gS),Gt.position=i.height,Gt.oa!==0&&(i.height+=Gt.oa,i.height+=Gt.Wc()));o=p.length;for(var n0=0;n0<o;n0++){var pg=p[n0],r0=0,i0=0;pg.type===qt.TableRow?(r0=i.width,Gt=e.Fb(pg.row),i0=Gt.actual):(Gt=e.Eb(pg.column),r0=Gt.actual,i0=i.height),pg.measuredBounds.h(0,0,r0,i0),gs(pg,!1)}Mr(p),e.inRowsCols=Te},Og.prototype.arrange=function(e,t,n){var r=t.length,i=e.padding,o=i.left;i=i.top;var a=e.inRowsCols;if(a!==null){for(var p,w,O=a.length,D=0,X=0;X<O;X++)a[X]&&(D=Math.max(D,a[X].length));w=e.rowDefs,p=e.colDefs;var re=X=0,de=Math.min(e.topIndex,O-1);if(0<w.length){for(;de!==O&&(w[de]===void 0||w[de].oa===0);)de++;de=Math.max(Math.min(de,O-1),0),X=-w[de].position}var Se=Math.min(e.leftIndex,D-1);if(0<p.length){for(;Se!==D&&(p[Se]===void 0||p[Se].oa===0);)Se++;Se=Math.max(Math.min(Se,D-1),0),re=-p[Se].position}for(var Te=0,Xe=0;Te!==O&&w[Te]===void 0;)Te++;for(;Xe!==O&&p[Xe]===void 0;)Xe++;D=e.part,e.Fb(Te),e.Eb(Xe);for(var We=0;We<t.length;We++){var qe=t[We];if(qe instanceof qt&&qe.visible&&Zc(qe)){if(qe.type===qt.TableRow){p=e.Fb(qe.row);var tt=e.Eb(Xe)}else p=e.Fb(Te),tt=e.Eb(qe.column);w=p.position+X+i,p.oa!==0&&(w+=p.Io(Math.max(Te,de))),p=tt.position+re+o,tt.oa!==0&&(p+=tt.Io(Math.max(Xe,Se))),tt=qe.measuredBounds,qe.Uk(),qe.actualBounds.ka();var rt=qe.actualBounds,ft=Nt.allocAt(rt.x,rt.y,rt.width,rt.height);rt.x=qe.type===qt.TableRow?o:p,rt.y=qe.type===qt.TableColumn?i:w,rt.width=tt.width,rt.height=tt.height,qe.actualBounds.freeze(),ic(qe,!1),ho(ft,rt)||D===null||(D.oh(),qe.Pn(D)),Nt.free(ft)}}for(We=Yt.alloc(),qe=0;qe<O;qe++)if(a[qe]){for(D=a[qe].length,tt=e.Fb(qe),w=tt.position+X+i,tt.oa!==0&&(w+=tt.Io(Math.max(Te,de))),rt=0;rt<D;rt++)if(a[qe][rt]){ft=e.Eb(rt),p=ft.position+re+o,ft.oa!==0&&(p+=ft.Io(Math.max(Xe,Se)));for(var Tt=a[qe][rt],Sn=Tt.length,Rn=0;Rn<Sn;Rn++){var _n=Tt[Rn],ln=_n.measuredBounds;We.h(0,0);for(var Gt=1;Gt<_n.rowSpan&&!(qe+Gt>=e.rowCount);Gt++){var ar=e.Fb(qe+Gt);ar.oa!==0&&(We.height+=ar.total)}for(Gt=1;Gt<_n.columnSpan&&!(rt+Gt>=e.columnCount);Gt++)ar=e.Eb(rt+Gt),ar.oa!==0&&(We.width+=ar.total);var er=ft.oa+We.width,si=tt.oa+We.height;Gt=p,ar=w;var Hi=er,_s=si,Ms=p,ma=w,As=er,sh=si;p+er>n.width&&(As=Math.max(n.width-p,0)),w+si>n.height&&(sh=Math.max(n.height-w,0));var es=_n.alignment;if(es.Xb()){es=e.defaultAlignment,es.sb()||(es=jr);var Iu=es.x,va=es.y,ah=es.offsetX;es=es.offsetY;var _l=ft.alignment,nu=tt.alignment;_l.sb()&&(Iu=_l.x,ah=_l.offsetX),nu.sb()&&(va=nu.y,es=nu.offsetY)}else Iu=es.x,va=es.y,ah=es.offsetX,es=es.offsetY;(isNaN(Iu)||isNaN(va))&&(va=Iu=.5,es=ah=0),_l=ln.width,nu=ln.height;var ul=_n.margin,Ja=ul.left+ul.right,Fh=ul.top+ul.bottom,Ou=_u(_n,tt,ft,!1);!isNaN(_n.desiredSize.width)||Ou!==Xt&&Ou!==Bn||(_l=Math.max(er-Ja,0)),!isNaN(_n.desiredSize.height)||Ou!==Xt&&Ou!==Kn||(nu=Math.max(si-Fh,0)),er=_n.maxSize,si=_n.minSize,_l=Math.min(er.width,_l),nu=Math.min(er.height,nu),_l=Math.max(si.width,_l),nu=Math.max(si.height,nu),er=nu+Fh,Gt+=Hi*Iu-(_l+Ja)*Iu+ah+ul.left,ar+=_s*va-er*va+es+ul.top,_n.visible&&($i(Ms,ma,As,sh,Gt,ar,ln.width,ln.height)?_n.arrange(Gt,ar,_l,nu):_n.arrange(Gt,ar,_l,nu,new Nt(Ms,ma,As,sh)))}}}for(Yt.free(We),e=0;e<r;e++)n=t[e],o=n instanceof qt?n:null,o!==null&&Zc(o)&&(o=n.actualBounds,n.naturalBounds.ka(),n.naturalBounds.h(0,0,o.width,o.height),n.naturalBounds.freeze())}};function Lg(){this.xa="Base"}Tn(Lg,Ss),Lg.prototype.measure=function(){},Lg.prototype.arrange=function(){};function Mg(){this.xa="Base"}Tn(Mg,Ss),Mg.prototype.measure=function(){},Mg.prototype.arrange=function(){};function Dg(){this.xa="Base"}Tn(Dg,Ss),Dg.prototype.measure=function(e,t,n,r,i,o,a){1<r.length&&Lt("Viewbox Panel cannot contain more than one GraphObject."),r=r[0],r.Ca=1,r.Uj(),r.measure(1/0,1/0,o,a);var p=r.measuredBounds,w=r.margin,O=w.right+w.left;if(w=w.top+w.bottom,isFinite(t)||isFinite(n)){var D=r.scale,X=p.width;p=p.height;var re=Math.max(t-O,0),de=Math.max(n-w,0),Se=1;e.viewboxStretch===Dn?X!==0&&p!==0&&(Se=Math.min(re/X,de/p)):X!==0&&p!==0&&(Se=Math.max(re/X,de/p)),Se===0&&(Se=1e-4),r.Ca*=Se,D!==r.scale&&(gs(r,!0),r.measure(1/0,1/0,o,a))}p=r.measuredBounds,i.width=isFinite(t)?t:Math.max(p.width+O,0),i.height=isFinite(n)?n:Math.max(p.height+w,0)},Dg.prototype.arrange=function(e,t,n){t=t[0];var r=t.measuredBounds,i=t.margin,o=Math.max(r.width+(i.right+i.left),0);i=Math.max(r.height+(i.top+i.bottom),0);var a=t.alignment;a.Xb()&&(a=e.defaultAlignment),a.sb()||(a=jr),t.arrange(n.width*a.x-o*a.x+a.offsetX,n.height*a.y-i*a.y+a.offsetY,r.width,r.height)};function xp(){this.xa="Base"}Tn(xp,Ss),xp.prototype.measure=function(){},xp.prototype.arrange=function(){},xp.prototype.gc=function(e,t,n){n=e.Df()*n.scale,0>=n&&(n=1);var r=e.gridCellSize,i=r.width;r=r.height;var o=e.naturalBounds,a=e.actualBounds,p=o.width,w=o.height,O=Math.ceil(p/i),D=Math.ceil(w/r),X=e.gridOrigin,re=X.x;X=X.y,t.save(),t.beginPath(),t.rect(0,0,p,w),t.clip(),t.Se();for(var de=[],Se=e.O.s,Te=Se.length,Xe=0;Xe<Te;Xe++){var We=Se[Xe],qe=[];if(de.push(qe),We.visible){var tt=We.interval;if(!(0>tt)){We=Av(We.figure);for(var rt=0;rt<Te;rt++)if(rt!==Xe){var ft=Se[rt];ft.visible&&Av(ft.figure)===We&&(ft=ft.interval,ft>tt&&qe.push(ft))}}}}for(Se=e.O.s,Te=Se.length,Xe=0;Xe<Te;Xe++){var Tt=Se[Xe];if(Tt.visible&&(qe=Tt.interval||1,We=Math.abs(qe),!(2>i*We*n))){if(tt=Tt.segmentIndex,(!isFinite(tt)||isNaN(tt))&&(tt=0),0>tt&&(tt=We-Math.min(-tt,We)),tt=Math.round(tt%We),We=Tt.opacity,rt=1,We!==1){if(We===0)continue;rt=t.globalAlpha,t.globalAlpha=rt*We}ft=de[Xe];var Sn=!1,Rn=Tt.strokeDashArray;if(Rn!==null&&(Sn=!0,t.js(Rn,Tt.strokeDashOffset)),Tt.figure==="LineV"&&Tt.stroke!==null&&0<Tt.strokeWidth){for(t.lineWidth=Tt.strokeWidth,Ho(e,t,Tt.stroke,!1,!1,o,a),t.beginPath(),Rn=Tt=Math.floor((re-i)/i);Rn<=Tt+O;Rn++){var _n=Rn*i+re;0<=_n&&_n<=p&&Pg(Rn,qe,tt,ft)&&(t.moveTo(_n,0),t.lineTo(_n,w))}t.stroke(),t.Se()}else if(Tt.figure==="LineH"&&Tt.stroke!==null&&0<Tt.strokeWidth){for(t.lineWidth=Tt.strokeWidth,Ho(e,t,Tt.stroke,!1,!1,o,a),t.beginPath(),Rn=Tt=Math.floor((X-r)/r);Rn<=Tt+D;Rn++)_n=Rn*r+X,0<=_n&&_n<=w&&Pg(Rn,qe,tt,ft)&&(t.moveTo(0,_n),t.lineTo(p,_n));t.stroke(),t.Se()}else if(Tt.figure==="BarV"&&Tt.fill!==null)for(Ho(e,t,Tt.fill,!0,!1,o,a),Tt=Tt.width,isNaN(Tt)&&(Tt=i),_n=Rn=Math.floor((re-i)/i);_n<=Rn+O;_n++){var ln=_n*i+re;0<=ln+Tt&&ln<=p&&Pg(_n,qe,tt,ft)&&t.fillRect(ln,0,Tt,w)}else if(Tt.figure==="BarH"&&Tt.fill!==null)for(Ho(e,t,Tt.fill,!0,!1,o,a),Tt=Tt.height,isNaN(Tt)&&(Tt=r),_n=Rn=Math.floor((X-r)/r);_n<=Rn+D;_n++)ln=_n*r+X,0<=ln+Tt&&ln<=w&&Pg(_n,qe,tt,ft)&&t.fillRect(0,ln,p,Tt);Sn&&t.fs(),We!==1&&(t.globalAlpha=rt)}}t.restore(),t.Vc(!1)};function Pg(e,t,n,r){if(0>t)return e%t===n;if(e%t!==n)return!1;t=r.length;for(var i=0;i<t;i++)if(e%r[i]===n)return!1;return!0}function Fg(){this.xa="Base"}Tn(Fg,Ss),Fg.prototype.measure=function(e,t,n,r,i){var o=r.length;if(e instanceof qr||e instanceof cn){var a=null,p=null;if(e instanceof cn&&(a=e),e instanceof qr&&(p=e,a=p.adornedPart,e.j===null&&(e.j=[])),a instanceof cn){var w=a;if(o===0)no(e.naturalBounds,0,0),e.measuredBounds.h(0,0,0,0);else{var O=e instanceof qr?null:a.path;t=a.routeBounds,n=e.jg,n.h(0,0,t.width,t.height);var D=w.points,X=a.pointsCount;p!==null?p.Ul(!1):a!==null&&a.Ul(!1),p=t.width;var re=t.height,de=e.j;if(de.length=0,O!==null){m0(e,p,re,O);var Se=O.measuredBounds;n.ed(Se),de.push(Se)}Se=dr.alloc();for(var Te=Ue.alloc(),Xe=Ue.alloc(),We=0;We<o;We++){var qe=r[We];if(qe!==O)if(qe.isPanelMain&&qe instanceof vr){m0(e,p,re,qe);var tt=qe.measuredBounds;n.ed(tt),de.push(tt)}else if(2>X)qe.measure(1/0,1/0,0,0),tt=qe.measuredBounds,n.ed(tt),de.push(tt);else{var rt=qe.segmentIndex,ft=qe.segmentFraction,Tt=qe.alignmentFocus;Tt.Mc()&&(Tt=jr);var Sn=qe.segmentOrientation,Rn=qe.segmentOffset;if(isNaN(rt)){var _n=w.ua;tt=yr(),_n.Qu(ft,tt);var ln=Ue.allocAt(tt[0],tt[1]);if(ln.add(w.i(0)),_n.type===un.j?ln.offset(-_n.startX,-_n.startY):(_n=_n.figures.first(),_n!==null&&ln.offset(-_n.startX,-_n.startY)),_n=tt[2],Sn!==Aa){var Gt=w.computeAngle(qe,Sn,_n);qe.Kb=Gt}Gt=ln.x-t.x;var ar=ln.y-t.y;Ue.free(ln),Mr(tt)}else if(rt<-X||rt>=X)tt=Ue.alloc(),w.vg(),w.computeMidPoint(tt),_n=w.midAngle,Sn!==Aa&&(Gt=w.computeAngle(qe,Sn,_n),qe.Kb=Gt),Gt=tt.x-t.x,ar=tt.y-t.y,Ue.free(tt);else{if(Gt=0,0<=rt?(ar=D.M(rt),tt=rt<X-1?D.M(rt+1):ar):(Gt=X+rt,ar=D.M(Gt),tt=0<Gt?D.M(Gt-1):ar),ar.Xa(tt)){0<=rt?(_n=0<rt?D.M(rt-1):ar,Gt=rt<X-2?D.M(rt+2):tt):(_n=Gt<X-1?D.M(Gt+1):ar,Gt=1<Gt?D.M(Gt-2):tt),ln=_n.Bf(ar);var er=tt.Bf(Gt);_n=ln>er+10?0<=rt?_n.ab(ar):ar.ab(_n):er>ln+10?0<=rt?tt.ab(Gt):Gt.ab(tt):0<=rt?_n.ab(Gt):Gt.ab(_n)}else _n=0<=rt?ar.ab(tt):tt.ab(ar);Sn!==Aa&&(Gt=w.computeAngle(qe,Sn,_n),qe.Kb=Gt),Gt=ar.x+(tt.x-ar.x)*ft-t.x,ar=ar.y+(tt.y-ar.y)*ft-t.y}qe.measure(1/0,1/0,0,0),tt=qe.measuredBounds,ln=qe.naturalBounds;var si=0;qe instanceof vr&&(si=qe.strokeWidth),er=ln.width+si;var Hi=ln.height+si;Se.reset(),Se.translate(-tt.x,-tt.y),Se.scale(qe.scale,qe.scale),Se.rotate(Sn===Aa?qe.angle:_n,er/2,Hi/2),Sn!==Mp&&Sn!==Pp||Se.rotate(90,er/2,Hi/2),Sn!==Dp&&Sn!==Fp||Se.rotate(-90,er/2,Hi/2),Sn===dm&&(45<_n&&135>_n||225<_n&&315>_n)&&Se.rotate(-_n,er/2,Hi/2),ln=new Nt(0,0,er,Hi),Te.xi(ln,Tt),Se.Ga(Te),Tt=-Te.x+si/2*qe.scale,qe=-Te.y+si/2*qe.scale,Xe.assign(Rn),si=isNaN(Rn.x);var _s=isNaN(Rn.y);if(si||_s){er=er/2+3,Hi=Hi/2+3;var Ms=45<=_n&&135>=_n,ma=225<=_n&&315>=_n;Sn===Aa&&(Ms||ma)?(Xe.x=_s?er:Rn.y,Xe.y=si?Hi:Rn.x,Ms?0<=rt||isNaN(rt)&&.5>ft||!si||(Xe.y=-Hi):ma&&((0<=rt||isNaN(rt)&&.5>ft)&&si&&(Xe.y=-Hi),_s&&(Xe.x=-er))):(si&&(Xe.x=0<=rt||isNaN(rt)&&.5>ft?er:-er),_s&&(Xe.y=-Hi),Xe.rotate(_n))}else Xe.rotate(_n);Gt+=Xe.x,ar+=Xe.y,ln.set(tt),ln.h(Gt+Tt,ar+qe,tt.width,tt.height),de.push(ln),n.ed(ln)}}if(a!==null)for(r=a.labelNodes;r.next();)r.value.measure(1/0,1/0);e.jg=n,e.position.h(t.x+n.x,t.y+n.y),no(i,n.width||0,n.height||0),dr.free(Se),Ue.free(Te),Ue.free(Xe)}}}},Fg.prototype.arrange=function(e,t){var n=t.length;if(e instanceof qr||e instanceof cn){var r=e,i=null;e instanceof qr&&(i=e,r=i.adornedPart);var o=e instanceof qr?null:r.path,a=e.j;if(a.length!==0){var p=0;if(o!==null&&p<a.length){var w=a[p];p++,o.arrange(w.x-e.jg.x,w.y-e.jg.y,w.width,w.height)}for(w=0;w<n;w++){var O=t[w];if(O!==o&&p<a.length){var D=a[p];p++,O.arrange(D.x-e.jg.x,D.y-e.jg.y,D.width,D.height)}}}if(t=r.points,n=t.count,2<=n&&e instanceof cn)for(o=e.labelNodes;o.next();){var X=e;a=o.value,p=a.segmentIndex,w=a.segmentFraction;var re=a.alignmentFocus;if(O=a.segmentOrientation,D=a.segmentOffset,isNaN(p)){var de=X.ua,Se=yr();de.Qu(w,Se);var Te=Ue.allocAt(Se[0],Se[1]);Te.add(X.i(0)),de.type===un.j||(de=de.figures.first()),Te.offset(-de.startX,-de.startY),de=Se[2],O!==Aa&&(X=X.computeAngle(a,O,de),a.angle=X),X=Te.x;var Xe=Te.y;Ue.free(Te),Mr(Se)}else if(p<-n||p>=n)Se=Ue.alloc(),de=X,Xe=Se,de.vg(),de.computeMidPoint(Xe),de=X.midAngle,O!==Aa&&(X=X.computeAngle(a,O,de),a.angle=X),X=Se.x,Xe=Se.y,Ue.free(Se);else{if(Te=0,0<=p?(Se=t.s[p],Xe=p<n-1?t.s[p+1]:Se):(Te=n+p,Se=t.s[Te],Xe=0<Te?t.s[Te-1]:Se),Se.Xa(Xe)){0<=p?(de=0<p?t.s[p-1]:Se,Te=p<n-2?t.s[p+2]:Xe):(de=Te<n-1?t.s[Te+1]:Se,Te=1<Te?t.s[Te-2]:Xe);var We=de.Bf(Se),qe=Xe.Bf(Te);de=We>qe+10?0<=p?de.ab(Se):Se.ab(de):qe>We+10?0<=p?Xe.ab(Te):Te.ab(Xe):0<=p?de.ab(Te):Te.ab(de)}else de=0<=p?Se.ab(Xe):Xe.ab(Se);O!==Aa&&(X=X.computeAngle(a,O,de),a.angle=X),X=Se.x+(Xe.x-Se.x)*w,Xe=Se.y+(Xe.y-Se.y)*w}if(re.ys())a.location=new Ue(X,Xe);else{re.Mc()&&(re=jr),Se=dr.alloc(),Se.reset(),Se.scale(a.scale,a.scale),Se.rotate(a.angle,0,0);var tt=a.naturalBounds;Te=Nt.allocAt(0,0,tt.width,tt.height),We=Ue.alloc(),We.xi(Te,re),Se.Ga(We),re=-We.x,qe=-We.y;var rt=tt.width,ft=tt.height;tt=Ue.alloc(),tt.assign(D);var Tt=isNaN(D.x),Sn=isNaN(D.y);if(Tt||Sn){rt=rt/2+3,ft=ft/2+3;var Rn=45<=de&&135>=de,_n=225<=de&&315>=de;O===Aa&&(Rn||_n)?(tt.x=Sn?rt:D.y,tt.y=Tt?ft:D.x,Rn?0<=p||isNaN(p)&&.5>w||!Tt||(tt.y=-ft):_n&&((0<=p||isNaN(p)&&.5>w)&&Tt&&(tt.y=-ft),Sn&&(tt.x=-rt))):(Tt&&(tt.x=0<=p||isNaN(p)&&.5>w?rt:-rt),Sn&&(tt.y=-ft),tt.rotate(de))}else tt.rotate(de);X+=tt.x,Xe+=tt.y,Se.pp(Te),re+=Te.x,qe+=Te.y,p=Ue.allocAt(X+re,Xe+qe),a.move(p),Ue.free(p),Ue.free(tt),Ue.free(We),Nt.free(Te),dr.free(Se)}}i!==null?i.Ul(!1):r.Ul(!1),r=V0(e),e.location.h(e.position.x+r.x,e.position.y+r.y),Ue.free(r)}};function m0(e,t,n,r){if(El(r)!==!1){var i=r.strokeWidth;i===0&&e instanceof qr&&e.type===qt.Link&&e.adornedObject instanceof vr&&(i=e.adornedObject.strokeWidth),i*=r.Ca,e instanceof cn&&e.ua!==null?(e=e.geometry.bounds,r.Ge(e.x-i/2,e.y-i/2,e.width+i,e.height+i)):e instanceof qr&&e.adornedPart.ua!==null?(e=e.adornedPart.ua.bounds,r.Ge(e.x-i/2,e.y-i/2,e.width+i,e.height+i)):r.Ge(-(i/2),-(i/2),t+i,n+i),i=r.desiredSize,i.w()||r.ua===null?r.dc.h(0,0,i.width,i.height):r.dc.assign(r.ua.bounds),gs(r,!1)}}function Ep(){this.xa="Base"}Tn(Ep,Ss),Ep.prototype.measure=function(e,t,n,r,i,o,a){var p=e.Pb();e.graduatedBounds=[];var w=p.margin,O=w.right+w.left,D=w.top+w.bottom;p.measure(t,n,o,a);var X=p.measuredBounds,re=new Nt(-w.left,-w.top,Math.max(X.width+O,0),Math.max(X.height+D,0));e.graduatedBounds.push(re),i.assign(re);for(var de=p.geometry,Se=p.strokeWidth,Te=de.flattenedSegments,Xe=de.flattenedLengths,We=de.flattenedTotalLength,qe=Te.length,tt=0,rt=0,ft=yr(),Tt=0;Tt<qe;Tt++){var Sn=Te[Tt],Rn=[];rt=tt=0;for(var _n=Sn.length,ln=0;ln<_n;ln+=2){var Gt=Sn[ln],ar=Sn[ln+1];if(ln!==0){var er=180*Math.atan2(ar-rt,Gt-tt)/Math.PI;0>er&&(er+=360),Rn.push(er)}tt=Gt,rt=ar}ft.push(Rn)}if(e.graduatedIntervals===null){for(var si=[],Hi=e.O.s,_s=Hi.length,Ms=0;Ms<_s;Ms++){var ma=Hi[Ms],As=[];if(si.push(As),ma.visible){var sh=ma.interval;if(!(0>sh)){for(var es=0;es<_s;es++)if(es!==Ms){var Iu=Hi[es];if(Iu.visible&&ma.constructor===Iu.constructor){var va=Iu.interval;va>sh&&As.push(va)}}}}}e.graduatedIntervals=si}var ah=e.graduatedIntervals,_l=e.O.s,nu=_l.length,ul=0,Ja=0,Fh=We;e.graduatedMarks=[];for(var Ou,Wd=0;Wd<nu;Wd++){var cl=_l[Wd];if(Ou=[],cl.visible&&cl!==p){var ya=Math.abs(cl.interval),ag=e.graduatedTickUnit;if(!(2>ag*ya*We/e.graduatedRange&&cl.graduatedSkip===null)){var Xf=Xe[0][0],Ju=0,Qa=0;Ja=We*cl.graduatedStart-1e-4,Fh=We*cl.graduatedEnd+1e-4;var vf=ag*ya,hl=e.graduatedTickBase;if(hl<e.graduatedMin){var Bh=(e.graduatedMin-hl)/vf;Bh=Bh%1===0?Bh:Math.floor(Bh+1),hl+=Bh*vf}else hl>e.graduatedMin+vf&&(hl-=Math.floor((hl-e.graduatedMin)/vf)*vf);for(var tv=ah[Wd],lg=hl,Qy=1e-6*e.graduatedMax,gc=1;hl<=e.graduatedMax+Qy;gc++){e:{for(var Mc=tv.length,Zf=0;Zf<Mc;Zf++){var jh=(hl-e.graduatedTickBase)%(tv[Zf]*e.graduatedTickUnit),Vd=1e-6*e.graduatedTickUnit;if(jh<Vd&&jh>-Vd){var Uh=!1;break e}}Uh=!0}if(Uh&&(hl>e.graduatedMax&&(hl=e.graduatedMax),cl.graduatedSkip===null||cl instanceof Vi&&!cl.graduatedSkip(hl,cl)||cl instanceof vr&&!cl.graduatedSkip(hl,cl))&&(ul=(hl-e.graduatedMin)*We/e.graduatedRange,ul>We&&(ul=We),Ja<=ul&&ul<=Fh)){for(var mc=ft[Ju][Qa],lh=Xe[Ju][Qa];Ju<Xe.length;){for(;ul>Xf&&Qa<Xe[Ju].length-1;)Qa++,mc=ft[Ju][Qa],lh=Xe[Ju][Qa],Xf+=lh;if(ul<=Xf)break;Ju++,Qa=0,mc=ft[Ju][Qa],lh=Xe[Ju][Qa],Xf+=lh}var qa=Te[Ju],Qu=qa[2*Qa],nv=qa[2*Qa+1],Dc=(ul-(Xf-lh))/lh,Kd=new Ue(Qu+(qa[2*Qa+2]-Qu)*Dc+Se/2-de.bounds.x,nv+(qa[2*Qa+3]-nv)*Dc+Se/2-de.bounds.y);Kd.scale(p.scale,p.scale);e:{var Lu=mc,yf=ft[Ju];if(!(.5005>Dc&&.4995<Dc)){var qu=Lu;if(.5>Dc?0<Qa?qu=yf[Qa-1]:vt.$(qa[0],qa[qa.length-2])&&vt.$(qa[1],qa[qa.length-1])&&(qu=yf[yf.length-1]):.5<Dc&&(Qa+1<yf.length?qu=yf[Qa+1]:vt.$(qa[0],qa[qa.length-2])&&vt.$(qa[1],qa[qa.length-1])&&(qu=yf[0])),Lu!==qu){var Jf=Math.abs(Lu-qu);if(180<Jf&&(Lu<qu?Lu+=360:qu+=360,Jf=Math.abs(Lu-qu)),5e-4>Dc||.9995<Dc){mc=(Lu+qu)/2%360;break e}if(10>Jf){var Yd=1-Math.abs(.5-Dc);mc=(Lu*Yd+qu*(1-Yd))%360;break e}}}mc=Lu}if(cl instanceof Vi){var Su="";cl.graduatedFunction!==null?(Su=cl.graduatedFunction(hl,cl),Su=Su!=null?Su.toString():""):Su=(+hl.toFixed(2)).toString(),Su!==""&&Ou.push({$l:Kd,angle:mc,text:Su})}else Ou.push({$l:Kd,angle:mc})}hl=lg+gc*vf}}}e.graduatedMarks.push(Ou)}Mr(ft);var zs=e.graduatedMarks;if(zs!==null)for(var ug=r.length,Oa=0;Oa<ug;Oa++){var ts=r[Oa],La=zs[Oa];if(ts.visible&&ts!==p&&La.length!==0){if(ts instanceof vr){var Pc=e,uh=i,bf=ts.alignmentFocus;bf.Mc()&&(bf=Es);var qy=ts.angle;ts.Kb=0,ts.measure(1/0,1/0,0,0),ts.Kb=qy;var rv=ts.measuredBounds,$d=rv.width,Sf=rv.height,Qf=Nt.allocAt(0,0,$d,Sf),el=Ue.alloc();el.xi(Qf,bf),Nt.free(Qf);for(var Fc=-el.x,Mu=-el.y,Gl=new Nt,Hh=La.length,Xd=0;Xd<Hh;Xd++)for(var zh=La[Xd],iv=zh.$l.x,Zd=zh.$l.y,zo=zh.angle,xu=0;4>xu;xu++){switch(xu){case 0:el.h(Fc,Mu);break;case 1:el.h(Fc+$d,Mu);break;case 2:el.h(Fc,Mu+Sf);break;case 3:el.h(Fc+$d,Mu+Sf)}el.rotate(zo+ts.angle),el.offset(iv,Zd),Xd===0&&xu===0?Gl.h(el.x,el.y,0,0):Gl.Ye(el),el.offset(-iv,-Zd),el.rotate(-zo-ts.angle)}Ue.free(el),Pc.graduatedBounds!==null&&Pc.graduatedBounds.push(Gl),fi(uh,Gl.x,Gl.y,Gl.width,Gl.height)}else if(ts instanceof Vi){var ru=e,ov=i;ru.temporaryTextBlock===null&&(ru.temporaryTextBlock=new Vi);var fl=ru.temporaryTextBlock;I0(fl,ts);var ch=ts.alignmentFocus;ch.Mc()&&(ch=Es);for(var iu=ts.segmentOrientation,Jd=ts.segmentOffset,Gh=new Nt,cg=0,Qd=0,ec=0,xf=0,Wh=0,qd=La.length,hh=0;hh<qd;hh++){var vc=La[hh];cg=vc.$l.x,Qd=vc.$l.y,ec=vc.angle,Wh=xf=ts.angle,iu!==Aa&&(Wh=iu===Lp||iu===fm?ec+ts.angle:ec,xf=cn.computeAngle(iu,Wh)),fl.Kb=xf,fl.text=vc.text||"",fl.measure(1/0,1/0,0,0);var fh=fl.measuredBounds,Bc=fl.naturalBounds,dh=Bc.width,Ef=Bc.height,Du=dr.alloc();Du.reset(),Du.translate(-fh.x,-fh.y),Du.scale(fl.scale,fl.scale),Du.rotate(Wh,dh/2,Ef/2),iu!==Mp&&iu!==Pp||Du.rotate(90,dh/2,Ef/2),iu!==Dp&&iu!==Fp||Du.rotate(-90,dh/2,Ef/2),iu===dm&&(45<ec&&135>ec||225<ec&&315>ec)&&Du.rotate(-ec,dh/2,Ef/2);var qf=Nt.allocAt(0,0,dh,Ef),ph=Ue.alloc();ph.xi(qf,ch),Du.Ga(ph);var ed=-ph.x,e0=-ph.y,jc=Ue.alloc();jc.assign(Jd),isNaN(jc.x)&&(jc.x=dh/2+3),isNaN(jc.y)&&(jc.y=-(Ef/2+3)),jc.rotate(ec),cg+=jc.x+ed,Qd+=jc.y+e0;var wf=new Nt(cg,Qd,fh.width,fh.height),hg=new Nt(fh.x,fh.y,fh.width,fh.height),t0=new Nt(Bc.x,Bc.y,Bc.width,Bc.height);vc.Sz=xf,vc.lineCount=fl.lineCount,vc.lines=[fl.Cb,fl.Ih,fl.df,fl.Le,fl.Qc,fl.Qb,fl.ze],vc.actualBounds=wf,vc.measuredBounds=hg,vc.naturalBounds=t0,hh===0?Gh.assign(wf):Gh.ed(wf),Ue.free(jc),Ue.free(ph),Nt.free(qf),dr.free(Du)}ru.graduatedBounds!==null&&ru.graduatedBounds.push(Gh),fi(ov,Gh.x,Gh.y,Gh.width,Gh.height)}gs(ts,!1)}}},Ep.prototype.arrange=function(e,t,n){if(e.graduatedBounds!==null){var r=e.Pb(),i=e.graduatedMarks;if(i!==null){var o=e.graduatedBounds,a=0,p=o[a];a++,r!==null&&r.arrange(p.x-n.x,p.y-n.y,p.width,p.height);for(var w=t.length,O=0;O<w;O++){var D=t[O];p=i[O],D.visible&&D!==r&&p.length!==0&&(p=o[a],a++,D.arrange(p.x-n.x,p.y-n.y,p.width,p.height))}e.graduatedBounds=null}}},Ep.prototype.gc=function(e,t,n){var r=n.$i;n.$i=!0;var i=e.naturalBounds,o=i.width,a=i.height;i=t instanceof sl,t.save(),t.beginPath(),t.rect(-1,-1,o+1,a+1),t.clip(),t.Se(),o=e.Pb(),o.gc(t,n),a=e.Df()*n.scale,0>=a&&(a=1);for(var p=o.actualBounds,w=e.O.s,O=e.graduatedMarks,D=w.length,X=0;X<D;X++){var re=w[X],de=O[X],Se=de.length;if(re.visible&&re!==o&&de.length!==0){if(re instanceof vr){if(!(2>e.graduatedTickUnit*re.interval*o.geometry.flattenedTotalLength/e.graduatedRange*a&&re.graduatedSkip===null)){var Te=re.measuredBounds,Xe=re.strokeWidth*re.scale,We=re.alignmentFocus;We.Mc()&&(We=Es);for(var qe=0;qe<Se;qe++){var tt=de[qe].$l,rt=de[qe].angle,ft=We,Tt=re.Ab;Tt.reset(),Tt.translate(tt.x+p.x,tt.y+p.y),Tt.rotate(rt+re.angle,0,0),Tt.translate(-Te.width*ft.x+ft.offsetX+Xe/2,-Te.height*ft.y+ft.offsetY+Xe/2),Tt.scale(re.scale,re.scale),Jl(re,!1),re.wh.set(re.Ab),re.Kk=re.scale,Pl(re,!1),re.gc(t,n),i&&(e.svg.appendChild(re.svg),re.svg=null),re.Ab.reset()}}}else if(re instanceof Vi)for(e.temporaryTextBlock===null&&(e.temporaryTextBlock=new Vi),Te=e.temporaryTextBlock,I0(Te,re),Xe=0;Xe<Se;Xe++)We=de[Xe],We.actualBounds&&We.measuredBounds&&We.naturalBounds&&(Te.ec=We.text||"",Te.Kb=We.Sz||0,Te.Gc=We.lineCount||0,qe=We.lines,qe!==void 0&&(Te.Cb=qe[0],Te.Ih=qe[1],Te.df=qe[2],Te.Le=qe[3],Te.Qc=qe[4],Te.Qb=qe[5],Te.ze=qe[6]),We.naturalBounds&&(Te.dc=We.naturalBounds),We.actualBounds&&(qe=We.actualBounds,Te.arrange(qe.x,qe.y,qe.width,qe.height)),qe=We.actualBounds,Te.arrange(qe.x,qe.y,qe.width,qe.height),tt=We.measuredBounds,We=We.naturalBounds,rt=Te.Ab,rt.reset(),rt.translate(qe.x+p.x,qe.y+p.y),rt.translate(-tt.x,-tt.y),Te.no(rt,We.x,We.y,We.width,We.height),Jl(Te,!1),Te.wh.set(Te.Ab),Te.Kk=Te.scale,Pl(Te,!1),Te.Ng=re.part,Te.Me=re.panel,Te.gc(t,n),Te.Me=null,Te.Ng=null,i&&(e.svg.appendChild(Te.svg),Te.svg=null))}}n.$i=r,t.restore(),t.Vc(!0)};function qt(e,t){if(gt.call(this),this.na=null,e===void 0)this.na=qt.Position;else if(typeof e=="string"){var n=pu.I(e);n!==null&&(this.na=n)}else e instanceof Ss?this.na=e:e&&(this.na=qt.Position,t=e);this.na===null&&Lt("Panel type not specified or PanelLayout not loaded: "+e),this.l=this.l|4194304|(this.na===qt.Grid?1048576:0),this.O=new tn,this.yb=fo,this.Tm=is,this.Uf=cr,this.$g=null,this.$e="",this.jg=new Nt(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=Dn,this.jn=Ai,this.kn=kr,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,t&&Object.assign(this,t)}Tn(qt,gt),qt.prototype.cloneProtected=function(e){gt.prototype.cloneProtected.call(this,e),e.na=this.na,e.yb=this.yb.J(),e.Tm=this.Tm.J(),e.Uf=this.Uf,e.$e=this.$e,e.jg.assign(this.jg),this.T!==null&&(e.T=this.T.copy(e)),e.xo=this.xo,e.jn=this.jn.J(),e.kn=this.kn.J(),this.ra!==null&&(e.ra=this.ra.copy()),e.ub=this.ub,e.zn=this.zn,e.Hh=this.Hh},qt.prototype.Af=function(e){gt.prototype.Af.call(this,e),e.O=this.O;for(var t=e.O.s,n=t.length,r=0;r<n;r++)t[r].Me=e;e.$g=null},qt.prototype.copy=function(){var e=gt.prototype.copy.call(this);if(e!==null){for(var t=this.O.s,n=t.length,r=0;r<n;r++){var i=t[r].copy();i.wi(e),i.Ng=null;var o=e.O,a=o.count;if(o.Gb(a,i),o=e.part,o!==null){o.Rh=null,i.portId!==null&&o instanceof En&&(o.Te=!0);var p=e.diagram;p!==null&&p.undoManager.isUndoingRedoing||o.cb(xo,"elements",e,null,i,null,a)}}return e}return null},ye=qt.prototype,ye.toString=function(){return"Panel("+this.type.name+")#"+it(this)},ye.Pn=function(e){gt.prototype.Pn.call(this,e);for(var t=this.O.s,n=t.length,r=0;r<n;r++)t[r].Pn(e)},ye.hh=function(e,t){if(this.na===qt.Grid)e.yc(),this.na.gc(this,e,t);else if(this.na===qt.Graduated)e.yc(),this.na.gc(this,e,t);else{if(this.na===qt.Table)if(e.yc(),e instanceof sl){var n=e.yd;e.yd=Cg(e,"gojs-ts"),_v(this,e),e.nh.pop(),e.yd=n}else _v(this,e);(n=this.isClipping&&this.na===qt.Spot)&&e.save();for(var r=this.Pb(),i=this.O.s,o=i.length,a=0;a<o;a++){var p=i[a];n&&p===r&&(e.clipInsteadOfFill=!0),p.gc(e,t),n&&p===r&&(e.clipInsteadOfFill=!1)}n&&(e.restore(),e.Vc(!0))}};function _v(e,t){t.lineCap="butt";var n=0<e.rowCount?e.rowDefs:null,r=0<e.columnCount?e.colDefs:null;n!==null&&Bg(e,t,!0,n,!0),r!==null&&Bg(e,t,!1,r,!0),n!==null&&v0(e,t,!0,n),r!==null&&v0(e,t,!1,r),n!==null&&Bg(e,t,!0,n,!1),r!==null&&Bg(e,t,!1,r,!1)}function v0(e,t,n,r){for(var i=r.length,o=e.actualBounds,a=e.naturalBounds,p=!0,w=0;w<i;w++){var O=r[w];if(O!==void 0&&O.actual!==0)if(p)p=!1;else{if(n){if(O.position>a.height)continue}else if(O.position>a.width)continue;var D=O.separatorStrokeWidth;isNaN(D)&&(D=n?e.defaultRowSeparatorStrokeWidth:e.defaultColumnSeparatorStrokeWidth);var X=O.separatorStroke;if(X===null&&(X=n?e.defaultRowSeparatorStroke:e.defaultColumnSeparatorStroke),D!==0&&X!==null){Ho(e,t,X,!1,!1,a,o),X=!1;var re=O.separatorDashArray;re===null&&(re=n?e.defaultRowSeparatorDashArray:e.defaultColumnSeparatorDashArray),re!==null&&(X=!0,t.js(re,0)),t.beginPath(),re=O.position+D,n?re>a.height&&(D-=re-a.height):re>a.width&&(D-=re-a.width),O=O.position+D/2,t.lineWidth=D,D=e.yb,n?(O+=D.top,re=a.width-D.right,t.moveTo(D.left,O),t.lineTo(re,O)):(O+=D.left,re=a.height-D.bottom,t.moveTo(O,D.top),t.lineTo(O,re)),t.stroke(),t.Se(),X&&t.fs()}}}}function Bg(e,t,n,r,i){for(var o=r.length,a=e.actualBounds,p=e.naturalBounds,w=y0(e,!0),O=y0(e,!1),D=0;D<o;D++){var X=r[D];if(X!==void 0&&X.background!==null&&X.coversSeparators!==i&&X.actual!==0){var re=n?a.height:a.width;if(!(X.position>re)){var de=X.Wc(),Se=X.separatorStrokeWidth;isNaN(Se)&&(Se=n?e.defaultRowSeparatorStrokeWidth:e.defaultColumnSeparatorStrokeWidth);var Te=X.separatorStroke;Te===null&&(Te=n?e.defaultRowSeparatorStroke:e.defaultColumnSeparatorStroke),(Te===null||X.index===(n?w:O))&&(Se=0),de-=Se,Se=X.position+Se,de+=X.actual,Se+de>re&&(de=re-Se),0>=de||(re=e.yb,Ho(e,t,X.background,!0,!1,p,a),n?t.fillRect(re.left,Se+re.top,a.width-(re.left+re.right),de):t.fillRect(Se+re.left,re.top,de,a.height-(re.top+re.bottom)))}}}}function y0(e,t){for(var n=t?e.rowCount:e.columnCount,r=0;r<n;r++){var i=t?e.rowDefs[r]:e.colDefs[r];if(i!==void 0)return i.index}return 0}function Av(e){return e==="LineV"||e==="BarV"}ye.lv=function(){for(var e=this.O.s,t=e.length,n=0;n<t;n++)e[n].lv();this.Uc=!0},ye.kk=function(e,t,n){if(!gt.prototype.kk.call(this,e,t,n))return!1;if(this.type===qt.Table)n=this.svg.getElementsByClassName("gojs-ts"),n=n.length!==0?n[0]:null,n!==null&&(n.innerHTML=""),e.yd=n,_v(this,e),e.yd=null;else if(this.na===qt.Grid||this.na===qt.Graduated)return this.svg.innerHTML="",this.svg.remove(),!1;n=this.O.s;for(var r=n.length,i=0;i<r;i++)n[i].gc(e,t);return!0},ye.nk=function(){return!0},ye.$o=function(e,t,n,r){if(!this.isClipping)if(this.Dd()&&e.bk!==null){e=e.bk,t=this.O.s;for(var i=0,o=0,a=0;a<t.length;a++)if(t[a].Ed()){var p=t[a].actualBounds;i=a===0?p.x:Math.min(p.x,i),o=a===0?p.y:Math.min(p.y,o)}r.setAttributeNS(null,"clip-path","path('M "+(e.x-n.x-i)+","+(e.y-n.y-o)+" l "+e.width+" 0 l 0 "+e.height+" l -"+e.width+" 0 z')")}else gt.prototype.$o.call(this,e,t,n,r)},ye.Sj=function(e,t,n,r,i){var o=this.se(),a=this.transform,p=1/(a.m11*a.m22-a.m12*a.m21),w=a.m22*p,O=-a.m12*p,D=-a.m21*p,X=a.m11*p,re=p*(a.m21*a.dy-a.m22*a.dx),de=p*(a.m12*a.dx-a.m11*a.dy);if(this.areaBackground!==null)return a=this.actualBounds,vt.Ff(a.left,a.top,a.right,a.bottom,e,t,n,r,i);if(this.background!==null)return o=e*w+t*D+re,p=e*O+t*X+de,e=n*w+r*D+re,w=n*O+r*X+de,i.h(0,0),n=this.naturalBounds,o=vt.Ff(0,0,n.width,n.height,o,p,e,w,i),i.transform(a),o;o||(w=1,D=O=0,X=1,de=re=0),p=e*w+t*D+re,e=e*O+t*X+de,w=n*w+r*D+re,n=n*O+r*X+de,i.h(w,n),r=(w-p)*(w-p)+(n-e)*(n-e),O=!1,X=this.O.s,de=X.length,D=Ue.alloc(),re=null,t=1/0;var Se=null,Te=this.isClipping&&this.na===qt.Spot;Te&&(Se=Ue.alloc(),re=this.Pb(),(O=re.Sj(p,e,w,n,Se))&&(t=(p-Se.x)*(p-Se.x)+(e-Se.y)*(e-Se.y)));for(var Xe=0;Xe<de;Xe++){var We=X[Xe];We.visible&&We!==re&&We.Sj(p,e,w,n,D)&&(O=!0,We=(p-D.x)*(p-D.x)+(e-D.y)*(e-D.y),We<r&&(r=We,i.set(D)))}return Te&&(t>r&&i.set(Se),Ue.free(Se)),Ue.free(D),o&&i.transform(a),O},ye.Gj=function(){for(var e=this.O.s,t=e.length,n=0;n<t;n++)e[n].Gj();gt.prototype.Gj.call(this)},ye.v=function(e){if(!El(this)){gt.prototype.v.call(this,e),e=null,(this.na===qt.Auto||this.na===qt.Link)&&(e=this.Pb());for(var t=this.O.s,n=t.length,r=0;r<n;r++){var i=t[r];if((i===e||i.isPanelMain)&&i.v(!0),!i.desiredSize.w()){var o=Ba(i,!1);(i instanceof _a||i instanceof qt||i instanceof Vi||o!==Wt)&&i.v(!0)}}}},ye.Uj=function(){if(!El(this)){gs(this,!0),ic(this,!0);for(var e=this.O.s,t=e.length,n=0;n<t;n++)e[n].Uj()}},ye.Uk=function(){if(!(this.l&2048)){Jl(this,!0),Pl(this,!0);for(var e=this.O.s,t=e.length,n=0;n<t;n++)e[n].Wu()}},ye.Wu=function(){Pl(this,!0);for(var e=this.O.s,t=e.length,n=0;n<t;n++)e[n].Wu()},ye.Wl=function(e,t,n,r){var i=this.jg;i.h(0,0,0,0);var o=this.desiredSize,a=this.minSize;n===void 0&&(n=a.width,r=a.height),n=Math.max(n,a.width),r=Math.max(r,a.height);var p=this.maxSize;isNaN(o.width)||(e=Math.min(o.width,p.width)),isNaN(o.height)||(t=Math.min(o.height,p.height)),e=Math.max(n,e),t=Math.max(r,t);var w=this.yb;e=Math.max(e-w.left-w.right,0),t=Math.max(t-w.top-w.bottom,0);var O=this.O.s;O.length!==0&&this.na.measure(this,e,t,O,i,n,r),e=i.width+w.left+w.right,w=i.height+w.top+w.bottom,isFinite(o.width)&&(e=o.width),isFinite(o.height)&&(w=o.height),e=Math.min(p.width,e),w=Math.min(p.height,w),e=Math.max(a.width,e),w=Math.max(a.height,w),e=Math.max(n,e),w=Math.max(r,w),no(i,e,w),no(this.naturalBounds,e,w),this.Ge(0,0,e,w)},ye.Pb=function(){if(this.$g===null){var e=this.O.s,t=e.length;if(t===0)return null;for(var n=0;n<t;n++){var r=e[n];if(r.isPanelMain===!0)return this.$g=r}this.$g=e[0]}return this.$g};function Ic(e){return e.part!==null?e.part.locationObject:null}ye.eh=function(e,t,n,r){var i=this.O.s;if(this.actualBounds.h(e,t,n,r),i.length!==0){if(!this.desiredSize.w()){e=Ba(this,!0);var o=this.measuredBounds;t=o.width,o=o.height;var a=this.Kg,p=a.left+a.right;switch(a=a.top+a.bottom,t===n&&o===r&&(e=Wt),e){case Wt:(t>n||o>r)&&(this.v(),this.measure(t>n?n:t,o>r?r:o,0,0));break;case Xt:this.v(!0),this.measure(n+p,r+a,0,0);break;case Bn:this.v(!0),this.measure(n+p,o+a,0,0);break;case Kn:this.v(!0),this.measure(t+p,r+a,0,0)}}this.na.arrange(this,i,this.jg)}},ye.gh=function(e){var t=this.naturalBounds,n=Ic(this);if($i(0,0,t.width,t.height,e.x,e.y)){t=this.O.s;for(var r=t.length,i=Ue.allocAt(0,0);r--;){var o=t[r];if((o.visible||o===n)&&(wr(i.set(e),o.transform),o.ca(i)))return Ue.free(i),!0}return Ue.free(i),!(this.Ma===null&&this.areaBackground===null)}return!1},ye.ks=function(e){if(this.bindingId===e)return this;for(var t=this.O.s,n=t.length,r=0;r<n;r++){var i=t[r].ks(e);if(i!==null)return i}return null},ye.qm=function(e,t){if(t(this,e),e instanceof qt){e=e.O.s;for(var n=e.length,r=0;r<n;r++)this.qm(e[r],t)}};function uf(e,t){b0(e,e,t)}function b0(e,t,n){n(t),t=t.O.s;for(var r=t.length,i=0;i<r;i++){var o=t[i];o instanceof qt&&b0(e,o,n)}}function M1(e,t){S0(e,e,t)}function S0(e,t,n){if(n(t),t instanceof qt){t=t.O.s;for(var r=t.length,i=0;i<r;i++)S0(e,t[i],n)}}ye.Nl=function(e){return x0(this,this,e)};function x0(e,t,n){if(n(t))return t;if(t instanceof qt){t=t.O.s;for(var r=t.length,i=0;i<r;i++){var o=x0(e,t[i],n);if(o!==null)return o}}return null}ye.fb=function(e){if(this.name===e)return this;var t=this.O.s,n=t.length;this.Hh===null&&this.itemTemplateMap===null||(n=wp(this));for(var r=0;r<n;r++){var i=t[r];if(i instanceof qt){var o=i.fb(e);if(o!==null)return o}if(i.name===e)return i}return null};function E0(e){e=e.O.s;for(var t=e.length,n=0,r=0;r<t;r++){var i=e[r];i instanceof qt?n=Math.max(n,E0(i)):i instanceof vr&&(n=Math.max(n,i.ig/2*i.strokeMiterLimit*i.Df()))}return n}ye.se=function(){return!(this.type===qt.TableRow||this.type===qt.TableColumn)};function Zc(e){return e.type===qt.TableRow||e.type===qt.TableColumn}ye.ic=function(e,t,n){if(this.pickable===!1||(t===void 0&&(t=null),n===void 0&&(n=null),Ca(this)))return null;var r=this.naturalBounds,i=1/this.Df(),o=this.se(),a=o?e:wr(Ue.allocAt(e.x,e.y),this.transform),p=this.diagram,w=10,O=5;if(p!==null&&(w=p.Ql("extraTouchArea"),O=w/2),$i(-(O*i),-(O*i),r.width+w*i,r.height+w*i,a.x,a.y)){if(!this.isAtomic){i=this.O.s;var D=i.length;if(p=Ue.alloc(),O=(w=this.isClipping&&this.na===qt.Spot)?this.Pb():null,w&&(O.se()?wr(p.set(e),O.transform):p.set(e),!O.ca(p)))return Ue.free(p),o||Ue.free(a),null;for(var X=Ic(this);D--;){var re=i[D];if((re.visible||re===X)&&(re.se()?wr(p.set(e),re.transform):p.set(e),!w||re!==O)){var de=null;if(re instanceof qt?de=re.ic(p,t,n):re.pickable===!0&&re.ca(p)&&(de=re),de!==null&&(t!==null&&(de=t(de)),de!==null&&(n===null||n(de))))return Ue.free(p),o||Ue.free(a),de}}Ue.free(p)}return this.background===null&&this.areaBackground===null?(o||Ue.free(a),null):(e=$i(0,0,r.width,r.height,a.x,a.y)?this:null,o||Ue.free(a),e)}return o||Ue.free(a),null},ye.ji=function(e,t,n,r){if(this.pickable===!1)return!1;t===void 0&&(t=null),n===void 0&&(n=null);var i=this.naturalBounds,o=this.se(),a=o?e:wr(Ue.allocAt(e.x,e.y),this.transform);if(i=$i(0,0,i.width,i.height,a.x,a.y),Zc(this)||i){if(!this.isAtomic){for(var p=this.O.s,w=p.length,O=Ue.alloc(),D=Ic(this);w--;){var X=p[w];if(X.visible||X===D){X.se()?wr(O.set(e),X.transform):O.set(e);var re=X;X=X instanceof qt?X:null,(X!==null?X.ji(O,t,n,r):re.ca(O))&&re.pickable!==!1&&(t!==null&&(re=t(re)),re===null||n!==null&&!n(re)||r.add(re))}}Ue.free(O)}return o||Ue.free(a),i&&(this.background!==null||this.areaBackground!==null)}return o||Ue.free(a),!1},ye.Cf=function(e,t,n,r,i,o){if(this.pickable===!1)return!1;t===void 0&&(t=null),n===void 0&&(n=null);var a=o;if(o===void 0&&(a=dr.alloc(),a.reset()),a.multiply(this.transform),this.fh(e,a))return kv(this,t,n,i),o===void 0&&dr.free(a),!0;if(this.Yc(e,a)){if(!this.isAtomic)for(var p=Ic(this),w=this.O.s,O=w.length;O--;){var D=w[O];if(D.visible||D===p){var X=D.actualBounds,re=this.naturalBounds;X.x>re.width||X.y>re.height||0>X.x+X.width||0>X.y+X.height||(X=D,D=D instanceof qt?D:null,re=dr.alloc(),re.set(a),(D!==null?D.Cf(e,t,n,r,i,re):Ts(X,e,r,re))&&(t!==null&&(X=t(X)),X===null||n!==null&&!n(X)||i.add(X)),dr.free(re))}}return o===void 0&&dr.free(a),r}return o===void 0&&dr.free(a),!1};function kv(e,t,n,r){for(var i=e.O.s,o=i.length;o--;){var a=i[o];if(a.visible){var p=a.actualBounds,w=e.naturalBounds;p.x>w.width||p.y>w.height||0>p.x+p.width||0>p.y+p.height||(a instanceof qt&&kv(a,t,n,r),t!==null&&(a=t(a)),a===null||n!==null&&!n(a)||r.add(a))}}}ye.og=function(e,t,n,r,i,o){if(this.pickable===!1)return!1;n===void 0&&(n=null),r===void 0&&(r=null);var a=this.naturalBounds,p=this.se(),w=p?e:wr(Ue.allocAt(e.x,e.y),this.transform),O=p?t:wr(Ue.allocAt(t.x,t.y),this.transform),D=w.Bf(O),X=0<w.x&&w.x<a.width&&0<w.y&&w.y<a.height||rr(w.x,w.y,0,0,0,a.height)<=D||rr(w.x,w.y,0,a.height,a.width,a.height)<=D||rr(w.x,w.y,a.width,a.height,a.width,0)<=D||rr(w.x,w.y,a.width,0,0,0)<=D;if(a=w.zd(0,0)<=D&&w.zd(0,a.height)<=D&&w.zd(a.width,0)<=D&&w.zd(a.width,a.height)<=D,p||(Ue.free(w),Ue.free(O)),X){if(!this.isAtomic){w=Ue.alloc(),O=Ue.alloc(),D=Ic(this);for(var re=this.O.s,de=re.length;de--;){var Se=re[de];if(Se.visible||Se===D){var Te=Se.actualBounds,Xe=this.naturalBounds;(!p||!(Te.x>Xe.width||Te.y>Xe.height||0>Te.x+Te.width||0>Te.y+Te.height))&&(Se.se()?(Te=Se.transform,wr(w.set(e),Te),wr(O.set(t),Te)):(w.set(e),O.set(t)),Te=Se,Se=Se instanceof qt?Se:null,(Se!==null?Se.og(w,O,n,r,i,o):Te.tx(w,O,i))&&(n!==null&&(Te=n(Te)),Te===null||r!==null&&!r(Te)||o.add(Te)))}}Ue.free(w),Ue.free(O)}return i?X:a}return!1};function Nv(e){var t=null;return e instanceof vr&&(t=e.spot1,t===is&&(t=null),e=e.geometry,e!==null&&t===null&&(t=e.spot1)),t===null&&(t=No),t}function Rv(e){var t=null;return e instanceof vr&&(t=e.spot2,t===is&&(t=null),e=e.geometry,e!==null&&t===null&&(t=e.spot2)),t===null&&(t=ks),t}ye.add=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];for(n=0;n<t.length;n++)this.Gb(this.O.count,t[n]);return this},ye.M=function(e){return this.O.M(e)},ye.Gb=function(e,t){t instanceof zn&&Lt("Cannot add a Part to a Panel: "+t+"; use a Panel instead"),(this===t||this.rg(t))&&(this===t&&Lt("Cannot make a Panel contain itself: "+this.toString()),Lt("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+t.toString()));var n=t.panel;if(n!==null&&n!==this&&Lt("Cannot add a GraphObject that already belongs to another Panel to this Panel: "+t.toString()+", already contained by "+n.toString()+", cannot be shared by this Panel: "+this.toString()),this.na!==qt.Grid||t instanceof vr||Lt("Can only add Shapes to a Grid Panel, not: "+t),this.na!==qt.Graduated||t instanceof vr||t instanceof Vi||Lt("Can only add Shapes or TextBlocks to a Graduated Panel, not: "+t),t.wi(this),t.Ng=null,this.itemArray!==null){var r=t.data;r!==null&&typeof r=="object"&&(this.ge===null&&(this.ge=new nn),this.ge.add(r,t))}var i=this.O;if(r=-1,n===this){for(var o=-1,a=this.O.s,p=a.length,w=0;w<p;w++)if(a[w]===t){o=w;break}if(o!==-1){if(o===e||o+1>=i.count&&e>=i.count)return;i.mb(o),r=o}else Lt("element "+t.toString()+" has panel "+n.toString()+" but is not contained by it.")}(0>e||e>i.count)&&(e=i.count),i.Gb(e,t),(e===0||t.isPanelMain)&&(this.$g=null),El(this)||this.v(),t.v(!1),t.portId!==null?this.Te=!0:t instanceof qt&&t.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Ug(this,t,!1),n=this.part,n!==null&&(n.Rh=null,n.ag=NaN,this.Te&&n instanceof En&&(n.Te=!0),n.Te&&n instanceof En&&(n.wc=null),i=this.diagram,i!==null&&i.undoManager.isUndoingRedoing||(r!==-1&&n.cb(Lo,"elements",this,t,null,r,null),n.cb(xo,"elements",this,null,t,null,e)))};function Iv(e,t){e.l=t?e.l|16777216:e.l&-16777217}ye.remove=function(e){for(var t=this.O.s,n=t.length,r=-1,i=0;i<n;i++)if(t[i]===e){r=i;break}r!==-1&&this.pc(r,!0)},ye.mb=function(e){0<=e&&this.pc(e,!0)},ye.pc=function(e,t){var n=this.O,r=n.M(e);if(r.Ng=null,r.wi(null),this.ge!==null){var i=r.data;typeof i=="object"&&this.ge.remove(i)}n.mb(e),gs(this,!1),this.v(),this.$g===r&&(this.$g=null),this.graduatedIntervals=null;var o=this.part;o!==null&&(o.Rh=null,o.ag=NaN,o.Wb(),o instanceof En&&(r instanceof qt?r.qm(r,function(a,p){ey(o,p,t)}):ey(o,r,t)),n=this.diagram,n!==null&&n.undoManager.isUndoingRedoing||o.cb(Lo,"elements",this,r,null,e,null))},ye.Fb=function(e){0>e&&hr(e,">= 0",qt,"getRowDefinition:idx"),e=Math.round(e);var t=this.rowDefs;if(t[e]===void 0){var n=new ms;n.wi(this),n.isRow=!0,n.index=e,t[e]=n,this.cb(xo,"rowdefs",this,null,n,null,e)}return t[e]},ye.oA=function(e){if(0>e&&hr(e,">= 0",qt,"removeRowDefinition:idx"),this.rowCount!==0){e=Math.round(e);var t=this.rowDefs,n=t[e];if(n){t[e]=void 0;for(var r=t.length-1;0<=r&&t[r--]===void 0;)t.length--;this.cb(Lo,"rowdefs",this,n,null,e,null),this.v()}}};function w0(e,t,n){var r=e.rowDefs;if(!(0>t)){if(r[t]=n instanceof ms?n:void 0,!n)for(t=r.length-1;0<=t&&r[t--]===void 0;)r.length--;e.v()}}ye.Eb=function(e){0>e&&hr(e,">= 0",qt,"getColumnDefinition:idx"),e=Math.round(e);var t=this.colDefs;if(t[e]===void 0){var n=new ms;n.wi(this),n.isRow=!1,n.index=e,t[e]=n,this.cb(xo,"coldefs",this,null,n,null,e)}return t[e]},ye.jA=function(e){if(0>e&&hr(e,">= 0",qt,"removeColumnDefinition:idx"),this.columnCount!==0){e=Math.round(e);var t=this.colDefs,n=t[e];if(n){t[e]=void 0;for(var r=t.length-1;0<=r&&t[r--]===void 0;)t.length--;this.cb(Lo,"coldefs",this,n,null,e,null),this.v()}}};function C0(e,t,n){var r=e.colDefs;if(!(0>t)){if(r[t]=n instanceof ms?n:void 0,!n)for(t=r.length-1;0<=t&&r[t--]===void 0;)r.length--;e.v()}}ye.Gy=function(e){var t=null;return e.isRow?t=this.Fb(e.index):e.isRow||(t=this.Eb(e.index)),t&&Hg(t,e),this},ye.Hy=function(e,t){return(e=this.Fb(e))&&Hg(e,new ms(t)),this},ye.By=function(e,t){return(e=this.Eb(e))&&Hg(e,new ms(t)),this},ye.nz=function(e){if(0>e||this.type!==qt.Table||this.rowCount===0)return-1;for(var t=0,n=this.rowDefs,r=n.length,i=this.topIndex;i<r;i++){var o=n[i];if(o!==void 0&&(t+=o.total,e<t))break}return i},ye.fz=function(e){if(0>e||this.type!==qt.Table||this.columnCount===0)return-1;for(var t=0,n=this.colDefs,r=n.length,i=this.leftIndex;i<r;i++){var o=n[i];if(o!==void 0&&(t+=o.total,e<t))break}return i},ye.Fz=function(e,t){if(t===void 0&&(t=new Ue(NaN,NaN)),this.type!==qt.Graduated)return t.h(NaN,NaN),t;e=Math.min(Math.max(e,this.graduatedMin),this.graduatedMax);var n=this.Pb();return n.geometry.Pu((e-this.graduatedMin)/this.graduatedRange,t),n.transform.Ga(t)},ye.Gz=function(e){if(this.type!==qt.Graduated)return NaN;var t=this.Pb();return t.transform.Cd(e),t.geometry.xx(e)*this.graduatedRange+this.graduatedMin};function T0(e){return e=e.allBindings,e!==null&&e._isFrozen}function ql(e){var t=e.allBindings;if(t===null)e.data!==null&&Lt("Template cannot have .data be non-null: "+e),e.allBindings=t=new tn;else if(t._isFrozen)return;var n=new tn;Iv(e,!1),e.qm(e,function(O,D){D.th();var X=D.localBindings;if(X!==null)for(Mf(D,!1),X=X.iterator;X.next();){var re=X.value;re.mode===Vp&&Mf(D,!0);var de=re.sourceName;de!==null&&(de==="/"&&Iv(O,!0),de=jb(re,O,D),de!==null&&(n.add(de),de.srcBindings===null&&(de.srcBindings=new tn),de.srcBindings.add(re))),t.add(re)}if(D instanceof qt&&D.type===qt.Table){if(0<D.rowCount){for(O=D.rowDefs,X=O.length,re=0;re<X;re++)if(de=O[re],de!==void 0&&de.be!==null)for(var Se=de.be.iterator;Se.next();){var Te=Se.value;Te.xd=de,Te.to=2,Te.wl=de.index,t.add(Te)}}if(0<D.columnCount){for(D=D.colDefs,O=D.length,X=0;X<O;X++)if(re=D[X],re!==void 0&&re.be!==null)for(de=re.be.iterator;de.next();)Se=de.value,Se.xd=re,Se.to=1,Se.wl=re.index,t.add(Se)}}});for(var r=n.iterator;r.next();){var i=r.value;if(i.srcBindings!==null){Mf(i,!0);for(var o=i.srcBindings.iterator;o.next();){var a=o.value;i.localBindings===null&&(i.localBindings=new tn),i.localBindings.add(a)}}i.srcBindings=null}for(r=t.iterator;r.next();)if(i=r.value,o=i.xd,o!==null){i.xd=null;var p=i.targetProperty,w=p.indexOf(".");0<w&&o instanceof qt&&(a=p.substring(0,w),p=p.substr(w+1),w=o.fb(a),w!==null?(o=w,i.targetProperty=p):zi('Warning: unable to find GraphObject named "'+a+'" for Binding: '+i.toString())),o instanceof ms?(a=it(o.panel),i.Ai=a===void 0?-1:a,o.panel.bindingId=i.Ai):o instanceof gt?(a=it(o),i.Ai=a===void 0?-1:a,o.bindingId=i.Ai):Lt("Unknown type of binding target: "+o)}t.freeze(),e instanceof zn&&e.Zc()&&e.Va()}ye.Uy=function(e){e===void 0&&(e=!1);var t=this.copy();return M1(t,function(n){n instanceof qt&&(n.allBindings=null,n.ub=null);var r=n.localBindings;r!==null&&(n.localBindings=null,r.each(function(i){n.bind(i.copy())})),r=n.animationTriggers,r!==null&&(n.animationTriggers=null,r.each(function(i){n.Jv(i.value.copy())}))}),e&&ql(t),t},ye.La=function(e){var t=this.allBindings;if(t!==null)for(e===void 0&&(e=""),t=t.iterator;t.next();){var n=t.value,r=n.sourceProperty;if((e===""||r===""||r===e)&&(r=n.targetProperty,n.converter!==null||r!=="")){r=this.data;var i=n.sourceName;if(i!==null){if(i==="")r=this;else if(i==="/")r=this;else if(i===".")r=this;else if(i==="..")r=this;else if(r=this.fb(i),r===null)continue}else if(n.isToModel)if(r=this.diagram,r!==null)r=r.model.modelData;else continue;var o=this,a=n.Ai;if(a!==-1){if(o=this.ks(a),o===null)continue}else n.xd!==null&&(o=n.xd);if(i==="/"?r=o.part:i==="."?r=o:i===".."&&(r=o.panel),i=n.to,i!==0){if(!(o instanceof qt))continue;i===1?o=o.Eb(n.wl):i===2&&(o=o.Fb(n.wl))}o!==void 0&&n.Mv(o,r)}}},ye.sx=function(e){return e==null||this.ge===null?null:this.ge.I(e)};function D1(e,t){e=e.O.s;for(var n=e.length,r=t.length,i=0,o=null;i<n&&(o=e[i],!(o instanceof qt&&o.data!==null));)i++,o=e[i];if(n-i!==r)return!0;if(o===null)return 0<r;for(var a=0;i<n&&a<r;){if(o=e[i],!(o instanceof qt)||o.data!==t[a])return!0;i++,a++}return!1}function wp(e){if(e.type===qt.Spot||e.type===qt.Auto)return Math.min(e.O.length,1);if(e.type===qt.Link){e=e.O;for(var t=e.length,n=0;n<t;n++){var r=e.M(n);if(!(r instanceof vr&&r.isPanelMain))break}return n}return e.type===qt.Table&&0<e.O.length&&(e=e.O.M(0),e.isPanelMain&&e instanceof qt&&Zc(e))?1:0}ye.mv=function(){for(var e=wp(this);this.O.length>e;)this.pc(this.O.length-1,!1);_0(this,this.itemArray)};function _0(e,t){var n=wp(e);if(t===null||t.length===0)for(;e.O.length>n;)e.pc(e.O.length-1,!1);else if(e.O.length<=n){n=t.length;for(var r=0;r<n;r++)jg(e,t[r],r,!0)}else{r=n;for(var i=0;i<t.length;i++,r++){var o=t[i],a=r<e.O.length?e.O.M(r):null;if(a instanceof qt){if(a.data!==o){var p=Lv(e,a.data),w=Lv(e,o),O=w!==p;O||(p=Mv(e,p),O=Mv(e,w)!==p),O?(e.pc(r,!1),jg(e,o,i,!1)):a.data=o}}else jg(e,o,i,!1)}for(;r<e.O.length;)e.pc(r,!1);e.$g=null,Ov(e,n,0),El(e)||e.v(),e.graduatedIntervals=null,e.If()||Ug(e,e,!1),t=e.part,t!==null&&(t.Rh=null,t.ag=NaN,e.Te&&t instanceof En&&(t.Te=!0),t.Te&&t instanceof En&&(t.wc=null))}}function jg(e,t,n,r){if(!(t==null||0>n)){var i=Lv(e,t);if(i=Mv(e,i),i!==null){if(ql(i),i=i.copy(),i.l&16777216){var o=e.ih();o!==null&&Iv(o,!0)}typeof t=="object"&&(e.ge===null&&(e.ge=new nn),e.ge.add(t,i)),o=n+wp(e),e.Gb(o,i),r&&(i.ub=t,Ov(e,o,n),i.ub=null),i.data=t}}}function Ov(e,t,n){for(e=e.O;t<e.length;){var r=e.M(t);if(r instanceof qt){var i=t,o=n;r.type===qt.TableRow?r.row=i:r.type===qt.TableColumn&&(r.column=i),r.itemIndex=o}t++,n++}}function Lv(e,t){if(t===null)return"";if(e=e.itemCategoryProperty,typeof e=="function")e=e(t);else if(typeof e=="string"&&typeof t=="object"){if(e==="")return"";e=$o(t,e)}else return"";if(e===void 0)return"";if(typeof e=="string")return e;Lt("Panel.getCategoryForItemData found a non-string category for "+t+": "+e)}function Mv(e,t){var n=e.itemTemplateMap,r=null;return n!==null&&(r=n.I(t)),r===null&&(n!==null&&(r=n.I("")),r===null&&(A0||(A0=!0,zi('No item template Panel found for category "'+t+'" on '+e),zi(" Using default item template."),e=new qt,t=new Vi,t.bind(new qo("text","",Di)),e.add(t),k0=e),r=k0)),r}function Ug(e,t,n){var r=t.enabledChanged;if(r!==null&&r(t,n),t instanceof qt){t=t.O.s,r=t.length;for(var i=0;i<r;i++){var o=t[i];n&&o instanceof qt&&!o.isEnabled||Ug(e,o,n)}}}function Xu(e,t){t.name=e,pu.add(e,t)}kn.Object.defineProperties(qt.prototype,{type:{get:function(){return this.na},set:function(e){var t=this.na;t!==e&&(this.na=e,this.isAtomic=this.na===qt.Grid,this.v(),this.g("type",t,e))}},elements:{get:function(){return this.O.iterator}},naturalBounds:{get:function(){return this.dc}},padding:{get:function(){return this.yb},set:function(e){typeof e=="number"?(0>e&&hr(e,">= 0",qt,"padding"),e=new Wn(e)):(0>e.left&&hr(e.left,">= 0",qt,"padding:value.left"),0>e.right&&hr(e.right,">= 0",qt,"padding:value.right"),0>e.top&&hr(e.top,">= 0",qt,"padding:value.top"),0>e.bottom&&hr(e.bottom,">= 0",qt,"padding:value.bottom"));var t=this.yb;t.D(e)||(this.yb=e=e.J(),this.v(),this.g("padding",t,e))}},defaultAlignment:{get:function(){return this.Tm},set:function(e){var t=this.Tm;t.D(e)||(this.Tm=e=e.J(),this.v(),this.g("defaultAlignment",t,e))}},defaultStretch:{get:function(){return this.Uf},set:function(e){var t=this.Uf;t!==e&&(this.Uf=e,this.v(),this.g("defaultStretch",t,e))}},defaultSeparatorPadding:{get:function(){return this.T!==null?this.T.Qp:fo},set:function(e){typeof e=="number"&&(e=new Wn(e));var t=this.defaultSeparatorPadding;t.D(e)||(e=e.J(),this.T===null&&(this.T=new jl),this.T.Qp=e,this.v(),this.g("defaultSeparatorPadding",t,e))}},defaultRowSeparatorStroke:{get:function(){return this.T!==null?this.T.ia:null},set:function(e){var t=this.defaultRowSeparatorStroke;t!==e&&(e===null||typeof e=="string"||e instanceof yi)&&(e instanceof yi&&e.freeze(),this.T===null&&(this.T=new jl),this.T.ia=e,this.N(),this.g("defaultRowSeparatorStroke",t,e))}},defaultRowSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.Ha:1},set:function(e){var t=this.defaultRowSeparatorStrokeWidth;t!==e&&isFinite(e)&&0<=e&&(this.T===null&&(this.T=new jl),this.T.Ha=e,this.v(),this.g("defaultRowSeparatorStrokeWidth",t,e))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(e){var t=this.defaultRowSeparatorDashArray;if(t!==e){if(e!==null){for(var n=e.length,r=0,i=0;i<n;i++){var o=e[i];typeof o=="number"&&0<=o&&isFinite(o)||Lt("defaultRowSeparatorDashArray value "+o+" at index "+i+" must be a positive number or zero."),r+=o}if(r===0){if(t===null)return;e=null}}this.T===null&&(this.T=new jl),this.T.V=e,this.N(),this.g("defaultRowSeparatorDashArray",t,e)}}},defaultColumnSeparatorStroke:{get:function(){return this.T!==null?this.T.u:null},set:function(e){var t=this.defaultColumnSeparatorStroke;t!==e&&(e===null||typeof e=="string"||e instanceof yi)&&(e instanceof yi&&e.freeze(),this.T===null&&(this.T=new jl),this.T.u=e,this.N(),this.g("defaultColumnSeparatorStroke",t,e))}},defaultColumnSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.F:1},set:function(e){var t=this.defaultColumnSeparatorStrokeWidth;t!==e&&isFinite(e)&&0<=e&&(this.T===null&&(this.T=new jl),this.T.F=e,this.v(),this.g("defaultColumnSeparatorStrokeWidth",t,e))}},defaultColumnSeparatorDashArray:{get:function(){return this.T!==null?this.T.o:null},set:function(e){var t=this.defaultColumnSeparatorDashArray;if(t!==e){if(e!==null){for(var n=e.length,r=0,i=0;i<n;i++){var o=e[i];typeof o=="number"&&0<=o&&isFinite(o)||Lt("defaultColumnSeparatorDashArray value "+o+" at index "+i+" must be a positive number or zero."),r+=o}if(r===0){if(t===null)return;e=null}}this.T===null&&(this.T=new jl),this.T.o=e,this.N(),this.g("defaultColumnSeparatorDashArray",t,e)}}},inRowsCols:{get:function(){return this.T!==null?this.T.nb:null},set:function(e){this.T===null&&(this.T=new jl),this.T.nb=e}},viewboxStretch:{get:function(){return this.xo},set:function(e){var t=this.xo;t!==e&&(this.xo=e,this.v(),this.g("viewboxStretch",t,e))}},gridCellSize:{get:function(){return this.jn},set:function(e){var t=this.jn;if(!t.D(e)){e.w()&&e.width!==0&&e.height!==0||Lt("Invalid Panel.gridCellSize: "+e),this.jn=e.J();var n=this.diagram;n!==null&&this===n.grid&&Ku(n),this.N(),this.g("gridCellSize",t,e)}}},gridOrigin:{get:function(){return this.kn},set:function(e){var t=this.kn;if(!t.D(e)){e.w()||Lt("Invalid Panel.gridOrigin: "+e),this.kn=e.J();var n=this.diagram;n!==null&&this===n.grid&&Ku(n),this.N(),this.g("gridOrigin",t,e)}}},graduatedMin:{get:function(){return this.ra!==null?this.ra.lq:0},set:function(e){var t=this.graduatedMin;t!==e&&(this.ra===null&&(this.ra=new Oc),this.ra.lq=e,this.v(),this.g("graduatedMin",t,e),Ws(this)&&(e=this.part,e!==null&&to(this,e,"graduatedRange")))}},graduatedMax:{get:function(){return this.ra!==null?this.ra.F:100},set:function(e){var t=this.graduatedMax;t!==e&&(this.ra===null&&(this.ra=new Oc),this.ra.F=e,this.v(),this.g("graduatedMax",t,e),Ws(this)&&(e=this.part,e!==null&&to(this,e,"graduatedRange")))}},graduatedRange:{get:function(){return this.graduatedMax-this.graduatedMin}},graduatedTickUnit:{get:function(){return this.ra!==null?this.ra.ia:10},set:function(e){var t=this.graduatedTickUnit;t!==e&&0<e&&(this.ra===null&&(this.ra=new Oc),this.ra.ia=e,this.v(),this.g("graduatedTickUnit",t,e))}},graduatedTickBase:{get:function(){return this.ra!==null?this.ra.V:0},set:function(e){var t=this.graduatedTickBase;t!==e&&(this.ra===null&&(this.ra=new Oc),this.ra.V=e,this.v(),this.g("graduatedTickBase",t,e))}},graduatedMarks:{get:function(){return this.ra!==null?this.ra.u:null},set:function(e){this.ra!==null?this.ra.u=e:e!==null&&(this.ra=new Oc,this.ra.u=e)}},graduatedBounds:{get:function(){return this.ra!==null?this.ra.j:null},set:function(e){this.ra!==null?this.ra.j=e:e!==null&&(this.ra=new Oc,this.ra.j=e)}},graduatedIntervals:{get:function(){return this.ra!==null?this.ra.o:null},set:function(e){this.ra!==null?this.ra.o=e:e!==null&&(this.ra=new Oc,this.ra.o=e)}},temporaryTextBlock:{get:function(){return this.ra!==null?this.ra.Zh:null},set:function(e){this.ra!==null?this.ra.Zh=e:e!==null&&(this.ra=new Oc,this.ra.Zh=e)}},panelLayoutState:{get:function(){return this.F},set:function(e){this.F=e}},Te:{get:function(){return(this.l&8388608)!==0},set:function(e){(this.l&8388608)!==0!==e&&(this.l^=8388608)}},rowDefs:{get:function(){return this.T===null&&(this.T=new jl),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new jl),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:Gg},set:function(e){var t=this.rowSizing;t!==e&&(this.T===null&&(this.T=new jl),this.T.ob=e,this.v(),this.g("rowSizing",t,e))}},columnSizing:{get:function(){return this.T!==null?this.T.j:Gg},set:function(e){var t=this.columnSizing;t!==e&&(this.T===null&&(this.T=new jl),this.T.j=e,this.v(),this.g("columnSizing",t,e))}},topIndex:{get:function(){return this.T!==null?this.T.Hb:0},set:function(e){var t=this.topIndex;t!==e&&((!isFinite(e)||0>e)&&Lt("Panel.topIndex must be greater than zero and a real number, not: "+e),this.T===null&&(this.T=new jl),this.T.Hb=e,this.v(),this.g("topIndex",t,e))}},leftIndex:{get:function(){return this.T!==null?this.T.hb:0},set:function(e){var t=this.leftIndex;t!==e&&((!isFinite(e)||0>e)&&Lt("Panel.leftIndex must be greater than zero and a real number, not: "+e),this.T===null&&(this.T=new jl),this.T.hb=e,this.v(),this.g("leftIndex",t,e))}},data:{get:function(){return this.ub},set:function(e){var t=this.ub;if(t!==e){var n=this instanceof zn&&!(this instanceof qr);ql(this),this.ub=e;var r=this.diagram;r!==null&&(n?(n=r.partManager,this instanceof cn?(t!==null&&n.bf.remove(t),e!==null&&n.bf.add(e,this)):this instanceof zn&&(t!==null&&n.cf.remove(t),e!==null&&n.cf.add(e,this))):(n=this.panel,n!==null&&n.ge!==null&&(t!==null&&n.ge.remove(t),e!==null&&n.ge.add(e,this)))),this.g("data",t,e),r!==null&&r.undoManager.isUndoingRedoing||e!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(e){var t=this.zn;t!==e&&(this.zn=e,this.g("itemIndex",t,e))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(e){this.localBindings!==e&&(this.A===null&&(this.A=new Df),this.A.nb=e)}},itemArray:{get:function(){return this.Hh},set:function(e){var t=this.Hh;if(t!==e||e!==null&&D1(this,e)){var n=this.diagram;t!==e&&(n!==null&&t!==null&&Sy(n.partManager,this,n),this.Hh=e,n!==null&&e!==null&&by(n.partManager,this)),this.g("itemArray",t,e),n!==null&&n.undoManager.isUndoingRedoing||_0(this,e)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(e){if(this.itemTemplateMap===null){if(e===null)return;this.itemTemplateMap=new nn}var t=this.itemTemplateMap.I("");t!==e&&((e instanceof zn||e.isPanelMain)&&Lt("Panel.itemTemplate must not be a Part or be Panel.isPanelMain: "+e),this.itemTemplateMap.add("",e),this.g("itemTemplate",t,e),e=this.diagram,e!==null&&e.undoManager.isUndoingRedoing||this.mv())}},itemTemplateMap:{get:function(){return this.A!==null?this.A.Pc:null},set:function(e){var t=this.itemTemplateMap;if(t!==e){for(var n=e.iterator;n.next(););br(this),this.A.Pc=e,this.g("itemTemplateMap",t,e),e=this.diagram,e!==null&&e.undoManager.isUndoingRedoing||this.mv()}}},itemCategoryProperty:{get:function(){return this.A!==null?this.A.Oc:"category"},set:function(e){var t=this.itemCategoryProperty;t!==e&&(br(this),this.A.Oc=e,this.g("itemCategoryProperty",t,e))}},isAtomic:{get:function(){return(this.l&1048576)!==0},set:function(e){var t=(this.l&1048576)!==0;t!==e&&(this.l^=1048576,this.g("isAtomic",t,e))}},isClipping:{get:function(){return(this.l&2097152)!==0},set:function(e){var t=(this.l&2097152)!==0;t!==e&&(this.l^=2097152,this instanceof lr&&(this.tb=null),this.v(),this.g("isClipping",t,e))}},isOpposite:{get:function(){return(this.l&33554432)!==0},set:function(e){var t=(this.l&33554432)!==0;t!==e&&(this.l^=33554432,this.v(),this.g("isOpposite",t,e))}},isEnabled:{get:function(){return(this.l&4194304)!==0},set:function(e){var t=(this.l&4194304)!==0;if(t!==e){var n=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",t,e),t=this.diagram,t!==null&&t.undoManager.isUndoingRedoing||n&&Ug(this,this,e)}}},alignmentFocusName:{get:function(){return this.$e},set:function(e){var t=this.$e;t!==e&&(this.$e=e,this.v(),this.g("alignmentFocusName",t,e))}}}),kn.Object.defineProperties(qt,{Position:{get:function(){return pu.I("Position")}},Horizontal:{get:function(){return pu.I("Horizontal")}},Vertical:{get:function(){return pu.I("Vertical")}},Spot:{get:function(){return pu.I("Spot")}},Auto:{get:function(){return pu.I("Auto")}},Table:{get:function(){return pu.I("Table")}},Viewbox:{get:function(){return pu.I("Viewbox")}},TableRow:{get:function(){return pu.I("TableRow")}},TableColumn:{get:function(){return pu.I("TableColumn")}},Link:{get:function(){return pu.I("Link")}},Grid:{get:function(){return pu.I("Grid")}},Graduated:{get:function(){return pu.I("Graduated")}}}),qt.prototype.rebuildItemElements=qt.prototype.mv,qt.prototype.findItemPanelForData=qt.prototype.sx,qt.prototype.updateTargetBindings=qt.prototype.La,qt.prototype.copyTemplate=qt.prototype.Uy,qt.prototype.graduatedValueForPoint=qt.prototype.Gz,qt.prototype.graduatedPointForValue=qt.prototype.Fz,qt.prototype.findColumnForLocalX=qt.prototype.fz,qt.prototype.findRowForLocalY=qt.prototype.nz,qt.prototype.addColumnDefinition=qt.prototype.By,qt.prototype.addRowDefinition=qt.prototype.Hy,qt.prototype.addRowColumnDefinition=qt.prototype.Gy,qt.prototype.removeColumnDefinition=qt.prototype.jA,qt.prototype.getColumnDefinition=qt.prototype.Eb,qt.prototype.removeRowDefinition=qt.prototype.oA,qt.prototype.getRowDefinition=qt.prototype.Fb,qt.prototype.removeAt=qt.prototype.mb,qt.prototype.remove=qt.prototype.remove,qt.prototype.insertAt=qt.prototype.Gb,qt.prototype.elt=qt.prototype.M,qt.prototype.add=qt.prototype.add,qt.prototype.findObject=qt.prototype.fb,qt.prototype.findInVisualTree=qt.prototype.Nl,qt.prototype.walkVisualTreeFrom=qt.prototype.qm,qt.prototype.findMainElement=qt.prototype.Pb;var A0=!1,k0=null,pu=new nn;qt.className="Panel",qt.definePanelLayout=Xu,Xu("Position",new Ag),Xu("Vertical",new Ng),Xu("Auto",new Ig),Xu("Link",new Fg);function Oc(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}Oc.prototype.copy=function(){var e=new Oc;return e.lq=this.lq,e.F=this.F,e.ia=this.ia,e.V=this.V,e.u=this.u,e.j=this.j,e.o=this.o,e.Zh=this.Zh,e},Oc.className="GradPanelSettings";function jl(){this.Pc=[],this.Oc=[],this.j=this.ob=Gg,this.hb=this.Hb=0,this.Qp=fo,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}jl.prototype.copy=function(e){for(var t=new jl,n=this.Pc,r=n.length,i=t.Pc,o=0;o<r;o++)if(n[o]!==void 0){var a=n[o].copy();a.wi(e),i[o]=a}for(n=this.Oc,r=n.length,i=t.Oc,o=0;o<r;o++)n[o]!==void 0&&(a=n[o].copy(),a.wi(e),i[o]=a);return t.ob=this.ob,t.j=this.j,t.Hb=this.Hb,t.hb=this.hb,t.Qp=this.Qp.J(),t.Ha=this.Ha,t.ia=this.ia,t.V=this.V,t.F=this.F,t.u=this.u,t.o=this.o,t.nb=this.nb,t},jl.className="TablePanelSettings";function ms(e){Ge(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=is,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Dv,this.hg=cr,this.lo=this.dg=null,this.mo=NaN,this.Ma=this.tj=null,this.Pm=!1,e&&(Object.assign(this,e),e.column!==void 0?(this.isRow=!1,this.index=e.column):e.row!==void 0&&(this.isRow=!0,this.index=e.row))}ms.prototype.copy=function(){var e=new ms;return e.uq=this.uq,e.Za=this.Za,e.Hc=this.Hc,e.jj=this.jj,e.hj=this.hj,e.Jb=this.Jb,e.oa=this.oa,e.oc=this.oc,e.pa=this.pa,e.hg=this.hg,e.oo=this.oo,this.dg===null?e.dg=null:e.dg=this.dg.J(),e.lo=this.lo,e.mo=this.mo,e.tj=null,this.tj!==null&&(e.separatorDashArray=Ei(this.separatorDashArray)),e.Ma=this.Ma,e.Pm=this.Pm,e.be=this.be,e};function Hg(e,t){t.isRow?e.height=t.height:e.width=t.width,e.minimum=t.minimum,e.maximum=t.maximum,e.alignment=t.alignment,e.stretch=t.stretch,e.sizing=t.sizing,e.dg=t.separatorPadding===null?null:t.separatorPadding.J(),e.separatorStroke=t.separatorStroke,e.separatorStrokeWidth=t.separatorStrokeWidth,e.tj=null,t.separatorDashArray&&(e.tj=Ei(t.separatorDashArray)),e.background=t.background,e.coversSeparators=t.coversSeparators,e.be=t.be}ye=ms.prototype,ye.qb=function(e){e.classType===ms&&(this.sizing=e)},ye.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+it(this)},ye.wi=function(e){this.Me=e},ye.Io=function(e){var t=0,n=this.Me;if(this.index!==e&&(e=this.separatorStroke,e===null&&n!==null&&(e=this.isRow?n.defaultRowSeparatorStroke:n.defaultColumnSeparatorStroke),e!==null&&(t=this.separatorStrokeWidth,isNaN(t)&&(n!==null?t=this.isRow?n.defaultRowSeparatorStrokeWidth:n.defaultColumnSeparatorStrokeWidth:t=0))),e=this.dg,e===null)if(n!==null)e=n.defaultSeparatorPadding;else return t;return t+(this.isRow?e.top:e.left)},ye.Wc=function(){var e=0,t=this.Me,n=0,r=this.isRow;if(t!==null&&t.type===qt.Table)for(var i=r?t.rowDefs.length:t.colDefs.length,o=0;o<i;o++){var a=r?t.rowDefs[o]:t.colDefs[o];if(a!==void 0&&a.oa!==0){n=a.index;break}}if(this.index!==n&&(n=this.separatorStroke,n===null&&t!==null&&(n=r?t.defaultRowSeparatorStroke:t.defaultColumnSeparatorStroke),n!==null&&(e=this.separatorStrokeWidth,isNaN(e)&&(t!==null?e=r?t.defaultRowSeparatorStrokeWidth:t.defaultColumnSeparatorStrokeWidth:e=0))),r=this.dg,r===null)if(t!==null)r=t.defaultSeparatorPadding;else return e;return e+(this.isRow?r.top+r.bottom:r.left+r.right)},ye.Ob=function(e,t,n){var r=this.Me;if(r!==null&&(r.cb(Fi,e,this,t,n,void 0,void 0),this.be!==null&&(t=r.diagram,t!==null&&!t.skipsModelSourceBindings&&(r=r.ih(),r!==null&&(t=r.data,t!==null)))))for(n=this.be.iterator;n.next();)n.value.sp(this,t,e,r)};function zg(e){if(e.sizing===Dv){var t=e.Me;return e.isRow?t.rowSizing:t.columnSizing}return e.sizing}ye.bind=function(e,t,n,r){var i=null;return typeof e=="string"?i=new qo(e,t,n,r):i=e,i.xd=this,e=this.panel,e!==null&&(t=e.ih(),t!==null&&T0(t)&&Lt("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+i+" on "+e)),this.be===null&&(this.be=new tn),this.be.add(i),this},kn.Object.defineProperties(ms.prototype,{panel:{get:function(){return this.Me}},isRow:{get:function(){return this.uq},set:function(e){this.uq=e}},index:{get:function(){return this.Za},set:function(e){this.Za=e}},height:{get:function(){return this.Hc},set:function(e){var t=this.Hc;t!==e&&(0>e&&hr(e,">= 0",ms,"height"),this.Hc=e,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("height",t,e))}},width:{get:function(){return this.Hc},set:function(e){var t=this.Hc;t!==e&&(0>e&&hr(e,">= 0",ms,"width"),this.Hc=e,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("width",t,e))}},minimum:{get:function(){return this.jj},set:function(e){var t=this.jj;t!==e&&((0>e||!isFinite(e))&&hr(e,">= 0",ms,"minimum"),this.jj=e,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("minimum",t,e))}},maximum:{get:function(){return this.hj},set:function(e){var t=this.hj;t!==e&&(0>e&&hr(e,">= 0",ms,"maximum"),this.hj=e,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("maximum",t,e))}},alignment:{get:function(){return this.Jb},set:function(e){var t=this.Jb;t.D(e)||(this.Jb=e.J(),this.panel!==null&&this.panel.v(),this.Ob("alignment",t,e))}},stretch:{get:function(){return this.hg},set:function(e){var t=this.hg;t!==e&&(this.hg=e,this.panel!==null&&this.panel.v(),this.Ob("stretch",t,e))}},separatorPadding:{get:function(){return this.dg},set:function(e){typeof e=="number"&&(e=new Wn(e));var t=this.dg;e!==null&&t!==null&&t.D(e)||(e!==null&&(e=e.J()),this.dg=e,this.panel!==null&&this.panel.v(),this.Ob("separatorPadding",t,e))}},separatorStroke:{get:function(){return this.lo},set:function(e){var t=this.lo;t!==e&&(e!==null&&Ff(e,"RowColumnDefinition.separatorStroke"),e instanceof yi&&e.freeze(),this.lo=e,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",t,e))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(e){var t=this.mo;t!==e&&(this.mo=e,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",t,e))}},separatorDashArray:{get:function(){return this.tj},set:function(e){var t=this.tj;if(t!==e){if(e!==null){for(var n=e.length,r=0,i=0;i<n;i++){var o=e[i];typeof o=="number"&&0<=o&&isFinite(o)||Lt("separatorDashArray value "+o+" at index "+i+" must be a positive number or zero."),r+=o}if(r===0){if(t===null)return;e=null}}this.tj=e,this.panel!==null&&this.panel.N(),this.Ob("separatorDashArray",t,e)}}},background:{get:function(){return this.Ma},set:function(e){var t=this.Ma;t!==e&&(e!==null&&Ff(e,"RowColumnDefinition.background"),e instanceof yi&&e.freeze(),this.Ma=e,this.panel!==null&&this.panel.N(),this.Ob("background",t,e))}},coversSeparators:{get:function(){return this.Pm},set:function(e){var t=this.Pm;t!==e&&(this.Pm=e,this.panel!==null&&this.panel.N(),this.Ob("coversSeparators",t,e))}},sizing:{get:function(){return this.oo},set:function(e){var t=this.oo;t!==e&&(this.oo=e,this.panel!==null&&this.panel.v(),this.Ob("sizing",t,e))}},actual:{get:function(){return this.oa},set:function(e){this.oa=isNaN(this.Hc)?Math.max(Math.min(this.hj,e),this.jj):Math.max(Math.min(this.hj,this.Hc),this.jj)}},measured:{get:function(){return this.oc},set:function(e){this.oc=e}},total:{get:function(){return this.oa+this.Wc()}},position:{get:function(){return this.pa},set:function(e){this.pa=e}}}),ms.prototype.computeEffectiveSpacing=ms.prototype.Wc,ms.prototype.computeEffectiveSpacingTop=ms.prototype.Io;var Dv=new hn(ms,"Default",0),Cp=new hn(ms,"None",1),Gg=new hn(ms,"ProportionalExtra",2);ms.className="RowColumnDefinition",ms.Default=Dv,ms.None=Cp,ms.ProportionalExtra=Gg;function vr(e,t){gt.call(this),this.Rd=this.ua=null,this.an="None",this.xc=this.Ui="black",this.ig=1,this.Na=this.Yg=null,this.Vn=this.Un=NaN,this.fa=null,typeof e=="string"?this.figure=e:e&&Object.assign(this,e),t&&Object.assign(this,t)}Tn(vr,gt),vr.prototype.cloneProtected=function(e){gt.prototype.cloneProtected.call(this,e),e.ua=this.ua,e.Rd=this.Rd,e.an=this.an,e.Ui=this.Ui,e.xc=this.xc,e.ig=this.ig,this.Yg!==null&&(e.Yg=Ei(this.Yg)),this.Na!==null&&(e.Na=this.Na.nc?this.Na:this.Na.copy()),e.Un=this.Un,e.Vn=this.Vn,this.fa!==null&&(e.fa=this.fa.copy())};function cf(e){e.Na===null?e.Na=new Bv:e.Na.nc&&(e.Na=e.Na.copy())}ye=vr.prototype,ye.th=function(){gt.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},ye.qb=function(e){e===Wt||e===Dn||e===Hr||e===cr?this.geometryStretch=e:gt.prototype.qb.call(this,e)},ye.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+it(this)};function Ed(e,t,n,r){var i=n.length;if(!(4>i)){var o=r.measuredBounds,a=Math.max(1,o.width);o=o.height;for(var p=n[0],w=n[1],O,D,X,re,de,Se,Te=0,Xe=yr(),We=2;We<i;We+=2)O=n[We],D=n[We+1],X=O-p,p=D-w,X===0&&(X=.001),re=p/X,de=Math.atan2(p,X),Se=Math.sqrt(X*X+p*p),Xe.push([X,de,re,Se]),Te+=Se,p=O,w=D;p=n[0],w=n[1],X=r.measuredBounds.width,r instanceof vr&&(X-=r.strokeWidth),1>X&&(X=1),i=n=X,O=a/2,D=O!==0,We=0,Se=Xe[We],X=Se[0],de=Se[1],re=Se[2],Se=Se[3];for(var qe=0;.1<=Te;){if(qe===0&&(D?(i=n,i-=O,Te-=O,D=!1):i=n,i===0&&(i=1)),i>Te){Mr(Xe);return}i>Se?(qe=i-Se,i=Se):qe=0;var tt=Math.sqrt(i*i/(1+re*re));if(0>X&&(tt=-tt),p+=tt,w+=re*tt,e.translate(p,w),e.rotate(de),e.translate(-(a/2),-(o/2)),qe===0&&r.hh(e,t),e.translate(a/2,o/2),e.rotate(-de),e.translate(-p,-w),Te-=i,Se-=i,qe!==0){if(We++,We===Xe.length){Mr(Xe);return}Se=Xe[We],X=Se[0],de=Se[1],re=Se[2],Se=Se[3],i=qe}}Mr(Xe)}}ye.hh=function(e,t){var n=this.xc,r=this.Ui;if(n!==null||r!==null){var i=this.ua;if(i!==null){e.yc();var o=this.actualBounds,a=this.naturalBounds;r!==null&&Ho(this,e,r,!0,!1,a,o);var p=this.part,w=this.ig;if(n===null||w!==0||p===null||!this.isPanelMain&&p.Pb()!==this||(w=p.type===qt.Link&&p instanceof qr&&p.category==="Selection"&&p.adornedObject instanceof vr&&p.adornedPart.Pb()===p.adornedObject?p.adornedObject.strokeWidth:0),w===0&&(n=null),n!==null&&w!==0&&(Ho(this,e,n,!1,!1,a,o),e.lineWidth=w,e.lineJoin=this.strokeJoin,e.lineCap=this.strokeCap,e.miterLimit=this.strokeMiterLimit),o=!1,p&&t.Gf("drawShadows")&&(o=p.isShadowed),e.Il===!1&&(o=!1),p=!0,n===null||r!==null&&r!=="transparent"||(p=!1),a=!1,w=this.strokeDashArray,w!==null&&(a=!0,e.js(w,this.strokeDashOffset)),i.type===un.j)e.beginPath(),e.moveTo(i.startX,i.startY),e.lineTo(i.endX,i.endY),n!==null&&e.jk(),e.Se();else if(i.type===un.u){var O=i.startX;w=i.startY;var D=i.endX,X=i.endY;i=Math.min(O,D);var re=Math.min(w,X);O=Math.abs(D-O),w=Math.abs(X-w),e.beginPath(),e.rect(i,re,O,w),r!==null&&e.ng(r),n!==null&&(p&&o&&oc(e),e.jk(),p&&o&&kc(e)),e.Se()}else if(i.type===un.F)O=i.startX,w=i.startY,D=i.endX,X=i.endY,i=Math.abs(D-O)/2,re=Math.abs(X-w)/2,O=Math.min(O,D)+i,w=Math.min(w,X)+re,e.beginPath(),e.moveTo(O,w-re),e.bezierCurveTo(O+vt.wg*i,w-re,O+i,w-vt.wg*re,O+i,w),e.bezierCurveTo(O+i,w+vt.wg*re,O+vt.wg*i,w+re,O,w+re),e.bezierCurveTo(O-vt.wg*i,w+re,O-i,w+vt.wg*re,O-i,w),e.bezierCurveTo(O-i,w-vt.wg*re,O-vt.wg*i,w-re,O,w-re),e.closePath(),r!==null&&e.ng(r),n!==null&&(p&&o&&oc(e),e.jk(),p&&o&&kc(e)),e.Se();else if(i.type===un.o)for(i=i.figures,w=i.length,re=0;re<w;re++){O=i.s[re],e.beginPath(),e.moveTo(O.startX,O.startY),D=O.segments.s,X=D.length;for(var de=null,Se=0;Se<X;Se++){var Te=D[Se];switch(Te.type){case Io:e.moveTo(Te.endX,Te.endY);break;case Ci:e.lineTo(Te.endX,Te.endY);break;case ds:e.bezierCurveTo(Te.point1X,Te.point1Y,Te.point2X,Te.point2Y,Te.endX,Te.endY);break;case na:e.quadraticCurveTo(Te.point1X,Te.point1Y,Te.endX,Te.endY);break;case Oo:if(Te.radiusX===Te.radiusY){var Xe=Math.PI/180;e.arc(Te.point1X,Te.point1Y,Te.radiusX,Te.startAngle*Xe,(Te.startAngle+Te.sweepAngle)*Xe,0>Te.sweepAngle,de!==null?de.endX:O.startX,de!==null?de.endY:O.startY)}else if(de=Ys(Te,O),Xe=de.length,Xe===0)e.lineTo(Te.centerX,Te.centerY);else for(var We=0;We<Xe;We++){var qe=de[We];We===0&&e.lineTo(qe[0],qe[1]),e.bezierCurveTo(qe[2],qe[3],qe[4],qe[5],qe[6],qe[7])}break;case ca:if(We=Xe=0,de!==null&&de.type===Oo){if(de=Ys(de,O),qe=de.length,qe===0){e.lineTo(Te.endX,Te.endY);break}de=de[qe-1]||null,de!==null&&(Xe=de[6],We=de[7])}else Xe=de!==null?de.endX:O.startX,We=de!==null?de.endY:O.startY;if(de=Sa(Te,O,Xe,We),Xe=de.length,Xe===0){e.lineTo(Te.endX,Te.endY);break}for(We=0;We<Xe;We++)qe=de[We],e.bezierCurveTo(qe[2],qe[3],qe[4],qe[5],qe[6],qe[7]);break;default:Lt("Segment not of valid type: "+Te.type)}Te.isClosed&&e.closePath(),de=Te}D=O.isFilled,o?O.isShadowed?(D===!0&&r!=="transparent"&&r!==null&&e.ng(r,O.isEvenOdd),n!==null&&(D&&p&&oc(e),e.jk(),D&&p&&kc(e))):(oc(e),D&&r!=="transparent"&&r!==null&&e.ng(r,O.isEvenOdd),n!==null&&e.jk(),kc(e)):(D&&r!==null&&e.ng(r,O.isEvenOdd),n!==null&&e.jk()),e.Se(re)}if(a&&e.fs(),this.pathPattern!==null){if(n=this.pathPattern,n.measure(1/0,1/0),r=n.measuredBounds,n.arrange(0,0,r.width,r.height),o=this.geometry,e.save(),e.beginPath(),r=yr(),o.type===un.j)r.push(o.startX),r.push(o.startY),r.push(o.endX),r.push(o.endY),Ed(e,t,r,n);else if(o.type===un.o)for(o=o.figures.iterator;o.next();){for(p=o.value,r.length=0,r.push(p.startX),r.push(p.startY),a=p.startX,i=p.startY,w=a,re=i,O=p.segments.s,D=O.length,X=0;X<D;X++){switch(Se=O[X],Se.type){case Io:Ed(e,t,r,n),r.length=0,r.push(Se.endX),r.push(Se.endY),a=Se.endX,i=Se.endY,w=a,re=i;break;case Ci:r.push(Se.endX),r.push(Se.endY),a=Se.endX,i=Se.endY;break;case ds:vt.Qe(a,i,Se.point1X,Se.point1Y,Se.point2X,Se.point2Y,Se.endX,Se.endY,.5,r),a=Se.endX,i=Se.endY;break;case na:vt.ep(a,i,Se.point1X,Se.point1Y,Se.endX,Se.endY,.5,r),a=Se.endX,i=Se.endY;break;case Oo:if(Te=Ys(Se,p),de=Te.length,de===0){r.push(Se.centerX),r.push(Se.centerY),a=Se.centerX,i=Se.centerY;break}for(Xe=0;Xe<de;Xe++)We=Te[Xe],vt.Qe(a,i,We[2],We[3],We[4],We[5],We[6],We[7],.5,r),a=We[6],i=We[7];break;case ca:if(Te=Sa(Se,p,a,i),de=Te.length,de===0){r.push(Se.endX),r.push(Se.endY),a=Se.endX,i=Se.endY;break}for(Xe=0;Xe<de;Xe++)We=Te[Xe],vt.Qe(a,i,We[2],We[3],We[4],We[5],We[6],We[7],.5,r),a=We[6],i=We[7];break;default:Lt("Segment not of valid type: "+Se.type)}Se.isClosed&&(r.push(w),r.push(re),Ed(e,t,r,n))}Ed(e,t,r,n)}else if(o.type===un.u)r.push(o.startX),r.push(o.startY),r.push(o.endX),r.push(o.startY),r.push(o.endX),r.push(o.endY),r.push(o.startX),r.push(o.endY),r.push(o.startX),r.push(o.startY),Ed(e,t,r,n);else if(o.type===un.F){if(i=new jo,i.startX=o.endX,i.startY=(o.startY+o.endY)/2,a=new zr(Oo),a.startAngle=0,a.sweepAngle=360,a.centerX=(o.startX+o.endX)/2,a.centerY=(o.startY+o.endY)/2,a.radiusX=Math.abs(o.startX-o.endX)/2,a.radiusY=Math.abs(o.startY-o.endY)/2,i.add(a),o=Ys(a,i),p=o.length,p===0)r.push(a.centerX),r.push(a.centerY);else for(a=i.startX,i=i.startY,w=0;w<p;w++)re=o[w],vt.Qe(a,i,re[2],re[3],re[4],re[5],re[6],re[7],.5,r),a=re[6],i=re[7];Ed(e,t,r,n)}Mr(r),e.restore(),e.Vc(!1)}}}},ye.kk=function(e,t,n){return!gt.prototype.kk.call(this,e,t,n)||this.xc===null&&this.Ui===null||this.ua===null||this.pathPattern!==null||this.geometry.figures.length!==this.svg.getElementsByTagName("path").length?!1:(e.Hl=this.svg,this.hh(e,t),e.Hl=null,!0)},ye.nk=function(e){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:gt.prototype.nk.call(this,e)},ye.Dv=function(e,t){if(e.nodeName!=="g")e.setAttributeNS(null,"filter",t);else{e=e.getElementsByTagName("path");for(var n=0;n<e.length;n++)e[n].setAttributeNS(null,"filter",t)}},ye.ga=function(e,t){if(t===void 0&&(t=new Ue),e instanceof Nn){e.Mc()&&Lt("getDocumentPoint Spot must be a real, specific Spot, not: "+e.toString());var n=this.naturalBounds,r=this.strokeWidth;t.h(e.x*(n.width+r)-r/2+n.x+e.offsetX,e.y*(n.height+r)-r/2+n.y+e.offsetY)}else t.set(e);return this.oe.Ga(t),t},ye.mi=function(e){e===void 0&&(e=new Nt);var t=this.naturalBounds,n=this.oe;t=Nt.allocAt(t.x,t.y,t.width,t.height);var r=this.strokeWidth;return t.Bc(r/2,r/2),r=Ue.allocAt(t.x,t.y).transform(n),e.h(r.x,r.y,0,0),r.h(t.right,t.y).transform(n),fi(e,r.x,r.y,0,0),r.h(t.right,t.bottom).transform(n),fi(e,r.x,r.y,0,0),r.h(t.x,t.bottom).transform(n),fi(e,r.x,r.y,0,0),Nt.free(t),Ue.free(r),e},ye.gh=function(e,t){var n=this.geometry;if(n===null||this.fill===null&&this.stroke===null)return!1;var r=n.bounds,i=this.strokeWidth/2;n.type!==un.j||t||(i+=2);var o=Nt.alloc();if(o.assign(r),o.Bc(i+2,i+2),!o.ca(e))return Nt.free(o),!1;if(r=i+1e-4,n.type===un.j)return this.stroke===null||(r=(n.endX-n.startX)*(e.x-n.startX)+(n.endY-n.startY)*(e.y-n.startY),0>(n.startX-n.endX)*(e.x-n.endX)+(n.startY-n.endY)*(e.y-n.endY)||0>r)?!1:(Nt.free(o),vt.Yb(n.startX,n.startY,n.endX,n.endY,i,e.x,e.y));if(n.type===un.u){t=n.startX;var a=n.startY,p=n.endX;if(n=n.endY,o.x=Math.min(t,p),o.y=Math.min(a,n),o.width=Math.abs(p-t),o.height=Math.abs(n-a),this.fill===null){if(o.Bc(-r,-r),o.ca(e))return Nt.free(o),!1;o.Bc(r,r)}return this.stroke!==null&&o.Bc(i,i),e=o.ca(e),Nt.free(o),e}if(n.type===un.F){a=n.startX,i=n.startY,p=n.endX;var w=n.endY;if(n=Math.min(a,p),t=Math.min(i,w),a=Math.abs(p-a)/2,i=Math.abs(w-i)/2,n=e.x-(n+a),t=e.y-(t+i),this.fill===null){if(a-=r,i-=r,0>=a||0>=i||1>=n*n/(a*a)+t*t/(i*i))return Nt.free(o),!1;a+=r,i+=r}return this.stroke!==null&&(a+=r,i+=r),Nt.free(o),0>=a||0>=i?!1:1>=n*n/(a*a)+t*t/(i*i)}if(n.type===un.o)return Nt.free(o),this.fill===null?Vl(n,e.x,e.y,i):Nl(n,e,i,1<this.strokeWidth,t);Lt("Unknown Geometry type: "+n.type)},ye.Wl=function(e,t,n,r){var i=this.desiredSize,o=this.ig;if(e=Math.max(e,0),t=Math.max(t,0),this.Rd!==null)var a=this.geometry.bounds;else{var p=this.figure,w=Fv[p];if(w===void 0){var O=vt.Ze[p];typeof O=="string"&&(O=vt.Ze[O]),typeof O=="function"?(w=O(null,100,100),Fv[p]=w):Lt("Unsupported Figure: "+p)}a=w.bounds}p=a.width,w=a.height,O=a.width;var D=a.height;switch(Ba(this,!0)){case Wt:r=n=0;break;case Xt:O=Math.max(e-o,0),D=Math.max(t-o,0);break;case Bn:O=Math.max(e-o,0),r=0;break;case Kn:n=0,D=Math.max(t-o,0)}isFinite(i.width)&&(O=i.width),isFinite(i.height)&&(D=i.height);var X=this.maxSize,re=this.minSize;switch(n=Math.max(n-o,re.width),r=Math.max(r-o,re.height),O=Math.min(X.width,O),D=Math.min(X.height,D),O=isFinite(O)?Math.max(n,O):Math.max(p,n),D=isFinite(D)?Math.max(r,D):Math.max(w,r),n=Pv(this),n){case Wt:break;case Xt:p=O,w=D;break;case Dn:n=Math.min(O/p,D/w),isFinite(n)||(n=1),p*=n,w*=n;break;default:Lt(n+" is not a valid geometryStretch.")}this.Rd!==null?(p===0&&(p=.001),w===0&&(w=.001),n=this.Rd!==null?this.Rd:this.ua,a=n.bounds,r=p/a.width,a=w/a.height,isFinite(r)||(r=1),isFinite(a)||(a=1),this.ua=r===1&&a===1?n:n.copy().scale(r,a)):this.ua!==null&&vt.$(this.ua.Sk,e-o)&&vt.$(this.ua.Rk,t-o)||(this.ua=vr.makeGeometry(this,p,w)),a=this.ua.bounds,e===1/0||t===1/0?this.Ge(a.x-o/2,a.y-o/2,e===0&&p===0?0:a.width+o,t===0&&w===0?0:a.height+o):this.Ge(-(o/2),-(o/2),O+o,D+o),i.w()?(O=i.width,D=i.height,O=Math.min(X.width,O),D=Math.min(X.height,D),O=Math.max(re.width,O),D=Math.max(re.height,D),this.dc.h(0,0,O,D)):this.dc.assign(a)};function Pv(e){var t=e.geometryStretch;return e.Rd!==null?t===cr?Xt:t:t===cr?Fv[e.figure].defaultStretch:t}ye.eh=function(e,t,n,r){ga(this,e,t,n,r)},ye.rs=function(e,t,n){return this.Sj(e.x,e.y,t.x,t.y,n)},ye.Sj=function(e,t,n,r,i){var o=this.transform,a=1/(o.m11*o.m22-o.m12*o.m21),p=o.m22*a,w=-o.m12*a,O=-o.m21*a,D=o.m11*a,X=a*(o.m21*o.dy-o.m22*o.dx),re=a*(o.m12*o.dx-o.m11*o.dy);o=e*p+t*O+X,a=e*w+t*D+re,p=n*p+r*O+X,w=n*w+r*D+re,X=this.ig/2,O=this.ua,O===null&&(this.measure(1/0,1/0),O=this.ua);var de=O.bounds;if(D=!1,O.type===un.j)if(1.5>=this.strokeWidth)D=vt.Ve(O.startX,O.startY,O.endX,O.endY,o,a,p,w,i);else{if(O.startX===O.endX?(r=X,D=0):(t=(O.endY-O.startY)/(O.endX-O.startX),D=X/Math.sqrt(1+t*t),r=D*t),t=yr(),e=new Ue,vt.Ve(O.startX+r,O.startY+D,O.endX+r,O.endY+D,o,a,p,w,e)&&t.push(e),e=new Ue,vt.Ve(O.startX-r,O.startY-D,O.endX-r,O.endY-D,o,a,p,w,e)&&t.push(e),e=new Ue,vt.Ve(O.startX+r,O.startY+D,O.startX-r,O.startY-D,o,a,p,w,e)&&t.push(e),e=new Ue,vt.Ve(O.endX+r,O.endY+D,O.endX-r,O.endY-D,o,a,p,w,e)&&t.push(e),p=t.length,p===0)return Mr(t),!1;for(D=!0,w=1/0,r=0;r<p;r++)e=t[r],n=(e.x-o)*(e.x-o)+(e.y-a)*(e.y-a),n<w&&(w=n,i.x=e.x,i.y=e.y);Mr(t)}else if(O.type===un.u)D=vt.Ff(de.x-X,de.y-X,de.x+de.width+X,de.y+de.height+X,o,a,p,w,i);else if(O.type===un.F){t=Nt.allocAt(de.x,de.y,de.width,de.height).Bc(X,X);e:if(t.width===0)D=vt.Ve(t.x,t.y,t.x,t.y+t.height,o,a,p,w,i);else if(t.height===0)D=vt.Ve(t.x,t.y,t.x+t.width,t.y,o,a,p,w,i);else{if(e=t.width/2,O=t.height/2,r=t.x+e,D=t.y+O,n=9999,o!==p&&(n=(a-w)/(o-p)),9999>Math.abs(n)){if(w=a-D-n*(o-r),0>e*e*n*n+O*O-w*w){i.x=NaN,i.y=NaN,D=!1;break e}X=Math.sqrt(e*e*n*n+O*O-w*w),p=(-(e*e*n*w)+e*O*X)/(O*O+e*e*n*n)+r,e=(-(e*e*n*w)-e*O*X)/(O*O+e*e*n*n)+r,O=n*(p-r)+w+D,w=n*(e-r)+w+D,Math.abs((o-p)*(o-p))+Math.abs((a-O)*(a-O))<Math.abs((o-e)*(o-e))+Math.abs((a-w)*(a-w))?(i.x=p,i.y=O):(i.x=e,i.y=w)}else{if(p=O*O,w=o-r,p-=p/(e*e)*w*w,0>p){i.x=NaN,i.y=NaN,D=!1;break e}w=Math.sqrt(p),p=D+w,w=D-w,Math.abs(p-a)<Math.abs(w-a)?(i.x=o,i.y=p):(i.x=o,i.y=w)}D=!0}Nt.free(t)}else if(O.type===un.o){re=Ue.alloc();var Se=p-o,Te=w-a,Xe=Se*Se+Te*Te,We=o,qe=a;if(0<Xe&&de.contains(We,qe)&&(re.x=We,re.y=qe,this.ca(re)))for(Se!==0&&.5>Math.abs(Se)?(Te*=.5/Se,Se=.5):Te!==0&&.5>Math.abs(Te)&&(Se*=.5/Te,Te=.5),We-=Se,qe-=Te;de.contains(We,qe);)We-=Se,qe-=Te;for(i.x=p,i.y=w,Te=0;Te<O.figures.count;Te++){var tt=O.figures.s[Te],rt=tt.isFilled?We:o,ft=tt.isFilled?qe:a,Tt=tt.segments;de=tt.startX,Se=tt.startY;for(var Sn=de,Rn=Se,_n=0;_n<Tt.count;_n++){var ln=Tt.s[_n],Gt=ln.type,ar=ln.endX,er=ln.endY,si=!1;switch(Gt){case Io:Sn=ar,Rn=er;break;case Ci:si=Vg(de,Se,ar,er,rt,ft,p,w,re);break;case ds:si=vt.Eo(de,Se,ln.point1X,ln.point1Y,ln.point2X,ln.point2Y,ar,er,rt,ft,p,w,.6,re);break;case na:si=vt.Eo(de,Se,de+2/3*(ln.point1X-de),Se+2/3*(ln.point1Y-Se),ar+2/3*(ln.point1X-ar),er+2/3*(ln.point1Y-er),ar,er,rt,ft,p,w,.6,re);break;case Oo:case ca:Gt=ln.type===Oo?Ys(ln,tt):Sa(ln,tt,de,Se);var Hi=Gt.length;if(Hi===0){si=Vg(de,Se,ln.type===Oo?ln.centerX:ln.endX,ln.type===Oo?ln.centerY:ln.endY,rt,ft,p,w,re);break}for(er=null,ar=0;ar<Hi;ar++){if(er=Gt[ar],ar===0&&Vg(de,Se,er[0],er[1],rt,ft,p,w,re)){var _s=Wg(rt,ft,re,Xe,i);_s<Xe&&(Xe=_s,D=!0)}vt.Eo(er[0],er[1],er[2],er[3],er[4],er[5],er[6],er[7],rt,ft,p,w,.6,re)&&(_s=Wg(rt,ft,re,Xe,i),_s<Xe&&(Xe=_s,D=!0))}ar=er[6],er=er[7];break;default:Lt("Unknown Segment type: "+Gt)}de=ar,Se=er,si&&(si=Wg(rt,ft,re,Xe,i),si<Xe&&(Xe=si,D=!0)),ln.isClosed&&(ar=Sn,er=Rn,Vg(de,Se,ar,er,rt,ft,p,w,re)&&(ln=Wg(rt,ft,re,Xe,i),ln<Xe&&(Xe=ln,D=!0)))}}o=n-e,a=r-t,p=Math.sqrt(o*o+a*a),p!==0&&(o/=p,a/=p),i.x-=o*X,i.y-=a*X,Ue.free(re)}else Lt("Unknown Geometry type: "+O.type);return D?(this.transform.Ga(i),!0):!1};function Wg(e,t,n,r,i){return e=n.x-e,t=n.y-t,t=e*e+t*t,t<r?(i.x=n.x,i.y=n.y,t):r}function Vg(e,t,n,r,i,o,a,p,w){if(vt.$(e,n)&&vt.$(t,r)||vt.$(i,a)&&vt.$(o,p))return!1;var O=!1,D=(i-a)*(t-r)-(o-p)*(e-n);return D===0?!1:(w.x=((i*p-o*a)*(e-n)-(i-a)*(e*r-t*n))/D,w.y=((i*p-o*a)*(t-r)-(o-p)*(e*r-t*n))/D,(e>n?e-n:n-e)<(t>r?t-r:r-t)?(e=t<r?t:r,t=t<r?r:t,(w.y>e||vt.$(w.y,e))&&(w.y<t||vt.$(w.y,t))&&(O=!0)):(t=e<n?e:n,e=e<n?n:e,(w.x>t||vt.$(w.x,t))&&(w.x<e||vt.$(w.x,e))&&(O=!0)),O)}ye.fh=function(e,t){if(t===void 0)return e.Re(this.actualBounds);var n=this.ua;n===null&&(this.measure(1/0,1/0),n=this.ua),n=n.bounds;var r=this.strokeWidth/2,i=!1,o=Ue.alloc();return o.h(n.x-r,n.y-r),e.ca(t.Ga(o))&&(o.h(n.x-r,n.bottom+r),e.ca(t.Ga(o))&&(o.h(n.right+r,n.bottom+r),e.ca(t.Ga(o))&&(o.h(n.right+r,n.y-r),e.ca(t.Ga(o))&&(i=!0)))),Ue.free(o),i},ye.Yc=function(e,t){if(this.fh(e,t)||t===void 0&&(t=this.transform,e.Re(this.actualBounds)))return!0;var n=dr.alloc();n.set(t),n.Vj();var r=e.left,i=e.right,o=e.top;e=e.bottom;var a=Ue.alloc();if(a.h(r,o),n.Ga(a),this.gh(a,!0)||(a.h(i,o),n.Ga(a),this.gh(a,!0))||(a.h(r,e),n.Ga(a),this.gh(a,!0))||(a.h(i,e),n.Ga(a),this.gh(a,!0)))return Ue.free(a),!0;var p=Ue.alloc(),w=Ue.alloc();return n.set(t),n.bv(this.transform),n.Vj(),p.x=i,p.y=o,p.transform(n),a.x=r,a.y=o,a.transform(n),t=!1,hf(this,a,p,w)?t=!0:(a.x=i,a.y=e,a.transform(n),hf(this,a,p,w)?t=!0:(p.x=r,p.y=e,p.transform(n),hf(this,a,p,w)?t=!0:(a.x=r,a.y=o,a.transform(n),hf(this,a,p,w)&&(t=!0)))),Ue.free(a),dr.free(n),Ue.free(p),Ue.free(w),t};function hf(e,t,n,r){if(!e.rs(t,n,r))return!1;e=t.x,t=t.y;var i=n.x,o=n.y;return n=r.x,r=r.y,e===i?(t<o?(e=t,t=o):e=o,r>=e&&r<=t):(e<i?(r=e,e=i):r=i,n>=r&&n<=e)}ye.tx=function(e,t,n){function r(Xe,We){for(var qe=Xe.length,tt=0;tt<qe;tt+=2)if(We.zd(Xe[tt],Xe[tt+1])>i)return!0;return!1}if(n&&this.fill!==null&&this.gh(e,!0))return!0;var i=e.Bf(t),o=i;if(1.5<this.strokeWidth&&(i=this.strokeWidth/2+Math.sqrt(i),i*=i),t=this.ua,t===null&&(this.measure(1/0,1/0),t=this.ua,t===null))return!1;if(!n){var a=t.bounds,p=a.x,w=a.y,O=a.x+a.width;if(a=a.y+a.height,Ir(e.x,e.y,p,w)<=i&&Ir(e.x,e.y,O,w)<=i&&Ir(e.x,e.y,p,a)<=i&&Ir(e.x,e.y,O,a)<=i)return!0}if(p=t.startX,w=t.startY,O=t.endX,a=t.endY,t.type===un.j){if(n=(p-O)*(e.x-O)+(w-a)*(e.y-a),rr(e.x,e.y,p,w,O,a)<=(0<=(O-p)*(e.x-p)+(a-w)*(e.y-w)&&0<=n?i:o))return!0}else{if(t.type===un.u)return t=!1,n&&(t=rr(e.x,e.y,p,w,p,a)<=i||rr(e.x,e.y,p,w,O,w)<=i||rr(e.x,e.y,O,w,O,a)<=i||rr(e.x,e.y,p,a,O,a)<=i),t;if(t.type===un.F){t=e.x-(p+O)/2,o=e.y-(w+a)/2;var D=Math.abs(O-p)/2,X=Math.abs(a-w)/2;if(D===0||X===0)return rr(e.x,e.y,p,w,O,a)<=i;if(n){if(e=vt.$y(D,X,t,o),e*e<=i)return!0}else return!(Ir(t,o,-D,0)>=i||Ir(t,o,0,-X)>=i||Ir(t,o,0,X)>=i||Ir(t,o,D,0)>=i)}else if(t.type===un.o){if(O=t.bounds,o=O.x,p=O.y,w=O.x+O.width,O=O.y+O.height,e.x>w&&e.x<o&&e.y>O&&e.y<p&&rr(e.x,e.y,o,p,o,O)>i&&rr(e.x,e.y,o,p,w,p)>i&&rr(e.x,e.y,w,O,o,O)>i&&rr(e.x,e.y,w,O,w,p)>i)return!1;if(o=Math.sqrt(i),n){if(this.fill===null?Vl(t,e.x,e.y,o):Nl(t,e,o,!0,!1))return!0}else{for(n=t.figures,t=0;t<n.count;t++){if(o=n.s[t],a=o.startX,D=o.startY,e.zd(a,D)>i)return!1;for(p=o.segments.s,w=p.length,O=0;O<w;O++)switch(X=p[O],X.type){case Io:case Ci:if(a=X.endX,D=X.endY,e.zd(a,D)>i)return!1;break;case ds:var re=yr();if(vt.Qe(a,D,X.point1X,X.point1Y,X.point2X,X.point2Y,X.endX,X.endY,.8,re),a=r(re,e),Mr(re),a||(a=X.endX,D=X.endY,e.zd(a,D)>i))return!1;break;case na:if(re=yr(),vt.ep(a,D,X.point1X,X.point1Y,X.endX,X.endY,.8,re),a=r(re,e),Mr(re),a||(a=X.endX,D=X.endY,e.zd(a,D)>i))return!1;break;case Oo:case ca:re=X.type===Oo?Ys(X,o):Sa(X,o,a,D);var de=re.length;if(de===0){if(a=X.type===Oo?X.centerX:X.endX,D=X.type===Oo?X.centerY:X.endY,e.zd(a,D)>i)return!1;break}X=null;for(var Se=yr(),Te=0;Te<de;Te++)if(X=re[Te],Se.length=0,vt.Qe(X[0],X[1],X[2],X[3],X[4],X[5],X[6],X[7],.8,Se),r(Se,e))return Mr(Se),!1;Mr(Se),X!==null&&(a=X[6],D=X[7]);break;default:Lt("Unknown Segment type: "+X.type)}}return!0}}}return!1},ye.qc=function(){this.ua=null},ye.kq=function(){return this.ig};function N0(e){var t=e.diagram;t!==null&&t.undoManager.isUndoingRedoing||(e.segmentOrientation=Lp,e.toArrow!=="None"?(e.segmentIndex=-1,e.alignmentFocus=ws):e.fromArrow!=="None"&&(e.segmentIndex=0,e.alignmentFocus=new Nn(1-ws.x,ws.y)))}vr.makeGeometry=function(e,t,n){if(e.toArrow!=="None")var r=ac[e.toArrow];else e.fromArrow!=="None"?r=ac[e.fromArrow]:(r=vt.Ze[e.figure],typeof r=="string"&&(r=vt.Ze[r]),r===void 0&&Lt("Unknown Shape.figure: "+e.figure),r=r(e,t,n),r.Sk=t,r.Rk=n);if(r===null){var i=vt.Ze.Rectangle;typeof i=="function"&&(r=i(e,t,n))}return r};function R0(e){var t=ac[e];if(t===void 0){var n=e.toLowerCase();if(n==="none")return"None";if(t=ac[n],t===void 0){var r=null,i;for(i in vt.um)if(i.toLowerCase()===n){r=i;break}if(r!==null)return e=un.parse(vt.um[r],!1),ac[r]=e,n!==r&&(ac[n]=r),r}}return typeof t=="string"?t:t instanceof un?e:null}kn.Object.defineProperties(vr.prototype,{geometry:{get:function(){return this.ua!==null?this.ua:this.Rd},set:function(e){var t=this.ua,n=this.Rd;if(t!==e){e!==null?this.Rd=this.ua=e.freeze():this.Rd=this.ua=null;var r=this.part;r!==null&&(r.ag=NaN),this.v(),this.g("geometry",t||n,e),Ws(this)&&(e=this.part,e!==null&&to(this,e,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(e){e=un.parse(e);var t=e.normalize();this.geometry=e,this.position=e=Ue.allocAt(-t.x,-t.y),Ue.free(e)}},isGeometryPositioned:{get:function(){return(this.l&1048576)!==0},set:function(e){var t=(this.l&1048576)!==0;t!==e&&(this.l^=1048576,this.v(),this.g("isGeometryPositioned",t,e))}},fill:{get:function(){return this.Ui},set:function(e){var t=this.Ui;t!==e&&(e!==null&&Ff(e,"Shape.fill"),e instanceof yi&&e.freeze(),this.Ui=e,this.N(),this.g("fill",t,e))}},stroke:{get:function(){return this.xc},set:function(e){var t=this.xc;t!==e&&(e!==null&&Ff(e,"Shape.stroke"),e instanceof yi&&e.freeze(),this.xc=e,this.N(),this.g("stroke",t,e))}},strokeWidth:{get:function(){return this.ig},set:function(e){var t=this.ig;if(t!==e)if(0<=e){this.ig=e,this.v();var n=this.part;n!==null&&(n.ag=NaN),this.g("strokeWidth",t,e)}else hr(e,"value >= 0",vr,"strokeWidth:value")}},strokeCap:{get:function(){return this.Na!==null?this.Na.Hr:"butt"},set:function(e){var t=this.strokeCap;t!==e&&(typeof e!="string"||e!=="butt"&&e!=="round"&&e!=="square"?hr(e,'"butt", "round", or "square"',vr,"strokeCap"):(cf(this),this.Na.Hr=e,this.N(),this.g("strokeCap",t,e)))}},strokeJoin:{get:function(){return this.Na!==null?this.Na.Ir:"miter"},set:function(e){var t=this.strokeJoin;t!==e&&(typeof e!="string"||e!=="miter"&&e!=="bevel"&&e!=="round"?hr(e,'"miter", "bevel", or "round"',vr,"strokeJoin"):(cf(this),this.Na.Ir=e,this.N(),this.g("strokeJoin",t,e)))}},strokeMiterLimit:{get:function(){return this.Na!==null?this.Na.Jr:10},set:function(e){var t=this.strokeMiterLimit;if(t!==e&&1<=e){cf(this),this.Na.Jr=e,this.N();var n=this.part;n!==null&&(n.ag=NaN),this.g("strokeMiterLimit",t,e)}}},strokeDashArray:{get:function(){return this.Yg},set:function(e){var t=this.Yg;if(t!==e){if(e!==null){for(var n=e.length,r=0,i=0;i<n;i++){var o=e[i];0<=o&&isFinite(o)||Lt("strokeDashArray:value "+o+" at index "+i+" must be a positive number or zero."),r+=o}if(r===0){if(t===null)return;e=null}}this.Yg=e,this.N(),this.g("strokeDashArray",t,e)}}},strokeDashOffset:{get:function(){return this.Na!==null?this.Na.uj:0},set:function(e){var t=this.strokeDashOffset;t!==e&&0<=e&&(cf(this),this.Na.uj=e,this.N(),this.g("strokeDashOffset",t,e))}},figure:{get:function(){return this.an},set:function(e){var t=this.an;if(t!==e){var n=vt.Ze[e];typeof n=="function"?n=e:(n=vt.Ze[e.toLowerCase()])||Lt("Unknown Shape.figure: "+e),t!==n&&(e=this.part,e!==null&&(e.ag=NaN),this.an=n,this.Rd=null,this.qc(),this.v(),this.g("figure",t,n))}}},toArrow:{get:function(){return this.Ua!==null?this.Ua.V:"None"},set:function(e){var t=this.toArrow;if(e===!0?e="Standard":e===!1&&(e=""),t!==e){var n=R0(e);n===null?Lt("Unknown Shape.toArrow: "+e):t!==n&&(this.Ua===null&&(this.Ua=new wh),this.Ua.V=n,this.Rd=null,this.qc(),this.v(),N0(this),this.g("toArrow",t,n))}}},fromArrow:{get:function(){return this.Ua!==null?this.Ua.j:"None"},set:function(e){var t=this.fromArrow;if(e===!0?e="Standard":e===!1&&(e=""),t!==e){var n=R0(e);n===null?Lt("Unknown Shape.fromArrow: "+e):t!==n&&(this.Ua===null&&(this.Ua=new wh),this.Ua.j=n,this.Rd=null,this.qc(),this.v(),N0(this),this.g("fromArrow",t,n))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:is},set:function(e){var t=this.spot1;t.D(e)||(e=e.J(),cf(this),this.Na.fg=e,this.v(),this.g("spot1",t,e))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:is},set:function(e){var t=this.spot2;t.D(e)||(e=e.J(),cf(this),this.Na.gg=e,this.v(),this.g("spot2",t,e))}},parameter1:{get:function(){return this.Un},set:function(e){var t=this.Un;t!==e&&(this.Un=e,this.qc(),this.v(),this.g("parameter1",t,e))}},parameter2:{get:function(){return this.Vn},set:function(e){var t=this.Vn;t!==e&&(this.Vn=e,this.qc(),this.v(),this.g("parameter2",t,e))}},naturalBounds:{get:function(){return this.dc}},pathPattern:{get:function(){return this.Na!==null?this.Na.br:null},set:function(e){var t=this.pathPattern;t!==e&&(cf(this),this.Na.br=e,this.N(),this.g("pathPattern",t,e))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:cr},set:function(e){var t=this.geometryStretch;t!==e&&(cf(this),this.Na.jq=e,this.v(),this.g("geometryStretch",t,e))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(e){var t=this.interval;if(e=Math.round(e),t!==e&&e!==0&&isFinite(e)){this.fa===null&&(this.fa=new lc),this.fa.Tk=e;var n=this.diagram;n!==null&&this.panel===n.grid&&Ku(n),this.v(),n=this.panel,n!==null&&(n.graduatedIntervals=null),this.g("interval",t,e)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(e){var t=this.graduatedStart;t!==e&&(0>e?e=0:1<e&&(e=1),this.fa===null&&(this.fa=new lc),this.fa.u=e,this.v(),this.g("graduatedStart",t,e))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(e){var t=this.graduatedEnd;t!==e&&(0>e?e=0:1<e&&(e=1),this.fa===null&&(this.fa=new lc),this.fa.j=e,this.v(),this.g("graduatedEnd",t,e))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(e){var t=this.graduatedSkip;t!==e&&(this.fa===null&&(this.fa=new lc),this.fa.o=e,this.v(),this.g("graduatedSkip",t,e))}}}),vr.prototype.intersectsRect=vr.prototype.Yc,vr.prototype.containedInRect=vr.prototype.fh,vr.prototype.getNearestIntersectionPoint=vr.prototype.rs,vr.prototype.getDocumentBounds=vr.prototype.mi,vr.prototype.getDocumentPoint=vr.prototype.ga;var ac=new yo,Fv=new yo;vr.className="Shape",vr.getFigureGenerators=function(){var e=new nn,t;for(t in vt.Ze)t!==t.toLowerCase()&&e.add(t,vt.Ze[t]);return e.freeze(),e},vr.defineFigureGenerator=function(e,t){var n=e.toLowerCase(),r=vt.Ze;r[e]=t,r[n]=e},vr.getArrowheadGeometries=function(){var e=new nn;for(r in vt.um)if(ac[r]===void 0){var t=un.parse(vt.um[r],!1);ac[r]=t,t=r.toLowerCase(),t!==r&&(ac[t]=r)}for(var n in ac)if(n!==n.toLowerCase()){var r=ac[n];r instanceof un&&e.add(n,r)}return e.freeze(),e},vr.defineArrowheadGeometry=function(e,t){var n=null;typeof t=="string"?n=un.parse(t,!1):n=t,t=e.toLowerCase(),t!=="none"&&e!==t||Lt("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+e);var r=ac;r[e]=n,r[t]=e};function Bv(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=cr,this.gg=this.fg=is}Bv.prototype.copy=function(){var e=new Bv;return e.Hr=this.Hr,e.Ir=this.Ir,e.Jr=this.Jr,e.uj=this.uj,e.br=this.br,e.jq=this.jq,e.fg=this.fg.J(),e.gg=this.gg.J(),e};function Vi(e,t){return gt.call(this),Zg||(ja=Po?new Ql(null).context:null,Zg=!0),this.l|=2097152,this.ec="",this.xc="black",this.Ae="13px sans-serif",this.Lq=this.Cb=this.Gc=0,this.da=this.fa=this.Gm=null,this.Ih=0,this.df=null,this.Le=0,this.ze=this.Qb=this.Qc=null,typeof e=="string"?this.text=e:e&&Object.assign(this,e),t&&Object.assign(this,t),this}Tn(Vi,gt),Vi.prototype.cloneProtected=function(e){gt.prototype.cloneProtected.call(this,e),e.ec=this.ec,e.xc=this.xc,e.Ae=this.Ae,e.Gc=this.Gc,e.Cb=this.Cb,e.Lq=this.Lq,e.Gm=this.Gm,this.fa!==null&&(e.fa=this.fa.copy()),this.da!==null&&(e.da=this.da.nc?this.da:this.da.copy()),e.Ih=this.Ih,e.df=this.df,e.Le=this.Le,e.Qc=this.Qc,e.Qb=this.Qb,e.ze=this.ze};function Zu(e){e.da===null?e.da=new Vv:e.da.nc&&(e.da=e.da.copy())}ye=Vi.prototype,ye.th=function(){gt.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function I0(e,t){e.l=t.l|6144,e.pb=t.opacity,e.Ma=t.background,e.areaBackground=t.areaBackground,e.jd=t.desiredSize.J(),e.minSize=t.minSize.J(),e.maxSize=t.maxSize.J(),t.Lb!==null?e.Lb=t.Lb.copy():e.Lb=null,e.Ca=t.scale,e.Kb=t.angle,e.stretch=t.stretch,e.Kg=t.margin.J(),e.Jb=t.alignment.J(),e.sk=t.alignmentFocus.J(),e.segmentFraction=t.segmentFraction,e.segmentOffset=t.segmentOffset.J(),e.segmentOrientation=t.segmentOrientation,t.tb!==null&&(e.tb=t.tb.copy()),e.shadowVisible=t.shadowVisible,e.ec=t.ec,e.xc=t.xc,e.Ae=t.Ae,e.fa!==null&&(e.fa=t.fa.copy()),t.da!==null&&(e.da=t.da.nc?t.da:t.da.copy()),e.Ih=t.Ih}ye.qb=function(e){e.classType===Vi?this.wrap=e:gt.prototype.qb.call(this,e)},ye.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},ye.v=function(){gt.prototype.v.call(this)},ye.hh=function(e,t){if(this.xc!==null&&this.ec.length!==0&&this.Ae!==null){var n=this.naturalBounds,r=this.actualBounds,i=n.width,o=n.height,a=_p(this),p=e.textAlign=this.textAlign,w=t.tn;p==="start"?p=w?"right":"left":p==="end"&&(p=w?"left":"right"),w=this.isUnderline;var O=this.isStrikethrough;Ho(this,e,this.xc,!0,!1,n,r),(w||O)&&Ho(this,e,this.xc,!1,!1,n,r),r=0,n=!1;var D=this.oe,X=D.dx-(a*D.m21+D.dx);D=D.dy-(a*D.m22+D.dy);var re=t.scale;switch(8>(X*X+D*D)*re*re&&(n=!0),t.ib!==e&&(n=!1),t.ib instanceof sl&&(n=!1),t.Gf("textGreeking")===!1&&(n=!1),t=this.spacingAbove,X=this.spacingBelow,this.flip){case Kr:e.translate(i,0),e.scale(-1,1);break;case Er:e.translate(0,o),e.scale(1,-1);break;case Ti:e.translate(i,o),e.scale(-1,-1)}if(e.yc(),D=this.Gc,re=(t+a+X)*D,o>re&&(r=this.verticalAlignment,r=r.y*o-r.y*re+r.offsetY),D===1&&this.ze!==null)X=this.Cb,X>i&&(X=i),this.Oj(this.ze,e,0,r+t,i,a,X,n,p,w,O);else if(this.Qc!==null&&this.Qb!==null)for(re=0;re<D;re++){var de=this.Qc[re];de>i&&(de=i),r+=t,this.Oj(this.Qb[re],e,0,r,i,a,de,n,p,w,O),r+=a+X}switch(this.flip){case Kr:e.scale(-1,1),e.translate(-i,0);break;case Er:e.scale(1,-1),e.translate(0,-o);break;case Ti:e.scale(-1,-1),e.translate(-i,-o)}}},ye.Oj=function(e,t,n,r,i,o,a,p,w,O,D){var X=0;if(p)w==="left"?X=0:w==="right"?X=i-a:w==="center"&&(X=(i-a)/2),t.fillRect(n+X,r+.25*o,a,1);else{if(w==="left"?X=0:w==="right"?X=i:w==="center"&&(X=i/2),i=Kg!==null?Kg(this,o):.75*o,t.fillText(e,n+X,r+i),e=o/20|0,e===0&&(e=1),w==="right"?X-=a:w==="center"&&(X-=a/2),O){p=Yg!==null?Yg(this,o):.8*o,w=n+X,O=r+p,i=n+X+a,p=r+p;var re=e;t.beginPath(),t.lineWidth=re,t.moveTo(w,O),t.lineTo(i,p),t.stroke(),t.Se(),t instanceof sl&&t.ad.classList.add("gojs-td")}D&&(D=r+o-o/2.2|0,e%2!==0&&(D+=.5),r=n+X,o=D,n=n+X+a,a=D,X=e,t.beginPath(),t.lineWidth=X,t.moveTo(r,o),t.lineTo(n,a),t.stroke(),t.Se(),t instanceof sl&&t.ad.classList.add("gojs-td"))}},ye.kk=function(e,t,n){if(!gt.prototype.kk.call(this,e,t,n))return!1;if(Ho(this,e,this.xc,!0,!1,this.naturalBounds,this.actualBounds),n){if(this.svg.getElementsByTagName("text").length===0)return!0;for(t=this.svg.getElementsByClassName("gojs-td"),n=0;n<t.length;n++)c0(e,t[n],!1)}else t=this.svg,t.innerHTML=this.text,c0(e,t,!0);return!0},ye.nk=function(e){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:gt.prototype.nk.call(this,e)},ye.Dv=function(e,t){if(e.nodeName!=="g")e.setAttributeNS(null,"filter",t);else{e=e.getElementsByTagName("text");for(var n=0;n<e.length;n++)e[n].setAttributeNS(null,"filter",t)}},ye.Wl=function(e,t,n,r){var i=this.Gc;this.Ih=e,this.l&=-16777217;var o=this.Ae;ja!==null&&B0!==o&&(B0=ja.font=o),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var a;if(isNaN(this.desiredSize.width)){if(o=this.ec.replace(/\r\n/g,`
`).replace(/\r/g,`
`),o.length===0)o=8;else if(this.isMultiline){for(var p=a=0,w=!1;!w;){var O=o.indexOf(`
`,p);O===-1&&(O=o.length,w=!0),p=o.substr(p,O-p),this.formatting===Ap&&(p=p.trim()),a=Math.max(a,gu(p)),p=O+1}o=a}else a=o.indexOf(`
`,0),0<=a&&(o=o.substr(0,a)),o=gu(o);o=Math.min(o,e/this.scale)}else o=this.desiredSize.width;if(this.panel!==null&&(o=Math.min(o,this.panel.maxSize.width)),a=L0(this,o),isNaN(this.desiredSize.height)?a=Math.min(a,t/this.scale):a=this.desiredSize.height,w=a,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===$g&&(t=this.Ae,t=this.overflow===$g?O0(t):0,O=this.spacingAbove+this.spacingBelow,O=Math.max(0,_p(this)+O),w=Math.min(this.maxLines-1,Math.max(Math.floor(w/O+.01)-1,0)),!(w+1>=this.Qb.length))){for(this.l|=16777216,O=this.Qb[w],t=Math.max(1,e-t);gu(O)>t&&1<O.length;)O=O.substr(0,O.length-1);O+=kp,t=gu(O),this.Qb[w]=O,this.Qb=this.Qb.slice(0,w+1),this.Qc[w]=t,this.Qc=this.Qc.slice(0,w+1),this.Le=this.Qb.length,this.Cb=Math.max(this.Cb,t),this.Gc=this.Le,this.Gc===1&&(this.ze=this.Qb[0])}(this.wrap===M0||isNaN(this.desiredSize.width))&&(o=isNaN(e)?this.Cb:Math.min(e,this.Cb)),o=Math.max(n,o),a=Math.max(r,a),no(this.dc,o,a),this.Ge(0,0,o,a),this.svg!==null&&i!==this.Gc&&(this.Uc=!0)},ye.eh=function(e,t,n,r){ga(this,e,t,n,r)};function Tp(e,t,n){e.ze===null?(e.ze=t,e.Cb=n):((e.Qb===null||e.Qc===null)&&(e.Qb=[],e.Qc=[],e.Qb.push(e.ze),e.Qc.push(e.Cb)),e.Qb.push(t),e.Qc.push(n),e.Qb.length>e.maxLines&&(e.l|=16777216))}function jv(e,t,n,r){var i=e.formatting===Ap;i&&(t=t.trim());var o=0,a=e.Ae,p=e.spacingAbove+e.spacingBelow;p=Math.max(0,_p(e)+p);var w=e.overflow===$g?O0(a):0;if(e.Gc>=e.maxLines)r!==null&&r.h(0,p);else if(a=t,e.wrap===Uv){e.Le=1;var O=gu(t);if(w===0||O<=n)e.Cb=Math.max(e.Cb,O),Tp(e,t,e.Cb),r!==null&&r.h(O,p);else{for(o=wd(e,a),a=a.substr(o.length),t=wd(e,a),O=gu(o+t);0<t.length&&O<=n;)o+=t,a=a.substr(t.length),t=wd(e,a),O=o+t,i&&(O=O.trim()),O=gu(O);for(i&&(t=t.trim()),o+=t,n=Math.max(1,n-w);gu(o)>n&&1<o.length;)o=o.substr(0,o.length-1);e.l|=16777216,o+=kp;var D=gu(o);e.Cb=D,Tp(e,o,D),r!==null&&r.h(D,p)}}else{for(w=0,a.length===0&&(w=1,Tp(e,a,0));0<a.length;){for(t=wd(e,a),a=a.substr(t.length);gu(t)>n;){var X=1;for(O=gu(t.substr(0,X)),D=0;O<=n;)X++,D=O,O=gu(t.substr(0,X));if(X===1){var re=O;o=Math.max(o,O)}else re=D,o=Math.max(o,D);if(X--,1>X&&(X=1),Tp(e,t.substr(0,X),re),w++,t=t.substr(X),e.Gc+w>e.maxLines)break}for(D=wd(e,a),O=gu(t+D);0<D.length&&O<=n;)t+=D,a=a.substr(D.length),D=wd(e,a),O=t+D,i&&(O=O.trim()),O=gu(O);if(i&&(t=t.trim()),t!==""&&(t[t.length-1]==="\xAD"&&(t=t.substring(0,t.length-1)+"\u2010"),D.length===0?(X=O,o=Math.max(o,O)):(X=D=gu(t),o=Math.max(o,D)),Tp(e,t,X),w++,e.Gc+w>e.maxLines))break}e.Le=Math.min(e.maxLines,w),e.Cb=Math.max(e.Cb,o),r!==null&&r.h(e.Cb,p*e.Le)}}function wd(e,t){if(e.wrap===D0)return t.substr(0,1);for(var n=t.length,r=0,i=P1;r<n&&!i.test(t.charAt(r));)r++;for(e.formatting===P0&&(n=Math.min(n,r+1));r<n&&i.test(t.charAt(r));)r++;return r>=t.length?t:t.substr(0,r)}function gu(e){return ja===null?8*e.length:ja.measureText(e).width}function _p(e){if(e.df!==null)return e.df;var t=e.Ae;if(ja===null){var n=16;return e.df=n}return Gv[t]!==void 0&&5e3>F0?n=Gv[t]:(n=1.3*ja.measureText("M").width,Gv[t]=n,F0++),e.df=n}function O0(e){if(ja===null)return 6;if(Xg[e]!==void 0&&5e3>Wv)var t=Xg[e];else t=ja.measureText(kp).width,Xg[e]=t,Wv++;return t}function L0(e,t){var n=e.ec.replace(/\r\n/g,`
`).replace(/\r/g,`
`),r=e.spacingAbove+e.spacingBelow;if(r=Math.max(0,_p(e)+r),n.length===0)return e.Cb=0,e.Gc=1,r;if(!e.isMultiline){var i=n.indexOf(`
`,0);0<=i&&(n=n.substr(0,i))}i=0;for(var o=e.Gc=0,a,p=!1;!p;){if(a=n.indexOf(`
`,o),a===-1&&(a=n.length,p=!0),o<=a){if(o=n.substr(o,a-o),e.wrap!==Uv){e.Le=0;var w=Yt.alloc();jv(e,o,t,w),i+=w.height,Yt.free(w),e.Gc+=e.Le}else jv(e,o,t,null),i+=r,e.Gc++;e.Gc===e.maxLines&&(p=!0)}o=a+1}return e.Lq=i}kn.Object.defineProperties(Vi.prototype,{font:{get:function(){return this.Ae},set:function(e){var t=this.Ae;t!==e&&(this.Ae=e,this.df=null,this.v(),this.g("font",t,e))}},text:{get:function(){return this.ec},set:function(e){var t=this.ec;e!=null?e=e.toString():e="",t!==e&&(this.ec=e,this.v(),this.g("text",t,e),this.Uc=!0)}},textAlign:{get:function(){return this.da!==null?this.da.Or:"start"},set:function(e){var t=this.textAlign;t===e||e!=="start"&&e!=="end"&&e!=="left"&&e!=="right"&&e!=="center"||(Zu(this),this.da.Or=e,this.N(),this.g("textAlign",t,e))}},flip:{get:function(){return this.da!==null?this.da.Xf:Wt},set:function(e){var t=this.flip;t!==e&&(Zu(this),this.da.Xf=e,this.N(),this.g("flip",t,e))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:Bu},set:function(e){var t=this.verticalAlignment;t.D(e)||(e=e.J(),Zu(this),this.da.Yr=e,wa(this),this.g("verticalAlignment",t,e))}},naturalBounds:{get:function(){if(!this.dc.w()){var e=Yt.alloc();jv(this,this.ec,999999,e);var t=e.width;Yt.free(e),e=L0(this,t);var n=this.desiredSize;isNaN(n.width)||(t=n.width),isNaN(n.height)||(e=n.height),no(this.dc,t,e)}return this.dc}},isMultiline:{get:function(){return(this.l&2097152)!==0},set:function(e){var t=(this.l&2097152)!==0;t!==e&&(this.l^=2097152,this.v(),this.g("isMultiline",t,e))}},isUnderline:{get:function(){return(this.l&4194304)!==0},set:function(e){var t=(this.l&4194304)!==0;t!==e&&(this.l^=4194304,this.Uc=!0,this.N(),this.g("isUnderline",t,e))}},isStrikethrough:{get:function(){return(this.l&8388608)!==0},set:function(e){var t=(this.l&8388608)!==0;t!==e&&(this.l^=8388608,this.Uc=!0,this.N(),this.g("isStrikethrough",t,e))}},wrap:{get:function(){return this.da!==null?this.da.$r:Hv},set:function(e){var t=this.wrap;t!==e&&(Zu(this),this.da.$r=e,this.v(),this.g("wrap",t,e))}},overflow:{get:function(){return this.da!==null?this.da.$q:zv},set:function(e){var t=this.overflow;t!==e&&(Zu(this),this.da.$q=e,this.v(),this.g("overflow",t,e))}},isOverflowed:{get:function(){return(this.l&16777216)!==0}},stroke:{get:function(){return this.xc},set:function(e){var t=this.xc;t!==e&&(e!==null&&Ff(e,"TextBlock.stroke"),e instanceof yi&&e.freeze(),this.xc=e,this.N(),this.g("stroke",t,e))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return _p(this)}},editable:{get:function(){return(this.l&1048576)!==0},set:function(e){var t=(this.l&1048576)!==0;t!==e&&(this.l^=1048576,this.g("editable",t,e))}},textEditor:{get:function(){return this.da!==null?this.da.Qr:null},set:function(e){var t=this.textEditor;t!==e&&(Zu(this),this.da.Qr=e,this.g("textEditor",t,e))}},errorFunction:{get:function(){return this.da!==null?this.da.Hd:null},set:function(e){var t=this.errorFunction;t!==e&&(Zu(this),this.da.Hd=e,this.g("errorFunction",t,e))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(e){var t=this.interval;if(e=Math.round(e),t!==e&&e!==0&&isFinite(e)){this.fa===null&&(this.fa=new lc),this.fa.Tk=e,this.v();var n=this.panel;n!==null&&(n.graduatedIntervals=null),this.g("interval",t,e)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(e){var t=this.graduatedStart;t!==e&&(0>e?e=0:1<e&&(e=1),this.fa===null&&(this.fa=new lc),this.fa.u=e,this.v(),this.g("graduatedStart",t,e))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(e){var t=this.graduatedEnd;t!==e&&(0>e?e=0:1<e&&(e=1),this.fa===null&&(this.fa=new lc),this.fa.j=e,this.v(),this.g("graduatedEnd",t,e))}},graduatedFunction:{get:function(){return this.fa!==null?this.fa.F:null},set:function(e){var t=this.graduatedFunction;t!==e&&(this.fa===null&&(this.fa=new lc),this.fa.F=e,this.v(),this.g("graduatedFunction",t,e))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(e){var t=this.graduatedSkip;t!==e&&(this.fa===null&&(this.fa=new lc),this.fa.o=e,this.v(),this.g("graduatedSkip",t,e))}},textValidation:{get:function(){return this.da!==null?this.da.vj:null},set:function(e){var t=this.textValidation;t!==e&&(Zu(this),this.da.vj=e,this.g("textValidation",t,e))}},textEdited:{get:function(){return this.da!==null?this.da.Pr:null},set:function(e){var t=this.textEdited;t!==e&&(Zu(this),this.da.Pr=e,this.g("textEdited",t,e))}},spacingAbove:{get:function(){return this.da!==null?this.da.Dr:0},set:function(e){var t=this.spacingAbove;t!==e&&(Zu(this),this.da.Dr=e,this.v(),this.g("spacingAbove",t,e))}},spacingBelow:{get:function(){return this.da!==null?this.da.Er:0},set:function(e){var t=this.spacingBelow;t!==e&&(Zu(this),this.da.Er=e,this.v(),this.g("spacingBelow",t,e))}},formatting:{get:function(){return this.da!==null?this.da.gq:Ap},set:function(e){var t=this.formatting;t!==e&&(Zu(this),this.da.gq=e,this.v(),this.g("formatting",t,e))}},maxLines:{get:function(){return this.da!==null?this.da.Jq:1/0},set:function(e){var t=this.maxLines;t!==e&&(e=Math.floor(e),0>=e&&hr(e,"> 0",Vi,"maxLines"),Zu(this),this.da.Jq=e,this.v(),this.g("maxLines",t,e))}},metrics:{get:function(){return{arrSize:this.Qc!==null?this.Qc:[this.Cb],arrText:this.Qb!==null?this.Qb:[this.ze],maxLineWidth:this.Cb,fontHeight:this.df}}},choices:{get:function(){return this.Gm},set:function(e){var t=this.Gm;t!==e&&(this.Gm=e,this.g("choices",t,e))}}});var Kg=null,Yg=null,Uv=new hn(Vi,"None",0),M0=new hn(Vi,"WrapFit",1),Hv=new hn(Vi,"WrapDesiredSize",2),D0=new hn(Vi,"WrapBreakAll",3),zv=new hn(Vi,"OverflowClip",0),$g=new hn(Vi,"OverflowEllipsis",1),Ap=new hn(Vi,"FormatTrim",0),P0=new hn(Vi,"FormatNone",0),P1=/[ \u200b\u00ad]/,Gv=new yo,F0=0,Xg=new yo,Wv=0,kp="...",B0="",ja=null,Zg=!1;Vi.className="TextBlock";function Vv(){this.nc=!1,this.Hd=null,this.Xf=Wt,this.gq=Ap,this.Jq=1/0,this.$q=zv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=Bu,this.$r=Hv}Vv.prototype.copy=function(){var e=new Vv;return e.Hd=this.Hd,e.Xf=this.Xf,e.gq=this.gq,e.Jq=this.Jq,e.$q=this.$q,e.Dr=this.Dr,e.Er=this.Er,e.Or=this.Or,e.Pr=this.Pr,e.Qr=this.Qr,e.vj=this.vj,e.Yr=this.Yr,e.$r=this.$r,e},Vi.getEllipsis=function(){return kp},Vi.setEllipsis=function(e){kp=e,Xg=new yo,Wv=0},Vi.getBaseline=function(){return Kg},Vi.setBaseline=function(e){Kg=e},Vi.getUnderline=function(){return Yg},Vi.setUnderline=function(e){Yg=e},Vi.isValidFont=function(e){if(Zg||(ja=Po?new Ql(null).context:null,Zg=!0),ja===null)return!0;var t=ja.font;if(e===t||e==="10px sans-serif")return!0;ja.font="10px sans-serif",ja.font=e;var n=ja.font;if(n!=="10px sans-serif")return ja.font=t,!0;ja.font="19px serif";var r=ja.font;return ja.font=e,n=ja.font,ja.font=t,n!==r},Vi.FormatNone=P0,Vi.FormatTrim=Ap,Vi.None=Uv,Vi.OverflowClip=zv,Vi.OverflowEllipsis=$g,Vi.WrapBreakAll=D0,Vi.WrapDesiredSize=Hv,Vi.WrapFit=M0;function lc(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}lc.prototype.copy=function(){var e=new lc;return e.Tk=this.Tk,e.u=this.u,e.j=this.j,e.F=this.F,e.o=this.o,e},lc.className="GradElementSettings";function Ua(e,t){gt.call(this),this.Eg=null,this.qo="",this.Xg=ui,this.Nk=Xt,this.Zg=this.Hd=null,this.Mk=jr,this.Xf=Wt,this.vl=null,this.qn=!1,this.en=!0,this.al=!1,this.bt=this.rl=null,typeof e=="string"?this.source=e:e&&Object.assign(this,e),t&&Object.assign(this,t)}var Cd;Tn(Ua,gt),Ua.prototype.cloneProtected=function(e){gt.prototype.cloneProtected.call(this,e),e.qo=this.qo,e.element=this.Eg,e.Xg=this.Xg.J(),e.Nk=this.Nk,e.Xf=this.Xf,e.Hd=this.Hd,e.Zg=this.Zg,e.Mk=this.Mk.J(),e.en=this.en,e.rl=this.rl},Ua.prototype.qb=function(e){e===Wt||e===Dn||e===Hr?this.imageStretch=e:gt.prototype.qb.call(this,e)},Ua.prototype.toString=function(){return"Picture("+this.source+")#"+it(this)};function Td(e){e===void 0&&(e=""),e!==""?Cd[e]&&(delete Cd[e],Jg--):(Cd=new yo,Jg=0)}function j0(e,t){t.qy||(t.Fq=function(n){t.sq=!0,t.ln=!1;var r=t.Bg.copy();if(r!=null){for(r=r.iterator;r.next();){var i=r.value;i.N();var o=t.getAttribute("src")||"",a=i.Og.I(o);if(a!==null)for(var p=a.length,w=0;w<p;w++)o=a[w],i.Xn.add(o),o.Uc=!0,i.$b(),t.hn&&(t.eu===void 0&&(t.eu=n),o.Zg!==null&&o.Zg(o,n))}t.Bg.clear()}e.desiredSize.w()||(gs(e,!1),e.v())},t.Yp=function(n){t.ln=n;var r=t.Bg.copy();if(r!=null){for(r=r.iterator;r.next();){var i=r.value,o=t.getAttribute("src")||"",a=i.Og.I(o);if(a!==null){i=a.length,o=yr();for(var p=0;p<i;p++)o.push(a[p]);if(t.hn)for(p=0;p<i;p++)a=o[p],a.Hd!==null&&a.Hd(a,n);Mr(o)}}t.Bg.clear()}},t.addEventListener("load",t.Fq),t.addEventListener("error",t.Yp),t.qy=!0)}Ua.prototype.hA=function(){if(this.source!==""){Td(this.source);var e=this.source;this.source="",this.source=e}},Ua.prototype.redraw=function(){this.N(),this.Uc=!0},Ua.prototype.hh=function(e,t){var n=this.Eg;if(n!==null){var r=n.getAttribute("src");if(!(n instanceof HTMLImageElement&&(r===null||r==="")||n.ln instanceof Event&&e instanceof lf)){var i=e instanceof sl;r=this.naturalBounds;var o=0,a=0,p=this.qn,w=p?+n.width:n.naturalWidth;if(p=p?+n.height:n.naturalHeight,w===void 0&&n.videoWidth&&(w=n.videoWidth),p===void 0&&n.videoHeight&&(p=n.videoHeight),w=w||r.width,p=p||r.height,w!==0&&p!==0){var O=w,D=p;this.sourceRect.w()&&(o=this.Xg.x,a=this.Xg.y,w=this.Xg.width,p=this.Xg.height);var X=w,re=p,de=this.Nk,Se=this.Mk;switch(de){case Wt:if(this.sourceRect.w())break;X>=r.width&&(o=o+Se.offsetX+(X*Se.x-r.width*Se.x)),re>=r.height&&(a=a+Se.offsetY+(re*Se.y-r.height*Se.y)),w=Math.min(r.width,X),p=Math.min(r.height,re);break;case Xt:X=r.width,re=r.height;break;case Dn:case Hr:de===Dn?(de=Math.min(r.height/re,r.width/X),X*=de,re*=de):de===Hr&&(de=Math.max(r.height/re,r.width/X),X*=de,re*=de,X>=r.width&&(o=(o+Se.offsetX+(X*Se.x-r.width*Se.x)/X)*w),re>=r.height&&(a=(a+Se.offsetY+(re*Se.y-r.height*Se.y)/re)*p),w*=1/(X/r.width),p*=1/(re/r.height),X=r.width,re=r.height)}de=this.Df()*t.scale;var Te=X*de*re*de,Xe=w*p/Te,We=n.__goCache;de=null;var qe=F1;if(!i){if(n.sq&&We!==void 0&&4<Te&&Xe>qe*qe)for(We.gi===null&&(H0(We,4,O,D,n),H0(We,16,O,D,n)),i=We.gi,O=i.length,D=0;D<O&&i[D].ratio*i[D].ratio<Xe;D++)de=i[D];if(!t.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{i=new Ql(null).context;try{i.drawImage(this.Eg,0,0)}catch(tt){this.en=!1}try{i.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(tt){this.vl=!0}}if(this.vl)return}}switch(i=X<r.width?Se.offsetX+(r.width*Se.x-X*Se.x):0,Se=re<r.height?Se.offsetY+(r.height*Se.y-re*Se.y):0,this.flip){case Kr:e.translate(Math.min(r.width,X),0),e.scale(-1,1);break;case Er:e.translate(0,Math.min(r.height,re)),e.scale(1,-1);break;case Ti:e.translate(Math.min(r.width,X),Math.min(r.height,re)),e.scale(-1,-1)}if(e.yc(),t.Gf("pictureRatioOptimization")&&!t.$i&&We!==void 0&&de!==null&&de.ratio!==1){e.save(),t=de.ratio;try{e.drawImage(de.source,o/t,a/t,Math.min(de.source.width,w/t),Math.min(de.source.height,p/t),i,Se,Math.min(r.width,X),Math.min(r.height,re)),e instanceof sl&&(this.bt=[o/t,a/t,Math.min(de.source.width,w/t),Math.min(de.source.height,p/t),i,Se,Math.min(r.width,X),Math.min(r.height,re)])}catch(tt){this.en=!1}e.restore()}else try{e.drawImage(n,o,a,w,p,i,Se,Math.min(r.width,X),Math.min(r.height,re)),e instanceof sl&&(this.bt=[o,a,w,p,i,Se,Math.min(r.width,X),Math.min(r.height,re)])}catch(tt){this.en=!1}switch(this.flip){case Kr:e.scale(-1,1),e.translate(-Math.min(r.width,X),0);break;case Er:e.scale(1,-1),e.translate(0,-Math.min(r.height,re));break;case Ti:e.scale(-1,-1),e.translate(-Math.min(r.width,X),-Math.min(r.height,re))}}}}},Ua.prototype.Wl=function(e,t,n,r){var i=this.desiredSize,o=Ba(this,!0),a=this.Eg,p=this.qn,w=0,O=0;(p||!this.al&&a&&a.complete)&&(this.al=!0),a===null?(isFinite(i.width)||(e=0),isFinite(i.height)||(t=0)):(w=p?+a.width:a.naturalWidth,O=p?+a.height:a.naturalHeight),isFinite(i.width)||o===Xt||o===Bn?(isFinite(e)||(this.sourceRect.w()?e=this.sourceRect.width:a!==null&&(e=w)),n=0):a!==null&&this.al!==!1&&(e=this.sourceRect.w()?this.sourceRect.width:w),isFinite(i.height)||o===Xt||o===Kn?(isFinite(t)||(this.sourceRect.w()?t=this.sourceRect.height:a!==null&&(t=O)),r=0):a!==null&&this.al!==!1&&(t=this.sourceRect.w()?this.sourceRect.height:O),isFinite(i.width)&&(e=i.width),isFinite(i.height)&&(t=i.height),i=this.maxSize,o=this.minSize,n=Math.max(n||0,o.width),r=Math.max(r||0,o.height),e=Math.min(i.width,e),t=Math.min(i.height,t),e=Math.max(n,e),t=Math.max(r,t),a===null||a.complete||(isFinite(e)||(e=0),isFinite(t)||(t=0)),no(this.dc,e,t),this.Ge(0,0,e,t)},Ua.prototype.eh=function(e,t,n,r){ga(this,e,t,n,r)},kn.Object.defineProperties(Ua.prototype,{element:{get:function(){return this.Eg},set:function(e){var t=this.Eg;if(this.Uc=!0,t!==e){this.qn=e instanceof HTMLCanvasElement;var n=e instanceof HTMLImageElement;e===null||n||e instanceof HTMLVideoElement||this.qn||Lt("Picture.element must be an instance of Image, Canvas, or Video, not: "+e);var r=this.diagram;r!==null&&ap(r,this),this.Eg=e,e!==null&&n&&e.Bg===void 0&&(e.Bg=new ut),r!==null&&n&&Sh(r,this),e!==null&&(this.qn||e.complete===!0?(e.hn&&(e.ln instanceof Event&&this.Hd!==null?this.Hd(this,e.ln):e.sq===!0&&!e.ln&&this.Zg!==null&&e.eu&&this.Zg(this,e.eu)),e.sq=!0,this.desiredSize.w()||(gs(this,!1),this.v())):n&&j0(this,e)),this.g("element",t,e),this.N()}}},source:{get:function(){return this.qo},set:function(e){var t=this.qo;if(t!==e){this.Uc=!0,this.qo=e;var n=Cd;if(Po){var r=null;if(n[e]!==void 0)r=n[e];else if(e!==""){30<Jg&&(Td(),n=Cd),r=mi("img"),r.hn=!0,j0(this,r);var i=this.rl;i!==null&&(r.crossOrigin=i(this)),r.src=e,n[e]=r,Jg++}this.element=r,r!==null&&r.__goCache===void 0&&(r.__goCache=new U0),this.v(),this.N()}this.g("source",t,e)}}},sourceCrossOrigin:{get:function(){return this.rl},set:function(e){if(this.rl!==e&&(this.rl=e,this.element!==null)){var t=this.element.getAttribute("src");e===null&&typeof t=="string"?this.element.crossOrigin=null:e!==null&&(this.element.crossOrigin=e(this)),this.element.src=t}}},sourceRect:{get:function(){return this.Xg},set:function(e){var t=this.Xg;t.D(e)||(this.Xg=e=e.J(),this.N(),this.g("sourceRect",t,e))}},imageStretch:{get:function(){return this.Nk},set:function(e){var t=this.Nk;t!==e&&(this.Nk=e,this.N(),this.g("imageStretch",t,e))}},flip:{get:function(){return this.Xf},set:function(e){var t=this.Xf;t!==e&&(this.Xf=e,this.N(),this.g("flip",t,e))}},imageAlignment:{get:function(){return this.Mk},set:function(e){var t=this.Mk;t.D(e)||(this.Mk=e=e.J(),this.N(),this.g("imageAlignment",t,e))}},errorFunction:{get:function(){return this.Hd},set:function(e){var t=this.Hd;t!==e&&(this.Hd=e,this.g("errorFunction",t,e))}},successFunction:{get:function(){return this.Zg},set:function(e){var t=this.Zg;t!==e&&(this.Zg=e,this.g("successFunction",t,e))}},naturalBounds:{get:function(){return this.dc}}}),Ua.prototype.redraw=Ua.prototype.redraw,Ua.prototype.reloadSource=Ua.prototype.hA;var Jg=0,F1=4;Ua.className="Picture",Cd=new yo,Ua.clearCache=Td;function U0(){this.gi=null}function H0(e,t,n,r,i){e.gi===null&&(e.gi=[]);var o=new Ql(null),a=o.context,p=1/t;o.width=n/t,o.height=r/t,o.width!==0&&o.height!==0&&(t=new z0(o.Oa,t),n=1,0<e.gi.length&&(n=e.gi[e.gi.length-1],i=n.source,n=n.ratio),a.setTransform(p*n,0,0,p*n,0,0),a.yc(),a.drawImage(i,0,0),e.gi.push(t))}U0.className="PictureCacheArray";function z0(e,t){this.source=e,this.ratio=t}z0.className="PictureCacheInstance";function _d(){this.os=new un,this.mc=null}_d.prototype.reset=function(e){e!==null?(e.ka(),this.os=e,e.figures.clear()):this.os=new un,this.mc=null};function Ad(e,t,n,r,i,o){e.mc=new jo,e.mc.startX=t,e.mc.startY=n,e.mc.isFilled=r,e.mc.isEvenOdd=o||!1,e.os.figures.add(e.mc),i!==void 0&&(e.mc.isShadowed=i)}function B1(e){var t=e.mc.segments.length;0<t&&e.mc.segments.M(t-1).close()}_d.prototype.moveTo=function(e,t,n){n===void 0&&(n=!1);var r=new zr(Io);r.endX=e,r.endY=t,n&&r.close(),this.mc.segments.add(r)},_d.prototype.lineTo=function(e,t,n){n===void 0&&(n=!1);var r=new zr(Ci);r.endX=e,r.endY=t,n&&r.close(),this.mc.segments.add(r)};function Jc(e,t,n,r,i,o,a){var p;p===void 0&&(p=!1);var w=new zr(ds);w.point1X=t,w.point1Y=n,w.point2X=r,w.point2Y=i,w.endX=o,w.endY=a,p&&w.close(),e.mc.segments.add(w)}function Qg(e,t,n,r,i){var o;o===void 0&&(o=!1);var a=new zr(na);a.point1X=t,a.point1Y=n,a.endX=r,a.endY=i,o&&a.close(),e.mc.segments.add(a)}_d.prototype.arcTo=function(e,t,n,r,i,o,a){o===void 0&&(o=0),a===void 0&&(a=!1);var p=new zr(Oo);p.startAngle=e,p.sweepAngle=t,p.centerX=n,p.centerY=r,p.radiusX=i,p.radiusY=o!==0?o:i,a&&p.close(),this.mc.segments.add(p)};function j1(e,t,n,r,i,o,a,p){var w;w===void 0&&(w=!1),t=new zr(ca,a,p,t,n,r,i,o),w&&t.close(),e.mc.segments.add(t)}function G0(e){var t=qg;return t!==null?(qg=null,t.reset(e),t):(t=new _d,t.reset(e),t)}var qg=null;_d.className="StreamGeometryContext";function ua(e,t){var n=e.toLowerCase(),r=vt.Ze;r[e]=t,r[n]=e}ua("Rectangle",function(e,t,n){e="r"+t+","+n;var r=vt.Mf[e];return r!==void 0||(r=new un(un.u),r.endX=t,r.endY=n,vt.Nf<vt.vm&&(vt.Mf[e]=r,vt.Nf++)),r}),ua("Square",function(e,t,n){e="s"+t+","+n;var r=vt.Mf[e];return r!==void 0||(r=new un(un.u),r.endX=t,r.endY=n,r.defaultStretch=Dn,vt.Nf<vt.vm&&(vt.Mf[e]=r,vt.Nf++)),r}),ua("RoundedRectangle",function(e,t,n){e=e?e.parameter1:NaN,(isNaN(e)||0>e)&&(e=5),e=Math.min(e,t/3),e=Math.min(e,n/3);var r="rr"+t+","+n+","+e,i=vt.Mf[r];if(i!==void 0)return i;var o=e*vt.wg;return i=new un().add(new jo(e,0,!0).add(new zr(Ci,t-e,0)).add(new zr(ds,t,e,t-o,0,t,o)).add(new zr(Ci,t,n-e)).add(new zr(ds,t-e,n,t,n-o,t-o,n)).add(new zr(Ci,e,n)).add(new zr(ds,0,n-e,o,n,0,n-o)).add(new zr(Ci,0,e)).add(new zr(ds,e,0,0,o,o,0).close())),1<o&&(i.spot1=new Nn(0,0,o,o),i.spot2=new Nn(1,1,-o,-o)),vt.Nf<vt.vm&&(vt.Mf[r]=i,vt.Nf++),i}),ua("Border","RoundedRectangle"),ua("Ellipse",function(e,t,n){e="e"+t+","+n;var r=vt.Mf[e];return r!==void 0||(r=new un(un.F),r.endX=t,r.endY=n,r.spot1=ju,r.spot2=ba,vt.Nf<vt.vm&&(vt.Mf[e]=r,vt.Nf++)),r}),ua("Circle",function(e,t,n){e="c"+t+","+n;var r=vt.Mf[e];return r!==void 0||(r=new un(un.F),r.endX=t,r.endY=n,r.spot1=ju,r.spot2=ba,r.defaultStretch=Dn,vt.Nf<vt.vm&&(vt.Mf[e]=r,vt.Nf++)),r}),ua("TriangleRight",function(e,t,n){return new un().add(new jo(0,0).add(new zr(Ci,t,.5*n)).add(new zr(Ci,0,n).close())).pm(0,.25,.5,.75)}),ua("TriangleDown",function(e,t,n){return new un().add(new jo(0,0).add(new zr(Ci,t,0)).add(new zr(Ci,.5*t,n).close())).pm(.25,0,.75,.5)}),ua("TriangleLeft",function(e,t,n){return new un().add(new jo(t,n).add(new zr(Ci,0,.5*n)).add(new zr(Ci,t,0).close())).pm(.5,.25,1,.75)}),ua("TriangleUp",function(e,t,n){return new un().add(new jo(t,n).add(new zr(Ci,0,n)).add(new zr(Ci,.5*t,0).close())).pm(.25,.5,.75,1)}),ua("Triangle","TriangleUp"),ua("Diamond",function(e,t,n){return new un().add(new jo(.5*t,0).add(new zr(Ci,0,.5*n)).add(new zr(Ci,.5*t,n)).add(new zr(Ci,t,.5*n).close())).pm(.25,.25,.75,.75)}),ua("LineH",function(e,t,n){return e=new un(un.j),e.startX=0,e.startY=n/2,e.endX=t,e.endY=n/2,e}),ua("LineV",function(e,t,n){return e=new un(un.j),e.startX=t/2,e.startY=0,e.endX=t/2,e.endY=n,e}),ua("None","Rectangle"),ua("BarH","Rectangle"),ua("BarV","Rectangle"),ua("MinusLine","LineH"),ua("PlusLine",function(e,t,n){return new un().add(new jo(0,n/2,!1).add(new zr(Ci,t,n/2)).add(new zr(Io,t/2,0)).add(new zr(Ci,t/2,n)))}),ua("XLine",function(e,t,n){return new un().add(new jo(0,n,!1).add(new zr(Ci,t,0)).add(new zr(Io,0,0)).add(new zr(Ci,t,n)))}),ua("LineRight",function(e,t,n){return new un().add(new jo(.25*t,0,!1).add(new zr(Ci,.75*t,.5*n)).add(new zr(Ci,.25*t,n)))}),ua("LineDown",function(e,t,n){return new un().add(new jo(0,.25*n,!1).add(new zr(Ci,.5*t,.75*n)).add(new zr(Ci,t,.25*n)))}),ua("LineLeft",function(e,t,n){return new un().add(new jo(.75*t,0,!1).add(new zr(Ci,.25*t,.5*n)).add(new zr(Ci,.75*t,n)))}),ua("LineUp",function(e,t,n){return new un().add(new jo(0,.75*n,!1).add(new zr(Ci,.5*t,.25*n)).add(new zr(Ci,t,.75*n)))}),vt.um={"":"",Standard:"F1 m 0,0 l 8,4 -8,4 2,-4 z",Backward:"F1 m 8,0 l -2,4 2,4 -8,-4 z",Triangle:"F1 m 0,0 l 8,4.62 -8,4.62 z",BackwardTriangle:"F1 m 8,4 l 0,4 -8,-4 8,-4 0,4 z",Boomerang:"F1 m 0,0 l 8,4 -8,4 4,-4 -4,-4 z",BackwardBoomerang:"F1 m 8,0 l -8,4 8,4 -4,-4 4,-4 z",SidewaysV:"m 0,0 l 8,4 -8,4 0,-1 6,-3 -6,-3 0,-1 z",BackwardV:"m 8,0 l -8,4 8,4 0,-1 -6,-3 6,-3 0,-1 z",OpenTriangle:"m 0,0 l 8,4 -8,4",BackwardOpenTriangle:"m 8,0 l -8,4 8,4",OpenTriangleLine:"m 0,0 l 8,4 -8,4 m 8.5,0 l 0,-8",BackwardOpenTriangleLine:"m 8,0 l -8,4 8,4 m -8.5,0 l 0,-8",OpenTriangleTop:"m 0,0 l 8,4 m 0,4",BackwardOpenTriangleTop:"m 8,0 l -8,4 m 0,4",OpenTriangleBottom:"m 0,8 l 8,-4",BackwardOpenTriangleBottom:"m 0,4 l 8,4",HalfTriangleTop:"F1 m 0,0 l 0,4 8,0 z m 0,8",BackwardHalfTriangleTop:"F1 m 8,0 l 0,4 -8,0 z m 0,8",HalfTriangleBottom:"F1 m 0,4 l 0,4 8,-4 z",BackwardHalfTriangleBottom:"F1 m 8,4 l 0,4 -8,-4 z",ForwardSemiCircle:"m 4,0 b 270 180 0 4 4",BackwardSemiCircle:"m 4,8 b 90 180 0 -4 4",Feather:"m 0,0 l 3,4 -3,4",BackwardFeather:"m 3,0 l -3,4 3,4",DoubleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardDoubleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4",TripleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardTripleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4 m 3,-8 l -3,4 3,4",ForwardSlash:"m 0,8 l 5,-8",BackSlash:"m 0,0 l 5,8",DoubleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8",DoubleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8",TripleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8 m -2,8 l 4,-8",TripleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8 m -2,-8 l 4,8",Fork:"m 0,4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4",LineFork:"m 0,0 l 0,8 m 0,-4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardLineFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4 m 8,-8 l 0,8",CircleFork:"F1 m 6,4 b 0 360 -3 0 3 z m 0,0 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 6,0 b 0 360 -3 0 3",CircleLineFork:"F1 m 6,4 b 0 360 -3 0 3 z m 1,-4 l 0,8 m 0,-4 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleLineFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 0,-4 l 0,8 m 7,-4 b 0 360 -3 0 3",Circle:"F1 m 8,4 b 0 360 -4 0 4 z",Block:"F1 m 0,0 l 0,8 8,0 0,-8 z",StretchedDiamond:"F1 m 0,3 l 5,-3 5,3 -5,3 -5,-3 z",Diamond:"F1 m 0,4 l 4,-4 4,4 -4,4 -4,-4 z",Chevron:"F1 m 0,0 l 5,0 3,4 -3,4 -5,0 3,-4 -3,-4 z",StretchedChevron:"F1 m 0,0 l 8,0 3,4 -3,4 -8,0 3,-4 -3,-4 z",NormalArrow:"F1 m 0,2 l 4,0 0,-2 4,4 -4,4 0,-2 -4,0 z",X:"m 0,0 l 8,8 m 0,-8 l -8,8",TailedNormalArrow:"F1 m 0,0 l 2,0 1,2 3,0 0,-2 2,4 -2,4 0,-2 -3,0 -1,2 -2,0 1,-4 -1,-4 z",DoubleTriangle:"F1 m 0,0 l 4,4 -4,4 0,-8 z m 4,0 l 4,4 -4,4 0,-8 z",BigEndArrow:"F1 m 0,0 l 5,2 0,-2 3,4 -3,4 0,-2 -5,2 0,-8 z",ConcaveTailArrow:"F1 m 0,2 h 4 v -2 l 4,4 -4,4 v -2 h -4 l 2,-2 -2,-2 z",RoundedTriangle:"F1 m 0,1 a 1,1 0 0 1 1,-1 l 7,3 a 0.5,1 0 0 1 0,2 l -7,3 a 1,1 0 0 1 -1,-1 l 0,-6 z",SimpleArrow:"F1 m 1,2 l -1,-2 2,0 1,2 -1,2 -2,0 1,-2 5,0 0,-2 2,2 -2,2 0,-2 z",AccelerationArrow:"F1 m 0,0 l 0,8 0.2,0 0,-8 -0.2,0 z m 2,0 l 0,8 1,0 0,-8 -1,0 z m 3,0 l 2,0 2,4 -2,4 -2,0 0,-8 z",BoxArrow:"F1 m 0,0 l 4,0 0,2 2,0 0,-2 2,4 -2,4 0,-2 -2,0 0,2 -4,0 0,-8 z",TriangleLine:"F1 m 8,4 l -8,-4 0,8 8,-4 z m 0.5,4 l 0,-8",CircleEndedArrow:"F1 m 10,4 l -2,-3 0,2 -2,0 0,2 2,0 0,2 2,-3 z m -4,0 b 0 360 -3 0 3 z",DynamicWidthArrow:"F1 m 0,3 l 2,0 2,-1 2,-2 2,4 -2,4 -2,-2 -2,-1 -2,0 0,-2 z",EquilibriumArrow:"m 0,3 l 8,0 -3,-3 m 3,5 l -8,0 3,3",FastForward:"F1 m 0,0 l 3.5,4 0,-4 3.5,4 0,-4 1,0 0,8 -1,0 0,-4 -3.5,4 0,-4 -3.5,4 0,-8 z",Kite:"F1 m 0,4 l 2,-4 6,4 -6,4 -2,-4 z",HalfArrowTop:"F1 m 0,0 l 4,4 4,0 -8,-4 z m 0,8",HalfArrowBottom:"F1 m 0,8 l 4,-4 4,0 -8,4 z",OpposingDirectionDoubleArrow:"F1 m 0,4 l 2,-4 0,2 4,0 0,-2 2,4 -2,4 0,-2 -4,0 0,2 -2,-4 z",PartialDoubleTriangle:"F1 m 0,0 4,3 0,-3 4,4 -4,4 0,-3 -4,3 0,-8 z",LineCircle:"F1 m 0,0 l 0,8 m 7 -4 b 0 360 -3 0 3 z",DoubleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",TripleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",CircleLine:"F1 m 6 4 b 0 360 -3 0 3 z m 1,-4 l 0,8",DiamondCircle:"F1 m 8,4 l -4,4 -4,-4 4,-4 4,4 m 8,0 b 0 360 -4 0 4 z",PlusCircle:"F1 m 8,4 b 0 360 -4 0 4 l -8 0 z m -4 -4 l 0 8",OpenRightTriangleTop:"m 8,0 l 0,4 -8,0 m 0,4",OpenRightTriangleBottom:"m 8,8 l 0,-4 -8,0",Line:"m 0,0 l 0,8",DoubleLine:"m 0,0 l 0,8 m 2,0 l 0,-8",TripleLine:"m 0,0 l 0,8 m 2,0 l 0,-8 m 2,0 l 0,8",PentagonArrow:"F1 m 8,4 l -4,-4 -4,0 0,8 4,0 4,-4 z"};function Kv(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=To,this.ir=null,this.jr="",this.lr=is,this.Gq="",this.Hq=No,this.Pq=Br,this.Kq=ei,this.Up=null,this.Cq=127,this.zr=ti,this.yr="gray",this.Vg=4}Kv.prototype.copy=function(){var e=new Kv;return e.zq=this.zq,e.Kp=this.Kp,e.tr=this.tr,e.vr=this.vr,e.ur=this.ur,e.oq=this.oq,e.fr=this.fr,e.hr=this.hr,e.gr=this.gr.J(),e.ir=this.ir,e.jr=this.jr,e.lr=this.lr.J(),e.Gq=this.Gq,e.Hq=this.Hq.J(),e.Pq=this.Pq.J(),e.Kq=this.Kq.J(),e.Up=this.Up,e.Cq=this.Cq,e.zr=this.zr.J(),e.yr=this.yr,e.Vg=this.Vg,e};function zn(e,t){e===void 0||e instanceof Ss||typeof e=="string"?qt.call(this,e):(qt.call(this),e&&(t=e)),this.G=2408959,this.Tf="",this.P=null,this.Jg="",this.Qf=this.Ug=null,this.ec="",this.Ah=this.Ig=null,this.ke=new Ue(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new Nt,this.Rh=null,this.ag=NaN,t&&Object.assign(this,t)}Tn(zn,qt),zn.prototype.cloneProtected=function(e){qt.prototype.cloneProtected.call(this,e),e.G=this.G&-4097|49152,e.Tf=this.Tf,this.P!==null&&(e.P=this.P.nc?this.P:this.P.copy()),e.Jg=this.Jg,e.Qf=null,e.ec=this.ec,e.ke.assign(this.ke),e.Ao=this.Ao},ye=zn.prototype,ye.Af=function(e){qt.prototype.Af.call(this,e),e.oh(),e.Ug=null,e.nf=null,e.Rh=null},ye.toString=function(){var e=Fr(this.constructor)+"#"+it(this);return this.data!==null&&(e+="("+Di(this.data)+")"),e};function Ha(e){e.P===null?e.P=new Kv:e.P.nc&&(e.P=e.P.copy())}ye.th=function(){qt.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},ye.gk=function(e,t,n,r,i,o,a){var p=this.diagram;p!==null&&(e===xo&&t==="elements"?i instanceof qt?uf(i,function(w){by(p.partManager,w),ef(p,w)}):Sh(p,i):e===Lo&&t==="elements"&&(i instanceof qt?uf(i,function(w){Sy(p.partManager,w,p)}):ap(p,i)),p.cb(e,t,n,r,i,o,a))},ye.La=function(e){if(qt.prototype.La.call(this,e),this.data!==null){for(var t=this.O.s,n=t.length,r=0;r<n;r++){var i=t[r];i instanceof qt&&uf(i,function(o){o.data!==null&&o.La()})}for(t=this.adornments;t.next();)t.value.La(e)}},zn.prototype.updateRelationshipsFromData=function(){var e;this.data!==null&&((e=this.diagram)===null||e===void 0||e.partManager.updateRelationshipsFromData(this))},zn.prototype.Pj=function(e){var t=this.Qf;return t===null?null:t.I(e)},zn.prototype.bh=function(e,t){if(t!==null){var n=null,r=this.Qf;if(r!==null&&(n=r.I(e)),n!==t){if(n!==null){var i=n.diagram;i!==null&&i.remove(n)}r===null&&(this.Qf=r=new nn),t.Tf!==e&&(t.category=e),r.add(e,t),e=this.diagram,e!==null&&(e.add(t),e=t.adornedObject,e!==null&&(e=e.ih(),e!==null&&(t.data=e.data)))}}},zn.prototype.Jf=function(e){var t=this.Qf;if(t!==null){var n=t.I(e);if(n!==null){var r=n.diagram;r!==null&&r.remove(n)}t.remove(e),t.count===0&&(this.Qf=null)}},zn.prototype.Ej=function(){var e=this.Qf;if(e!==null){var t=yr();for(e=e.iterator;e.next();)t.push(e.key);e=t.length;for(var n=0;n<e;n++)this.Jf(t[n]);Mr(t)}},zn.prototype.updateAdornments=function(){var e=this.diagram;if(e!==null){for(var t=this.adornments;t.next();){var n=t.value;n.v(),n.placeholder&&n.placeholder.v()}e:{if(this.isSelected&&this.selectionAdorned&&(t=this.selectionObject,t!==null&&this.actualBounds.w()&&this.isVisible()&&t.Ed()&&t.actualBounds.w())){if(n=this.Pj("Selection"),n===null){if(n=this.selectionAdornmentTemplate,n===null&&(n=this.ph()?e.linkSelectionAdornmentTemplate:this instanceof lr?e.groupSelectionAdornmentTemplate:e.nodeSelectionAdornmentTemplate),!(n instanceof qr))break e;ql(n),n=n.copy(),n!==null&&(this.ph()&&this.selectionObject===this.path&&(n.type=qt.Link),n.adornedObject=t)}if(n!==null){n.type===qt.Link&&n.v(),this.bh("Selection",n);break e}}this.Jf("Selection")}for(U1(this,e),t=this.adornments;t.next();)t.value.La()}},zn.prototype.Wb=function(){var e=this.diagram;e!==null&&(e.vd=!0,!(this.G&16384)&&(this.G|=16384))};function Yv(e){e.G&16384&&(e.updateAdornments(),e.G&=-16385)}function U1(e,t){t.toolManager.mouseDownTools.each(function(n){n.isEnabled&&n.updateAdornments(e)}),t.toolManager.updateAdornments(e)}function em(e){if(Ch(e)===!1){Xv(e,!0),e.Uk();var t=e.diagram;t!==null&&(t.De.add(e),t.$b())}}function W0(e){if(e.G|=2097152,Ch(e)!==!1){var t=e.position,n=e.location;n.w()&&t.w()||Y0(e,t,n),n=e.Ib;var r=Nt.alloc().assign(n);n.ka(),n.x=t.x,n.y=t.y,n.freeze(),e.Xl(r,n),Nt.free(r),Xv(e,!1)}}zn.prototype.Ge=function(e,t,n,r){var i=this.uc;i.h(e,t,n,r),this.Lb===null&&(this.Lb=new dr);var o=this.Lb;o.reset(),this.no(o,e,t,n,r),this.Lb=o,o.ws()||o.pp(i)},zn.prototype.no=function(e,t,n,r,i){if(this.Ca!==1&&e.scale(this.Ca),this.Kb!==0){var o=jr;this.locationSpot.sb()&&(o=this.locationSpot);var a=Ue.alloc();if(this.locationObject!==this)for(t=this.locationObject,n=t.naturalBounds,a.yi(n.x,n.y,n.width,n.height,o),t.Lb!==null&&t.Lb.Ga(a),a.offset(-t.measuredBounds.x,-t.measuredBounds.y),o=t.panel;o!==null&&o!==this;)o.Lb!==null&&o.Lb.Ga(a),a.offset(-o.measuredBounds.x,-o.measuredBounds.y),o=o.panel;else a.yi(t,n,r,i,o);e.rotate(this.Kb,a.x,a.y),Ue.free(a)}},zn.prototype.move=function(e,t){t===!0?this.location=e:this.position=e},zn.prototype.moveTo=function(e,t,n){e=Ue.allocAt(e,t),this.move(e,n),Ue.free(e)},zn.prototype.isVisible=function(){if(!this.visible)return!1;var e=this.layer;if(e!==null){if(!e.visible)return!1;if(e=e.diagram,e!==null&&e.animationManager.fv(this))return!0}return e=this.containingGroup,!!(e===null||e.isSubGraphExpanded&&e.isVisible())},zn.prototype.Zb=function(e){var t=this.diagram;e?(this.C(4),this.Wb(),t!==null&&t.De.add(this)):(this.C(8),this.Ej()),this.oh(),t!==null&&(t.Ya(),t.N())},zn.prototype.fb=function(e){if(this.name===e)return this;var t=this.Rh;if(t===null&&(this.Rh=t=new nn),t.I(e)!==null)return t.I(e);var n=qt.prototype.fb.call(this,e);return n!==null?(t.set(e,n),n):(t.set(e,null),null)};function Qc(e,t,n,r){r===void 0&&(r=new Ue),n=n.Mc()?jr:n;var i=t.naturalBounds;if(r.h(i.width*n.x+n.offsetX,i.height*n.y+n.offsetY),t===null||t===e)return r;for(t.transform.Ga(r),t=t.panel;t!==null&&t!==e;)t.transform.Ga(r),t=t.panel;return e.Lb!==null&&e.Lb.Ga(r),r.offset(-e.uc.x,-e.uc.y),r}zn.prototype.mi=function(e){return e===void 0&&(e=new Nt),e.assign(this.actualBounds)},zn.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function V0(e){var t=Ue.alloc(),n=e.locationObject,r=n.naturalBounds,i=n instanceof vr?n.strokeWidth:0;if(t.yi(0,0,r.width+i,r.height+i,e.locationSpot),n!==e)for(t.offset(-i/2,-i/2),n.transform.Ga(t),n=n.panel;n!==null&&n!==e;)n.transform.Ga(t),n=n.panel;return e.Lb!==null&&e.Lb.Ga(t),t.offset(-e.uc.x,-e.uc.y),t}function ff(e,t){var n=e.py;isNaN(e.ag)&&(e.ag=E0(e));var r=e.ag,i=2*r;if(!e.isShadowed)return n.h(t.x-1-r,t.y-1-r,t.width+2+i,t.height+2+i),n;r=t.x,i=t.y;var o=t.width;t=t.height;var a=e.shadowBlur;return e=e.shadowOffset,o+=a,t+=a,r-=a/2,i-=a/2,0<e.x?o+=e.x:(r+=e.x,o-=e.x),0<e.y?t+=e.y:(i+=e.y,t-=e.y),n.h(r-1,i-1,o+2,t+2),n}zn.prototype.arrange=function(){if(Ca(this)===!1)W0(this);else{ic(this,!1);var e=this.Ib,t=Nt.alloc();t.assign(e);var n=Th(this);this.eh(0,0,this.uc.width,this.uc.height);var r=this.position;Y0(this,r,this.location),e.ka(),e.x=r.x,e.y=r.y,e.freeze(),this.Xl(t,e),t.D(e)?this.Fd(n):!this.Zc()||vt.B(t.width,e.width)&&vt.B(t.height,e.height)||0<=this.vw&&this.C(16),Nt.free(t),Xv(this,!1)}},ye=zn.prototype,ye.Xl=function(e,t){var n=this.diagram;if(n!==null){var r=!1;if(n.Zi===!1&&e.w()){var i=Nt.alloc();i.assign(n.documentBounds),i.Fv(n.padding),e.x>i.x&&e.y>i.y&&e.right<i.right&&e.bottom<i.bottom&&t.x>i.x&&t.y>i.y&&t.right<i.right&&t.bottom<i.bottom&&(r=!0),Nt.free(i)}!(this.G&65536)&&e.D(t)||Z0(this,r,n),n.N(),!e.w()&&!t.w()||ho(e,t)||(this instanceof En&&!n.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},ye.zv=function(e,t,n){if(this.ph()||!e.w())return!1;var r=this.diagram;return r!==null&&K0(this,r,e,t,n),this.pa=e,this.G&=-2097153,!this.ke.w()||r!==null&&!r.animationManager.isTicking&&r.undoManager.isUndoingRedoing||(r=this.ke,this.ke=new Ue(r.x+(e.x-t),r.y+(e.y-n)),this.g("location",r,this.ke.copy())),Ch(this)===!1&&Ca(this)===!1&&(em(this),W0(this)),!0};function K0(e,t,n,r,i){t===null||e instanceof qr||(t=t.animationManager,t.zb&&Cu(t,e,new Ue(r,i),n))}ye.mm=function(e,t,n){var r=this.ke,i=this.pa;if(n){if(r.x===e&&r.y===t)return;Ch(this)||Ca(this)?i.h(NaN,NaN):i.h(i.x+e-r.x,i.y+t-r.y),r.h(e,t)}else{if(i.x===e&&i.y===t)return;r.h(r.x+e-i.x,r.y+t-i.y),i.h(e,t)}em(this)},ye.Av=function(){this.G&=-2097153,em(this)};function Y0(e,t,n){var r=V0(e),i=e.diagram,o=n.w(),a=t.w();o&&a?e.G&2097152?$0(e,t,n,i,r):X0(e,t,n,i,r):o?$0(e,t,n,i,r):a&&X0(e,t,n,i,r),e.G|=2097152,Ue.free(r),e.Uk()}function $0(e,t,n,r,i){var o=t.x,a=t.y;t.h(n.x-i.x,n.y-i.y),r!==null&&(n=r.animationManager,(r=n.defaultAnimation.isAnimating)||!n.zb||e instanceof qr||Cu(n,e,new Ue(o,a),t),r||t.x===o&&t.y===a||e.g("position",new Ue(o,a),t.copy()))}function X0(e,t,n,r,i){var o=n.copy();n.h(t.x+i.x,t.y+i.y),n.D(o)||r===null||e.g("location",o,n.copy())}function Z0(e,t,n){Zv(e,!1),e instanceof En&&Vc(n,e),e.layer.isTemporary||t||n.Ya(),t=e.Ib;var r=n.viewportBounds;r.w()?Th(e)?(hs(t,r)||e.Fd(!1),e.updateAdornments()):e.isVisible()&&t.Yc(r)?(e.Fd(!0),e.updateAdornments()):e.Wb():n.vd=!0}ye.si=function(){return!0},ye.Zc=function(){return!0},ye.ph=function(){return!1},ye.Dd=function(){return!0};function $v(e,t,n,r){t.constructor===e.constructor||q0||(q0=!0,zi('Should not change the class of the Part when changing category from "'+n+'" to "'+r+'"'),zi(" Old class: "+Fr(e.constructor)+", new class: "+Fr(t.constructor)+", part: "+e.toString())),e.Ej();var i=e.data;n=e.layerName;var o=e.isSelected,a=e.isHighlighted,p=!0,w=!0,O=!1;e instanceof En&&(p=e.isTreeLeaf,w=e.isTreeExpanded,O=e.wasTreeExpanded),t.Af(e),t.cloneProtected(e),e.Tf=r,e.svg!==null&&(e.svg.remove(),e.svg=null,e.Uc=!0),e.v(),e.N(),t=e.diagram,r=!0,t!==null&&(r=t.skipsUndoManager,t.skipsUndoManager=!0),e.ub=i,e.G=o?e.G|4096:e.G&-4097,e.G=a?e.G|524288:e.G&-524289,e instanceof En&&(e.U=p?e.U|4:e.U&-5,e.U=w?e.U|1:e.U&-2,e.U=O?e.U|2:e.U&-3),i!==null&&e.La(),i=e.layerName,i!==n&&(e.Jg=n,e.layerName=i),t!==null&&(t.skipsUndoManager=r),e.Zc()&&e.C(64)}zn.prototype.canCopy=function(){if(!this.copyable)return!1;var e=this.layer;return e===null?!0:e.allowCopy?(e=e.diagram,e===null?!0:!!e.allowCopy):!1},zn.prototype.canDelete=function(){if(!this.deletable)return!1;var e=this.layer;return e===null?!0:e.allowDelete?(e=e.diagram,e===null?!0:!!e.allowDelete):!1},zn.prototype.canEdit=function(){if(!this.textEditable)return!1;var e=this.layer;return e===null?!0:e.allowTextEdit?(e=e.diagram,e===null?!0:!!e.allowTextEdit):!1},zn.prototype.canGroup=function(){if(!this.groupable)return!1;var e=this.layer;return e===null?!0:e.allowGroup?(e=e.diagram,e===null?!0:!!e.allowGroup):!1},zn.prototype.canMove=function(){if(!this.movable)return!1;var e=this.layer;return e===null?!0:e.allowMove?(e=e.diagram,e===null?!0:!!e.allowMove):!1},zn.prototype.canReshape=function(){if(!this.reshapable)return!1;var e=this.layer;return e===null?!0:e.allowReshape?(e=e.diagram,e===null?!0:!!e.allowReshape):!1},zn.prototype.canResize=function(){if(!this.resizable)return!1;var e=this.layer;return e===null?!0:e.allowResize?(e=e.diagram,e===null?!0:!!e.allowResize):!1},zn.prototype.canRotate=function(){if(!this.rotatable)return!1;var e=this.layer;return e===null?!0:e.allowRotate?(e=e.diagram,e===null?!0:!!e.allowRotate):!1},zn.prototype.canSelect=function(){if(!this.selectable)return!1;var e=this.layer;return e===null?!0:e.allowSelect?(e=e.diagram,e===null?!0:!!e.allowSelect):!1};function Ch(e){return(e.G&32768)!==0}function Xv(e,t){e.G=t?e.G|32768:e.G&-32769}function Zv(e,t){e.G=t?e.G|65536:e.G&-65537}function Th(e){return(e.G&131072)!==0}ye=zn.prototype,ye.Fd=function(e){this.G=e?this.G|131072:this.G&-131073};function tm(e,t){e.G=t?e.G|1048576:e.G&-1048577}ye.oh=function(){var e=this.containingGroup;e!==null&&(e.v(),e.placeholder!==null&&e.placeholder.v(),e.Bd())},ye.N=function(){var e=this.diagram;e!==null&&!Ca(this)&&!Ch(this)&&this.isVisible()&&this.Ib.w()&&e.N(ff(this,this.Ib))},ye.v=function(){qt.prototype.v.call(this);var e=this.diagram;e!==null&&(e.De.add(this),this instanceof En&&this.labeledLink!==null&&wa(this.labeledLink),e.$b(!0))},ye.Vo=function(e){e||(e=this.Ah,e!==null&&ny(e,this))},ye.Wo=function(e){e||(e=this.Ah,e!==null&&ry(e,this))},ye.Lj=function(){var e=this.data;if(e!==null){var t=this.diagram;t!==null&&(t=t.model,t!==null&&t.cm(e))}},ye.oz=function(){return Jv(this,this)};function Jv(e,t){var n=t.containingGroup;return n!==null?1+Jv(e,n):t instanceof En&&(t=t.labeledLink,t!==null)?Jv(e,t):0}ye.sz=function(){return J0(this,this)};function J0(e,t){var n=t.containingGroup;return n!==null||t instanceof En&&(n=t.labeledLink,n!==null)?J0(e,n):t}ye.Td=function(e){return e instanceof lr?Qv(this,this,e):!1};function Qv(e,t,n){if(t===n||n===null)return!1;var r=t.containingGroup;return r===null||r!==n&&!Qv(e,r,n)?t instanceof En&&(t=t.labeledLink,t!==null)?Qv(e,t,n):!1:!0}ye.px=function(e){if(e===null)return null;if(this===e)return this.containingGroup;for(var t=this;t!==null;){if(t instanceof lr&&tm(t,!0),t instanceof En){var n=t.labeledLink;n!==null&&(t=n)}t=t.containingGroup}for(n=null,t=e;t!==null;){if(t.G&1048576){n=t;break}t instanceof En&&(e=t.labeledLink,e!==null&&(t=e)),t=t.containingGroup}for(t=this;t!==null;)t instanceof lr&&tm(t,!1),t instanceof En&&(e=t.labeledLink,e!==null&&(t=e)),t=t.containingGroup;return n},zn.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var e=this.layer;return!(e!==null&&e.isTemporary||this instanceof En&&this.isLinkLabel)},zn.prototype.C=function(e){if(e===void 0&&(e=16777215),this.isLayoutPositioned&&e&this.layoutConditions){var t=this.layer;t!==null&&t.isTemporary||this instanceof En&&this.isLinkLabel?t=!1:(t=this.diagram,t=!(t!==null&&t.undoManager.isUndoingRedoing))}else t=!1;if(t)if(t=this.Ah,t!==null){var n=t.layout;n!==null?n.C():t.C(e)}else e=this.diagram,e!==null&&(e=e.layout,e!==null&&e.C())};function Q0(e){return e.isVisible()?(e=e.layer,!(e!==null&&e.isTemporary)):!1}function _h(e,t,n,r,i,o){if(o===void 0&&(o=null),!(e.contains(t)||o!==null&&!o(t)||t instanceof qr)){if(e.add(t),t instanceof En){if(n&&t instanceof lr)for(var a=t.memberParts;a.next();)_h(e,a.value,n,r,i,o);if(i!==!1)for(a=t.linksConnected;a.next();){var p=a.value;if(!e.contains(p)){var w=p.fromNode,O=p.toNode;w=w===null||e.contains(w),O=O===null||e.contains(O),(i?w&&O:w||O)&&_h(e,p,n,r,i,o)}}if(1<r)for(t=t.Ou();t.next();)_h(e,t.value,n,r-1,i,o)}else if(t instanceof cn)for(t=t.labelNodes;t.next();)_h(e,t.value,n,r,i,o)}}kn.Object.defineProperties(zn.prototype,{key:{get:function(){var e=this.diagram;if(e!==null)return e.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?eo:this.Qf.iteratorValues}},layer:{get:function(){return this.Ig}},diagram:{get:function(){var e=this.Ig;return e==null?null:e.diagram}},layerName:{get:function(){return this.Jg},set:function(e){var t=this.Jg;if(t!==e){var n=this.diagram;if((n===null||n.Qj(e)!==null&&!n.partManager.addsToTemporaryLayer)&&(this.Jg=e,n!==null&&n.Ya(),this.g("layerName",t,e),t=this.layer,t!==null&&t.name!==e&&(n=t.diagram,n!==null&&(e=n.Qj(e),e!==null&&e!==t)))){var r=t.pc(-1,this,!0);if(0<=r&&n.cb(Lo,"parts",t,this,null,r,!0),r=e.oi(99999999,this,!0),t.visible!==e.visible&&this.Zb(e.visible),0<=r&&n.cb(xo,"parts",e,null,this,!0,r),r=this.layerChanged,r!==null){var i=n.aa;n.aa=!0,r(this,t,e),n.aa=i}}}}},layerChanged:{get:function(){return this.P!==null?this.P.zq:null},set:function(e){var t=this.layerChanged;t!==e&&(Ha(this),this.P.zq=e,this.g("layerChanged",t,e))}},zOrder:{get:function(){return this.Ao},set:function(e){var t=this.Ao;if(t!==e){this.Ao=e;var n=this.layer;n!==null&&Wu(n,-1,this),this.g("zOrder",t,e),e=this.diagram,e!==null&&e.N()}}},locationObject:{get:function(){if(this.nf===null){var e=this.locationObjectName;e!==""?(e=this.fb(e),e!==null?this.nf=e:this.nf=this):this instanceof qr?this.type!==qt.Link&&this.placeholder!==null?this.nf=this.placeholder:this.nf=this:this.nf=this}return this.nf.visible?this.nf:this}},minLocation:{get:function(){return this.P!==null?this.P.Pq:Br},set:function(e){var t=this.minLocation;t.D(e)||(e=e.J(),Ha(this),this.P.Pq=e,this.g("minLocation",t,e))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:ei},set:function(e){var t=this.maxLocation;t.D(e)||(e=e.J(),Ha(this),this.P.Kq=e,this.g("maxLocation",t,e))}},locationObjectName:{get:function(){return this.P!==null?this.P.Gq:""},set:function(e){var t=this.locationObjectName;t!==e&&(Ha(this),this.P.Gq=e,this.nf=null,this.v(),this.g("locationObjectName",t,e))}},locationSpot:{get:function(){return this.P!==null?this.P.Hq:No},set:function(e){var t=this.locationSpot;t.D(e)||(e=e.J(),Ha(this),this.P.Hq=e,this.v(),this.g("locationSpot",t,e))}},location:{get:function(){return this.ke},set:function(e){var t=e.x,n=e.y,r=this.ke;if(!(r.x===t||isNaN(r.x)&&isNaN(t))||!(r.y===n||isNaN(r.y)&&isNaN(n))){if(e=e.copy(),t=e,this.ph())t=!1;else{if(this.ke=t,this.G|=2097152,Ca(this)===!1&&(em(this),n=this.pa,n.w())){var i=this.diagram;if(i===null||i.animationManager.isTicking||!i.undoManager.isUndoingRedoing){var o=n.copy();n.h(n.x+(t.x-r.x),n.y+(t.y-r.y)),K0(this,i,n,o.x,o.y),this.g("position",o,n.copy())}}t=!0}t&&this.g("location",r,e.copy())}}},category:{get:function(){return this.Tf},set:function(e){var t=this.Tf;if(t!==e){this.svg!==null&&(this.svg.remove(),this.Uc=!0);var n=this.diagram,r=this.data,i=null;if(n!==null&&r!==null&&!(this instanceof qr)){var o=n.model.undoManager;o.isEnabled&&!o.isUndoingRedoing&&(i=this.clone(),i.O.addAll(this.O))}this.Tf=e,this.g("category",t,e),n===null||r===null||this instanceof qr?this instanceof qr&&(i=this.adornedPart,i!==null&&(e=i.Qf,e!==null&&e.remove(t),i.bh(this.category,this))):(o=n.model,o.undoManager.isUndoingRedoing||(this.ph()?(n.partManager.setLinkCategoryForData(r,e),n=n.partManager.findLinkTemplateForCategory(e),n!==null&&(ql(n),n=n.copy(),n!==null&&$v(this,n,t,e))):(o!==null&&o.jm(r,e),n=Cb(n.partManager,r,e),n!==null&&(ql(n),n=n.copy(),n===null||n instanceof cn||(r=this.location.copy(),$v(this,n,t,e),this.location.w()||(this.location=r)))),i!==null&&(t=this.clone(),t.O.addAll(this.O),this.g("self",i,t))))}}},self:{get:function(){return this},set:function(e){$v(this,e,this.category,e.category)}},copyable:{get:function(){return(this.G&1)!==0},set:function(e){var t=(this.G&1)!==0;t!==e&&(this.G^=1,this.g("copyable",t,e))}},deletable:{get:function(){return(this.G&2)!==0},set:function(e){var t=(this.G&2)!==0;t!==e&&(this.G^=2,this.g("deletable",t,e))}},textEditable:{get:function(){return(this.G&4)!==0},set:function(e){var t=(this.G&4)!==0;t!==e&&(this.G^=4,this.g("textEditable",t,e),this.Wb())}},groupable:{get:function(){return(this.G&8)!==0},set:function(e){var t=(this.G&8)!==0;t!==e&&(this.G^=8,this.g("groupable",t,e))}},movable:{get:function(){return(this.G&16)!==0},set:function(e){var t=(this.G&16)!==0;t!==e&&(this.G^=16,this.g("movable",t,e))}},selectionAdorned:{get:function(){return(this.G&32)!==0},set:function(e){var t=(this.G&32)!==0;t!==e&&(this.G^=32,this.g("selectionAdorned",t,e),this.Wb())}},isInDocumentBounds:{get:function(){return(this.G&64)!==0},set:function(e){var t=(this.G&64)!==0;if(t!==e){this.G^=64;var n=this.diagram;n!==null&&n.Ya(),this.g("isInDocumentBounds",t,e)}}},isLayoutPositioned:{get:function(){return(this.G&128)!==0},set:function(e){var t=(this.G&128)!==0;t!==e&&(this.G^=128,this.g("isLayoutPositioned",t,e),this.C(e?4:8))}},selectable:{get:function(){return(this.G&256)!==0},set:function(e){var t=(this.G&256)!==0;t!==e&&(this.G^=256,this.g("selectable",t,e),this.Wb())}},reshapable:{get:function(){return(this.G&512)!==0},set:function(e){var t=(this.G&512)!==0;t!==e&&(this.G^=512,this.g("reshapable",t,e),this.Wb())}},resizable:{get:function(){return(this.G&1024)!==0},set:function(e){var t=(this.G&1024)!==0;t!==e&&(this.G^=1024,this.g("resizable",t,e),this.Wb())}},rotatable:{get:function(){return(this.G&2048)!==0},set:function(e){var t=(this.G&2048)!==0;t!==e&&(this.G^=2048,this.g("rotatable",t,e),this.Wb())}},isSelected:{get:function(){return(this.G&4096)!==0},set:function(e){var t=(this.G&4096)!==0;if(t!==e){var n=this.diagram;if(!e||this.canSelect()&&!(n!==null&&n.selection.count>=n.maxSelectionCount)){this.G^=4096;var r=!1;if(n!==null){r=n.skipsUndoManager,n.skipsUndoManager=!0;var i=n.selection;i.ka(),e?i.add(this):i.remove(this),i.freeze()}this.g("isSelected",t,e),this.Wb(),e=this.selectionChanged,e!==null&&e(this),n!==null&&(n.$b(),n.skipsUndoManager=r)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(e){var t=(this.G&524288)!==0;if(t!==e){this.G^=524288;var n=this.diagram;n!==null&&(n=n.highlighteds,n.ka(),e?n.add(this):n.remove(this),n.freeze()),this.g("isHighlighted",t,e),this.N(),e=this.highlightedChanged,e!==null&&e(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(e){var t=(this.G&8192)!==0;t!==e&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",t,e),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(e){var t=(this.G&262144)!==0;t!==e&&(this.G^=262144,this.g("isAnimated",t,e))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(e){var t=this.highlightedChanged;t!==e&&(Ha(this),this.P.oq=e,this.g("highlightedChanged",t,e))}},selectionObjectName:{get:function(){return this.P!==null?this.P.vr:""},set:function(e){var t=this.selectionObjectName;t!==e&&(Ha(this),this.P.vr=e,this.Ug=null,this.g("selectionObjectName",t,e))}},selectionAdornmentTemplate:{get:function(){return this.P!==null?this.P.tr:null},set:function(e){var t=this.selectionAdornmentTemplate;t!==e&&(Ha(this),this.P.tr=e,this.g("selectionAdornmentTemplate",t,e))}},selectionObject:{get:function(){if(this.Ug===null){var e=this.selectionObjectName;e!==null&&e!==""?(e=this.fb(e),e!==null?this.Ug=e:this.Ug=this):this instanceof cn?(e=this.path,e!==null?this.Ug=e:this.Ug=this):this.Ug=this}return this.Ug}},selectionChanged:{get:function(){return this.P!==null?this.P.ur:null},set:function(e){var t=this.selectionChanged;t!==e&&(Ha(this),this.P.ur=e,this.g("selectionChanged",t,e))}},resizeAdornmentTemplate:{get:function(){return this.P!==null?this.P.fr:null},set:function(e){var t=this.resizeAdornmentTemplate;t!==e&&(Ha(this),this.P.fr=e,this.g("resizeAdornmentTemplate",t,e))}},resizeObjectName:{get:function(){return this.P!==null?this.P.hr:""},set:function(e){var t=this.resizeObjectName;t!==e&&(Ha(this),this.P.hr=e,this.g("resizeObjectName",t,e))}},resizeObject:{get:function(){var e=this.resizeObjectName;return e!==""&&(e=this.fb(e),e!==null)?e:this}},resizeCellSize:{get:function(){return this.P!==null?this.P.gr:To},set:function(e){var t=this.resizeCellSize;t.D(e)||(e=e.J(),Ha(this),this.P.gr=e,this.g("resizeCellSize",t,e))}},rotateAdornmentTemplate:{get:function(){return this.P!==null?this.P.ir:null},set:function(e){var t=this.rotateAdornmentTemplate;t!==e&&(Ha(this),this.P.ir=e,this.g("rotateAdornmentTemplate",t,e))}},rotateObjectName:{get:function(){return this.P!==null?this.P.jr:""},set:function(e){var t=this.rotateObjectName;t!==e&&(Ha(this),this.P.jr=e,this.g("rotateObjectName",t,e))}},rotateObject:{get:function(){var e=this.rotateObjectName;return e!==""&&(e=this.fb(e),e!==null)?e:this}},rotationSpot:{get:function(){return this.P!==null?this.P.lr:is},set:function(e){var t=this.rotationSpot;t.D(e)||(e=e.J(),Ha(this),this.P.lr=e,this.g("rotationSpot",t,e))}},text:{get:function(){return this.ec},set:function(e){var t=this.ec;t!==e&&(this.ec=e,this.g("text",t,e))}},containingGroup:{get:function(){return this.Ah},set:function(e){if(this.Zc()){var t=this.Ah;if(t!==e){e===null||this!==e&&!e.Td(this)||(this===e&&Lt("Cannot make a Group a member of itself: "+this.toString()),Lt("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+e.toString())),this.C(2);var n=this.diagram;if(t!==null?ry(t,this):this instanceof lr&&n!==null&&n.ai.remove(this),this.Ah=e,e!==null?ny(e,this):this instanceof lr&&n!==null&&n.ai.add(this),this.C(1),n!==null&&n.aa){var r=this.data,i=n.model;if(r!==null&&i.Xj()){var o=i.wa(e!==null?e.data:null);i.mp(r,o)}}if(r=this.containingGroupChanged,r!==null&&(i=!0,n!==null&&(i=n.aa,n.aa=!0),r(this,t,e),n!==null&&(n.aa=i)),this instanceof lr){for(n=new ut,_h(n,this,!0,0,!0),n=n.iterator;n.next();)if(r=n.value,r instanceof En)for(r=r.linksConnected;r.next();)kd(r.value)}if(this instanceof En){for(n=this.linksConnected;n.next();)kd(n.value);n=this.labeledLink,n!==null&&kd(n)}this.g("containingGroup",t,e),e!==null&&(t=e.layer,t!==null&&Wu(t,-1,e))}}else Lt("cannot set the Part.containingGroup of a Link or Adornment")}},containingGroupChanged:{get:function(){return this.P!==null?this.P.Kp:null},set:function(e){var t=this.containingGroupChanged;t!==e&&(Ha(this),this.P.Kp=e,this.g("containingGroupChanged",t,e))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof En&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(e){var t=this.layoutConditions;t!==e&&(Ha(this),this.P.Cq=e,this.g("layoutConditions",t,e))}},dragComputation:{get:function(){return this.P!==null?this.P.Up:null},set:function(e){var t=this.dragComputation;t!==e&&(Ha(this),this.P.Up=e,this.g("dragComputation",t,e))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:ti},set:function(e){var t=this.shadowOffset;t.D(e)||(e=e.J(),Ha(this),this.P.zr=e,this.N(),this.g("shadowOffset",t,e))}},shadowColor:{get:function(){return this.P!==null?this.P.yr:"gray"},set:function(e){var t=this.shadowColor;t!==e&&(Ha(this),this.P.yr=e,this.N(),this.g("shadowColor",t,e))}},shadowBlur:{get:function(){return this.P!==null?this.P.Vg:4},set:function(e){var t=this.shadowBlur;t!==e&&(Ha(this),this.P.Vg=e,this.N(),this.g("shadowBlur",t,e))}}}),zn.prototype.invalidateLayout=zn.prototype.C,zn.prototype.findCommonContainingGroup=zn.prototype.px,zn.prototype.isMemberOf=zn.prototype.Td,zn.prototype.findTopLevelPart=zn.prototype.sz,zn.prototype.findSubGraphLevel=zn.prototype.oz,zn.prototype.ensureBounds=zn.prototype.Va,zn.prototype.getDocumentBounds=zn.prototype.mi,zn.prototype.findObject=zn.prototype.fb,zn.prototype.moveTo=zn.prototype.moveTo,zn.prototype.invalidateAdornments=zn.prototype.Wb,zn.prototype.clearAdornments=zn.prototype.Ej,zn.prototype.removeAdornment=zn.prototype.Jf,zn.prototype.addAdornment=zn.prototype.bh,zn.prototype.findAdornment=zn.prototype.Pj,zn.prototype.updateTargetBindings=zn.prototype.La;var q0=!1;zn.className="Part",zn.LayoutNone=0,zn.LayoutAdded=1,zn.LayoutRemoved=2,zn.LayoutShown=4,zn.LayoutHidden=8,zn.LayoutNodeSized=16,zn.LayoutGroupLayout=32,zn.LayoutNodeReplaced=64,zn.LayoutStandard=127,zn.LayoutAll=16777215;function qr(e,t){e===void 0||e instanceof Ss||typeof e=="string"?zn.call(this,e):(zn.call(this),e&&(t=e)),this.G&=-257,this.Jg="Adornment",this.ue=null,this.Aw=0,this.Uw=!1,this.j=this.$a=null,t&&Object.assign(this,t)}Tn(qr,zn),qr.prototype.toString=function(){var e=this.adornedPart;return"Adornment("+this.category+")"+(e!==null?e.toString():"")},qr.prototype.updateRelationshipsFromData=function(){},qr.prototype.Ul=function(e){var t=this.adornedObject,n=t==null?void 0:t.part;if(n instanceof cn&&t instanceof vr){t=n.path,n.Ul(e),e=t.geometry,n=this.O.s,t=n.length;for(var r=0;r<t;r++){var i=n[r];i.isPanelMain&&i instanceof vr&&(i.ua=e)}}},qr.prototype.si=function(){var e=this.ue;return e===null?!0:(e=e.part,e===null||!Ca(e))},qr.prototype.Zc=function(){return!1},qr.prototype.gk=function(e,t,n,r,i,o,a){if(e===xo&&t==="elements"){if(i instanceof _a)this.$a===null&&(this.$a=i);else if(i instanceof qt){var p=i.Nl(function(w){return w instanceof _a});p instanceof _a&&this.$a===null&&(this.$a=p)}}else e===Lo&&t==="elements"&&this.$a!==null&&(r===this.$a?this.$a=null:r instanceof qt&&this.$a.rg(r)&&(this.$a=null));zn.prototype.gk.call(this,e,t,n,r,i,o,a)},qr.prototype.updateAdornments=function(){},qr.prototype.Lj=function(){},kn.Object.defineProperties(qr.prototype,{placeholder:{get:function(){return this.$a}},adornedObject:{get:function(){return this.ue},set:function(e){var t=this.adornedPart,n=null;e!==null&&(n=e.part),t===null||e!==null&&t===n||t.Jf(this.category),this.ue=e,n!==null&&n.bh(this.category,this)}},adornedPart:{get:function(){var e=this.ue;return e!==null?e.part:null}},containingGroup:{get:function(){return null}}}),qr.className="Adornment";function qv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=ns,this.er=im,this.Kr=this.ij=this.Nq=this.Mq=null}qv.prototype.copy=function(){var e=new qv;return e.Dq=this.Dq,e.Eq=this.Eq,e.gj=this.gj,e.Vr=this.Vr,e.yp=this.yp.J(),e.er=this.er,e.Mq=this.Mq,e.Nq=this.Nq,e.ij=this.ij,e.Kr=this.Kr,e};function En(e,t){e===void 0||e instanceof Ss||typeof e=="string"?zn.call(this,e):(zn.call(this),e&&(t=e)),this.U=13,this.Ba=null,this.jb=new tn,this.wc=this.af=this.Yk=null,this.ci=!1,t&&Object.assign(this,t)}Tn(En,zn),En.prototype.cloneProtected=function(e){zn.prototype.cloneProtected.call(this,e),e.U=this.U,this.Ba!==null&&(e.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},ye=En.prototype,ye.Af=function(e){zn.prototype.Af.call(this,e),e.Bd(),e.af=this.af,e.wc=null};function qc(e){e.Ba===null?e.Ba=new qv:e.Ba.nc&&(e.Ba=e.Ba.copy())}ye.th=function(){zn.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function eb(e,t){t!==null&&(e.af===null&&(e.af=new ut),e.af.add(t))}function tb(e,t,n,r){if(t===null||e.af===null)return null;for(var i=e.af.iterator;i.next();){var o=i.value;if(o.Ds===e&&o.cv===t&&o.Ox===n&&o.Px===r||o.Ds===t&&o.cv===e&&o.Ox===r&&o.Px===n)return o}return null}ye.Lz=function(e,t,n){t==null&&(t=""),n==null&&(n=""),e=tb(this,e,t,n),e!==null&&e.Sl()},ye.gk=function(e,t,n,r,i,o,a){e===xo&&t==="elements"?this.wc=null:e===Lo&&t==="elements"&&(this.wc=null),zn.prototype.gk.call(this,e,t,n,r,i,o,a)},ye.Bd=function(e){for(var t=this.linksConnected;t.next();){var n=t.value;e!==void 0&&e.contains(n)||(al(n.fromPort),al(n.toPort),n.bb())}};function nb(e,t){for(e=e.linksConnected;e.next();){var n=e.value;(n.fromPort===t||n.toPort===t)&&(al(n.fromPort),al(n.toPort),n.bb())}}function al(e){if(e!==null){var t=e.Zn;t!==null&&t.Sl(),e=e.part,t=e.containingGroup,t===null||e.isVisible()||al(t.port)}}ye.si=function(){return!0},En.prototype.getAvoidableRect=function(e){return e.set(this.actualBounds),e.Co(this.avoidableMargin),e},En.prototype.findVisibleNode=function(){for(var e=this;e!==null&&!e.isVisible();)e=e.containingGroup;return e},En.prototype.isVisible=function(){if(!zn.prototype.isVisible.call(this))return!1;var e=!0,t=Yc,n=this.diagram;if(n!==null&&(e=n.isTreePathToChildren,t=n.treeCollapsePolicy),t===Yc){if(e=this.pg(),e!==null&&!e.isTreeExpanded)return!1}else if(t===ps){if(e=e?this.Oo():this.Po(),0<e.count&&e.all(function(r){return!r.isTreeExpanded}))return!1}else if(t===dd&&(e=e?this.Oo():this.Po(),0<e.count&&e.any(function(r){return!r.isTreeExpanded})))return!1;return e=this.labeledLink,e!==null?e.isVisible():!0},En.prototype.Zb=function(e){zn.prototype.Zb.call(this,e);for(var t=this.linksConnected;t.next();){var n=t.value;if(e&&this.containingGroup!==null){var r=n.To(this);r===null||r.Td(this.containingGroup)||n.bb()}n.Zb(e)}},En.prototype.qx=function(){var e=new ut,t=new ut;return rb(this,this,e,t),t.iterator};function rb(e,t,n,r){if(t!==null&&!n.has(t)){n.add(t);var i=!0,o=e.diagram;o!==null&&(i=o.isTreePathToChildren),t.linksConnected.each(function(a){a.isTreeLink?(i?a.fromNode===t:a.toNode===t)&&rb(e,i?a.toNode:a.fromNode,n,r):r.add(a)})}}En.prototype.findLinksConnected=function(e){if(e===void 0&&(e=null),e===null)return this.jb.iterator;var t=new hi(this.jb),n=this;return t.predicate=function(r){return r.fromNode===n&&r.fromPortId===e||r.toNode===n&&r.toPortId===e},t},ye=En.prototype,ye.Mo=function(e){e===void 0&&(e=null);var t=new hi(this.jb),n=this;return t.predicate=function(r){return r.fromNode!==n?!1:e===null?!0:r.fromPortId===e},t},ye.Sd=function(e){e===void 0&&(e=null);var t=new hi(this.jb),n=this;return t.predicate=function(r){return r.toNode!==n?!1:e===null?!0:r.toPortId===e},t},ye.Mu=function(e){e===void 0&&(e=null);for(var t=null,n=null,r=this.jb.iterator;r.next();){var i=r.value;i.fromNode===this?(e===null||i.fromPortId===e)&&(i=i.toNode,t!==null?t.add(i):n!==null&&n!==i?(t=new ut,t.add(n),t.add(i)):n=i):i.toNode!==this||e!==null&&i.toPortId!==e||(i=i.fromNode,t!==null?t.add(i):n!==null&&n!==i?(t=new ut,t.add(n),t.add(i)):n=i)}return t!==null?t.iterator:n!==null?new Oi(n):eo},ye.Po=function(e){e===void 0&&(e=null);for(var t=null,n=null,r=this.jb.iterator;r.next();){var i=r.value;i.fromNode!==this||e!==null&&i.fromPortId!==e||(i=i.toNode,t!==null?t.add(i):n!==null&&n!==i?(t=new ut,t.add(n),t.add(i)):n=i)}return t!==null?t.iterator:n!==null?new Oi(n):eo},ye.Oo=function(e){e===void 0&&(e=null);for(var t=null,n=null,r=this.jb.iterator;r.next();){var i=r.value;i.toNode!==this||e!==null&&i.toPortId!==e||(i=i.fromNode,t!==null?t.add(i):n!==null&&n!==i?(t=new ut,t.add(n),t.add(i)):n=i)}return t!==null?t.iterator:n!==null?new Oi(n):eo},ye.jz=function(e,t,n){t===void 0&&(t=null),n===void 0&&(n=null);var r=new hi(this.jb),i=this;return r.predicate=function(o){return!((o.fromNode!==i||o.toNode!==e||t!==null&&o.fromPortId!==t||n!==null&&o.toPortId!==n)&&(o.fromNode!==e||o.toNode!==i||n!==null&&o.fromPortId!==n||t!==null&&o.toPortId!==t))},r},ye.kz=function(e,t,n){t===void 0&&(t=null),n===void 0&&(n=null);var r=new hi(this.jb),i=this;return r.predicate=function(o){return!(o.fromNode!==i||o.toNode!==e||t!==null&&o.fromPortId!==t||n!==null&&o.toPortId!==n)},r};function nm(e,t,n){al(n);var r=e.jb.contains(t);if(r||e.jb.add(t),!r||t.fromNode===t.toNode){var i=e.linkConnected;if(i!==null){var o=!0,a=e.diagram;a!==null&&(o=a.aa,a.aa=!0),i(e,t,n),a!==null&&(a.aa=o)}}!r&&t.isTreeLink&&(n=t.fromNode,t=t.toNode,n!==null&&t!==null&&n!==t&&(r=!0,e=e.diagram,e!==null&&(r=e.isTreePathToChildren),i=r?t:n,o=r?n:t,i.ci||(i.ci=o),!o.isTreeLeaf||e!==null&&e.undoManager.isUndoingRedoing||(r?n===o&&(o.isTreeLeaf=!1):t===o&&(o.isTreeLeaf=!1))))}function rm(e,t,n){al(n);var r=e.jb.remove(t),i=null;if(r||t.toNode===t.fromNode){var o=e.linkDisconnected;if(i=e.diagram,o!==null){var a=!0;i!==null&&(a=i.aa,i.aa=!0),o(e,t,n),i!==null&&(i.aa=a)}}r&&t.isTreeLink&&(n=!0,i!==null&&(n=i.isTreePathToChildren),e=n?t.toNode:t.fromNode,t=n?t.fromNode:t.toNode,e!==null&&(e.ci=!1),t===null||t.isTreeLeaf||(t.jb.count===0?(t.ci=null,i!==null&&i.undoManager.isUndoingRedoing||(t.isTreeLeaf=!0)):Np(t)))}function Np(e){if(e.ci=!1,e.jb.count!==0){var t=!0,n=e.diagram;if(n===null||!n.undoManager.isUndoingRedoing){for(n!==null&&(t=n.isTreePathToChildren),n=e.jb.iterator;n.next();){var r=n.value;if(r.isTreeLink){if(t){if(r.fromNode===e){e.isTreeLeaf=!1;return}}else if(r.toNode===e){e.isTreeLeaf=!1;return}}}e.isTreeLeaf=!0}}}En.prototype.updateRelationshipsFromData=function(){var e=this.diagram;e!==null&&e.partManager.updateRelationshipsFromData(this)},ye=En.prototype,ye.Vo=function(e){zn.prototype.Vo.call(this,e),e||(Np(this),e=this.Yk,e!==null&&fb(e,this))},ye.Wo=function(e){zn.prototype.Wo.call(this,e),e||(e=this.Yk,e!==null&&e.wd!==null&&(e.wd.remove(this),e.v()))},ye.Lj=function(){if(0<this.jb.count){var e=this.diagram;if(e!==null)for(var t=e.commandHandler!==null?e.commandHandler.deletesConnectedLinks:!0,n=this.jb.copy().iterator;n.next();){var r=n.value;t?e.remove(r):(r.fromNode===this&&(r.fromNode=null),r.toNode===this&&(r.toNode=null))}}this.labeledLink=null,zn.prototype.Lj.call(this)},ye.ns=function(e){if(this.wc===null){if(e===""&&this.Te===!1)return this;ib(this)}var t=this.wc.I(e);return t!==null||e!==""&&(t=this.wc.I(""),t!==null)?t:this};function ib(e){e.wc===null?e.wc=new nn:e.wc.clear(),e.qm(e,function(t,n){ob(t,n)}),e.wc.count===0&&e.wc.add("",e)}function ob(e,t){var n=t.portId;n!==null&&e.wc!==null&&e.wc.add(n,t)}function ey(e,t,n){var r=t.portId;if(r!==null&&(e.wc!==null&&e.wc.remove(r),t=e.diagram,t!==null&&n)){for(n=null,e=e.findLinksConnected(r);e.next();)r=e.value,n===null&&(n=yr()),n.push(r);if(n!==null){for(e=0;e<n.length;e++)t.remove(n[e]);Mr(n)}}}ye.Nz=function(e){if(e===null||e===this)return!1;var t=!0,n=this.diagram;if(n!==null&&(t=n.isTreePathToChildren),n=this,t)for(;n!==e;){t=null;for(var r=n.jb.iterator;r.next();){var i=r.value;if(i.isTreeLink&&(t=i.fromNode,t!==n&&t!==this))break}if(t===this||t===null||t===n)return!1;n=t}else for(;n!==e;){for(t=null,r=n.jb.iterator;r.next()&&(i=r.value,!i.isTreeLink||(t=i.toNode,t===n||t===this)););if(t===this||t===null||t===n)return!1;n=t}return!0},ye.xz=function(){var e=!0,t=this.diagram;if(t!==null&&(e=t.isTreePathToChildren),t=this,e)for(;;){e=null;for(var n=t.jb.iterator;n.next();){var r=n.value;if(r.isTreeLink&&(e=r.fromNode,e!==t&&e!==this))break}if(e===this)return this;if(e===null||e===t)return t;t=e}else for(;;){for(e=null,n=t.jb.iterator;n.next()&&(r=n.value,!r.isTreeLink||(e=r.toNode,e===t||e===this)););if(e===this)return this;if(e===null||e===t)return t;t=e}},ye.gz=function(e){if(e===null)return null;if(this===e)return this;for(var t=this;t!==null;)tm(t,!0),t=t.pg();var n=null;for(t=e;t!==null;){if(t.G&1048576){n=t;break}t=t.pg()}for(t=this;t!==null;)tm(t,!1),t=t.pg();return n},ye.kh=function(){var e=!0,t=this.diagram;if(t!==null&&(e=t.isTreePathToChildren),t=this.jb.iterator,e){for(;t.next();)if(e=t.value,e.isTreeLink&&e.fromNode!==this)return e}else for(;t.next();)if(e=t.value,e.isTreeLink&&e.toNode!==this)return e;return null},ye.pg=function(){var e=this.ci;if(e===null)return null;if(e instanceof En)return e;e=this.diagram,e=e!==null?e.isTreePathToChildren:!0;for(var t=this.jb.iterator;t.next();){var n=t.value;if(n.isTreeLink&&(n=e?n.fromNode:n.toNode,n!==this))return this.ci=n}return this.ci=null},ye.vz=function(){function e(n,r){r.add(n);var i=n.kh();i!==null&&(r.add(i),n=n.pg(),n!==null&&e(n,r))}var t=new ut;return e(this,t),t},ye.uz=function(){return sb(this,this)};function sb(e,t){return t=t.pg(),t===null?0:1+sb(e,t)}ye.Qo=function(){var e=!0,t=this.diagram;t!==null&&(e=t.isTreePathToChildren),t=new hi(this.jb);var n=this;return t.predicate=e?function(r){return!!(r.isTreeLink&&r.fromNode===n)}:function(r){return!!(r.isTreeLink&&r.toNode===n)},t},ye.Ou=function(){var e=!0,t=this.diagram;t!==null&&(e=t.isTreePathToChildren);var n=t=null,r=this.jb.iterator;if(e)for(;r.next();)e=r.value,e.isTreeLink&&e.fromNode===this&&(e=e.toNode,t!==null?t.add(e):n!==null&&n!==e?(t=new tn,t.add(n),t.add(e)):n=e);else for(;r.next();)e=r.value,e.isTreeLink&&e.toNode===this&&(e=e.fromNode,t!==null?t.add(e):n!==null&&n!==e?(t=new tn,t.add(n),t.add(e)):n=e);return t!==null?t.iterator:n!==null?new Oi(n):eo},ye.wz=function(e){e===void 0&&(e=1/0);var t=new ut;return _h(t,this,!1,e,!0),t},En.prototype.collapseTree=function(e){e===void 0&&(e=1),1>e&&(e=1);var t=this.diagram;if(t!==null&&!t.Ue){t.Ue=!0;var n=new ut;n.add(this),ab(this,n,t.isTreePathToChildren,e,t,this,t.treeCollapsePolicy===Yc),t.Ue=!1}};function ab(e,t,n,r,i,o,a){if(1<r)for(var p=n?e.Mo():e.Sd();p.next();){var w=p.value;w.isTreeLink&&(w=w.To(e),w===null||w===e||t.contains(w)||(t.add(w),ab(w,t,n,r-1,i,o,a)))}else lb(e,t,n,i,o,a)}function lb(e,t,n,r,i,o){for(var a=i===e?!0:e.isTreeExpanded,p=n?e.Mo():e.Sd(),w={};p.next();){var O=p.value;if(O.isTreeLink&&(O=O.To(e),O!==null&&O!==e)){var D=t.contains(O);if(D||t.add(O),a){var X=n?O.Oo():O.Po();w.uv=e,X.all(function(re){return function(de){return de===re.uv||!de.isTreeExpanded}}(w))&&r.Aj(O,i),O.oh(),O.Zb(!1)}O.isTreeExpanded&&(O.wasTreeExpanded=O.isTreeExpanded,D||lb(O,t,n,r,i,o))}w={uv:w.uv}}e.isTreeExpanded=!1}En.prototype.expandTree=function(e){e===void 0&&(e=2),2>e&&(e=2);var t=this.diagram;if(t!==null&&!t.Ue){t.Ue=!0;var n=new ut;n.add(this),ub(this,n,t.isTreePathToChildren,e,t,this,t.treeCollapsePolicy===Yc),t.Ue=!1}};function ub(e,t,n,r,i,o,a){for(var p=o===e?!1:e.isTreeExpanded,w=n?e.Mo():e.Sd(),O={};w.next();){var D=w.value;if(D.isTreeLink&&(p||D.fd||D.bb(),D=D.To(e),D!==null&&D!==e&&!t.contains(D))){if(t.add(D),!p){D.Zb(!0),D.oh();var X=n?D.Oo():D.Po();O.vv=e,X.all(function(re){return function(de){return de===re.vv||!de.isTreeExpanded}}(O))&&i.Cj(D,o)}(2<r||D.wasTreeExpanded)&&(D.wasTreeExpanded=!1,ub(D,t,n,r-1,i,o,a))}O={vv:O.vv}}e.isTreeExpanded=!0}kn.Object.defineProperties(En.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:im},set:function(e){var t=this.portSpreading;t!==e&&(qc(this),this.Ba.er=e,this.g("portSpreading",t,e),e=this.diagram,e!==null&&e.undoManager.isUndoingRedoing||this.Bd())}},avoidable:{get:function(){return(this.U&8)!==0},set:function(e){var t=(this.U&8)!==0;if(t!==e){this.U^=8;var n=this.diagram;n!==null&&Vc(n,this),this.g("avoidable",t,e)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:ns},set:function(e){typeof e=="number"&&(e=new Wn(e));var t=this.avoidableMargin;if(!t.D(e)){e=e.J(),qc(this),this.Ba.yp=e;var n=this.diagram;n!==null&&Vc(n,this),this.g("avoidableMargin",t,e)}}},linksConnected:{get:function(){return this.jb.iterator}},linkConnected:{get:function(){return this.Ba!==null?this.Ba.Dq:null},set:function(e){var t=this.linkConnected;t!==e&&(qc(this),this.Ba.Dq=e,this.g("linkConnected",t,e))}},linkDisconnected:{get:function(){return this.Ba!==null?this.Ba.Eq:null},set:function(e){var t=this.linkDisconnected;t!==e&&(qc(this),this.Ba.Eq=e,this.g("linkDisconnected",t,e))}},linkValidation:{get:function(){return this.Ba!==null?this.Ba.gj:null},set:function(e){var t=this.linkValidation;t!==e&&(qc(this),this.Ba.gj=e,this.g("linkValidation",t,e))}},isLinkLabel:{get:function(){return this.Yk!==null}},labeledLink:{get:function(){return this.Yk},set:function(e){var t=this.Yk;if(t!==e){var n=this.diagram,r=this.data;if(t!==null){if(t.wd!==null&&(t.wd.remove(this),t.v()),n!==null&&r!==null&&!n.undoManager.isUndoingRedoing){var i=t.data,o=n.model;if(i!==null&&o.ri()){var a=o.wa(r);a!==void 0&&o.Qx(i,a)}}this.containingGroup=null}this.Yk=e,e!==null&&(fb(e,this),n===null||r===null||n.undoManager.isUndoingRedoing||(i=e.data,n=n.model,i!==null&&n.ri()&&(r=n.wa(r),r!==void 0&&n.Bu(i,r))),this.containingGroup=e.containingGroup),wa(this),this.g("labeledLink",t,e)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&ib(this),this.wc.iteratorValues}},isTreeExpanded:{get:function(){return(this.U&1)!==0},set:function(e){var t=(this.U&1)!==0;if(t!==e){this.U^=1;var n=this.diagram;if(this.g("isTreeExpanded",t,e),t=this.treeExpandedChanged,t!==null){var r=!0;n!==null&&(r=n.aa,n.aa=!0),t(this),n!==null&&(n.aa=r)}n!==null&&n.undoManager.isUndoingRedoing?this.Zb(e):e?this.expandTree():this.collapseTree()}}},wasTreeExpanded:{get:function(){return(this.U&2)!==0},set:function(e){var t=(this.U&2)!==0;t!==e&&(this.U^=2,this.g("wasTreeExpanded",t,e))}},treeExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Vr:null},set:function(e){var t=this.treeExpandedChanged;t!==e&&(qc(this),this.Ba.Vr=e,this.g("treeExpandedChanged",t,e))}},isTreeLeaf:{get:function(){return(this.U&4)!==0},set:function(e){var t=(this.U&4)!==0;t!==e&&(this.U^=4,this.g("isTreeLeaf",t,e))}}}),En.prototype.expandTree=En.prototype.expandTree,En.prototype.collapseTree=En.prototype.collapseTree,En.prototype.findTreeParts=En.prototype.wz,En.prototype.findTreeChildrenNodes=En.prototype.Ou,En.prototype.findTreeChildrenLinks=En.prototype.Qo,En.prototype.findTreeLevel=En.prototype.uz,En.prototype.findTreeParentChain=En.prototype.vz,En.prototype.findTreeParentNode=En.prototype.pg,En.prototype.findTreeParentLink=En.prototype.kh,En.prototype.findCommonTreeParent=En.prototype.gz,En.prototype.findTreeRoot=En.prototype.xz,En.prototype.isInTreeOf=En.prototype.Nz,En.prototype.findPort=En.prototype.ns,En.prototype.findLinksTo=En.prototype.kz,En.prototype.findLinksBetween=En.prototype.jz,En.prototype.findNodesInto=En.prototype.Oo,En.prototype.findNodesOutOf=En.prototype.Po,En.prototype.findNodesConnected=En.prototype.Mu,En.prototype.findLinksInto=En.prototype.Sd,En.prototype.findLinksOutOf=En.prototype.Mo,En.prototype.findExternalTreeLinksConnected=En.prototype.qx,En.prototype.invalidateConnectedLinks=En.prototype.Bd,En.prototype.invalidateLinkBundle=En.prototype.Lz;var H1=new hn(En,"SpreadingNone",10),im=new hn(En,"SpreadingEvenly",11),ty=new hn(En,"SpreadingPacked",12);En.className="Node",En.SpreadingNone=H1,En.SpreadingEvenly=im,En.SpreadingPacked=ty;function lr(e,t){e===void 0||e instanceof Ss||typeof e=="string"?En.call(this,e):(En.call(this),e&&(t=e)),this.U|=4608,this.Gn=new ut,this.$a=null,this.Sc=new co,this.Sc.group=this,this.gl=new ut,this.tb=this.$p=null,t&&Object.assign(this,t)}Tn(lr,En),lr.prototype.cloneProtected=function(e){En.prototype.cloneProtected.call(this,e),this.U=this.U&-32769;var t=e.Nl(function(n){return n instanceof _a});t instanceof _a?e.$a=t:e.$a=null,this.Sc!==null?(e.Sc=this.Sc.copy(),e.Sc.group=e):(e.Sc!==null&&(e.Sc.group=null),e.Sc=null),this.tb!==null&&(e.tb=this.tb.copy())},ye=lr.prototype,ye.Af=function(e){En.prototype.Af.call(this,e);var t=e.Rj();for(e=e.memberParts;e.next();){var n=e.value;if(n.v(),n.C(8),n.Ej(),n instanceof En)n.Bd(t);else if(n instanceof cn)for(n=n.labelNodes;n.next();)n.value.Bd(t)}},ye.gk=function(e,t,n,r,i,o,a){if(e===xo&&t==="elements"){if(i instanceof _a)this.$a===null?this.$a=i:this.$a!==i&&Lt("Cannot insert a second Placeholder into the visual tree of a Group.");else if(i instanceof qt){var p=i.Nl(function(w){return w instanceof _a});p instanceof _a&&(this.$a===null?this.$a=p:this.$a!==p&&Lt("Cannot insert a second Placeholder into the visual tree of a Group."))}}else e===Lo&&t==="elements"&&this.$a!==null&&(r===this.$a?this.$a=null:r instanceof qt&&this.$a.rg(r)&&(this.$a=null));En.prototype.gk.call(this,e,t,n,r,i,o,a)},ye.Xl=function(e,t){En.prototype.Xl.call(this,e,t),this.isClipping&&this.type!==qt.Spot&&this.isSubGraphExpanded&&(e=this.resizeObject,e instanceof qt&&(e=e.Pb()),this.tb===null&&(this.tb=new Nt),e.mi(this.tb),e instanceof vr&&this.tb.Bc(-e.strokeWidth,-e.strokeWidth))},ye.eh=function(e,t,n,r){this.nf=this.$a,En.prototype.eh.call(this,e,t,n,r)},ye.Va=function(){var e=this;e.isSubGraphExpanded&&this.memberParts.each(function(t){!e.computesBoundsIncludingLinks&&t instanceof cn||t.Va()}),En.prototype.Va.call(this)},ye.si=function(){if(!En.prototype.si.call(this))return!1;for(var e=this.memberParts;e.next();){var t=e.value;if(t instanceof En){if(t.isVisible()&&Ca(t))return!1}else if(t instanceof cn&&t.isVisible()&&Ca(t)&&t.fromNode!==this&&t.toNode!==this)return!1}return!0};function ny(e,t){if(e.Gn.add(t)){t instanceof lr&&e.gl.add(t);var n=e.memberAdded;if(n!==null){var r=!0,i=e.diagram;i!==null&&(r=i.aa,i.aa=!0),n(e,t),i!==null&&(i.aa=r)}e.isVisible()&&e.isSubGraphExpanded||t.Zb(!1)}t instanceof cn&&!e.computesBoundsIncludingLinks||(t=e.$a,t===null&&(t=e),t.v())}function ry(e,t){if(e.Gn.remove(t)){t instanceof lr&&e.gl.remove(t);var n=e.memberRemoved;if(n!==null){var r=!0,i=e.diagram;i!==null&&(r=i.aa,i.aa=!0),n(e,t),i!==null&&(i.aa=r)}e.isVisible()&&e.isSubGraphExpanded||t.Zb(!0)}t instanceof cn&&!e.computesBoundsIncludingLinks||(t=e.$a,t===null&&(t=e),t.v())}ye.Lj=function(){if(0<this.Gn.count){var e=this.diagram;if(e!==null)for(var t=this.Gn.copy().iterator;t.next();)e.remove(t.value)}En.prototype.Lj.call(this)},lr.prototype.canAddMembers=function(e){var t=this.diagram;if(t===null)return!1;for(t=t.commandHandler,e=Ot(e).iterator;e.next();)if(!t.isValidMember(this,e.value))return!1;return!0},lr.prototype.addMembers=function(e,t){var n=this.diagram;if(n===null)return!1;n=n.commandHandler;var r=!0;for(e=Ot(e).iterator;e.next();){var i=e.value;!t||n.isValidMember(this,i)?i.containingGroup=this:r=!1}return r},lr.prototype.canUngroup=function(){if(!this.ungroupable)return!1;var e=this.layer;return e===null||!e.allowUngroup?!1:(e=e.diagram,!!(e===null||e.allowUngroup))},ye=lr.prototype,ye.Bd=function(e){var t=(this.U&65536)!==0;if(En.prototype.Bd.call(this,e),!t)for(!(this.U&65536)&&(this.U=this.U^65536),t=this.Lu();t.next();){var n=t.value;if(e===void 0||!e.contains(n)){var r=n.fromNode;r!==null&&r!==this&&r.Td(this)&&!r.isVisible()?(al(n.fromPort),al(n.toPort),n.bb()):(r=n.toNode,r!==null&&r!==this&&r.Td(this)&&!r.isVisible()&&(al(n.fromPort),al(n.toPort),n.bb()))}}},ye.Lu=function(){var e=this.diagram!==null&&this.diagram.Pw;if(e&&this.$p!==null)return this.$p.iterator;var t=this.Rj();t.add(this);for(var n=new ut,r=t.iterator;r.next();){var i=r.value;if(i instanceof En)for(i=i.linksConnected;i.next();){var o=i.value;t.contains(o)||n.add(o)}}return e&&(this.$p=n),n.iterator},ye.iz=function(){var e=this.Rj();e.add(this);for(var t=new ut,n=e.iterator;n.next();){var r=n.value;if(r instanceof En)for(r=r.linksConnected;r.next();){var i=r.value,o=i.fromNode;o===null||e.contains(o)&&o!==this||t.add(o),i=i.toNode,i===null||e.contains(i)&&i!==this||t.add(i)}}return t.iterator},ye.hz=function(){function e(n,r){n!==null&&(r.add(n),e(n.containingGroup,r))}var t=new ut;return e(this,t),t},ye.Rj=function(){var e=new ut;return _h(e,this,!0,0,!0),e.remove(this),e},ye.Zb=function(e){En.prototype.Zb.call(this,e);for(var t=this.memberParts;t.next();)t.value.Zb(e)},lr.prototype.collapseSubGraph=function(){var e=this.diagram;if(e!==null&&!e.Ue){e.Ue=!0;var t=this.Rj();cb(this,t,e,this),e.Ue=!1}};function cb(e,t,n,r){for(var i=e.memberParts;i.next();){var o=i.value;if(o.Zb(!1),o instanceof lr&&o.isSubGraphExpanded&&(o.wasSubGraphExpanded=o.isSubGraphExpanded,cb(o,t,n,r)),o instanceof En)o.Bd(t),n.Aj(o,r);else if(o instanceof cn)for(o=o.labelNodes;o.next();)o.value.Bd(t)}e.isSubGraphExpanded=!1}lr.prototype.expandSubGraph=function(){var e=this.diagram;if(e!==null&&!e.Ue){e.Ue=!0;var t=this.Rj();hb(this,t,e,this),e.Ue=!1}};function hb(e,t,n,r){for(var i=e.memberParts;i.next();){var o=i.value;if(o.Zb(!0),o instanceof lr&&o.wasSubGraphExpanded&&(o.wasSubGraphExpanded=!1,hb(o,t,n,r)),o instanceof En)o.Bd(t),n.Cj(o,r);else if(o instanceof cn)for(o=o.labelNodes;o.next();)o.value.Bd(t)}e.isSubGraphExpanded=!0}lr.prototype.move=function(e,t){t===void 0&&(t=!1);var n=t?this.location:this.position,r=n.x;n=n.y;var i=e.x,o=e.y;if(!(r===i||isNaN(r)&&isNaN(i))||!(n===o||isNaN(n)&&isNaN(o))){for(r=i-(isNaN(r)?0:r),n=o-(isNaN(n)?0:n),o=Ue.alloc(),En.prototype.move.call(this,e,t),e=new ut,t=this.Rj().iterator;t.next();)i=t.value,i instanceof cn&&(i.suspendsRouting&&e.add(i),i.fd||i.fromNode!==this&&i.toNode!==this)&&(i.suspendsRouting=!0);for(t.reset();t.next();)if(i=t.value,!(i.ph()||i instanceof En&&i.isLinkLabel)){var a=i.position,p=i.location;a.w()?(o.x=a.x+r,o.y=a.y+n,i.position=o):p.w()&&(o.x=p.x+r,o.y=p.y+n,i.location=o)}for(t.reset();t.next();)i=t.value,i instanceof cn&&(i.suspendsRouting=e.contains(i),i.fd||i.fromNode!==this&&i.toNode!==this)&&(a=i.position,o.x=a.x+r,o.y=a.y+n,o.w()?i.move(o):i.bb(),oy(i)&&i.bb());Ue.free(o)}},kn.Object.defineProperties(lr.prototype,{placeholder:{get:function(){return this.$a}},computesBoundsAfterDrag:{get:function(){return(this.U&2048)!==0},set:function(e){var t=(this.U&2048)!==0;t!==e&&(this.U^=2048,this.g("computesBoundsAfterDrag",t,e))}},computesBoundsIncludingLinks:{get:function(){return(this.U&4096)!==0},set:function(e){var t=(this.U&4096)!==0;t!==e&&(this.U^=4096,this.g("computesBoundsIncludingLinks",t,e))}},computesBoundsIncludingLocation:{get:function(){return(this.U&8192)!==0},set:function(e){var t=(this.U&8192)!==0;t!==e&&(this.U^=8192,this.g("computesBoundsIncludingLocation",t,e))}},handlesDragDropForMembers:{get:function(){return(this.U&16384)!==0},set:function(e){var t=(this.U&16384)!==0;t!==e&&(this.U^=16384,this.g("handlesDragDropForMembers",t,e))}},memberParts:{get:function(){return this.Gn.iterator}},layout:{get:function(){return this.Sc},set:function(e){var t=this.Sc;if(t!==e){e!==null&&e.diagram!==null&&e.diagram.layout===e&&Lt("A layout cannot be both the Diagram.layout and a Group.layout: "+e),t!==null&&(t.diagram=null,t.group=null),this.Sc=e;var n=this.diagram;e!==null&&(e.diagram=n,e.group=this),n!==null&&(n.xh=!0),this.g("layout",t,e),n!==null&&n.$b()}}},memberAdded:{get:function(){return this.Ba!==null?this.Ba.Mq:null},set:function(e){var t=this.memberAdded;t!==e&&(qc(this),this.Ba.Mq=e,this.g("memberAdded",t,e))}},memberRemoved:{get:function(){return this.Ba!==null?this.Ba.Nq:null},set:function(e){var t=this.memberRemoved;t!==e&&(qc(this),this.Ba.Nq=e,this.g("memberRemoved",t,e))}},memberValidation:{get:function(){return this.Ba!==null?this.Ba.ij:null},set:function(e){var t=this.memberValidation;t!==e&&(qc(this),this.Ba.ij=e,this.g("memberValidation",t,e))}},ungroupable:{get:function(){return(this.U&256)!==0},set:function(e){var t=(this.U&256)!==0;t!==e&&(this.U^=256,this.g("ungroupable",t,e))}},isSubGraphExpanded:{get:function(){return(this.U&512)!==0},set:function(e){var t=(this.U&512)!==0;if(t!==e){this.U^=512;var n=this.diagram;if(this.g("isSubGraphExpanded",t,e),t=this.subGraphExpandedChanged,t!==null){var r=!0;n!==null&&(r=n.aa,n.aa=!0),t(this),n!==null&&(n.aa=r)}n!==null&&n.undoManager.isUndoingRedoing?(this.$a!==null&&this.$a.v(),this.memberParts.each(function(i){i.updateAdornments()})):e?this.expandSubGraph():this.collapseSubGraph()}}},wasSubGraphExpanded:{get:function(){return(this.U&1024)!==0},set:function(e){var t=(this.U&1024)!==0;t!==e&&(this.U^=1024,this.g("wasSubGraphExpanded",t,e))}},subGraphExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Kr:null},set:function(e){var t=this.subGraphExpandedChanged;t!==e&&(qc(this),this.Ba.Kr=e,this.g("subGraphExpandedChanged",t,e))}},rh:{get:function(){return(this.U&32768)!==0},set:function(e){(this.U&32768)!==0!==e&&(this.U^=32768)}}}),lr.prototype.expandSubGraph=lr.prototype.expandSubGraph,lr.prototype.collapseSubGraph=lr.prototype.collapseSubGraph,lr.prototype.findSubGraphParts=lr.prototype.Rj,lr.prototype.findContainingGroupChain=lr.prototype.hz,lr.prototype.findExternalNodesConnected=lr.prototype.iz,lr.prototype.findExternalLinksConnected=lr.prototype.Lu,lr.prototype.ensureBounds=lr.prototype.Va,lr.className="Group";function _a(e){gt.call(this),this.yb=fo,this.ko=new Nt(NaN,NaN,NaN,NaN),e&&Object.assign(this,e)}Tn(_a,gt),_a.prototype.cloneProtected=function(e){gt.prototype.cloneProtected.call(this,e),e.yb=this.yb.J(),e.ko=this.ko.copy()},_a.prototype.gh=function(e){if(this.background===null&&this.areaBackground===null)return!1;var t=this.naturalBounds;return $i(0,0,t.width,t.height,e.x,e.y)},_a.prototype.Wl=function(){var e=this.part;if(e!==null&&(e instanceof lr||e instanceof qr)||Lt("Placeholder is not inside a Group or Adornment."),e instanceof lr){var t=this.computeBorder(this.ko),n=this.minSize,r=this.dc;for(no(r,(isFinite(n.width)?Math.max(n.width,t.width):t.width)||0,(isFinite(n.height)?Math.max(n.height,t.height):t.height)||0),this.Ge(0,0,r.width,r.height),r=e.memberParts,n=!1;r.next();)if(r.value.isVisible()){n=!0;break}r=e.diagram,!n||r===null||r.animationManager.Xu(e)||isNaN(t.x)||isNaN(t.y)||(n=Ue.alloc(),n.xi(t,e.locationSpot),n.D(e.location)||(e.location=n),Ue.free(n))}else{t=this.dc,n=this.yb,r=n.left+n.right;var i=n.top+n.bottom,o=e.adornedObject;e.angle=o.li();var a=0;o instanceof vr&&(a=o.strokeWidth);var p=o.Df(),w=o.naturalBounds,O=(w.width+a)*p;a=(w.height+a)*p,e.type!==qt.Link&&(p=o.ga(e.category==="Selection"?No:e.locationSpot,Ue.alloc()),e.location=p,Ue.free(p)),isNaN(O)||isNaN(a)?(e=o.ga(No,Ue.alloc()),O=Nt.allocAt(e.x,e.y,0,0),O.Ye(o.ga(ks,e)),O.Ye(o.ga(go,e)),O.Ye(o.ga(Jo,e)),no(t,O.width+r||0,O.height+i||0),this.Ge(-n.left,-n.top,t.width,t.height),Ue.free(e),Nt.free(O)):(no(t,O+r||0,a+i||0),this.Ge(-n.left,-n.top,t.width,t.height))}},_a.prototype.eh=function(e,t,n,r){this.actualBounds.h(e,t,n,r)},_a.prototype.computeBorder=function(e){var t=this.part,n=t.diagram,r=n===null||!n.animationManager.isAnimating;if(n!==null&&t instanceof lr&&!t.layer.isTemporary&&t.computesBoundsAfterDrag&&this.ko.w()){var i=n.toolManager.findTool("Dragging");if(i===n.currentTool&&(n=i.computeBorder(t,this.ko,e),n!==null))return n}n=Nt.alloc(),i=this.computeMemberBounds(n);var o=this.yb;return t instanceof lr&&!t.isSubGraphExpanded?e.h(i.x-o.left,i.y-o.top,0,0):e.h(i.x-o.left,i.y-o.top,Math.max(i.width+o.left+o.right,0),Math.max(i.height+o.top+o.bottom,0)),Nt.free(n),r&&t instanceof lr&&t.computesBoundsIncludingLocation&&t.location.w()&&e.Ye(t.location),e},_a.prototype.computeMemberBounds=function(e){if(!(this.part instanceof lr))return e.h(0,0,0,0),e;for(var t=this.part,n=1/0,r=1/0,i=-1/0,o=-1/0,a=t.memberParts;a.next();){var p=a.value;if(p.isVisible()){if(p instanceof cn&&(!t.computesBoundsIncludingLinks||El(p)||p.fromNode===t||p.toNode===t))continue;p=p.actualBounds,p.left<n&&(n=p.left),p.top<r&&(r=p.top),p.right>i&&(i=p.right),p.bottom>o&&(o=p.bottom)}}return isFinite(n)&&isFinite(r)?e.h(n,r,i-n,o-r):(t=t.location,e.h(t.x,t.y,0,0)),e},kn.Object.defineProperties(_a.prototype,{padding:{get:function(){return this.yb},set:function(e){typeof e=="number"&&(e=new Wn(e));var t=this.yb;t.D(e)||(this.yb=e=e.J(),this.g("padding",t,e),this.v())}}}),_a.className="Placeholder";function cn(e){zn.call(this,qt.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Aa,this.Om=0,this.Qm=Aa,this.Rm=NaN,this.qj=ly,this.po=.5,this.wd=null,this.Nb=new tn().freeze(),this.Tg=this.Mg=null,this.ml=new Nt,this.ua=new un,this.u=this.o=this.Sf=this.Wf=null,this.su=new Ue,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],e&&Object.assign(this,e)}Tn(cn,zn),cn.prototype.cloneProtected=function(e){zn.prototype.cloneProtected.call(this,e),e.Qa=this.Qa&-113,e.ff=this.ff,e.gn=this.gn,e.vf=this.vf,e.uo=this.uo,e.qk=this.qk,e.Om=this.Om,e.Qm=this.Qm,e.Rm=this.Rm,e.qj=this.qj,e.po=this.po,this.ba!==null&&(e.ba=this.ba.copy())},ye=cn.prototype,ye.Af=function(e){zn.prototype.Af.call(this,e),this.ff=e.ff,this.vf=e.vf,e.Mg=null,e.bb(),e.Sf=this.Sf;var t=e.fromPort;t!==null&&al(t),e=e.toPort,e!==null&&al(e)},ye.qb=function(e){e.classType===cn?(e.value&2)===2?this.routing=e:e===Cl||e===th||e===Rd?this.curve=e:e===Op||e===cm||e===hm?this.adjusting=e:e!==ly&&e!==Aa&&Lt("Unknown Link enum value for a Link property: "+e):zn.prototype.qb.call(this,e)},ye.Xc=function(){this.ba===null&&(this.ba=new yp)},ye.si=function(){var e=this.fromNode;if(e!==null){var t=e.findVisibleNode();if(t!==null&&(e=t),Ca(e)||Ch(e))return!1}return e=this.toNode,!(e!==null&&(t=e.findVisibleNode(),t!==null&&(e=t),Ca(e)||Ch(e)))},ye.zv=function(){return!1},ye.Av=function(){},ye.Zc=function(){return!1},cn.prototype.computeAngle=function(e,t,n){return cn.computeAngle(t,n)},cn.computeAngle=function(e,t){switch(e){default:case Aa:e=0;break;case Lp:e=t;break;case Mp:e=t+90;break;case Dp:e=t-90;break;case uy:e=t+180;break;case fm:e=vt.bp(t),90<e&&270>e&&(e-=180);break;case Pp:e=vt.bp(t+90),90<e&&270>e&&(e-=180);break;case Fp:e=vt.bp(t-90),90<e&&270>e&&(e-=180);break;case dm:if(e=vt.bp(t),45<e&&135>e||225<e&&315>e)return 0;90<e&&270>e&&(e-=180)}return vt.bp(e)};function kd(e){var t=e.fromNode,n=e.toNode,r=null;if(t!==null?r=n!==null?t.px(n):t.containingGroup:n!==null?r=n.containingGroup:r=null,t=r,n=e.Ah,n!==t){n!==null&&ry(n,e),e.Ah=t,t!==null&&ny(t,e);var i=e.containingGroupChanged;if(i!==null){var o=!0,a=e.diagram;a!==null&&(o=a.aa,a.aa=!0),i(e,n,t),a!==null&&(a.aa=o)}!e.fd||e.Lw!==n&&e.Mw!==n||e.bb()}if(e.isLabeledLink)for(e=e.labelNodes;e.next();)e.value.containingGroup=r}ye=cn.prototype,ye.oh=function(){var e=this.containingGroup;e!==null&&this.fromNode!==e&&this.toNode!==e&&e.computesBoundsIncludingLinks&&zn.prototype.oh.call(this)},ye.To=function(e){var t=this.fromNode;return e===t?this.toNode:t},ye.Cz=function(e){var t=this.fromPort;return e===t?this.toPort:t};function fb(e,t){e.wd===null&&(e.wd=new ut),e.wd.add(t),e.v()}ye.Vo=function(e){if(zn.prototype.Vo.call(this,e),df(this)&&this.Xo(this.actualBounds),!e){e=this.ef;var t=null;e!==null&&(t=this.fromPort,nm(e,this,t));var n=this.uf;if(n!==null){var r=this.toPort;n===e&&r===t||nm(n,this,r)}Rp(this)}},ye.Wo=function(e){if(zn.prototype.Wo.call(this,e),df(this)&&this.Xo(this.actualBounds),!e){e=this.ef;var t=null;e!==null&&(t=this.fromPort,rm(e,this,t));var n=this.uf;if(n!==null){var r=this.toPort;n===e&&r===t||rm(n,this,r)}Ip(this)}},ye.Lj=function(){if(this.fd=!0,this.wd!==null){var e=this.diagram;if(e!==null)for(var t=this.wd.copy().iterator;t.next();)e.remove(t.value)}this.data!==null&&(e=this.diagram,e!==null&&e.partManager.removeDataForLink(this))},cn.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var e=this.diagram;e!==null&&e.partManager.updateRelationshipsFromData(this)}},cn.prototype.move=function(e,t){var n=t?this.location:this.position,r=n.x;isNaN(r)&&(r=0);var i=n.y;for(isNaN(i)&&(i=0),r=e.x-r,i=e.y-i,t===!0?zn.prototype.move.call(this,e,!1):(e=Ue.allocAt(n.x+r,n.y+i),zn.prototype.move.call(this,e,!1),Ue.free(e)),eh(this,r,i),e=this.labelNodes;e.next();)t=e.value,n=t.position,t.moveTo(n.x+r,n.y+i)},cn.prototype.canRelinkFrom=function(){if(!this.relinkableFrom)return!1;var e=this.layer;return e===null?!0:e.allowRelink?(e=e.diagram,!!(e===null||e.allowRelink)):!1},cn.prototype.canRelinkTo=function(){if(!this.relinkableTo)return!1;var e=this.layer;return e===null?!0:e.allowRelink?(e=e.diagram,!!(e===null||e.allowRelink)):!1},cn.prototype.computeMidPoint=function(e){var t=this.pointsCount;if(t===0)return e.assign(Jr),e;if(t===1)return e.assign(this.i(0)),e;if(t===2){var n=this.i(0),r=this.i(1);return e.h((n.x+r.x)/2,(n.y+r.y)/2),e}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===Cl))return this.ua.Pu(.5,e),e.add(this.i(0)),n=this.ua.figures.first(),e.offset(-n.startX,-n.startY),e;if(this.computeCurve()===Cl){if(t===3){n=this.i(0),r=this.i(1);var i=this.i(2);return vt.ax(n.x,n.y,r.x,r.y,r.x,r.y,i.x,i.y,e),e}if(r=(t-1)/3|0,n=3*(r/2|0),r%2===1){r=this.i(n),i=this.i(n+1);var o=this.i(n+2);n=this.i(n+3),vt.ax(r.x,r.y,i.x,i.y,o.x,o.y,n.x,n.y,e)}else e.assign(this.i(n));return e}var a=this.flattenedLengths;for(n=this.flattenedTotalLength,i=o=r=0;r<n/2&&o<t&&(i=a[o],!(r+i>n/2));)r+=i,o++;return t=this.i(o),o=this.i(o+1),1>Math.abs(t.x-o.x)?t.y>o.y?e.h(t.x,t.y-(n/2-r)):e.h(t.x,t.y+(n/2-r)):1>Math.abs(t.y-o.y)?t.x>o.x?e.h(t.x-(n/2-r),t.y):e.h(t.x+(n/2-r),t.y):(n=(n/2-r)/i,e.h(t.x+n*(o.x-t.x),t.y+n*(o.y-t.y))),e},cn.prototype.computeMidAngle=function(){var e=this.pointsCount;if(2>e)return NaN;if(e===2)return this.i(0).ab(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===Cl))return this.ua.wx(.5);if(this.computeCurve()===Cl&&4<=e){var t=(e-1)/3|0,n=3*(t/2|0);if(t%2===1){n=Math.floor(n),e=this.i(n),t=this.i(n+1);var r=this.i(n+2);return n=this.i(n+3),vt.My(e.x,e.y,t.x,t.y,r.x,r.y,n.x,n.y)}if(0<n&&n+1<e)return this.i(n-1).ab(this.i(n+1))}t=this.flattenedLengths,r=this.flattenedTotalLength;var i=0;n=0;for(var o;i<r/2&&n<e&&(o=t[n],!(i+o>r/2));)i+=o,n++;if(t=this.i(n),r=this.i(n+1),1>Math.abs(t.x-r.x)&&1>Math.abs(t.y-r.y)){if(0<n&&n+2<e)return this.i(n-1).ab(this.i(n+2))}else{if(1>Math.abs(t.x-r.x))return t.y>r.y?270:90;if(1>Math.abs(t.y-r.y))return t.x>r.x?180:0}return t.ab(r)},ye=cn.prototype,ye.i=function(e){return this.Nb.s[e]},ye.dd=function(e,t){this.Nb.cd(e,t)},ye.L=function(e,t,n){this.Nb.cd(e,new Ue(t,n))},ye.Kz=function(e,t){this.Nb.Gb(e,t)},ye.m=function(e,t,n){this.Nb.Gb(e,new Ue(t,n))},ye.ne=function(e){this.Nb.add(e)},ye.yf=function(e,t){this.Nb.add(new Ue(e,t))},ye.pv=function(e){this.Nb.mb(e)},ye.Fj=function(){this.Nb.clear()};function eh(e,t,n){if(t!==0||n!==0)if(e.pointsCount===0)e.defaultFromPoint&&e.defaultFromPoint.offset(t,n),e.defaultToPoint&&e.defaultToPoint.offset(t,n);else{for(var r=e.fd,i=new tn,o=e.Nb.iterator;o.next();){var a=o.value;i.add(new Ue(a.x+t,a.y+n).freeze())}i.freeze(),o=e.Nb,e.Nb=i,a=e.diagram,isNaN(t)||isNaN(n)||a!==null&&a.animationManager.zb?e.v():(e.ke.h(e.ke.x+t,e.ke.y+n),e.pa.h(e.pa.x+t,e.pa.y+n),wa(e)),r?om(e):(e.defaultFromPoint&&(e.defaultFromPoint=e.i(0)),e.defaultToPoint&&(e.defaultToPoint=e.i(e.pointsCount-1))),a!==null&&a.animationManager.zb&&Xl(a.animationManager,e,i),e.g("points",o,i)}}ye.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},ye.zf=function(){if(this.Mg!==null){for(var e=this.Mg,t=this.Nb,n=1/0,r=1/0,i=e.s,o=i.length,a=0;a<o;a++){var p=i[a];n=Math.min(p.x,n),r=Math.min(p.y,r)}p=a=1/0;for(var w=t.s,O=w.length,D=0;D<O;D++){var X=w[D];a=Math.min(X.x,a),p=Math.min(X.y,p),X.freeze()}if(t.freeze(),O===o){for(o=0;o<O;o++)if(D=i[o],X=w[o],D.x-n!==X.x-a||D.y-r!==X.y-p){this.qc();break}}else this.qc();this.Mg=null,n=this.diagram,n!==null&&n.animationManager.zb&&Xl(n.animationManager,this,t),om(this),this.g("points",e,t)}},ye.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function om(e){e.Nb.count===0?e.fd=!1:(e.fd=!0,e.cq=null,e.vt=NaN,e.defaultFromPoint=e.i(0),e.defaultToPoint=e.i(e.pointsCount-1),um(e,!1))}ye.bb=function(){if(!this.suspendsRouting){var e=this.diagram;if(e){if(e.As.contains(this)||e.undoManager.isUndoingRedoing||(e=e.animationManager,e.isTicking&&!e.isAnimating))return;this.Tg===null||e.isTicking||(this.Tg=null)}e=this.path,e!==null&&(this.fd=!1,this.v(),e.v())}},ye.vg=function(){if(!this.fd&&!this.computingPoints){var e=!0;try{this.computingPoints=!0,this.uh(),e=this.computePoints()}catch(t){this.computingPoints=!1,this.rv()}finally{this.computingPoints=!1,e?this.zf():this.rv()}}},cn.prototype.computePoints=function(){if(this.diagram===null)return!1;var e=this.fromNode,t=null;if(e===null?(Uf||(Uf=new En,Uf.desiredSize=Sr,Uf.Va()),this.defaultFromPoint&&(Uf.location=this.defaultFromPoint,Uf.Va(),t=e=Uf)):t=this.fromPort,t!==null&&!e.isVisible()){var n=e.findVisibleNode();n!==null&&n!==e?(e=n,t=n.port):e=n}if(this.Lw=e,e===null||!e.location.w())return!1;for(;!(t===null||t.actualBounds.w()&&t.Ed());)t=t.panel;if(t===null)return!1;var r=this.toNode,i=null;if(r===null?(Hf||(Hf=new En,Hf.desiredSize=Sr,Hf.Va()),this.defaultToPoint&&(Hf.location=this.defaultToPoint,Hf.Va(),i=r=Hf)):i=this.toPort,i===null||r.isVisible()||(n=r.findVisibleNode(),n!==null&&n!==r?(r=n,i=n.port):r=n),this.Mw=r,r===null||!r.location.w())return!1;for(;!(i===null||i.actualBounds.w()&&i.Ed());)i=i.panel;if(i===null)return!1;var o=this.pointsCount,a=this.computeSpot(!0,t);n=this.computeSpot(!1,i);var p=Nd(a),w=Nd(n),O=t===i&&t!==null,D=this.isOrthogonal,X=this.curve===Cl;this.Wf=O&&!D?X=!0:!1;var re=this.computeAdjusting()===Aa||O;if(!D&&!O&&p&&w){if(p=!1,!re&&3<=o&&(re=this.getLinkPoint(e,t,a,!0,!1,r,i),w=this.getLinkPoint(r,i,n,!1,!1,e,t),p=this.adjustPoints(0,re,o-1,w))&&(re=this.getLinkPoint(e,t,a,!0,!1,r,i),w=this.getLinkPoint(r,i,n,!1,!1,e,t),this.adjustPoints(0,re,o-1,w)),!p)if(this.Fj(),X){o=this.getLinkPoint(e,t,a,!0,!1,r,i),re=this.getLinkPoint(r,i,n,!1,!1,e,t),p=re.x-o.x,w=re.y-o.y,O=this.computeCurviness(),X=D=0;var de=o.x+p/3,Se=o.y+w/3,Te=de,Xe=Se;vt.B(w,0)?Xe=0<p?Xe-O:Xe+O:(D=-p/w,X=Math.sqrt(O*O/(D*D+1)),0>O&&(X=-X),Te=(0>w?-1:1)*X+de,Xe=D*(Te-de)+Se),de=o.x+2*p/3,Se=o.y+2*w/3;var We=de,qe=Se;vt.B(w,0)?qe=0<p?qe-O:qe+O:(We=(0>w?-1:1)*X+de,qe=D*(We-de)+Se),this.Fj(),this.ne(o),this.yf(Te,Xe),this.yf(We,qe),this.ne(re),this.dd(0,this.getLinkPoint(e,t,a,!0,!1,r,i)),this.dd(3,this.getLinkPoint(r,i,n,!1,!1,e,t))}else o=r,re=i,r=this.getLinkPoint(e,t,a,!0,!1,o,re),i=this.getLinkPoint(o,re,n,!1,!1,e,t),this.hasCurviness()?(re=i.x-r.x,n=i.y-r.y,a=this.computeCurviness(),e=r.x+re/2,t=r.y+n/2,o=e,p=t,vt.B(n,0)?p=0<re?p-a:p+a:(re=-re/n,o=Math.sqrt(a*a/(re*re+1)),0>a&&(o=-o),o=(0>n?-1:1)*o+e,p=re*(o-e)+t),this.ne(r),this.yf(o,p),this.ne(i)):(this.ne(r),this.ne(i),p=Nt.alloc(),t.mi(p),w=p.ca(i),re.mi(p),O=p.ca(r),(w||O)&&(a=t.ga(am(a),new Ue),this.dd(0,this.getLinkPointFromPoint(e,t,a,i,!0,a)),n=re.ga(am(n),new Ue),this.dd(1,this.getLinkPointFromPoint(o,re,n,r,!1,n))),Nt.free(p))}else{X=this.isAvoiding,re&&(D&&X||O)&&this.Fj();var tt=O?this.computeCurviness():0;X=this.getLinkPoint(e,t,a,!0,D,r,i),de=Te=Se=0,(D||!p||O)&&(Xe=this.computeEndSegmentLength(e,t,a,!0),de=this.getLinkDirection(e,t,X,a,!0,D,r,i),O&&(p||a.D(n)||!D&&a.x+n.x===1&&a.y+n.y===1)&&(de-=D?90:30,0>tt&&(de-=180)),0>de?de+=360:360<=de&&(de-=360),O&&(Xe+=Math.abs(tt)*(D?1:2)),de===0?Se=Xe:de===90?Te=Xe:de===180?Se=-Xe:de===270?Te=-Xe:(Se=Xe*Math.cos(de*Math.PI/180),Te=Xe*Math.sin(de*Math.PI/180)),a.Mc()&&O&&(Xe=t.ga(jr,Ue.alloc()),We=Ue.allocAt(Xe.x+1e3*Se,Xe.y+1e3*Te),this.getLinkPointFromPoint(e,t,Xe,We,!0,X),Ue.free(Xe),Ue.free(We))),Xe=this.getLinkPoint(r,i,n,!1,D,e,t);var rt=qe=We=0;if(D||!w||O){var ft=this.computeEndSegmentLength(r,i,n,!1);rt=this.getLinkDirection(r,i,Xe,n,!1,D,e,t),O&&(w||a.D(n)||!D&&a.x+n.x===1&&a.y+n.y===1)&&(rt+=D?0:30,0>tt&&(rt+=180)),0>rt?rt+=360:360<=rt&&(rt-=360),O&&(ft+=Math.abs(tt)*(D?1:2)),rt===0?We=ft:rt===90?qe=ft:rt===180?We=-ft:rt===270?qe=-ft:(We=ft*Math.cos(rt*Math.PI/180),qe=ft*Math.sin(rt*Math.PI/180)),n.Mc()&&O&&(n=i.ga(jr,Ue.alloc()),a=Ue.allocAt(n.x+1e3*We,n.y+1e3*qe),this.getLinkPointFromPoint(r,i,n,a,!1,Xe),Ue.free(n),Ue.free(a))}n=X,(D||!p||O)&&(n=new Ue(X.x+Se,X.y+Te)),a=Xe,(D||!w||O)&&(a=new Ue(Xe.x+We,Xe.y+qe)),!re&&!D&&p&&3<o&&this.adjustPoints(0,X,o-2,a)?this.dd(o-1,Xe):!re&&!D&&w&&3<o&&this.adjustPoints(1,n,o-1,Xe)?this.dd(0,X):!re&&(D?6<=o:4<o)&&this.adjustPoints(1,n,o-2,a)?(this.dd(0,X),this.dd(o-1,Xe)):(this.Fj(),this.ne(X),(D||!p||O)&&this.ne(n),D&&this.addOrthoPoints(n,de,a,rt,e,r),(D||!w||O)&&this.ne(a),this.ne(Xe))}return!0};function iy(e,t){return Math.abs(t.x-e.x)>Math.abs(t.y-e.y)?(t.x>=e.x?t.x=e.x+9e9:t.x=e.x-9e9,t.y=e.y):(t.y>=e.y?t.y=e.y+9e9:t.y=e.y-9e9,t.x=e.x),t}cn.prototype.getLinkPointFromPoint=function(e,t,n,r,i,o){if(o===void 0&&(o=new Ue),e===null||t===null)return o.assign(n),o;if(e.isVisible()||(i=e.findVisibleNode(),i!==null&&i!==e&&(t=i.port)),e=null,i=t.panel,i===null||i.se()||(i=i.panel),i===null){i=r.x,r=r.y;var a=n.x;n=n.y}else{e=i.oe,i=1/(e.m11*e.m22-e.m12*e.m21),a=e.m22*i;var p=-e.m12*i,w=-e.m21*i,O=e.m11*i,D=i*(e.m21*e.dy-e.m22*e.dx),X=i*(e.m12*e.dx-e.m11*e.dy);i=r.x*a+r.y*w+D,r=r.x*p+r.y*O+X,a=n.x*a+n.y*w+D,n=n.x*p+n.y*O+X}return t.Sj(i,r,a,n,o),e!==null&&o.transform(e),o};function sm(e,t){var n=t.Zn;return n===null&&(n=new zf,n.port=t,n.node=t.part,t.Zn=n),Sb(n,e)}cn.prototype.getLinkPoint=function(e,t,n,r,i,o,a,p){if(p===void 0&&(p=new Ue),n.sb()&&!Nd(n))return t.ga(n,p),p;if(n.$c()){var w=sm(this,t);if(w!==null){if(p.assign(w.Zo),i&&this.routing===pb){var O=sm(this,a);if(O!==null&&w.Gl<O.Gl){w=Ue.alloc(),O=Ue.alloc();var D=new Nt(t.ga(No,w),t.ga(ks,O)),X=this.computeSpot(!r,a);e=this.getLinkPoint(o,a,X,!r,i,e,t,O),(n.Hf(tl)||n.Hf(rs))&&e.y>=D.y&&e.y<=D.y+D.height?p.y=e.y:(n.Hf(Ma)||n.Hf(Bo))&&e.x>=D.x&&e.x<=D.x+D.width&&(p.x=e.x),Ue.free(w),Ue.free(O)}}return p}}return n=t.ga(am(n),Ue.alloc()),this.pointsCount>(i?6:2)?(a=r?this.i(1):this.i(this.pointsCount-2),i&&(a=iy(n,a.copy()))):(w=this.computeSpot(!r,a),o=Ue.alloc(),a=a.ga(am(w),o),i&&(a=iy(n,a)),Ue.free(o)),this.getLinkPointFromPoint(e,t,n,a,r,p),Ue.free(n),p},cn.prototype.getLinkDirection=function(e,t,n,r,i,o,a,p){e:if(r.sb())var w=r.x>r.y?r.x>1-r.y?0:r.x<1-r.y?270:315:r.x<r.y?r.x>1-r.y?90:r.x<1-r.y?180:135:.5>r.x?225:.5<r.x?45:0;else{if(r.$c()&&(w=sm(this,t),w!==null))switch(w.Nc){case 1:w=270;break e;case 2:w=180;break e;default:case 4:w=0;break e;case 8:w=90;break e}w=t.ga(jr,Ue.alloc()),this.pointsCount>(o?6:2)?(p=i?this.i(1):this.i(this.pointsCount-2),p=o?iy(w,p.copy()):n):(n=Ue.alloc(),p=p.ga(jr,n),Ue.free(n)),n=Math.abs(p.x-w.x)>Math.abs(p.y-w.y)?p.x>=w.x?0:180:p.y>=w.y?90:270,Ue.free(w),w=n}return r.Mc()&&a.Td(e)&&(w+=180,360<=w&&(w-=360)),Nd(r)||(e=t.li(),e===0)||(45<=e&&135>e?w+=90:135<=e&&225>e?w+=180:225<=e&&315>e&&(w+=270),360<=w&&(w-=360)),w},cn.prototype.computeEndSegmentLength=function(e,t,n,r){return t!==null&&n.$c()&&(e=sm(this,t),e!==null)?e.Ju:(e=r?this.fromEndSegmentLength:this.toEndSegmentLength,t!==null&&isNaN(e)&&(e=r?t.fromEndSegmentLength:t.toEndSegmentLength),isNaN(e)&&(e=10),e)},cn.prototype.computeSpot=function(e,t){return t===void 0&&(t=null),e?(e=t||this.fromPort,e===null?e=jr:(t=this.fromSpot,t.Xb()&&(t=e.fromSpot),e=t===is?So:t)):(e=t||this.toPort,e===null?e=jr:(t=this.toSpot,t.Xb()&&(t=e.toSpot),e=t===is?So:t)),e};function Nd(e){return e===So||e.x===.5&&e.y===.5}function am(e){return e.x===.5&&e.y===.5?e:jr}cn.prototype.computeOtherPoint=function(e,t){return this.computeAdjusting()!==Aa&&4<this.pointsCount?this.computeMidPoint(new Ue):(e=t.Zn,e=e!==null?Sb(e,this):null,e!==null?e.Zo:t.ga(jr))},cn.prototype.computeShortLength=function(e){if(e){if(e=this.fromShortLength,isNaN(e)){var t=this.fromPort;t!==null&&(e=t.fromShortLength)}return isNaN(e)?0:e}return e=this.toShortLength,isNaN(e)&&(t=this.toPort,t!==null&&(e=t.toShortLength)),isNaN(e)?0:e},cn.prototype.Cf=function(e,t,n,r,i,o){if(this.pickable===!1)return!1;t===void 0&&(t=null),n===void 0&&(n=null);var a=o;if(o===void 0&&(a=dr.alloc(),a.reset()),a.multiply(this.transform),this.fh(e,a))return kv(this,t,n,i),o===void 0&&dr.free(a),!0;if(this.Yc(e,a)){var p=!1;if(!this.isAtomic)for(var w=this.O.s,O=w.length;O--;){var D=w[O];if(D.visible||D===this.locationObject){var X=D.actualBounds,re=this.naturalBounds;if(!(X.x>re.width||X.y>re.height||0>X.x+X.width||0>X.y+X.height)){if(X=dr.alloc(),X.set(a),D instanceof qt)p=D.Cf(e,t,n,r,i,X);else if(this.path===D){if(D instanceof vr)if(p=e,re=r,D.pickable===!1)p=!1;else if(X.multiply(D.transform),re)e:{var de=p,Se=X;if(D.fh(de,Se))p=!0;else{if(Se===void 0&&(Se=D.transform,de.Re(D.actualBounds))){p=!0;break e}p=de.left,re=de.right;var Te=de.top;de=de.bottom;var Xe=Ue.alloc(),We=Ue.alloc(),qe=Ue.alloc(),tt=dr.alloc();tt.set(Se),tt.bv(D.transform),tt.Vj(),We.x=re,We.y=Te,We.transform(tt),Xe.x=p,Xe.y=Te,Xe.transform(tt),Se=!1,hf(D,Xe,We,qe)?Se=!0:(Xe.x=re,Xe.y=de,Xe.transform(tt),hf(D,Xe,We,qe)?Se=!0:(We.x=p,We.y=de,We.transform(tt),hf(D,Xe,We,qe)?Se=!0:(Xe.x=p,Xe.y=Te,Xe.transform(tt),hf(D,Xe,We,qe)&&(Se=!0)))),dr.free(tt),Ue.free(Xe),Ue.free(We),Ue.free(qe),p=Se}}else p=D.fh(p,X)}else p=Ts(D,e,r,X);p&&(re=D,t!==null&&(re=t(D)),re&&(n===null||n(re))&&i.add(re)),dr.free(X)}}}return o===void 0&&dr.free(a),p||this.background!==null||this.areaBackground!==null}return o===void 0&&dr.free(a),!1},cn.prototype.computeCurve=function(){if(this.Wf===null){var e=this.fromPort,t=this.isOrthogonal;this.Wf=e!==null&&e===this.toPort&&!t}return this.Wf?Cl:this.curve},cn.prototype.computeCorner=function(){if(this.curve===Cl)return 0;var e=this.corner;return(isNaN(e)||0>e)&&(e=10),e},cn.prototype.findMidLabel=function(){for(var e=this.path,t=this.O.s,n=t.length,r=0;r<n;r++){var i=t[r];if(i!==e&&!i.isPanelMain&&(i.segmentIndex===-1/0||isNaN(i.segmentIndex)))return i}for(e=this.labelNodes;e.next();)if(t=e.value,t.segmentIndex===-1/0||isNaN(t.segmentIndex))return t;return null},cn.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var e=mb;e=Math.max(e,this.computeThickness());var t=this.fromPort,n=this.toPort;if(t!==null&&n!==null){var r=this.findMidLabel();if(r!==null){var i=r.naturalBounds,o=r.margin,a=isNaN(i.width)?30:i.width*r.scale+o.left+o.right;i=isNaN(i.height)?14:i.height*r.scale+o.top+o.bottom,r=r.segmentOrientation,r===Lp||r===fm||r===uy?e=Math.max(e,i):r===Dp||r===Fp||r===Mp||r===Pp?e=Math.max(e,a):(t=t.ga(jr).ab(n.ga(jr))/180*Math.PI,e=Math.max(e,Math.abs(Math.sin(t)*a)+Math.abs(Math.cos(t)*i)+1)),this.curve===Cl&&(e*=1.333)}}return e},cn.prototype.arrangeBundledLinks=function(e,t){if(t)for(t=0;t<e.length;t++){var n=e[t];n.computeAdjusting()===Aa&&n.bb()}},cn.prototype.computeCurviness=function(){var e=this.curviness;if(isNaN(e)){e=gb;var t=this.Sf;if(t!==null){for(var n=yr(),r=0,i=t.links,o=0;o<i.length;o++){var a=i[o].computeSpacing();n.push(a),r+=a}for(r=-r/2,o=0;o<i.length;o++){if(i[o]===this){e=r+n[o]/2;break}r+=n[o]}t.Ds===this.fromNode&&(e=-e),Mr(n)}}return e},cn.prototype.computeThickness=function(){if(!this.isVisible())return 0;var e=this.path;return e!==null?Math.max(e.strokeWidth,1):1},cn.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},cn.prototype.adjustPoints=function(e,t,n,r){var i=this.computeAdjusting();if(this.isOrthogonal){if(i===cm)return!1;i===hm&&(i=Op)}switch(i){case cm:var o=this.i(e),a=this.i(n);if(!o.Xa(t)||!a.Xa(r)){i=o.x,o=o.y;var p=a.x-i,w=a.y-o,O=Math.sqrt(p*p+w*w);if(!vt.$(O,0)){if(vt.$(p,0))var D=0>w?-Math.PI/2:Math.PI/2;else D=Math.atan(w/Math.abs(p)),0>p&&(D=Math.PI-D);a=t.x;var X=t.y;p=r.x-a;var re=r.y-X;for(w=Math.sqrt(p*p+re*re),vt.$(p,0)?re=0>re?-Math.PI/2:Math.PI/2:(re=Math.atan(re/Math.abs(p)),0>p&&(re=Math.PI-re)),O=w/O,D=re-D,this.dd(e,t),e+=1;e<n;e++)t=this.i(e),p=t.x-i,w=t.y-o,t=Math.sqrt(p*p+w*w),vt.$(t,0)||(vt.$(p,0)?w=0>w?-Math.PI/2:Math.PI/2:(w=Math.atan(w/Math.abs(p)),0>p&&(w=Math.PI-w)),p=w+D,t*=O,this.L(e,a+t*Math.cos(p),X+t*Math.sin(p)));this.dd(n,r)}}return!0;case hm:if(o=this.i(e),X=this.i(n),!o.Xa(t)||!X.Xa(r)){i=o.x,o=o.y,a=X.x,X=X.y,O=(a-i)*(a-i)+(X-o)*(X-o),p=t.x,D=t.y,w=r.x,re=r.y;var de=1;if(w-p!==0){var Se=(re-D)/(w-p);de=Math.sqrt(1+1/(Se*Se))}else Se=9e9;for(this.dd(e,t),e+=1;e<n;e++){t=this.i(e);var Te=t.x,Xe=t.y,We=.5;O!==0&&(We=((i-Te)*(i-a)+(o-Xe)*(o-X))/O);var qe=i+We*(a-i),tt=o+We*(X-o);t=Math.sqrt((Te-qe)*(Te-qe)+(Xe-tt)*(Xe-tt)),Xe<Se*(Te-qe)+tt&&(t=-t),0<Se&&(t=-t),Te=p+We*(w-p),We=D+We*(re-D),Se!==0?(t=Te+t/de,this.L(e,t,We-(t-Te)/Se)):this.L(e,Te,We+t)}this.dd(n,r)}return!0;case Op:e:{if(this.isOrthogonal&&(i=this.i(e),o=this.i(e+1),a=this.i(e+2),p=o.x,D=o.y,X=p,O=D,vt.B(i.y,o.y)?vt.B(o.x,a.x)?D=t.y:vt.B(o.y,a.y)&&(p=t.x):vt.B(i.x,o.x)&&(vt.B(o.y,a.y)?p=t.x:vt.B(o.x,a.x)&&(D=t.y)),this.L(e+1,p,D),i=this.i(n),o=this.i(n-1),a=this.i(n-2),p=o.x,D=o.y,w=p,re=D,vt.B(i.y,o.y)?vt.B(o.x,a.x)?D=r.y:vt.B(o.y,a.y)&&(p=r.x):vt.B(i.x,o.x)&&(vt.B(o.y,a.y)?p=r.x:vt.B(o.x,a.x)&&(D=r.y)),this.L(n-1,p,D),oy(this))){this.L(e+1,X,O),this.L(n-1,w,re),n=!1;break e}this.dd(e,t),this.dd(n,r),n=!0}return n;default:return!1}},cn.prototype.addOrthoPoints=function(e,t,n,r,i,o){0>t?t+=360:360<=t&&(t-=360),0>r?r+=360:360<=r&&(r-=360);var a=r;t=315<=t||45>t?0:45<=t&&135>t?90:135<=t&&225>t?180:270,r=315<=r||45>r?0:45<=r&&135>r?90:135<=r&&225>r?180:270;var p=i.actualBounds.copy(),w=o.actualBounds.copy();if(p.w()&&w.w()){p.Bc(Bp,Bp),w.Bc(Bp,Bp),p.Ye(e),w.Ye(n);var O=Ue.alloc(),D=Ue.alloc();t===0?n.x>e.x||r===270&&n.y<e.y&&w.right>e.x||r===90&&n.y>e.y&&w.right>e.x?(O.h(n.x,e.y),D.h(n.x,(e.y+n.y)/2),r===180?(O.x=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1),D.x=O.x,D.y=n.y):r===270&&n.y<e.y||r===90&&n.y>e.y?(O.x=e.x<w.left?this.computeMidOrthoPosition(e.x,e.y,w.left,n.y,!1):e.x<w.right&&(r===270&&e.y<w.top||r===90&&e.y>w.bottom)?this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1):w.right,D.x=O.x,D.y=n.y):r===0&&e.x<w.left&&e.y>w.top&&e.y<w.bottom&&(O.x=e.x,O.y=e.y<n.y?Math.min(n.y,w.top):Math.max(n.y,w.bottom),D.y=O.y)):(O.h(e.x,n.y),D.h((e.x+n.x)/2,n.y),(r===180||r===90&&n.y<p.top||r===270&&n.y>p.bottom)&&(r===180&&(w.ca(e)||p.ca(n))?O.y=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0):n.y<e.y&&(r===180||r===90)?O.y=this.computeMidOrthoPosition(e.x,p.top,n.x,Math.max(n.y,w.bottom),!0):n.y>e.y&&(r===180||r===270)&&(O.y=this.computeMidOrthoPosition(e.x,p.bottom,n.x,Math.min(n.y,w.top),!0)),D.x=n.x,D.y=O.y),O.y>p.top&&O.y<p.bottom&&(n.x>=p.left&&n.x<=e.x||e.x<=w.right&&e.x>=n.x?(r===90||r===270)&&(O.h(Math.max((e.x+n.x)/2,e.x),e.y),D.h(O.x,n.y)):(O.y=r===270||(r===0||r===180)&&n.y<e.y?Math.min(n.y,r===0?p.top:Math.min(p.top,w.top)):Math.max(n.y,r===0?p.bottom:Math.max(p.bottom,w.bottom)),D.x=n.x,D.y=O.y))):t===180?n.x<e.x||r===270&&n.y<e.y&&w.left<e.x||r===90&&n.y>e.y&&w.left<e.x?(O.h(n.x,e.y),D.h(n.x,(e.y+n.y)/2),r===0?(O.x=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1),D.x=O.x,D.y=n.y):r===270&&n.y<e.y||r===90&&n.y>e.y?(O.x=e.x>w.right?this.computeMidOrthoPosition(e.x,e.y,w.right,n.y,!1):e.x>w.left&&(r===270&&e.y<w.top||r===90&&e.y>w.bottom)?this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1):w.left,D.x=O.x,D.y=n.y):r===180&&e.x>w.right&&e.y>w.top&&e.y<w.bottom&&(O.x=e.x,O.y=e.y<n.y?Math.min(n.y,w.top):Math.max(n.y,w.bottom),D.y=O.y)):(O.h(e.x,n.y),D.h((e.x+n.x)/2,n.y),(r===0||r===90&&n.y<p.top||r===270&&n.y>p.bottom)&&(r===0&&(w.ca(e)||p.ca(n))?O.y=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0):n.y<e.y&&(r===0||r===90)?O.y=this.computeMidOrthoPosition(e.x,p.top,n.x,Math.max(n.y,w.bottom),!0):n.y>e.y&&(r===0||r===270)&&(O.y=this.computeMidOrthoPosition(e.x,p.bottom,n.x,Math.min(n.y,w.top),!0)),D.x=n.x,D.y=O.y),O.y>p.top&&O.y<p.bottom&&(n.x<=p.right&&n.x>=e.x||e.x>=w.left&&e.x<=n.x?(r===90||r===270)&&(O.h(Math.min((e.x+n.x)/2,e.x),e.y),D.h(O.x,n.y)):(O.y=r===270||(r===0||r===180)&&n.y<e.y?Math.min(n.y,r===180?p.top:Math.min(p.top,w.top)):Math.max(n.y,r===180?p.bottom:Math.max(p.bottom,w.bottom)),D.x=n.x,D.y=O.y))):t===90?n.y>e.y||r===180&&n.x<e.x&&w.bottom>e.y||r===0&&n.x>e.x&&w.bottom>e.y?(O.h(e.x,n.y),D.h((e.x+n.x)/2,n.y),r===270?(O.y=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0),D.x=n.x,D.y=O.y):r===180&&n.x<e.x||r===0&&n.x>e.x?(O.y=e.y<w.top?this.computeMidOrthoPosition(e.x,e.y,n.x,w.top,!0):e.y<w.bottom&&(r===180&&e.x<w.left||r===0&&e.x>w.right)?this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0):w.bottom,D.x=n.x,D.y=O.y):r===90&&e.y<w.top&&e.x>w.left&&e.x<w.right&&(O.x=e.x<n.x?Math.min(n.x,w.left):Math.max(n.x,w.right),O.y=e.y,D.x=O.x)):(O.h(n.x,e.y),D.h(n.x,(e.y+n.y)/2),(r===270||r===0&&n.x<p.left||r===180&&n.x>p.right)&&(r===270&&(w.ca(e)||p.ca(n))?O.x=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1):n.x<e.x&&(r===270||r===0)?O.x=this.computeMidOrthoPosition(p.left,e.y,Math.max(n.x,w.right),n.y,!1):n.x>e.x&&(r===270||r===180)&&(O.x=this.computeMidOrthoPosition(p.right,e.y,Math.min(n.x,w.left),n.y,!1)),D.x=O.x,D.y=n.y),O.x>p.left&&O.x<p.right&&(n.y>=p.top&&n.y<=e.y||e.y<=w.bottom&&e.y>=n.y?(r===0||r===180)&&(O.h(e.x,Math.max((e.y+n.y)/2,e.y)),D.h(n.x,O.y)):(O.x=r===180||(r===90||r===270)&&n.x<e.x?Math.min(n.x,r===90?p.left:Math.min(p.left,w.left)):Math.max(n.x,r===90?p.right:Math.max(p.right,w.right)),D.x=O.x,D.y=n.y))):n.y<e.y||r===180&&n.x<e.x&&w.top<e.y||r===0&&n.x>e.x&&w.top<e.y?(O.h(e.x,n.y),D.h((e.x+n.x)/2,n.y),r===90?(O.y=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0),D.x=n.x,D.y=O.y):r===180&&n.x<e.x||r===0&&n.x>=e.x?(O.y=e.y>w.bottom?this.computeMidOrthoPosition(e.x,e.y,n.x,w.bottom,!0):e.y>w.top&&(r===180&&e.x<w.left||r===0&&e.x>w.right)?this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0):w.top,D.x=n.x,D.y=O.y):r===270&&e.y>w.bottom&&e.x>w.left&&e.x<w.right&&(O.x=e.x<n.x?Math.min(n.x,w.left):Math.max(n.x,w.right),O.y=e.y,D.x=O.x)):(O.h(n.x,e.y),D.h(n.x,(e.y+n.y)/2),(r===90||r===0&&n.x<p.left||r===180&&n.x>p.right)&&(r===90&&(w.ca(e)||p.ca(n))?O.x=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1):n.x<e.x&&(r===90||r===0)?O.x=this.computeMidOrthoPosition(p.left,e.y,Math.max(n.x,w.right),n.y,!1):n.x>e.x&&(r===90||r===180)&&(O.x=this.computeMidOrthoPosition(p.right,e.y,Math.min(n.x,w.left),n.y,!1)),D.x=O.x,D.y=n.y),O.x>p.left&&O.x<p.right&&(n.y<=p.bottom&&n.y>=e.y||e.y>=w.top&&e.y<=n.y?(r===0||r===180)&&(O.h(e.x,Math.min((e.y+n.y)/2,e.y)),D.h(n.x,O.y)):(O.x=r===180||(r===90||r===270)&&n.x<e.x?Math.min(n.x,r===270?p.left:Math.min(p.left,w.left)):Math.max(n.x,r===270?p.right:Math.max(p.right,w.right)),D.x=O.x,D.y=n.y)));var X=n;if(this.isAvoiding){var re=this.diagram;if(re===null||i===o||this.layer.isTemporary||!ud(re)||p.ca(X)&&!o.Td(i)||w.ca(e)&&!i.Td(o))t=!1;else{var de=cd(re,!0,this.containingGroup,null);if(this.segmentIndex!==17&&de.Yj(Math.min(e.x,O.x),Math.min(e.y,O.y),Math.abs(e.x-O.x),Math.abs(e.y-O.y))&&de.Yj(Math.min(O.x,D.x),Math.min(O.y,D.y),Math.abs(O.x-D.x),Math.abs(O.y-D.y))&&de.Yj(Math.min(D.x,X.x),Math.min(D.y,X.y),Math.abs(D.x-X.x),Math.abs(D.y-X.y)))t=!1;else{i=e,o=X;var Se=n=null;if(re.isVirtualized){re=de.bounds.copy(),re.Bc(-de.Ho,-de.Go);var Te=Ue.alloc();Id(de,e.x,e.y)||(vt.Ff(re.x,re.y,re.x+re.width,re.y+re.height,e.x,e.y,O.x,O.y,Te)?(n=e=Te.copy(),t=Te.ab(O)):vt.Ff(re.x,re.y,re.x+re.width,re.y+re.height,O.x,O.y,D.x,D.y,Te)?(n=e=Te.copy(),t=Te.ab(D)):vt.Ff(re.x,re.y,re.x+re.width,re.y+re.height,D.x,D.y,X.x,X.y,Te)&&(n=e=Te.copy(),t=Te.ab(X))),Id(de,X.x,X.y)||(vt.Ff(re.x,re.y,re.x+re.width,re.y+re.height,X.x,X.y,D.x,D.y,Te)?(Se=X=Te.copy(),r=D.ab(Te)):vt.Ff(re.x,re.y,re.x+re.width,re.y+re.height,D.x,D.y,O.x,O.y,Te)?(Se=X=Te.copy(),r=O.ab(Te)):vt.Ff(re.x,re.y,re.x+re.width,re.y+re.height,O.x,O.y,e.x,e.y,Te)&&(Se=X=Te.copy(),r=e.ab(Te))),Ue.free(Te)}p=p.copy().ed(w),p.Bc(de.Ho*de.Os,de.Go*de.Os),yb(de,e,t,X,r,p,!0),w=uc(de,X.x,X.y),!de.abort&&w>=Od&&(vb(de),p.Bc(de.Ho*de.Hx,de.Go*de.Ix),yb(de,e,t,X,r,p,!1),w=uc(de,X.x,X.y)),!de.abort&&w<Od&&uc(de,X.x,X.y)!==nh?(sy(this,de,X.x,X.y,r,!0,a),p=this.i(2),4>this.pointsCount?(t===0||t===180?(p.x=e.x,p.y=X.y):(p.x=X.x,p.y=e.y),this.L(2,p.x,p.y),this.m(3,p.x,p.y)):(a=this.i(3),t===0||t===180?vt.B(p.x,a.x)?(p=t===0?Math.max(p.x,e.x):Math.min(p.x,e.x),this.L(2,p,e.y),this.L(3,p,a.y)):vt.B(p.y,a.y)?(Math.abs(e.y-p.y)<=de.Go/2&&(this.L(2,p.x,e.y),this.L(3,a.x,e.y)),this.m(2,p.x,e.y)):this.L(2,e.x,p.y):(t===90||t===270)&&(vt.B(p.y,a.y)?(p=t===90?Math.max(p.y,e.y):Math.min(p.y,e.y),this.L(2,e.x,p),this.L(3,a.x,p)):vt.B(p.x,a.x)?(Math.abs(e.x-p.x)<=de.Ho/2&&(this.L(2,e.x,p.y),this.L(3,e.x,a.y)),this.m(2,e.x,p.y)):this.L(2,p.x,e.y))),n!==null&&(e=this.i(1),a=this.i(2),e.x!==a.x&&e.y!==a.y?t===0||t===180?this.m(2,e.x,a.y):this.m(2,a.x,e.y):t===0||t===180?this.m(2,i.x,n.y):this.m(2,n.x,i.y)),Se!==null&&(r===0||r===180?this.yf(o.x,Se.y):this.yf(Se.x,o.y)),t=!0):t=!1}}}else t=!1;t||(this.ne(O.copy()),this.ne(D.copy())),Ue.free(O),Ue.free(D)}},cn.prototype.computeMidOrthoPosition=function(e,t,n,r,i){var o=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(o=this.computeCurviness()),i?(t+r)/2+o:(e+n)/2+o};function oy(e){if(e.diagram===null||!e.isAvoiding||!ud(e.diagram))return!1;var t=e.points.s,n=t.length;if(4>n)return!1;e=cd(e.diagram,!0,e.containingGroup,null);for(var r=1;r<n-2;r++){var i=t[r],o=t[r+1];if(!e.Yj(Math.min(i.x,o.x),Math.min(i.y,o.y),Math.abs(i.x-o.x),Math.abs(i.y-o.y)))return!0}return!1}function sy(e,t,n,r,i,o,a){var p=t.Ho,w=t.Go,O=uc(t,n,r),D=n,X=r;for(i===0?D+=p:i===90?X+=w:i===180?D-=p:X-=w,i!==a&&O>pf&&uc(t,D,X)!==O-1&&(uc(t,n-p,r)===O-1?(i=180,D=n-p,X=r):uc(t,n+p,r)===O-1?(i=0,D=n+p,X=r):uc(t,n,r-w)===O-1?(i=270,D=n,X=r-w):uc(t,n,r+w)===O-1&&(i=90,D=n,X=r+w));O>pf&&uc(t,D,X)===O-1;)n=D,r=X,i===0?D+=p:i===90?X+=w:i===180?D-=p:X-=w,--O;o?O>pf&&(i===180||i===0?n=Math.floor(n/p)*p+p/2:(i===90||i===270)&&(r=Math.floor(r/w)*w+w/2)):(n=Math.floor(n/p)*p+p/2,r=Math.floor(r/w)*w+w/2),O>pf&&(o=i,a=n,D=r,i===0?(o=90,D+=w):i===90?(o=180,a-=p):i===180?(o=270,D-=w):i===270&&(o=0,a+=p),uc(t,a,D)===O-1?sy(e,t,a,D,o,!1,o):(a=n,D=r,i===0?(o=270,D-=w):i===90?(o=0,a+=p):i===180?(o=90,D+=w):i===270&&(o=180,a-=p),uc(t,a,D)===O-1&&sy(e,t,a,D,o,!1,o))),e.yf(n,r)}cn.prototype.ez=function(e){var t=e.x;e=e.y;for(var n=this.i(0),r=this.i(1),i=rr(t,e,n.x,n.y,r.x,r.y),o=0,a=1;a<this.pointsCount-1;a++){n=this.i(a+1);var p=rr(t,e,r.x,r.y,n.x,n.y);r=n,p<i&&(o=a,i=p)}return o},cn.prototype.qc=function(){this.lk=!1,this.v()},cn.prototype.Ul=function(e){if(!(!e&&(this.fd===!1||(e=this.Pb(),this.lk&&(e===null||e.geometry!==null))))&&(2>this.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),e=this.path,e!==null)){e.ua=this.ua;for(var t=this.O.s,n=t.length,r=0;r<n;r++){var i=t[r];i!==e&&i.isPanelMain&&i instanceof vr&&(i.ua=this.ua)}}},cn.prototype.makeGeometry=function(){var e=this.ua,t=this.pointsCount,n=!1,r=this.diagram;r!==null&&df(this)&&r.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(r.animationManager.isAnimating||r.currentTool!==r.toolManager)&&(n=!0);var i=this.i(0).copy(),o=i.copy();r=this.Nb.s;var a=this.computeCurve();if(a===Cl&&3<=t&&!vt.$(this.smoothness,0))if(t===3){var p=this.i(1);r=Math.min(i.x,p.x);var w=Math.min(i.y,p.y);p=this.i(2),r=Math.min(r,p.x),w=Math.min(w,p.y)}else{if(this.isOrthogonal)for(w=0;w<t;w++)p=r[w],o.x=Math.min(p.x,o.x),o.y=Math.min(p.y,o.y);else for(r=3;r<t;r+=3)r+3>=t&&(r=t-1),w=this.i(r),o.x=Math.min(w.x,o.x),o.y=Math.min(w.y,o.y);r=o.x,w=o.y}else{for(w=0;w<t;w++)p=r[w],o.x=Math.min(p.x,o.x),o.y=Math.min(p.y,o.y);r=o.x,w=o.y}if(r-=this.su.x,w-=this.su.y,i.x-=r,i.y-=w,t!==2||df(this)){if(e.type=un.o,p=G0(e),this.computeShortLength(!0)!==0&&(i=Bf(this,i,!0,o)),Ad(p,i.x,i.y,!1),a===Cl&&3<=t&&!vt.$(this.smoothness,0))if(t===3)n=this.i(1),t=n.x-r,n=n.y-w,i=this.i(2).copy(),i.x-=r,i.y-=w,this.computeShortLength(!1)!==0&&(i=Bf(this,i,!1,o)),Jc(p,t,n,t,n,i.x,i.y);else if(this.isOrthogonal){t=Ue.allocAt(r,w),n=Ue.alloc(),n.assign(this.i(1)),o=Ue.allocAt(r,w),i=Ue.allocAt(r,w),a=this.i(0);for(var O,D=this.smoothness/3,X=1;X<this.pointsCount-1;X++){O=this.i(X);var re=a,de=O,Se=this.i(ay(this,O,X,!1));if((!vt.$(re.x,de.x)||!vt.$(de.x,Se.x))&&(!vt.$(re.y,de.y)||!vt.$(de.y,Se.y))){var Te=D;isNaN(Te)&&(Te=this.smoothness/3);var Xe=re.x;re=re.y;var We=de.x;de=de.y;var qe=Se.x;Se=Se.y;var tt=Te*lm(Xe,re,We,de);Te*=lm(We,de,qe,Se),vt.$(re,de)&&vt.$(We,qe)&&(We>Xe?Se>de?(o.x=We-tt,o.y=de-tt,i.x=We+Te,i.y=de+Te):(o.x=We-tt,o.y=de+tt,i.x=We+Te,i.y=de-Te):Se>de?(o.x=We+tt,o.y=de-tt,i.x=We-Te,i.y=de+Te):(o.x=We+tt,o.y=de+tt,i.x=We-Te,i.y=de-Te)),vt.$(Xe,We)&&vt.$(de,Se)&&(de>re?(qe>We?(o.x=We-tt,o.y=de-tt,i.x=We+Te):(o.x=We+tt,o.y=de-tt,i.x=We-Te),i.y=de+Te):(qe>We?(o.x=We-tt,o.y=de+tt,i.x=We+Te):(o.x=We+tt,o.y=de+tt,i.x=We-Te),i.y=de-Te)),(vt.$(Xe,We)&&vt.$(We,qe)||vt.$(re,de)&&vt.$(de,Se))&&(Xe=.5*(Xe+qe),re=.5*(re+Se),o.x=Xe,o.y=re,i.x=Xe,i.y=re),(X===1||X===2&&vt.$(a.x,this.i(0).x)&&vt.$(a.y,this.i(0).y))&&(n.x=.5*(a.x+O.x),n.y=.5*(a.y+O.y)),Jc(p,n.x-r,n.y-w,o.x-r,o.y-w,O.x-r,O.y-w),t.set(o),n.set(i),a=O}}O=a.x,a=a.y,D=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(D=Bf(this,D.copy(),!1,kr)),O=.5*(O+D.x),a=.5*(a+D.y),Jc(p,i.x-r,i.y-w,O-r,a-w,D.x-r,D.y-w),Ue.free(t),Ue.free(n),Ue.free(o),Ue.free(i)}else for(n=3;n<t;n+=3)o=this.i(n-2),n+3>=t&&(n=t-1),i=this.i(n-1),a=this.i(n),n===t-1&&this.computeShortLength(!1)!==0&&(a=Bf(this,a.copy(),!1,kr)),Jc(p,o.x-r,o.y-w,i.x-r,i.y-w,a.x-r,a.y-w);else{for(o=Ue.alloc(),o.assign(this.i(0)),i=Ue.alloc(),i.assign(o),a=this.computeCorner(),X=1,O=0;X<t;){if(X=ay(this,o,X,1<X),D=this.i(X),X>=t-1){if(!o.D(D))this.computeShortLength(!1)!==0&&(D=Bf(this,D.copy(),!1,kr)),jf(this,p,-r,-w,o,D,n);else if(O===0)for(X=1;X<t;)i.assign(o),D=this.i(X++),jf(this,p,-r,-w,o,D,n),o.assign(D);break}if(O=ay(this,D,X+1,X<t-3),X=-r,Xe=-w,re=D,We=this.i(O),Te=n,vt.B(o.y,re.y)&&vt.B(re.x,We.x))if(Se=Math.min(a,Math.abs(re.x-i.x)/2),Se=tt=Math.min(Se,Math.abs(We.y-re.y)/2),vt.B(Se,0))jf(this,p,X,Xe,o,re,Te),o.assign(re);else{var rt=re.x,ft=re.y;de=rt,qe=ft,re.x>o.x?rt=re.x-Se:rt=re.x+Se,We.y>re.y?qe=re.y+tt:qe=re.y-tt,We=Ue.allocAt(rt,ft),jf(this,p,X,Xe,o,We,Te),Ue.free(We),Qg(p,re.x+X,re.y+Xe,de+X,qe+Xe),o.h(de,qe)}else vt.B(o.x,re.x)&&vt.B(re.y,We.y)?(Se=Math.min(a,Math.abs(re.y-i.y)/2),Se=tt=Math.min(Se,Math.abs(We.x-re.x)/2),vt.B(tt,0)?(jf(this,p,X,Xe,o,re,Te),o.assign(re)):(rt=re.x,ft=re.y,de=rt,qe=ft,re.y>o.y?ft=re.y-Se:ft=re.y+Se,We.x>re.x?de=re.x+tt:de=re.x-tt,We=Ue.allocAt(rt,ft),jf(this,p,X,Xe,o,We,Te),Ue.free(We),Qg(p,re.x+X,re.y+Xe,de+X,qe+Xe),o.h(de,qe))):(jf(this,p,X,Xe,o,re,Te),o.assign(re));i.assign(D),X=O}Ue.free(o)}qg=p}else p=this.i(1).copy(),p.x-=r,p.y-=w,this.computeShortLength(!0)!==0&&(i=Bf(this,i,!0,o)),this.computeShortLength(!1)!==0&&(p=Bf(this,p,!1,o)),e.type=un.j,e.startX=i.x,e.startY=i.y,e.endX=p.x,e.endY=p.y;return this.lk=!0,e};function lm(e,t,n,r){return e=n-e,isNaN(e)||e===1/0||e===-1/0?NaN:(0>e&&(e=-e),t=r-t,isNaN(t)||t===1/0||t===-1/0?NaN:(0>t&&(t=-t),vt.$(e,0)?t:vt.$(t,0)?e:Math.sqrt(e*e+t*t)))}function Bf(e,t,n,r){var i=e.pointsCount;if(2>i)return t;if(n){var o=e.i(1);if(n=o.x-r.x,o=o.y-r.y,r=lm(t.x,t.y,n,o),r===0)return t;i=i===2?.5*r:r,e=e.computeShortLength(!0),e>i&&(e=i),i=e*(o-t.y)/r,t.x+=e*(n-t.x)/r,t.y+=i}else{if(o=e.i(i-2),n=o.x-r.x,o=o.y-r.y,r=lm(t.x,t.y,n,o),r===0)return t;i=i===2?.5*r:r,e=e.computeShortLength(!1),e>i&&(e=i),i=e*(t.y-o)/r,t.x-=e*(t.x-n)/r,t.y-=i}return t}function ay(e,t,n,r){for(var i=e.pointsCount,o=t;vt.$(t.x,o.x)&&vt.$(t.y,o.y);){if(n>=i)return i-1;o=e.i(n++)}if(!vt.$(t.x,o.x)&&!vt.$(t.y,o.y))return n-1;for(var a=o;vt.$(t.x,o.x)&&vt.$(o.x,a.x)&&(!r||(t.y>=o.y?o.y>=a.y:o.y<=a.y))||vt.$(t.y,o.y)&&vt.$(o.y,a.y)&&(!r||(t.x>=o.x?o.x>=a.x:o.x<=a.x));){if(n>=i)return i-1;a=e.i(n++)}return n-2}cn.prototype.computeJumpLength=function(){return 10};function jf(e,t,n,r,i,o,a){if(!a&&df(e)){a=e.computeJumpLength();var p=a/2,w=[],O=0;if(e.isVisible()&&(O=z1(e,i,o,w)),0<O){if(vt.B(i.y,o.y))if(i.x<o.x)for(var D=0;D<O;){var X=Math.max(i.x,Math.min(w[D++]-p,o.x-a));t.lineTo(X+n,o.y+r);for(var re=X+n,de=Math.min(X+a,o.x);D<O&&(X=w[D],X<de+a);)D++,de=Math.min(X+p,o.x);X=o.y-a+r,de+=n;var Se=o.y+r;e.curve===th?Ad(t,de,Se,!1):Jc(t,re,X,de,X,de,Se)}else for(--O;0<=O;){for(D=Math.min(i.x,Math.max(w[O--]+p,o.x+a)),t.lineTo(D+n,o.y+r),re=D+n,X=Math.max(D-a,o.x);0<=O&&(D=w[O],D>X-a);)O--,X=Math.max(D-p,o.x);D=o.y-a+r,X+=n,de=o.y+r,e.curve===th?Ad(t,X,de,!1):Jc(t,re,D,X,D,X,de)}else if(vt.B(i.x,o.x))if(i.y<o.y)for(D=0;D<O;){for(X=Math.max(i.y,Math.min(w[D++]-p,o.y-a)),t.lineTo(o.x+n,X+r),re=X+r,X=Math.min(X+a,o.y);D<O&&(de=w[D],de<X+a);)D++,X=Math.min(de+p,o.y);de=o.x-a+n,Se=o.x+n,X+=r,e.curve===th?Ad(t,Se,X,!1):Jc(t,de,re,de,X,Se,X)}else for(--O;0<=O;){for(D=Math.min(i.y,Math.max(w[O--]+p,o.y+a)),t.lineTo(o.x+n,D+r),re=D+r,D=Math.max(D-a,o.y);0<=O&&(X=w[O],X>D-a);)O--,D=Math.max(X-p,o.y);X=o.x-a+n,de=o.x+n,D+=r,e.curve===th?Ad(t,de,D,!1):Jc(t,X,re,X,D,de,D)}}}t.lineTo(o.x+n,o.y+r)}function z1(e,t,n,r){var i=e.diagram;if(i===null||t.D(n))return 0;for(i=i.layers;i.next();){var o=i.value;if(o!==null&&o.visible){o=o.Pa.s;for(var a=o.length,p=0;p<a;p++){var w=o[p];if(w instanceof cn){if(w===e)return 0<r.length&&r.sort(function(D,X){return D-X}),r.length;if(w.isVisible()&&df(w)){var O=w.routeBounds;O.w()&&e.routeBounds.Yc(O)&&!e.usesSamePort(w)&&(O=w.path,O!==null&&O.Ed()&&G1(t,n,r,w))}}}}}return 0<r.length&&r.sort(function(D,X){return D-X}),r.length}function G1(e,t,n,r){for(var i=vt.B(e.y,t.y),o=r.pointsCount,a=r.i(0),p=Ue.alloc(),w=1;w<o;w++){var O=r.i(w);if(w<o-1){var D=r.i(w+1);if(a.y===O.y&&O.y===D.y){if(O.x>a.x&&D.x>=O.x||O.x<a.x&&D.x<=O.x)continue}else if(a.x===O.x&&O.x===D.x&&(O.y>a.y&&D.y>=O.y||O.y<a.y&&D.y<=O.y))continue}e:{D=e.x;var X=e.y,re=t.x,de=t.y,Se=a.x;a=a.y;var Te=O.x,Xe=O.y;if(vt.B(D,re)){if(!vt.B(X,de)&&vt.B(a,Xe)&&Math.min(X,de)<a&&Math.max(X,de)>a&&Math.min(Se,Te)<D&&Math.max(Se,Te)>D&&!vt.B(Se,Te)){p.x=D,p.y=a,D=!0;break e}}else if(vt.B(X,de)&&vt.B(Se,Te)&&Math.min(D,re)<Se&&Math.max(D,re)>Se&&Math.min(a,Xe)<X&&Math.max(a,Xe)>X&&!vt.B(a,Xe)){p.x=Se,p.y=X,D=!0;break e}p.x=0,p.y=0,D=!1}D&&(i?n.push(p.x):n.push(p.y)),a=O}Ue.free(p)}function df(e){return e=e.curve,e===Rd||e===th}function um(e,t){(t||df(e))&&(t=e.diagram,t===null||t.animationManager.isTicking||t.Eh.contains(e)||e.ml.width===0&&e.ml.height===0||t.Eh.add(e,e.ml.copy()))}cn.prototype.Xo=function(e){var t=this.layer;if(t!==null&&t.visible&&!t.isTemporary){var n=t.diagram;if(n!==null&&!n.animationManager.isTicking){var r=!1;for(n=n.layers;n.next();){var i=n.value;if(i.visible){if(i===t){r=!0;var o=!1;i=i.Pa.s;for(var a=i.length,p=0;p<a;p++){var w=i[p];w instanceof cn&&(w===this?o=!0:o&&db(this,w,e))}}else if(r)for(o=i.Pa.s,i=o.length,a=0;a<i;a++)p=o[a],p instanceof cn&&db(this,p,e)}}}}};function db(e,t,n){if(t!==null&&t.lk&&t.fd&&df(t)){var r=t.routeBounds;r.w()&&(e.routeBounds.Yc(r)||n.Yc(r))&&(e.usesSamePort(t)||t.qc())}}cn.prototype.usesSamePort=function(e){var t=this.pointsCount,n=e.pointsCount;if(0<t&&0<n){var r=this.i(0),i=e.i(0);if(r.Xa(i)||(t=this.i(t-1),e=e.i(n-1),t.Xa(e)||r.Xa(e)||t.Xa(i)))return!0}else if(this.fromNode===e.fromNode||this.toNode===e.toNode||this.fromNode===e.toNode||this.toNode===e.fromNode)return!0;return!1},cn.prototype.isVisible=function(){if(!zn.prototype.isVisible.call(this))return!1;var e=this.containingGroup,t=!0,n=this.diagram;if(n!==null&&(t=n.isTreePathToChildren),n=this.fromNode,n!==null){if(this.isTreeLink&&t&&!n.isTreeExpanded)return!1;if(n===e)return!0;for(var r=n;r!==null;){if(r.labeledLink===this)return!0;r=r.containingGroup}if(n=n.findVisibleNode(),n===null||n===e)return!1}if(n=this.toNode,n!==null){if(this.isTreeLink&&!t&&!n.isTreeExpanded)return!1;if(n===e)return!0;for(t=n;t!==null;){if(t.labeledLink===this)return!0;t=t.containingGroup}if(t=n.findVisibleNode(),t===null||t===e)return!1}return!0},cn.prototype.Zb=function(e){if(zn.prototype.Zb.call(this,e),e&&um(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var t=this.wd.iterator;t.next();)t.value.Zb(e)},cn.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?Op:this.qk};function Rp(e){var t=e.ef;if(t!==null){var n=e.uf;if(n!==null&&isNaN(e.curviness)){for(var r=e.ff,i=e.vf,o=e=null,a=t.jb.s,p=a.length,w=0;w<p;w++){var O=a[w];(O.ef===t&&O.ff===r&&O.uf===n&&O.vf===i||O.ef===n&&O.ff===i&&O.uf===t&&O.vf===r)&&(o===null?o=O:(e===null&&(e=[],e.push(o)),e.push(O)))}if(e!==null){for(o=tb(t,n,r,i),o===null&&(o=new pm(t,r,n,i),eb(t,o),eb(n,o)),o.links=e,t=0;t<e.length;t++)e[t].Sf=o;o.Sl()}}}}function Ip(e){var t=e.Sf;t!==null&&isNaN(e.curviness)&&(e.Sf=null,e=t.links.indexOf(e),0<=e&&(ki(t.links,e),t.Sl()))}cn.prototype.ph=function(){return!0},kn.Object.defineProperties(cn.prototype,{fromNode:{get:function(){return this.ef},set:function(e){var t=this.ef;if(t!==e){var n=this.fromPort;t!==null&&(this.uf!==t&&rm(t,this,n),Ip(this),this.C(2)),this.ef=e,e!==null&&this.Zb(e.isVisible()),this.Wf=null,this.bb();var r=this.diagram;r!==null&&r.aa&&r.partManager.setFromNodeForLink(this,e,t);var i=this.fromPort,o=this.fromPortChanged;if(o!==null){var a=!0;r!==null&&(a=r.aa,r.aa=!0),o(this,n,i),r!==null&&(r.aa=a)}e!==null&&(this.uf!==e&&nm(e,this,i),Rp(this),this.C(1)),this.g("fromNode",t,e),kd(this)}}},fromPortId:{get:function(){return this.ff},set:function(e){var t=this.ff;if(t!==e){var n=this.fromPort;n!==null&&al(n),Ip(this),this.ff=e;var r=this.fromPort;r!==null&&al(r);var i=this.diagram;if(i!==null){var o=this.data,a=i.model;o!==null&&a.ri()&&a.xv(o,e)}n!==r&&(this.Wf=null,this.bb(),o=this.fromPortChanged,o!==null&&(a=!0,i!==null&&(a=i.aa,i.aa=!0),o(this,n,r),i!==null&&(i.aa=a))),Rp(this),this.g("fromPortId",t,e)}}},fromPort:{get:function(){var e=this.ef;return e===null?null:e.ns(this.ff)}},fromPortChanged:{get:function(){return this.gn},set:function(e){var t=this.gn;t!==e&&(this.gn=e,this.g("fromPortChanged",t,e))}},toNode:{get:function(){return this.uf},set:function(e){var t=this.uf;if(t!==e){var n=this.toPort;t!==null&&(this.ef!==t&&rm(t,this,n),Ip(this),this.C(2)),this.uf=e,e!==null&&this.Zb(e.isVisible()),this.Wf=null,this.bb();var r=this.diagram;r!==null&&r.aa&&r.partManager.setToNodeForLink(this,e,t);var i=this.toPort,o=this.toPortChanged;if(o!==null){var a=!0;r!==null&&(a=r.aa,r.aa=!0),o(this,n,i),r!==null&&(r.aa=a)}e!==null&&(this.ef!==e&&nm(e,this,i),Rp(this),this.C(1)),this.g("toNode",t,e),kd(this)}}},toPortId:{get:function(){return this.vf},set:function(e){var t=this.vf;if(t!==e){var n=this.toPort;n!==null&&al(n),Ip(this),this.vf=e;var r=this.toPort;r!==null&&al(r);var i=this.diagram;if(i!==null){var o=this.data,a=i.model;o!==null&&a.ri()&&a.Cv(o,e)}n!==r&&(this.Wf=null,this.bb(),o=this.toPortChanged,o!==null&&(a=!0,i!==null&&(a=i.aa,i.aa=!0),o(this,n,r),i!==null&&(i.aa=a))),Rp(this),this.g("toPortId",t,e)}}},toPort:{get:function(){var e=this.uf;return e===null?null:e.ns(this.vf)}},toPortChanged:{get:function(){return this.uo},set:function(e){var t=this.uo;t!==e&&(this.uo=e,this.g("toPortChanged",t,e))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:is},set:function(e){var t=this.fromSpot;t.D(e)||(e=e.J(),this.Xc(),this.ba.Xi=e,this.g("fromSpot",t,e),(t.$c()||e.$c())&&this.fromNode!==null&&al(this.fromPort),this.bb())}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:NaN},set:function(e){var t=this.fromEndSegmentLength;t!==e&&(0>e&&hr(e,">= 0",cn,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=e,this.g("fromEndSegmentLength",t,e),this.bb())}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:NaN},set:function(e){var t=this.fromShortLength;t!==e&&(this.Xc(),this.ba.Wi=e,this.qc(),this.g("fromShortLength",t,e))}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:is},set:function(e){var t=this.toSpot;t.D(e)||(e=e.J(),this.Xc(),this.ba.yj=e,this.g("toSpot",t,e),(t.$c()||e.$c())&&this.toNode!==null&&al(this.toPort),this.bb())}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:NaN},set:function(e){var t=this.toEndSegmentLength;t!==e&&(0>e&&hr(e,">= 0",cn,"toEndSegmentLength"),this.Xc(),this.ba.wj=e,this.g("toEndSegmentLength",t,e),this.bb())}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:NaN},set:function(e){var t=this.toShortLength;t!==e&&(this.Xc(),this.ba.xj=e,this.qc(),this.g("toShortLength",t,e))}},isLabeledLink:{get:function(){return this.wd===null?!1:0<this.wd.count}},labelNodes:{get:function(){return this.wd===null?eo:this.wd.iterator}},relinkableFrom:{get:function(){return(this.Qa&1)!==0},set:function(e){var t=(this.Qa&1)!==0;t!==e&&(this.Qa^=1,this.g("relinkableFrom",t,e),this.Wb())}},relinkableTo:{get:function(){return(this.Qa&2)!==0},set:function(e){var t=(this.Qa&2)!==0;t!==e&&(this.Qa^=2,this.g("relinkableTo",t,e),this.Wb())}},resegmentable:{get:function(){return(this.Qa&4)!==0},set:function(e){var t=(this.Qa&4)!==0;t!==e&&(this.Qa^=4,this.g("resegmentable",t,e),this.Wb())}},isTreeLink:{get:function(){return(this.Qa&8)!==0},set:function(e){var t=(this.Qa&8)!==0;t!==e&&(this.Qa^=8,this.g("isTreeLink",t,e),this.fromNode!==null&&Np(this.fromNode),this.toNode!==null&&Np(this.toNode))}},path:{get:function(){var e=this.Pb();return e instanceof vr?e:null}},routeBounds:{get:function(){this.vg();var e=this.ml,t=1/0,n=1/0,r=this.pointsCount;if(r===0)e.h(NaN,NaN,0,0);else{if(r===1)r=this.i(0),t=Math.min(r.x,t),n=Math.min(r.y,n),e.h(r.x,r.y,0,0);else if(r===2){r=this.i(0);var i=this.i(1);t=Math.min(r.x,i.x),n=Math.min(r.y,i.y),e.h(r.x,r.y,0,0),e.Ye(i)}else if(this.computeCurve()===Cl&&3<=r&&!this.isOrthogonal)if(i=this.i(0),t=i.x,n=i.y,e.h(t,n,0,0),r===3){r=this.i(1),t=Math.min(r.x,t),n=Math.min(r.y,n);var o=this.i(2);t=Math.min(o.x,t),n=Math.min(o.y,n),vt.Dl(i.x,i.y,r.x,r.y,r.x,r.y,o.x,o.y,.5,e)}else for(o=3;o<r;o+=3){var a=this.i(o-2);o+3>=r&&(o=r-1);var p=this.i(o-1),w=this.i(o);vt.Dl(i.x,i.y,a.x,a.y,p.x,p.y,w.x,w.y,.5,e),t=Math.min(w.x,t),n=Math.min(w.y,n),i=w}else for(i=this.i(0),o=this.i(1),t=Math.min(i.x,o.x),n=Math.min(i.y,o.y),e.h(i.x,i.y,0,0),e.Ye(o),i=2;i<r;i++)o=this.i(i),t=Math.min(o.x,t),n=Math.min(o.y,n),e.Ye(o);this.su.h(t-e.x,n-e.y)}return e}},midPoint:{get:function(){return this.vg(),this.computeMidPoint(new Ue)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||om(this);for(var e=this.cq=[],t=this.pointsCount,n=0;n<t-1;n++){var r=this.i(n),i=this.i(n+1);vt.$(r.x,i.x)?(r=i.y-r.y,0>r&&(r=-r)):vt.$(r.y,i.y)?(r=i.x-r.x,0>r&&(r=-r)):r=Math.sqrt(r.Bf(i)),e.push(r)}}return this.cq}},flattenedTotalLength:{get:function(){var e=this.vt;if(isNaN(e)){for(var t=this.flattenedLengths,n=t.length,r=e=0;r<n;r++)e+=t[r];this.vt=e}return e}},points:{get:function(){return this.Nb},set:function(e){var t=this.Nb;if(t!==e){var n=null;if(Array.isArray(e)){var r=e.length%2===0;if(r){for(var i=0;i<e.length;i++)if(typeof e[i]!="number"||isNaN(e[i])){r=!1;break}}if(r)for(n=new tn,r=0;r<e.length/2;r++)i=new Ue(e[2*r],e[2*r+1]).freeze(),n.add(i);else{for(r=!0,i=0;i<e.length;i++){var o=e[i];if(!bn(o)||typeof o.x!="number"||isNaN(o.x)||typeof o.y!="number"||isNaN(o.y)){r=!1;break}}if(r)for(n=new tn,r=0;r<e.length;r++)i=e[r],n.add(new Ue(i.x,i.y).freeze())}}else if(e instanceof tn)for(n=e.copy(),e=n.iterator;e.next();)e.value.freeze();else Lt("Link.points value is not an instance of List or Array: "+e);n.freeze(),this.Nb=n,this.qc(),om(this),e=this.diagram,e!==null&&(e.pi||e.undoManager.isUndoingRedoing||e.As.add(this),e.animationManager.zb&&Xl(e.animationManager,this,n)),this.g("points",t,n)}}},pointsCount:{get:function(){return this.Nb.count}},fd:{get:function(){return(this.Qa&16)!==0},set:function(e){(this.Qa&16)!==0!==e&&(this.Qa^=16)}},suspendsRouting:{get:function(){return(this.Qa&32)!==0},set:function(e){(this.Qa&32)!==0!==e&&(this.Qa^=32)}},computingPoints:{get:function(){return(this.Qa&64)!==0},set:function(e){(this.Qa&64)!==0!==e&&(this.Qa^=64)}},defaultFromPoint:{get:function(){return this.o},set:function(e){this.o=e.copy()}},defaultToPoint:{get:function(){return this.u},set:function(e){this.u=e.copy()}},isOrthogonal:{get:function(){return(this.qj.value&2)===2}},isAvoiding:{get:function(){return(this.qj.value&4)===4}},lk:{get:function(){return(this.Qa&128)!==0},set:function(e){(this.Qa&128)!==0!==e&&(this.Qa^=128)}},geometry:{get:function(){if(!this.lk){if(this.vg(),2>this.pointsCount)return this.lk=!0,this.ua;this.ua=this.makeGeometry()}return this.ua}},firstPickIndex:{get:function(){return 2>=this.pointsCount?0:this.isOrthogonal||!Nd(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var e=this.pointsCount;return e===0?0:2>=e?e-1:this.isOrthogonal||!Nd(this.computeSpot(!1))?e-2:e-1}},adjusting:{get:function(){return this.qk},set:function(e){var t=this.qk;t!==e&&(this.qk=e,this.g("adjusting",t,e))}},corner:{get:function(){return this.Om},set:function(e){var t=this.Om;t!==e&&(this.Om=e,this.qc(),this.g("corner",t,e))}},curve:{get:function(){return this.Qm},set:function(e){var t=this.Qm;t!==e&&(this.Qm=e,this.bb(),this.qc(),um(this,t===th||t===Rd||e===th||e===Rd),this.g("curve",t,e))}},curviness:{get:function(){return this.Rm},set:function(e){var t=this.Rm;t!==e&&(this.Rm=e,this.bb(),this.qc(),this.g("curviness",t,e))}},routing:{get:function(){return this.qj},set:function(e){var t=this.qj;t!==e&&(this.qj=e,this.Wf=null,this.bb(),um(this,(t.value&2)===2||(e.value&2)===2),this.g("routing",t,e))}},smoothness:{get:function(){return this.po},set:function(e){var t=this.po;t!==e&&(this.po=e,this.qc(),this.g("smoothness",t,e))}},key:{get:function(){var e=this.diagram;if(e!==null&&e.model.ri())return e.model.Ac(this.data)}}}),cn.prototype.invalidateOtherJumpOvers=cn.prototype.Xo,cn.prototype.findClosestSegment=cn.prototype.ez,cn.prototype.updateRoute=cn.prototype.vg,cn.prototype.invalidateRoute=cn.prototype.bb,cn.prototype.rollbackRoute=cn.prototype.rv,cn.prototype.commitRoute=cn.prototype.zf,cn.prototype.startRoute=cn.prototype.uh,cn.prototype.clearPoints=cn.prototype.Fj,cn.prototype.removePoint=cn.prototype.pv,cn.prototype.addPointAt=cn.prototype.yf,cn.prototype.addPoint=cn.prototype.ne,cn.prototype.insertPointAt=cn.prototype.m,cn.prototype.insertPoint=cn.prototype.Kz,cn.prototype.setPointAt=cn.prototype.L,cn.prototype.setPoint=cn.prototype.dd,cn.prototype.getPoint=cn.prototype.i,cn.prototype.getOtherPort=cn.prototype.Cz,cn.prototype.getOtherNode=cn.prototype.To;var Uf=null,Hf=null,ly=new hn(cn,"Normal",1),W1=new hn(cn,"Orthogonal",2),V1=new hn(cn,"AvoidsNodes",6),pb=new hn(cn,"AvoidsNodesStraight",7),Aa=new hn(cn,"None",0),Cl=new hn(cn,"Bezier",9),th=new hn(cn,"JumpGap",10),Rd=new hn(cn,"JumpOver",11),Op=new hn(cn,"End",17),cm=new hn(cn,"Scale",18),hm=new hn(cn,"Stretch",19),Lp=new hn(cn,"OrientAlong",21),Mp=new hn(cn,"OrientPlus90",22),Dp=new hn(cn,"OrientMinus90",23),uy=new hn(cn,"OrientOpposite",24),fm=new hn(cn,"OrientUpright",25),Pp=new hn(cn,"OrientPlus90Upright",26),Fp=new hn(cn,"OrientMinus90Upright",27),dm=new hn(cn,"OrientUpright45",28),gb=16,mb=14,Bp=8;cn.className="Link",cn.Normal=ly,cn.Orthogonal=W1,cn.AvoidsNodes=V1,cn.AvoidsNodesStraight=pb,cn.None=Aa,cn.Bezier=Cl,cn.JumpGap=th,cn.JumpOver=Rd,cn.End=Op,cn.Scale=cm,cn.Stretch=hm,cn.OrientAlong=Lp,cn.OrientPlus90=Mp,cn.OrientMinus90=Dp,cn.OrientOpposite=uy,cn.OrientUpright=fm,cn.OrientPlus90Upright=Pp,cn.OrientMinus90Upright=Fp,cn.OrientUpright45=dm,cn.EndSegmentStep=8,cn.CurvinessStart=gb,cn.SpacingMin=mb,cn.OrthoShortCut=Bp;function pm(e,t,n,r){Ge(this),this.Fe=this.qq=!1,this.Ds=e,this.Ox=t,this.cv=n,this.Px=r,this.links=[]}pm.prototype.Sl=function(){if(!this.qq){var e=this.links;0<e.length&&(e=e[0].diagram,e!==null&&(e.ow.add(this),this.Fe=e.undoManager.isUndoingRedoing))}this.qq=!0},pm.prototype.Nv=function(){if(this.qq){this.qq=!1;var e=this.links;if(0<e.length){var t=e[0],n=t.diagram;n=n===null||n.pi&&!this.Fe,this.Fe=!1,t.arrangeBundledLinks(e,n),e.length===1&&(t.Sf=null,e.length=0)}e.length===0&&(e=this.Ds,this!==null&&e.af!==null&&e.af.remove(this),e=this.cv,this!==null&&e.af!==null&&e.af.remove(this))}},pm.className="LinkBundle";function jp(e){Ge(this),this.Yx=this.group=null,this.vs=!0,this.abort=!1,this.Od=this.Nd=1,this.Fn=this.En=-1,this.rc=e.width,this.sc=e.height,this.ac=null,this.ei=this.di=0,this.Os=11,this.Ix=this.Hx=22}jp.prototype.initialize=function(e){if(!(0>=e.width||0>=e.height)){var t=e.y,n=e.x+e.width,r=e.y+e.height;if(this.Nd=Math.floor((e.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((t-this.sc)/this.sc)*this.sc,this.En=Math.ceil((n+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((r+2*this.sc)/this.sc)*this.sc,e=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),t=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di<e-1||this.ei<t-1){for(n=[],r=0;r<=e;r++)n[r]=new Uint32Array(t);this.ac=n,this.di=e-1,this.ei=t-1}if(e=cy,this.ac!==null)for(t=0;t<=this.di;t++)if(n=this.ac[t],n.fill)n.fill(e);else for(r=0;r<=this.ei;r++)n[r]=e}};function Id(e,t,n){return e.Nd<=t&&t<=e.En&&e.Od<=n&&n<=e.Fn}function uc(e,t,n){return Id(e,t,n)?(t-=e.Nd,t/=e.rc,n-=e.Od,n/=e.sc,e.ac[t|0][n|0]):cy}function vb(e){if(e.ac!==null)for(var t=0;t<=e.di;t++)for(var n=e.ac[t],r=0;r<=e.ei;r++)n[r]>=pf&&(n[r]=cy)}jp.prototype.Yj=function(e,t,n,r){if(e>this.En||e+n<this.Nd||t>this.Fn||t+r<this.Od)return!0;e=(e-this.Nd)/this.rc|0,t=(t-this.Od)/this.sc|0,n=Math.max(0,n)/this.rc+1|0;var i=Math.max(0,r)/this.sc+1|0;if(0>e&&(n+=e,e=0),0>t&&(i+=t,t=0),0>n||0>i)return!0;for(r=Math.min(e+n-1,this.di)|0,n=Math.min(t+i-1,this.ei)|0;e<=r;e++){i=this.ac[e];for(var o=t;o<=n;o++)if(i[o]===nh)return!1}return!0};function cc(e,t,n,r,i,o,a,p,w){if(!(t<o||t>a||n<p||n>w)){var O=t|0,D=n|0,X=e.ac[O][D];if(X>=pf&&X<Od)for(i?D+=r:O+=r,X+=1;o<=O&&O<=a&&p<=D&&D<=w&&!(X>=e.ac[O][D]);)e.ac[O][D]=X,X+=1,i?D+=r:O+=r;if(O=i?D:O,i)if(0<r)for(n+=r;n<O;n+=r)cc(e,t,n,1,!i,o,a,p,w),cc(e,t,n,-1,!i,o,a,p,w);else for(n+=r;n>O;n+=r)cc(e,t,n,1,!i,o,a,p,w),cc(e,t,n,-1,!i,o,a,p,w);else if(0<r)for(t+=r;t<O;t+=r)cc(e,t,n,1,!i,o,a,p,w),cc(e,t,n,-1,!i,o,a,p,w);else for(t+=r;t>O;t+=r)cc(e,t,n,1,!i,o,a,p,w),cc(e,t,n,-1,!i,o,a,p,w)}}function gm(e,t,n,r,i,o,a,p,w){t|=0,n|=0;var O=nh,D=pf;for(e.ac[t][n]=D;O===nh&&t>o&&t<a&&n>p&&n<w;)D+=1,e.ac[t][n]=D,i?n+=r:t+=r,O=e.ac[t][n]}function mm(e,t,n,r,i,o,a,p,w){t|=0,n|=0;var O=nh,D=Od;for(e.ac[t][n]=D;O===nh&&t>o&&t<a&&n>p&&n<w;)e.ac[t][n]=D,i?n+=r:t+=r,O=e.ac[t][n]}function yb(e,t,n,r,i,o,a){if(e.ac!==null){e.abort=!1;var p=t.x,w=t.y;if(Id(e,p,w)){p-=e.Nd,p/=e.rc,w-=e.Od,w/=e.sc;var O=r.x,D=r.y;if(Id(e,O,D))if(O-=e.Nd,O/=e.rc,D-=e.Od,D/=e.sc,1>=Math.abs(p-O)&&1>=Math.abs(w-D))e.abort=!0;else{var X=o.x;r=o.y,t=o.x+o.width;var re=o.y+o.height;X-=e.Nd,X/=e.rc,r-=e.Od,r/=e.sc,t-=e.Nd,t/=e.rc,re-=e.Od,re/=e.sc,o=Math.max(0,Math.min(e.di,X|0)),t=Math.min(e.di,Math.max(0,t|0)),X=Math.max(0,Math.min(e.ei,r|0)),re=Math.min(e.ei,Math.max(0,re|0)),r=e.ac,p|=0,w|=0,O|=0,D|=0;var de=n===0||n===90?1:-1;if(n=n===90||n===270,r[p][w]===nh?(gm(e,p,w,de,n,o,t,X,re),gm(e,p,w,1,!n,o,t,X,re),gm(e,p,w,-1,!n,o,t,X,re)):gm(e,p,w,de,n,p,w,p,w),r[O][D]===nh?(mm(e,O,D,i===0||i===90?1:-1,i===90||i===270,o,t,X,re),mm(e,O,D,1,!(i===90||i===270),o,t,X,re),mm(e,O,D,-1,!(i===90||i===270),o,t,X,re)):mm(e,O,D,de,n,O,D,O,D),n=yr(),a&&bb(e,O,D,i,p,w,n))for((n[0]!==O||n[1]!==D)&&(n.unshift(D),n.unshift(O)),(n[n.length-2]!==p||n[n.length-1]!==w)&&(n.push(p),n.push(w)),e=pf,i=n[n.length-2],a=n[n.length-1],r[i][a]=e++,o=n.length-4;0<=o;o-=2)for(i=n[o+2],a=n[o+3],t=n[o],O=n[o+1];t>i?i++:t<i?i--:O>a?a++:O<a&&a--,r[i][a]=e++,i!==t||a!==O;);else cc(e,p,w,1,!1,o,t,X,re),cc(e,p,w,-1,!1,o,t,X,re),cc(e,p,w,1,!0,o,t,X,re),cc(e,p,w,-1,!0,o,t,X,re);Mr(n)}}}}function bb(e,t,n,r,i,o,a){for(var p=e.ac,w=t,O=n;;){if(w===i&&O===o)return!0;var D=w,X=O;if(r===0)if(D<i)D++;else break;else if(r===90)if(X<o)X++;else break;else if(r===180)if(D>i)D--;else break;else if(X>o)X--;else break;var re=p[D][X];if(re===0||re===hy)break;w=D,O=X}for(;;){if(D=r,X=w,re=O,r===0?re<o?(D=90,re++):re>o&&(D=270,re--):r===90?X<i?(D=0,X++):X>i&&(D=180,X--):r===180?re<o?(D=90,re++):re>o&&(D=270,re--):X<i?(D=0,X++):X>i&&(D=180,X--),X=p[X][re],D!==r&&X!==0&&X!==hy){if(a.push(w),a.push(O),bb(e,w,O,D,i,o,a))return!0;a.pop(),a.pop()}if(p[w][O]=hy,r===0){if(w===t)return!1;w--}else if(r===90){if(O===n)return!1;O--}else if(r===180){if(w===t)return!1;w++}else{if(O===n)return!1;O++}}}kn.Object.defineProperties(jp.prototype,{bounds:{get:function(){return new Nt(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(e){0<e&&e!==this.rc&&(this.rc=e,this.initialize(this.bounds))}},Go:{get:function(){return this.sc},set:function(e){0<e&&e!==this.sc&&(this.sc=e,this.initialize(this.bounds))}}});var nh=0,pf=1,Od=999999,cy=Od+1,hy=Od+2;jp.className="PositionArray";function zf(){Ge(this),this.port=this.node=null,this.pe=[],this.ap=!1}zf.prototype.toString=function(){for(var e=this.pe,t=this.node.toString()+" "+e.length.toString()+":",n=0;n<e.length;n++){var r=e[n];r!==null&&(t+=`
`+r.toString())}return t};function K1(e,t,n,r){switch(t=t.offsetY,t){case 8:return 90;case 2:return 180;case 1:return 270;case 4:return 0}switch(t){case 9:return 180<n?270:90;case 6:return 90<n&&270>=n?180:0}switch(e=180*Math.atan2(e.height,e.width)/Math.PI,t){case 3:return n>e&&n<=180+e?180:270;case 5:return n>180-e&&n<=360-e?270:0;case 12:return n>e&&n<=180+e?90:0;case 10:return n>180-e&&n<=360-e?180:90;case 7:return 90<n&&n<=180+e?180:n>180+e&&n<=360-e?270:0;case 13:return 180<n&&n<=360-e?270:n>e&&180>=n?90:0;case 14:return n>e&&n<=180-e?90:n>180-e&&270>=n?180:0;case 11:return n>180-e&&n<=180+e?180:n>180+e?270:90}return r&&t!==15&&(n-=15,0>n&&(n+=360)),n>e&&n<180-e?90:n>=180-e&&n<=180+e?180:n>180+e&&n<360-e?270:0}zf.prototype.Sl=function(){this.pe.length=0};function Sb(e,t){var n=e.pe;if(n.length===0){e:if(!e.ap){n=e.ap,e.ap=!0;var r=null,i=e.node,o=i instanceof lr?i:null;if(o===null||o.isSubGraphExpanded)var a=i.isTreeExpanded?i.findLinksConnected(e.port.portId):i.qx();else{if(!o.actualBounds.w()){e.ap=n;break e}r=o,a=r.Lu()}o=e.pe.length=0;var p=e.port.ga(No,Ue.alloc()),w=e.port.ga(ks,Ue.alloc());for(i=Nt.allocAt(p.x,p.y,0,0),i.Ye(w),Ue.free(p),Ue.free(w),p=Ue.allocAt(i.x+i.width/2,i.y+i.height/2),w=e.port.li(),a=a.iterator;a.next();){var O=a.value;if(O.isVisible()&&O.fromPort!==O.toPort){var D=O.fromPort===e.port||O.fromNode!==null&&O.fromNode.Td(r),X=O.computeSpot(D,e.port);if(X.$c()&&(D=D?O.toPort:O.fromPort,D!==null)){var re=D.part;if(re!==null){var de=re.findVisibleNode();de!==null&&de!==re&&(re=de,D=re.port),D=O.computeOtherPoint(re,D),re=p.ab(D),re-=w,0>re?re+=360:360<=re&&(re-=360),X=K1(i,X,re,O.isOrthogonal),X===0?(X=4,180<re&&(re-=360)):X===90?(X=8,270<re&&(re-=360)):X===180?X=2:(X=1,90>re&&(re+=360)),de=e.pe[o],de===void 0?(de=new fy(O,re,X),e.pe[o]=de):(de.link=O,de.angle=re,de.Nc=X),de.hv.set(D),o++}}}}for(Ue.free(p),e.pe.sort(zf.prototype.j),w=e.pe.length,r=-1,o=p=0;o<w;o++)a=e.pe[o],a!==void 0&&(a.Nc!==r&&(r=a.Nc,p=0),a.Uo=p,p++);for(r=-1,p=0,o=w-1;0<=o;o--)w=e.pe[o],w!==void 0&&(w.Nc!==r&&(r=w.Nc,p=w.Uo+1),w.Gl=p);if(o=e.pe,X=e.port,r=e.node.portSpreading,p=Ue.alloc(),w=Ue.alloc(),a=Ue.alloc(),O=Ue.alloc(),X.ga(No,p),X.ga(go,w),X.ga(ks,a),X.ga(Jo,O),de=re=D=X=0,r===ty)for(var Se=0;Se<o.length;Se++){var Te=o[Se];if(Te!==null){var Xe=Te.link.computeThickness();switch(Te.Nc){case 8:re+=Xe;break;case 2:de+=Xe;break;case 1:X+=Xe;break;default:case 4:D+=Xe}}}var We=Se=0,qe=1,tt=Te=0;for(Xe=0;Xe<o.length;Xe++){var rt=o[Xe];if(rt!==null){if(Se!==rt.Nc){switch(Se=rt.Nc,Se){case 8:var ft=a;We=O;break;case 2:ft=O,We=p;break;case 1:ft=p,We=w;break;default:case 4:ft=w,We=a}switch(Te=We.x-ft.x,tt=We.y-ft.y,Se){case 8:re>Math.abs(Te)?(qe=Math.abs(Te)/re,re=Math.abs(Te)):qe=1;break;case 2:de>Math.abs(tt)?(qe=Math.abs(tt)/de,de=Math.abs(tt)):qe=1;break;case 1:X>Math.abs(Te)?(qe=Math.abs(Te)/X,X=Math.abs(Te)):qe=1;break;default:case 4:D>Math.abs(tt)?(qe=Math.abs(tt)/D,D=Math.abs(tt)):qe=1}We=0}var Tt=rt.Zo;if(r===ty){switch(rt=rt.link.computeThickness(),rt*=qe,Tt.set(ft),Se){case 8:Tt.x=ft.x+Te/2+re/2-We-rt/2;break;case 2:Tt.y=ft.y+tt/2+de/2-We-rt/2;break;case 1:Tt.x=ft.x+Te/2-X/2+We+rt/2;break;default:case 4:Tt.y=ft.y+tt/2-D/2+We+rt/2}We+=rt}else{var Sn=.5;r===im&&(Sn=(rt.Uo+1)/(rt.Gl+1)),Tt.x=ft.x+Te*Sn,Tt.y=ft.y+tt*Sn}}}for(Ue.free(p),Ue.free(w),Ue.free(a),Ue.free(O),ft=e.pe,o=0;o<ft.length;o++)r=ft[o],r!==null&&(r.Ju=e.computeEndSegmentLength(r));e.ap=n,Nt.free(i)}n=e.pe}for(e=0;e<n.length;e++)if(i=n[e],i!==null&&i.link===t)return i;return null}zf.prototype.j=function(e,t){return e===t?0:e===null?-1:t===null?1:e.Nc<t.Nc?-1:e.Nc>t.Nc?1:e.angle<t.angle?-1:e.angle>t.angle?1:0},zf.prototype.computeEndSegmentLength=function(e){var t=e.link,n=t.computeEndSegmentLength(this.node,this.port,So,t.fromPort===this.port),r=e.Uo;if(0>r)return n;var i=e.Gl;if(1>=i||!t.isOrthogonal)return n;t=e.hv;var o=e.Zo;return(e.Nc===2||e.Nc===8)&&(r=i-1-r),((e=e.Nc===2||e.Nc===4)?t.y<o.y:t.x<o.x)?n+8*r:(e?t.y===o.y:t.x===o.x)?n:n+8*(i-1-r)},zf.className="Knot";function fy(e,t,n){this.link=e,this.angle=t,this.Nc=n,this.hv=new Ue,this.Gl=this.Uo=0,this.Zo=new Ue,this.Ju=0}fy.prototype.toString=function(){return this.link.toString()+" "+this.angle.toString()+" "+this.Nc.toString()+":"+this.Uo.toString()+"/"+this.Gl.toString()+" "+this.Zo.toString()+" "+this.Ju.toString()+" "+this.hv.toString()},fy.className="LinkInfo";function co(e){Ge(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new Ue(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,e&&Object.assign(this,e)}co.prototype.cloneProtected=function(e){e.sn=this.sn,e.Gh=this.Gh,e.yn=this.yn,e.Am.assign(this.Am),e.vn=this.vn,e.un=this.un,e.Em=this.Em,e.xn=!0},co.prototype.copy=function(){var e=new this.constructor;return this.cloneProtected(e),e},co.prototype.qb=function(){},co.prototype.toString=function(){var e=Fr(this.constructor);return e+="(",this.group!==null&&(e+=" in "+this.group),this.diagram!==null&&(e+=" for "+this.diagram),e+")"},co.prototype.C=function(){if(this.isValidLayout){var e=this.diagram;if(e!==null&&!e.undoManager.isUndoingRedoing){var t=e.animationManager;!t.isTicking&&(t.defaultAnimation.isAnimating&&t.Cc(),this.isOngoing&&e.pi||this.isInitial&&!e.pi)&&(this.isValidLayout=!1,e.$b())}}},co.prototype.createNetwork=function(){return new Ki(this)},co.prototype.makeNetwork=function(e){var t=this.createNetwork();return e instanceof Ct?(t.lg(e.nodes,!0),t.lg(e.links,!0)):e instanceof lr?t.lg(e.memberParts):t.lg(e.iterator),t},co.prototype.updateParts=function(){this.isValidLayout=!0;var e=this.diagram;if(e===null&&this.network!==null)for(var t=this.network.vertexes.iterator;t.next();){var n=t.value.node;if(n!==null&&(e=n.diagram,e!==null))break}try{e!==null&&e.Ea("Layout"),this.commitLayout()}finally{e!==null&&e.eb("Layout")}},co.prototype.commitLayout=function(){if(this.network!==null){for(var e=this.network.vertexes.iterator;e.next();)e.value.commit();if(this.isRouting)for(e=this.network.edges.iterator;e.next();)e.value.commit()}},co.prototype.doLayout=function(e){var t=new ut;e instanceof Ct?(Ah(this,t,e.nodes,!0,this.rh,!0,!1,!0),Ah(this,t,e.parts,!0,this.rh,!0,!1,!0)):e instanceof lr?Ah(this,t,e.memberParts,!1,this.rh,!0,!1,!0):t.addAll(e.iterator),0<t.count&&(e=this.diagram,e!==null&&e.Ea("Layout"),this.doMinimalNoNetworkLayout(t),e!==null&&e.eb("Layout")),this.isValidLayout=!0},co.prototype.doMinimalNoNetworkLayout=function(e){var t=Math.ceil(Math.sqrt(e.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var n=this.arrangementOrigin.x,r=n,i=this.arrangementOrigin.y,o=0,a=0;for(e=e.iterator;e.next();){var p=e.value;Up(p);var w=p.measuredBounds,O=w.width;w=w.height,p.moveTo(r,i),p instanceof lr&&(p.rh=!1),r+=Math.max(O,50)+20,a=Math.max(a,Math.max(w,50)),o>=t-1?(o=0,r=n,i+=a+20,a=0):o++}},co.prototype.doMinimalNetworkLayout=function(){var e=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var t=this.arrangementOrigin.x,n=t,r=this.arrangementOrigin.y,i=0,o=0,a=this.network.vertexes.iterator;a.next();){var p=a.value.node;if(!(p===null||p instanceof cn)&&(Up(p),this.rh(p))){var w=p.measuredBounds,O=w.width;w=w.height,p.moveTo(n,r),p instanceof lr&&(p.rh=!1),n+=Math.max(O,50)+20,o=Math.max(o,Math.max(w,50)),i>=e-1?(i=0,n=t,r+=o+20,o=0):i++}}},co.prototype.rh=function(e){return!!(!e.location.w()||e instanceof lr&&e.rh)};function Ah(e,t,n,r,i,o,a,p){for(n=n.iterator;n.next();){var w=n.value;r&&!w.isTopLevel||i!==null&&!i(w)||!w.canLayout()||(o&&w instanceof En?w.isLinkLabel||(w instanceof lr&&w.layout===null?Ah(e,t,w.memberParts,!1,i,o,a,p):(Up(w),t.add(w))):a&&w instanceof cn?t.add(w):!p||!w.Zc()||w instanceof En||(Up(w),t.add(w)))}}function Up(e){var t=e.actualBounds;(t.width===0||t.height===0||isNaN(t.width)||isNaN(t.height))&&e.Va()}co.prototype.ni=function(e,t){var n=this.boundsComputation;return n!==null?(t||(t=new Nt),n(e,this,t)):t?(t.set(e.actualBounds),t):e.actualBounds},co.prototype.ex=function(e){var t=new ut;return e instanceof Ct?(Ah(this,t,e.nodes,!0,null,!0,!0,!0),Ah(this,t,e.links,!0,null,!0,!0,!0),Ah(this,t,e.parts,!0,null,!0,!0,!0)):e instanceof lr?Ah(this,t,e.memberParts,!1,null,!0,!0,!0):Ah(this,t,e.iterator,!1,null,!0,!0,!0),t},co.prototype.initialOrigin=function(e){var t=this.group;if(t!==null){var n=t.position.copy();return(isNaN(n.x)||isNaN(n.y))&&n.set(e),t=t.placeholder,t!==null&&(n=t.ga(No),(isNaN(n.x)||isNaN(n.y))&&n.set(e),e=t.padding,n.x+=e.left,n.y+=e.top),n}return e},kn.Object.defineProperties(co.prototype,{diagram:{get:function(){return this.H},set:function(e){this.H=e}},group:{get:function(){return this.o},set:function(e){this.o!==e&&(this.o=e,e!==null&&(this.H=e.diagram))}},isOngoing:{get:function(){return this.sn},set:function(e){this.sn!==e&&(this.sn=e)}},isInitial:{get:function(){return this.Gh},set:function(e){this.Gh=e,e||(this.xn=!0)}},isViewportSized:{get:function(){return this.yn},set:function(e){this.yn!==e&&(this.yn=e)&&this.C()}},isRouting:{get:function(){return this.vn},set:function(e){this.vn!==e&&(this.vn=e)}},isRealtime:{get:function(){return this.un},set:function(e){this.un!==e&&(this.un=e)}},isValidLayout:{get:function(){return this.xn},set:function(e){this.xn!==e&&(this.xn=e,e||(e=this.diagram,e!==null&&(e.xh=!0)))}},network:{get:function(){return this.j},set:function(e){this.j!==e&&(this.j=e,e!==null&&(e.layout=this))}},boundsComputation:{get:function(){return this.Em},set:function(e){this.Em!==e&&(this.Em=e,this.C())}},arrangementOrigin:{get:function(){return this.Am},set:function(e){this.Am.D(e)||(this.Am.assign(e),this.C())}}}),co.prototype.collectParts=co.prototype.ex,co.prototype.getLayoutBounds=co.prototype.ni,co.prototype.invalidateLayout=co.prototype.C,co.className="Layout";function Ki(e){Ge(this),this.Sc=e,this.wf=new ut,this.ye=new ut,this.Es=new nn,this.zs=new nn}Ki.prototype.clear=function(){if(this.wf)for(var e=this.wf.iterator;e.next();)e.value.clear();if(this.ye)for(e=this.ye.iterator;e.next();)e.value.clear();this.wf=new ut,this.ye=new ut,this.Es=new nn,this.zs=new nn},Ki.prototype.toString=function(e){e===void 0&&(e=0);var t="LayoutNetwork"+(this.layout!==null?"("+this.layout.toString()+")":"");if(0>=e)return t;if(t+=" vertexes: "+this.wf.count+" edges: "+this.ye.count,1<e){for(var n=this.wf.iterator;n.next();)t+=`
`+n.value.toString(e-1);for(n=this.ye.iterator;n.next();)t+=`
`+n.value.toString(e-1)}return t},Ki.prototype.createVertex=function(){return new xs(this)},Ki.prototype.createEdge=function(){return new ll(this)},Ki.prototype.lg=function(e,t,n){if(e!==null){for(t===void 0&&(t=!1),n===void 0&&(n=null),n===null&&(n=function(a){if(a instanceof En)return!a.isLinkLabel;if(a instanceof cn){var p=a.fromNode;return p===null||p.isLinkLabel?!1:(a=a.toNode,!(a===null||a.isLinkLabel))}return!1}),e=e.iterator;e.next();){var r=e.value;if(r instanceof En&&(!t||r.isTopLevel)&&r.canLayout()&&n(r)){if(r instanceof lr&&r.layout===null)this.lg(r.memberParts,!1);else if(this.ki(r)===null){var i=this.createVertex();i.node=r,this.dh(i)}}}for(e.reset();e.next();)if(r=e.value,r instanceof cn&&(!t||r.isTopLevel)&&r.canLayout()&&n(r)&&this.Lo(r)===null){var o=r.fromNode;i=r.toNode,o!==null&&i!==null&&o!==i&&(o=this.findGroupVertex(o),i=this.findGroupVertex(i),o!==null&&i!==null&&this.Zj(o,i,r))}}},Ki.prototype.findGroupVertex=function(e){if(e===null)return null;var t=e.findVisibleNode();if(t===null)return null;if(e=this.ki(t),e!==null)return e;for(t=t.containingGroup;t!==null;){if(e=this.ki(t),e!==null)return e;t=t.containingGroup}return null},ye=Ki.prototype,ye.dh=function(e){if(e!==null){this.wf.add(e);var t=e.node;t!==null&&this.Es.add(t,e),e.network=this}},ye.Bl=function(e){if(e===null)return null;var t=this.ki(e);return t===null&&(t=this.createVertex(),t.node=e,this.dh(t)),t},ye.Iu=function(e){if(e!==null&&xb(this,e)){for(var t=e.tg,n=t.count-1;0<=n;n--){var r=t.M(n);this.Mj(r)}for(t=e.mg,e=t.count-1;0<=e;e--)n=t.M(e),this.Mj(n)}};function xb(e,t){if(t===null)return!1;var n=e.wf.remove(t);return n&&(t=t.node,t!==null&&e.Es.remove(t)),n}ye.Zy=function(e){e!==null&&(e=this.ki(e),e!==null&&this.Iu(e))},ye.ki=function(e){return e===null?null:this.Es.I(e)},ye.Bo=function(e){if(e!==null){dy(this,e);var t=e.toVertex;t!==null&&t.Cl(e),t=e.fromVertex,t!==null&&t.zl(e)}};function dy(e,t){if(t!==null){e.ye.add(t);var n=t.link;n!==null&&e.Lo(n)===null&&e.zs.add(n,t),t.network=e}}ye.Dy=function(e){if(e===null)return null;var t=e.fromNode,n=e.toNode,r=this.Lo(e);return r===null?(r=this.createEdge(),r.link=e,t!==null&&(r.fromVertex=this.Bl(t)),n!==null&&(r.toVertex=this.Bl(n)),this.Bo(r)):(t!==null?r.fromVertex=this.Bl(t):r.fromVertex=null,n!==null?r.toVertex=this.Bl(n):r.toVertex=null),r},ye.Mj=function(e){if(e!==null){var t=e.toVertex;t!==null&&t.Kl(e),t=e.fromVertex,t!==null&&t.Jl(e),py(this,e)}};function py(e,t){t!==null&&e.ye.remove(t)&&(t=t.link,t!==null&&e.zs.remove(t))}ye.Yy=function(e){e!==null&&(e=this.Lo(e),e!==null&&this.Mj(e))},ye.Lo=function(e){return e===null?null:this.zs.I(e)},ye.Zj=function(e,t,n){if(e===null||t===null)return null;if(e.network===this&&t.network===this){var r=this.createEdge();return r.link=n,r.fromVertex=e,r.toVertex=t,this.Bo(r),r}return null},ye.gm=function(e){if(e!==null){var t=e.fromVertex,n=e.toVertex;t!==null&&n!==null&&(t.Jl(e),n.Kl(e),e.gm(),t.Cl(e),n.zl(e))}},ye.Ko=function(){for(var e=yr(),t=this.ye.iterator;t.next();){var n=t.value;n.fromVertex===n.toVertex&&e.push(n)}for(t=e.length,n=0;n<t;n++)this.Mj(e[n]);Mr(e)},Ki.prototype.deleteArtificialVertexes=function(){for(var e=yr(),t=this.wf.iterator;t.next();){var n=t.value;n.node===null&&n.data===null&&e.push(n)}for(n=e.length,t=0;t<n;t++)this.Iu(e[t]);for(t=yr(),n=this.ye.iterator;n.next();){var r=n.value;r.link===null&&r.data===null&&t.push(r)}for(n=t.length,r=0;r<n;r++)this.Mj(t[r]);Mr(e),Mr(t)};function Y1(e){for(var t=yr(),n=e.ye.iterator;n.next();){var r=n.value;r.fromVertex!==null&&r.toVertex!==null||t.push(r)}for(n=t.length,r=0;r<n;r++)e.Mj(t[r]);Mr(t)}Ki.prototype.Zx=function(e){e===void 0&&(e=!0),e&&(this.deleteArtificialVertexes(),Y1(this),this.Ko()),e=new tn;for(var t=!0;t;){t=!1;for(var n=this.wf.iterator;n.next();){var r=n.value;if(0<r.tg.count||0<r.mg.count){t=this.layout.createNetwork(),e.add(t),gy(this,t,r),t=!0;break}}}return e.sort(function(i,o){return i===null||o===null||i===o?0:o.vertexes.count-i.vertexes.count}),e};function gy(e,t,n){if(n!==null&&n.network!==t){xb(e,n),t.dh(n);for(var r=n.sourceEdges;r.next();){var i=r.value;i.network!==t&&(py(e,i),dy(t,i),gy(e,t,i.fromVertex))}for(r=n.destinationEdges;r.next();)n=r.value,n.network!==t&&(py(e,n),dy(t,n),gy(e,t,n.toVertex))}}Ki.prototype.dz=function(){for(var e=new ut,t=this.wf.iterator;t.next();)e.add(t.value.node);for(t=this.ye.iterator;t.next();)e.add(t.value.link);return e},kn.Object.defineProperties(Ki.prototype,{layout:{get:function(){return this.Sc},set:function(e){e!==null&&(this.Sc=e)}},vertexes:{get:function(){return this.wf}},edges:{get:function(){return this.ye}}}),Ki.prototype.findAllParts=Ki.prototype.dz,Ki.prototype.splitIntoSubNetworks=Ki.prototype.Zx,Ki.prototype.deleteSelfEdges=Ki.prototype.Ko,Ki.prototype.reverseEdge=Ki.prototype.gm,Ki.prototype.linkVertexes=Ki.prototype.Zj,Ki.prototype.findEdge=Ki.prototype.Lo,Ki.prototype.deleteLink=Ki.prototype.Yy,Ki.prototype.deleteEdge=Ki.prototype.Mj,Ki.prototype.addLink=Ki.prototype.Dy,Ki.prototype.addEdge=Ki.prototype.Bo,Ki.prototype.findVertex=Ki.prototype.ki,Ki.prototype.deleteNode=Ki.prototype.Zy,Ki.prototype.deleteVertex=Ki.prototype.Iu,Ki.prototype.addNode=Ki.prototype.Bl,Ki.prototype.addVertex=Ki.prototype.dh,Ki.prototype.addParts=Ki.prototype.lg,Ki.className="LayoutNetwork";function xs(e){Ge(this),this.ob=e,this.j=new Nt(0,0,10,10).freeze(),this.o=new Ue(5,5).freeze(),this.Sh=this.ub=null,this.tg=new tn,this.mg=new tn}xs.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new tn,this.mg=new tn},xs.prototype.toString=function(e){e===void 0&&(e=0);var t="LayoutVertex#"+it(this);if(0<e&&(t+=this.node!==null?"("+this.node.toString()+")":"",1<e)){e="";for(var n=!0,r=this.tg.iterator;r.next();){var i=r.value;n?n=!1:e+=",",e+=i.toString(0)}for(i="",n=!0,r=this.mg.iterator;r.next();){var o=r.value;n?n=!1:i+=",",i+=o.toString(0)}t+=" sources: "+e+" destinations: "+i}return t},xs.prototype.commit=function(){var e=this.ub;if(e!==null){var t=this.bounds,n=e.bounds;bn(n)?(n.x=t.x,n.y=t.y,n.width=t.width,n.height=t.height):e.bounds=t.copy()}else if(e=this.node,e!==null){if(t=this.bounds,!(e instanceof lr)){n=Nt.alloc(),e.Va();var r=this.network.layout.ni(e,n),i=e.locationObject.ga(jr);if(r.w()&&i.w()){e.moveTo(t.x+this.focusX-(i.x-r.x),t.y+this.focusY-(i.y-r.y)),Nt.free(n);return}Nt.free(n)}e.moveTo(t.x,t.y)}},xs.prototype.Cl=function(e){e!==null&&(this.tg.contains(e)||this.tg.add(e))},xs.prototype.Kl=function(e){e!==null&&this.tg.remove(e)},xs.prototype.zl=function(e){e!==null&&(this.mg.contains(e)||this.mg.add(e))},xs.prototype.Jl=function(e){e!==null&&this.mg.remove(e)};function my(e,t){return e=e.Sh,t=t.Sh,e?t?(e=e.text,t=t.text,e<t?-1:e>t?1:0):1:t!==null?-1:0}kn.Object.defineProperties(xs.prototype,{sourceEdgesArrayAccess:{get:function(){return this.tg._dataArray}},destinationEdgesArrayAccess:{get:function(){return this.mg._dataArray}},data:{get:function(){return this.ub},set:function(e){if(this.ub=e,e!==null&&e.bounds){var t=e.bounds;e=t.x;var n=t.y,r=t.width;t=t.height,this.o.h(r/2,t/2),this.j.h(e,n,r,t)}}},node:{get:function(){return this.Sh},set:function(e){if(this.Sh!==e){this.Sh=e,e.Va();var t=this.network.layout,n=Nt.alloc(),r=t.ni(e,n);t=r.x;var i=r.y,o=r.width;if(r=r.height,isNaN(t)&&(t=0),isNaN(i)&&(i=0),this.j.h(t,i,o,r),Nt.free(n),!(e instanceof lr)&&(e=e.locationObject.ga(jr),e.w())){this.o.h(e.x-t,e.y-i);return}this.o.h(o/2,r/2)}}},bounds:{get:function(){return this.j},set:function(e){this.j.D(e)||this.j.assign(e)}},focus:{get:function(){return this.o},set:function(e){this.o.D(e)||this.o.assign(e)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(e){var t=this.j;t.x+this.o.x!==e&&(t.ka(),t.x=e-this.o.x,t.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(e){var t=this.j;t.y+this.o.y!==e&&(t.ka(),t.y=e-this.o.y,t.freeze())}},focusX:{get:function(){return this.o.x},set:function(e){var t=this.o;t.x!==e&&(t.ka(),t.x=e,t.freeze())}},focusY:{get:function(){return this.o.y},set:function(e){var t=this.o;t.y!==e&&(t.ka(),t.y=e,t.freeze())}},x:{get:function(){return this.j.x},set:function(e){var t=this.j;t.x!==e&&(t.ka(),t.x=e,t.freeze())}},y:{get:function(){return this.j.y},set:function(e){var t=this.j;t.y!==e&&(t.ka(),t.y=e,t.freeze())}},width:{get:function(){return this.j.width},set:function(e){var t=this.j;t.width!==e&&(t.ka(),t.width=e,t.freeze())}},height:{get:function(){return this.j.height},set:function(e){var t=this.j;t.height!==e&&(t.ka(),t.height=e,t.freeze())}},network:{get:function(){return this.ob},set:function(e){this.ob=e}},sourceVertexes:{get:function(){for(var e=new ut,t=this.sourceEdges;t.next();)e.add(t.value.fromVertex);return e.iterator}},destinationVertexes:{get:function(){for(var e=new ut,t=this.destinationEdges;t.next();)e.add(t.value.toVertex);return e.iterator}},vertexes:{get:function(){for(var e=new ut,t=this.sourceEdges;t.next();)e.add(t.value.fromVertex);for(t=this.destinationEdges;t.next();)e.add(t.value.toVertex);return e.iterator}},sourceEdges:{get:function(){return this.tg.iterator}},destinationEdges:{get:function(){return this.mg.iterator}},edges:{get:function(){for(var e=new tn,t=this.sourceEdges;t.next();)e.add(t.value);for(t=this.destinationEdges;t.next();)e.add(t.value);return e.iterator}},edgesCount:{get:function(){return this.tg.count+this.mg.count}}}),xs.prototype.deleteDestinationEdge=xs.prototype.Jl,xs.prototype.addDestinationEdge=xs.prototype.zl,xs.prototype.deleteSourceEdge=xs.prototype.Kl,xs.prototype.addSourceEdge=xs.prototype.Cl,xs.className="LayoutVertex",xs.standardComparer=my,xs.smartComparer=function(e,t){if(e!==null){if(t!==null){e=e.Sh;var n=t.Sh;if(e!==null){if(n!==null){for(t=e.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),e=n.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),n=0;n<t.length;n++)if(e[n]!==""&&e[n]!==void 0){var r=parseFloat(t[n]),i=parseFloat(e[n]);if(isNaN(r))if(isNaN(i)){if(t[n].localeCompare(e[n])!==0)return t[n].localeCompare(e[n])}else return 1;else{if(isNaN(i))return-1;if(r-i!==0)return r-i}}else if(t[n]!=="")return 1;return e[n]!==""&&e[n]!==void 0?-1:0}return 1}return n!==null?-1:0}return 1}return t!==null?-1:0};function ll(e){Ge(this),this.nb=e,this.qd=this.kd=this.$k=this.ub=null}ll.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},ll.prototype.toString=function(e){e===void 0&&(e=0);var t="LayoutEdge#"+it(this);return 0<e&&(t+=this.$k!==null?"("+this.$k.toString()+")":"",1<e&&(t+=" "+(this.kd?this.kd.toString():"null")+" --> "+(this.qd?this.qd.toString():"null"))),t},ll.prototype.gm=function(){var e=this.kd;this.kd=this.qd,this.qd=e},ll.prototype.commit=function(){},ll.prototype.Ax=function(e){return this.qd===e?this.kd:this.kd===e?this.qd:null},kn.Object.defineProperties(ll.prototype,{network:{get:function(){return this.nb},set:function(e){this.nb=e}},data:{get:function(){return this.ub},set:function(e){this.ub!==e&&(this.ub=e)}},link:{get:function(){return this.$k},set:function(e){this.$k!==e&&(this.$k=e)}},fromVertex:{get:function(){return this.kd},set:function(e){this.kd!==e&&(this.kd=e)}},toVertex:{get:function(){return this.qd},set:function(e){this.qd!==e&&(this.qd=e)}}}),ll.prototype.getOtherVertex=ll.prototype.Ax,ll.className="LayoutEdge";function Hs(e){co.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new Yt(NaN,NaN).freeze(),this.tf=new Yt(10,10).freeze(),this.Jb=Hp,this.Rb=ym,this.nd=zp,this.hd=Eb,e&&Object.assign(this,e)}Tn(Hs,co),Hs.prototype.cloneProtected=function(e){co.prototype.cloneProtected.call(this,e),e.zo=this.zo,e.yo=this.yo,e.yg.assign(this.yg),e.tf.assign(this.tf),e.Jb=this.Jb,e.Rb=this.Rb,e.nd=this.nd,e.hd=this.hd},Hs.prototype.qb=function(e){e.classType===Hs?e===zp||e===Sm||e===vy||e===bm?this.sorting=e:e===ym||e===Au?this.arrangement=e:e===Hp||e===vm?this.alignment=e:Lt("Unknown enum value: "+e):co.prototype.qb.call(this,e)},Hs.prototype.doLayout=function(e){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var t=this.ex(e);e=this.diagram;for(var n=t.copy().iterator;n.next();){var r=n.value;if(!r.ph()||r.fromNode===null&&r.toNode===null){if(r.Va(),r instanceof lr)for(r=r.memberParts;r.next();)t.remove(r.value)}else t.remove(r)}var i=t.Fa();if(i.length!==0){switch(this.sorting){case bm:i.reverse();break;case zp:i.sort(this.comparer);break;case Sm:i.sort(this.comparer),i.reverse()}var o=this.wrappingColumn;isNaN(o)&&(o=0);var a=this.wrappingWidth;switch(isNaN(a)&&e!==null?(t=e.padding,a=Math.max(e.viewportBounds.width-t.left-t.right,0)):a=Math.max(this.wrappingWidth,0),0>=o&&0>=a&&(o=1),t=this.spacing.width,isFinite(t)||(t=0),n=this.spacing.height,isFinite(n)||(n=0),e!==null&&e.Ea("Layout"),r=[],this.alignment){case vm:var p=t,w=n,O=Nt.alloc(),D=Math.max(this.cellSize.width,1);if(!isFinite(D))for(var X=D=0;X<i.length;X++){var re=this.ni(i[X],O);D=Math.max(D,re.width)}if(D=Math.max(D+p,1),X=Math.max(this.cellSize.height,1),!isFinite(X))for(re=X=0;re<i.length;re++){var de=this.ni(i[re],O);X=Math.max(X,de.height)}X=Math.max(X+w,1),re=this.arrangement;for(var Se=de=this.arrangementOrigin.x,Te=this.arrangementOrigin.y,Xe=0,We=0,qe=0;qe<i.length;qe++){var tt=i[qe],rt=this.ni(tt,O),ft=Math.ceil((rt.width+p)/D)*D,Tt=Math.ceil((rt.height+w)/X)*X;switch(re){case Au:var Sn=Math.abs(Se-rt.width);break;default:Sn=Se+rt.width}switch((0<o&&Xe>o-1||0<a&&0<Xe&&Sn-de>a)&&(r.push(new Nt(0,Te,a+p,We)),Xe=0,Se=de,Te+=We,We=0),We=Math.max(We,Tt),re){case Au:rt=-rt.width;break;default:rt=0}switch(tt.moveTo(Se+rt,Te),re){case Au:Se-=ft;break;default:Se+=ft}Xe++}r.push(new Nt(0,Te,a+p,We)),Nt.free(O);break;case Hp:for(w=a,D=o,X=t,re=n,a=Nt.alloc(),de=Math.max(this.cellSize.width,1),o=Te=O=0,p=Ue.alloc(),Se=0;Se<i.length;Se++)We=i[Se],Xe=this.ni(We,a),We=Qc(We,We.locationObject,We.locationSpot,p),O=Math.max(O,We.x),Te=Math.max(Te,Xe.width-We.x),o=Math.max(o,We.y);switch(Se=this.arrangement,Se){case Au:O+=X;break;default:Te+=X}de=isFinite(de)?Math.max(de+X,1):Math.max(O+Te,1);var Rn=We=this.arrangementOrigin.x;for(qe=this.arrangementOrigin.y,Te=0,w>=O&&(w-=O),O=tt=0,ft=Math.max(this.cellSize.height,1),rt=o=0,Tt=!0,Xe=Ue.alloc(),Sn=0;Sn<i.length;Sn++){var _n=i[Sn],ln=this.ni(_n,a),Gt=Qc(_n,_n.locationObject,_n.locationSpot,p);if(0<Te)switch(Se){case Au:Rn=(Rn-We-(ln.width-Gt.x))/de,Rn=vt.$(Math.round(Rn),Rn)?Math.round(Rn):Math.floor(Rn),Rn=Rn*de+We;break;default:Rn=(Rn-We+Gt.x)/de,Rn=vt.$(Math.round(Rn),Rn)?Math.round(Rn):Math.ceil(Rn),Rn=Rn*de+We}else switch(Se){case Au:tt=Rn+Gt.x+ln.width;break;default:tt=Rn-Gt.x}switch(Se){case Au:var ar=-(Rn+Gt.x)+tt;break;default:ar=Rn+ln.width-Gt.x-tt}if(0<D&&Te>D-1||0<w&&0<Te&&ar>w){for(r.push(new Nt(0,Tt?qe-o:qe,w+X,rt+o+re)),Rn=0;Rn<Te&&Sn!==Te;Rn++){ar=i[Sn-Te+Rn];var er=Qc(ar,ar.locationObject,ar.locationSpot,Xe);ar.moveTo(ar.position.x,ar.position.y+o-er.y)}rt+=re,qe=Tt?qe+rt:qe+(rt+o),Te=rt=o=0,Rn=We,Tt=!1}switch(Rn===We&&(O=Se===Au?Math.max(O,ln.width-Gt.x):Math.min(O,-Gt.x)),o=Math.max(o,Gt.y),rt=Math.max(rt,ln.height-Gt.y),isFinite(ft)&&(rt=Math.max(rt,Math.max(ln.height,ft)-Gt.y)),Tt?_n.moveTo(Rn-Gt.x,qe-Gt.y):_n.moveTo(Rn-Gt.x,qe),Se){case Au:Rn-=Gt.x+X;break;default:Rn+=ln.width-Gt.x+X}Te++}if(r.push(new Nt(0,qe,w+X,(Tt?rt:rt+o)+re)),i.length!==Te)for(w=0;w<Te;w++)D=i[i.length-Te+w],X=Qc(D,D.locationObject,D.locationSpot,p),D.moveTo(D.position.x,D.position.y+o-X.y);if(Ue.free(p),Ue.free(Xe),Se===Au)for(i=0;i<r.length;i++)o=r[i],o.width+=O,o.x-=O;else for(i=0;i<r.length;i++)o=r[i],o.x>O&&(o.width+=o.x-O,o.x=O);Nt.free(a)}for(p=o=a=i=0;p<r.length;p++)w=r[p],i=Math.min(i,w.x),a=Math.min(a,w.y),o=Math.max(o,w.x+w.width);this.arrangement===Au?this.commitLayers(r,new Ue(i+t/2-(o+i),a-n/2)):this.commitLayers(r,new Ue(i-t/2,a-n/2)),e!==null&&e.eb("Layout"),this.isValidLayout=!0}},Hs.prototype.commitLayers=function(){};function Eb(e,t){return e=e.text,t=t.text,e<t?-1:e>t?1:0}kn.Object.defineProperties(Hs.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(e){this.zo!==e&&(0<e||isNaN(e))&&(this.zo=e,this.isViewportSized=isNaN(e),this.C())}},wrappingColumn:{get:function(){return this.yo},set:function(e){this.yo!==e&&(0<e||isNaN(e))&&(this.yo=e,this.C())}},cellSize:{get:function(){return this.yg},set:function(e){this.yg.D(e)||(this.yg.assign(e),this.C())}},spacing:{get:function(){return this.tf},set:function(e){this.tf.D(e)||(this.tf.assign(e),this.C())}},alignment:{get:function(){return this.Jb},set:function(e){this.Jb===e||e!==Hp&&e!==vm||(this.Jb=e,this.C())}},arrangement:{get:function(){return this.Rb},set:function(e){this.Rb===e||e!==ym&&e!==Au||(this.Rb=e,this.C())}},sorting:{get:function(){return this.nd},set:function(e){this.nd===e||e!==vy&&e!==bm&&e!==zp&&e!==Sm||(this.nd=e,this.C())}},comparer:{get:function(){return this.hd},set:function(e){this.hd!==e&&(this.hd=e,this.C())}}});var vm=new hn(Hs,"Position",0),Hp=new hn(Hs,"Location",1),ym=new hn(Hs,"LeftToRight",2),Au=new hn(Hs,"RightToLeft",3),vy=new hn(Hs,"Forward",4),bm=new hn(Hs,"Reverse",5),zp=new hn(Hs,"Ascending",6),Sm=new hn(Hs,"Descending",7);Hs.className="GridLayout",Hs.standardComparer=Eb,Hs.smartComparer=function(e,t){if(e!==null){if(t!==null){e=e.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),t=t.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/);for(var n=0;n<e.length;n++)if(t[n]!==""&&t[n]!==void 0){var r=parseFloat(e[n]),i=parseFloat(t[n]);if(isNaN(r))if(isNaN(i)){if(e[n].localeCompare(t[n])!==0)return e[n].localeCompare(t[n])}else return 1;else{if(isNaN(i))return-1;if(r-i!==0)return r-i}}else if(e[n]!=="")return 1;return t[n]!==""&&t[n]!==void 0?-1:0}return 1}return t!==null?-1:0},Hs.Position=vm,Hs.Location=Hp,Hs.LeftToRight=ym,Hs.RightToLeft=Au,Hs.Forward=vy,Hs.Reverse=bm,Hs.Ascending=zp,Hs.Descending=Sm;function Si(){this.On=new ut,this.Dn=new ut,this.Pa=new ut,this.cf=new nn,this.bf=new nn,this.aj=new nn,this.H=null,this.tp=!1}ye=Si.prototype,ye.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},ye.Xe=function(e){this.H=e},ye.oi=function(e){if(e instanceof En){if(this.On.add(e),e instanceof lr){var t=e.containingGroup;t===null?this.H.ai.add(e):t.gl.add(e),t=e.layout,t!==null&&(t.diagram=this.H)}}else e instanceof cn?this.Dn.add(e):e instanceof qr||this.Pa.add(e);t=e.data,t===null||e instanceof qr||(e instanceof cn?this.bf.add(t,e):this.cf.add(t,e))},ye.pc=function(e){if(e.Ej(),e instanceof En){if(this.On.remove(e),e instanceof lr){var t=e.containingGroup;t===null?this.H.ai.remove(e):t.gl.remove(e),t=e.layout,t!==null&&(t.diagram=null)}}else e instanceof cn?this.Dn.remove(e):e instanceof qr||this.Pa.remove(e);t=e.data,t===null||e instanceof qr||(e instanceof cn?this.bf.remove(t):this.cf.remove(t))},ye.Wd=function(){var e=this.H;if(e!==null){for(var t=e.nodeTemplateMap.iterator;t.next();){var n=t.value,r=t.key;(!n.Zc()||n instanceof lr)&&Lt('Invalid node template in Diagram.nodeTemplateMap: template for "'+r+'" must be a Node or a simple Part, not a Group or Link: '+n)}for(t=e.groupTemplateMap.iterator;t.next();)n=t.value,r=t.key,n instanceof lr||Lt('Invalid group template in Diagram.groupTemplateMap: template for "'+r+'" must be a Group, not a normal Node or Link: '+n);for(t=e.linkTemplateMap.iterator;t.next();)n=t.value,r=t.key,n instanceof cn||Lt('Invalid link template in Diagram.linkTemplateMap: template for "'+r+'" must be a Link, not a normal Node or simple Part: '+n);for(t=yr(),n=e.selection.iterator;n.next();)(r=n.value.data)&&t.push(r);for(n=yr(),e=e.highlighteds.iterator;e.next();)(r=e.value.data)&&n.push(r);for(e=yr(),r=this.nodes.iterator;r.next();){var i=r.value;i.data!==null&&(e.push(i.data),e.push(i.location))}for(r=this.links.iterator;r.next();)i=r.value,i.data!==null&&(e.push(i.data),e.push(i.location));for(r=this.parts.iterator;r.next();)i=r.value,i.data!==null&&(e.push(i.data),e.push(i.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),r=0;r<t.length;r++)i=this.Lc(t[r]),i!==null&&(i.isSelected=!0);for(r=0;r<n.length;r++)i=this.Lc(n[r]),i!==null&&(i.isHighlighted=!0);for(r=0;r<e.length;r+=2)i=this.Lc(e[r]),i!==null&&(i.location=e[r+1]);Mr(t),Mr(n),Mr(e)}},Si.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},Si.prototype.addModeledParts=function(e,t){var n=this,r=this.diagram.model;e.forEach(function(i){r.lb(i)&&wb(n,i,!1)}),e.forEach(function(i){r.lb(i)&&n.resolveReferencesForData(i)}),t!==!1&&ad(this.diagram,!1)};function wb(e,t,n){if(t!=null&&!e.diagram.undoManager.isUndoingRedoing&&!e.cf.contains(t)){n===void 0&&(n=!0);e:{if(t!=null&&!e.H.undoManager.isUndoingRedoing&&!e.cf.contains(t)){var r=e.Ro(t),i=Cb(e,t,r);if(i!==null&&(ql(i),i=i.copy(),i!==null)){var o=e.diagram.skipsModelSourceBindings;e.diagram.skipsModelSourceBindings=!0,i.Tf=r,i.ub=t,e.tp&&(i.Jg="Tool"),e.diagram.add(i),i.ub=null,i.data=t,e.diagram.skipsModelSourceBindings=o,r=i;break e}}r=null}r!==null&&n&&e.resolveReferencesForData(t)}}Si.prototype.insertLink=function(){return null},Si.prototype.resolveReferencesForData=function(){},Si.prototype.Ro=function(e){return this.H.model.Ro(e)};function Cb(e,t,n){e=e.H;var r=e.model;return r.Xj()&&r.Yu(t)?(t=e.groupTemplateMap.I(n),t===null&&(t=e.groupTemplateMap.I(""),t===null&&(Ab||(Ab=!0,zi('No Group template found for category "'+n+'"'),zi(" Using default group template")),t=e.ly))):(t=e.nodeTemplateMap.I(n),t===null&&(t=e.nodeTemplateMap.I(""),t===null&&(_b||(_b=!0,zi('No Node template found for category "'+n+'"'),zi(" Using default node template")),t=e.ny))),t}Si.prototype.getLinkCategoryForData=function(){return""},Si.prototype.setLinkCategoryForData=function(){},Si.prototype.setFromNodeForLink=function(){},Si.prototype.setToNodeForLink=function(){},Si.prototype.findLinkTemplateForCategory=function(e){var t=this.H,n=t.linkTemplateMap.I(e);return n===null&&(n=t.linkTemplateMap.I(""),n===null&&(kb||(kb=!0,zi('No Link template found for category "'+e+'"'),zi(" Using default link template")),n=t.my)),n},Si.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},Si.prototype.Gs=function(e){var t=this;e.forEach(function(n){t.ip(n)})},Si.prototype.ip=function(e){e=this.Lc(e),e!==null&&(np(this.diagram,e,!1),this.unresolveReferencesForPart(e))},Si.prototype.unresolveReferencesForPart=function(){},Si.prototype.removeDataForLink=function(){},Si.prototype.findPartForKey=function(e){return e==null?null:(e=this.H.model.hc(e),e!==null?this.cf.I(e):null)},Si.prototype.Vb=function(e){return e==null||(e=this.H.model.hc(e),e===null)?null:(e=this.cf.I(e),e instanceof En?e:null)},Si.prototype.findLinkForKey=function(){return null},ye=Si.prototype,ye.Lc=function(e){if(e===null)return null;var t=this.cf.I(e);return t!==null?t:t=this.bf.I(e)},ye.ii=function(e){return e===null?null:(e=this.cf.I(e),e instanceof En?e:null)},ye.Kc=function(e){return e===null?null:this.bf.I(e)},ye.ms=function(e){for(var t=0;t<arguments.length;++t);t=new ut;for(var n=this.On.iterator;n.next();){var r=n.value,i=r.data;if(i!==null)for(var o=0;o<arguments.length;o++){var a=arguments[o];if(bn(a)&&yy(this,i,a)){t.add(r);break}}}return t.iterator},ye.ls=function(e){for(var t=0;t<arguments.length;++t);t=new ut;for(var n=this.Dn.iterator;n.next();){var r=n.value,i=r.data;if(i!==null)for(var o=0;o<arguments.length;o++){var a=arguments[o];if(bn(a)&&yy(this,i,a)){t.add(r);break}}}return t.iterator};function yy(e,t,n){for(var r in n){var i=t[r],o=n[r];if(or(o)){if(!or(i)||i.length<o.length)return!1;for(var a=0;a<i.length;a++){var p=o[a];if(p!==void 0&&!Tb(e,i[a],p))return!1}}else if(!Tb(e,i,o))return!1}return!0}function Tb(e,t,n){if(typeof n=="function"){if(!n(t))return!1}else if(n instanceof RegExp){if(!t||!n.test(t.toString()))return!1}else if(bn(t)&&bn(n)){if(!yy(e,t,n))return!1}else if(t!==n)return!1;return!0}Si.prototype.doModelChanged=function(e){if(this.H){var t=this.H;if(e.model===t.model){var n=e.change;if(t.doModelChanged(e),t.aa){t.aa=!1;try{var r=e.modelChange;if(r!=="")if(n===Fi){if(r==="nodeCategory"){var i=this.Lc(e.object),o=e.newValue;i!==null&&typeof o=="string"&&(i.category=o)}else r==="nodeDataArray"&&(this.Gs(e.oldValue),this.addModeledParts(e.newValue));t.isModified=!0}else if(n===xo){var a=e.newValue;r==="nodeDataArray"&&bn(a)&&wb(this,a),t.isModified=!0}else if(n===Lo){var p=e.oldValue;r==="nodeDataArray"&&bn(p)&&this.ip(p),t.isModified=!0}else n===Gs&&(r==="SourceChanged"?e.object!==null?this.updateDataBindings(e.object,e.propertyName):(this.rp(),this.updateAllTargetBindings()):r==="ModelDisplaced"&&this.Wd());else if(n===Fi){var w=e.propertyName,O=e.object;O===t.model?(w==="nodeKeyProperty"||w==="nodeCategoryProperty")&&(t.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(O,w),t.isModified=!0}else if(n===xo||n===Lo){var D=e.change===xo,X=D?e.newParam:e.oldParam,re=D?e.newValue:e.oldValue,de=this.aj.I(e.object);if(Array.isArray(de))for(e=0;e<de.length;e++){var Se=de[e];if(D)jg(Se,re,X,!0);else if(!(0>X)){var Te=X+wp(Se);Se.pc(Te,!0),Ov(Se,Te,X)}}t.isModified=!0}}finally{t.aa=!0}}}}},Si.prototype.updateAllTargetBindings=function(e){e===void 0&&(e="");for(var t=this.parts.iterator;t.next();)t.value.La(e);for(t=this.nodes.iterator;t.next();)t.value.La(e);for(t=this.links.iterator;t.next();)t.value.La(e)},Si.prototype.rp=function(){for(var e=this.H.model,t=new ut,n=e.nodeDataArray,r=0;r<n.length;r++)t.add(n[r]);var i=[];for(this.nodes.each(function(a){a.data===null||t.contains(a.data)||i.push(a.data)}),this.parts.each(function(a){a.data===null||t.contains(a.data)||i.push(a.data)}),i.forEach(function(a){Fb(e,a,!1)}),r=0;r<n.length;r++){var o=n[r];this.Lc(o)===null&&Pb(e,o,!1)}for(this.refreshDataBoundLinks(),n=this.parts.iterator;n.next();)n.value.updateRelationshipsFromData();for(n=this.nodes.iterator;n.next();)n.value.updateRelationshipsFromData();for(n=this.links.iterator;n.next();)n.value.updateRelationshipsFromData()},Si.prototype.refreshDataBoundLinks=function(){},Si.prototype.updateRelationshipsFromData=function(){},Si.prototype.updateDataBindings=function(e,t){if(typeof t=="string"){var n=this.Lc(e);if(n!==null)n.La(t);else{n=null;for(var r=this.aj.iterator;r.next();){for(var i=r.value,o=0;o<i.length;o++){var a=i[o].sx(e);a!==null&&(n===null&&(n=yr()),n.push(a))}if(n!==null)break}if(n!==null){for(r=0;r<n.length;r++)n[r].La(t);Mr(n)}}e===this.diagram.model.modelData&&this.updateAllTargetBindings(t)}};function by(e,t){var n=t.Hh;if(or(n)){var r=e.aj.I(n);if(r===null)r=[],r.push(t),e.aj.add(n,r);else{for(e=0;e<r.length;e++)if(r[e]===t)return;r.push(t)}}}function Sy(e,t,n){uf(t,function(a){a=a.O.s;for(var p=a.length,w=0;w<p;w++)ap(n,a[w])});var r=t.Hh;if(or(r)){var i=e.aj.I(r);if(i!==null){for(var o=0;o<i.length;o++)if(i[o]===t){i.splice(o,1),i.length===0&&e.aj.remove(r);break}}}}Si.prototype.Kj=function(e,t,n){n===void 0&&(n=!1);var r=new nn;if(or(e))for(var i=0;i<e.length;i++)xm(this,e[i],t,r,n);else for(e=e.iterator;e.next();)xm(this,e.value,t,r,n);if(t!==null){n=t.model,e=t.toolManager.findTool("Dragging"),e=e!==null?e.dragOptions.dragsLink:t.Wm.dragsLink,i=new ut;for(var o=new nn,a=r.iterator;a.next();){var p=a.value;if(p instanceof cn)e||p.fromNode!==null&&p.toNode!==null||i.add(p);else if(p instanceof En&&p.data!==null&&n.Tl()){var w=p;p=a.key;var O=p.pg();O!==null&&(O=r.I(O),O!==null?(n.qe(w.data,n.wa(O.data)),w=t.Kc(w.data),p=p.kh(),p!==null&&w!==null&&o.add(p,w)):n.qe(w.data,void 0))}}if(0<i.count&&t.Is(i,!1),0<o.count)for(n=o.iterator;n.next();)r.add(n.key,n.value)}if(t!==null&&this.H!==null&&(t=t.model,n=t.afterCopyFunction,n!==null)){var D=new nn;r.each(function(X){X.key.data!==null&&D.add(X.key.data,X.value.data)}),n(D,t,this.H.model)}for(t=r.iterator;t.next();)t.value.La();return r};function xm(e,t,n,r,i){if(t===null||i&&!t.canCopy())return null;if(r.contains(t))return r.I(t);var o=e.copyPartData(t,n);if(!(o instanceof zn))return null;if(o.isSelected=!1,o.isHighlighted=!1,r.add(t,o),t instanceof En){for(var a=t.linksConnected;a.next();){var p=a.value;if(p.fromNode===t){var w=r.I(p);w!==null&&(w.fromNode=o)}p.toNode===t&&(p=r.I(p),p!==null&&(p.toNode=o))}if(t instanceof lr&&o instanceof lr)for(t=t.memberParts;t.next();)a=xm(e,t.value,n,r,i),a instanceof cn||a===null||(a.containingGroup=o)}else if(t instanceof cn&&o instanceof cn)for(a=t.fromNode,a!==null&&(a=r.I(a),a!==null&&(o.fromNode=a)),a=t.toNode,a!==null&&(a=r.I(a),a!==null&&(o.toNode=a)),t=t.labelNodes;t.next();)a=xm(e,t.value,n,r,i),a!==null&&a instanceof En&&(a.labeledLink=o);return o}Si.prototype.copyPartData=function(e,t){var n=null,r=e.data;if(r!==null&&t!==null){var i=t.model;e instanceof cn||(r=i.copyNodeData(r),bn(r)&&(i.xf(r),n=t.Lc(r)))}else ql(e),n=e.copy(),n!==null&&(i=this.H,t!==null?t.add(n):r!==null&&i!==null&&i.commandHandler!==null&&i.commandHandler.copiesClipboardData&&(t=i.model,i=null,n instanceof cn||(i=t.copyNodeData(r)),bn(i)&&(n.data=i)));return n},kn.Object.defineProperties(Si.prototype,{nodes:{get:function(){return this.On}},links:{get:function(){return this.Dn}},parts:{get:function(){return this.Pa}},diagram:{get:function(){return this.H}},addsToTemporaryLayer:{get:function(){return this.tp},set:function(e){this.tp=e}}}),Si.prototype.updateAllRelationshipsFromData=Si.prototype.rp,Si.prototype.findLinksByExample=Si.prototype.ls,Si.prototype.findNodesByExample=Si.prototype.ms,Si.prototype.findLinkForData=Si.prototype.Kc,Si.prototype.findNodeForData=Si.prototype.ii,Si.prototype.findPartForData=Si.prototype.Lc,Si.prototype.findNodeForKey=Si.prototype.Vb,Si.prototype.removeModeledPart=Si.prototype.ip,Si.prototype.removeModeledParts=Si.prototype.Gs,Si.prototype.rebuildParts=Si.prototype.Wd;var _b=!1,Ab=!1,kb=!1;Si.className="PartManager";function Ls(e){Si.apply(this,arguments)}Tn(Ls,Si),Ls.prototype.addAllModeledParts=function(){var e=this.diagram.model;this.addModeledParts(e.nodeDataArray),Nb(this,e.linkDataArray)},Ls.prototype.addModeledParts=function(e){for(Si.prototype.addModeledParts.call(this,e,!1),e=this.links.iterator;e.next();)kd(e.value);ad(this.diagram,!1)};function Nb(e,t){t.forEach(function(n){Rb(e,n)}),ad(e.diagram,!1)}function Rb(e,t){if(t!=null&&!e.diagram.undoManager.isUndoingRedoing&&!e.bf.contains(t)){var n=e.getLinkCategoryForData(t),r=e.findLinkTemplateForCategory(n);if(r!==null){ql(r);var i=r.copy();if(i!==null){r=e.diagram.skipsModelSourceBindings,e.diagram.skipsModelSourceBindings=!0,i.Tf=n,i.ub=t,n=e.diagram.model;var o=Tm(n,t,!0);o!==""&&(i.fromPortId=o),o=Tl(n,t,!0),o!==void 0&&(o=e.Vb(o),o instanceof En&&(i.fromNode=o)),o=Tm(n,t,!1),o!==""&&(i.toPortId=o),o=Tl(n,t,!1),o!==void 0&&(o=e.Vb(o),o instanceof En&&(i.toNode=o)),n=n.Ef(t),Array.isArray(n)&&n.forEach(function(a){a=e.Vb(a),a!==null&&(a.labeledLink=i)}),e.tp&&(i.Jg="Tool"),e.diagram.add(i),i.ub=null,i.data=t,e.diagram.skipsModelSourceBindings=r}}}}Ls.prototype.removeAllModeledParts=function(){var e=this.diagram.model;Ib(this,e.linkDataArray),this.Gs(e.nodeDataArray)};function Ib(e,t){t.forEach(function(n){e.ip(n)})}Ls.prototype.getLinkCategoryForData=function(e){return this.diagram.model.ps(e)},Ls.prototype.setLinkCategoryForData=function(e,t){return this.diagram.model.lp(e,t)},Ls.prototype.setFromNodeForLink=function(e,t){var n=this.diagram.model;n.wv(e.data,n.wa(t!==null?t.data:null))},Ls.prototype.setToNodeForLink=function(e,t){var n=this.diagram.model;n.Bv(e.data,n.wa(t!==null?t.data:null))},Ls.prototype.removeDataForLink=function(e){this.diagram.model.bm(e.data)},Ls.prototype.findPartForKey=function(e){var t=Si.prototype.findPartForKey.call(this,e);return t===null&&(e=this.diagram.model.jh(e),e!==null)?this.bf.I(e):t},Ls.prototype.findLinkForKey=function(e){return e==null?null:(e=this.diagram.model.jh(e),e!==null?this.bf.I(e):null)},Ls.prototype.doModelChanged=function(e){var t=this;if(Si.prototype.doModelChanged.call(this,e),this.diagram){var n=this.diagram;if(e.model===n.model){var r=e.change;if(n.aa){n.aa=!1;try{var i=e.modelChange;if(i!==""){if(r===Fi){if(i==="linkFromKey"){var o=this.Kc(e.object);if(o!==null){var a=this.Vb(e.newValue);o.fromNode=a}}else if(i==="linkToKey"){var p=this.Kc(e.object);if(p!==null){var w=this.Vb(e.newValue);p.toNode=w}}else if(i==="linkFromPortId"){var O=this.Kc(e.object);if(O!==null){var D=e.newValue;typeof D=="string"&&(O.fromPortId=D)}}else if(i==="linkToPortId"){var X=this.Kc(e.object);if(X!==null){var re=e.newValue;typeof re=="string"&&(X.toPortId=re)}}else if(i==="nodeGroupKey"){var de=this.Lc(e.object);if(de!==null){var Se=e.newValue;if(Se!==void 0){var Te=this.Vb(Se);Te instanceof lr?de.containingGroup=Te:de.containingGroup=null}else de.containingGroup=null}}else if(i==="linkLabelKeys"){var Xe=this.Kc(e.object);if(Xe!==null){var We=e.oldValue,qe=e.newValue;Array.isArray(We)&&We.forEach(function(Gt){0<=qe.indexOf(Gt)||(Gt=t.Vb(Gt),Gt!==null&&(Gt.labeledLink=null))}),Array.isArray(qe)&&qe.forEach(function(Gt){Gt=t.Vb(Gt),Gt!==null&&(Gt.labeledLink=Xe)})}}else if(i==="linkCategory"){var tt=this.Kc(e.object),rt=e.newValue;tt!==null&&typeof rt=="string"&&(tt.category=rt)}else i==="linkDataArray"&&(Ib(this,e.oldValue),Nb(this,e.newValue));n.isModified=!0}else if(r===xo){var ft=e.newValue;if(i==="linkDataArray"&&typeof ft=="object"&&ft!==null)Rb(this,ft);else if(i==="linkLabelKeys"&&Nh(ft)){var Tt=this.Kc(e.object),Sn=this.Vb(ft);Tt!==null&&Sn!==null&&(Sn.labeledLink=Tt)}n.isModified=!0}else if(r===Lo){var Rn=e.oldValue;if(i==="linkDataArray"&&typeof Rn=="object"&&Rn!==null)this.ip(Rn);else if(i==="linkLabelKeys"&&Nh(Rn)){var _n=this.Vb(Rn);_n!==null&&(_n.labeledLink=null)}n.isModified=!0}}else if(r===Fi){var ln=e.propertyName;e.object!==n.model||ln!=="linkFromKeyProperty"&&ln!=="linkToKeyProperty"&&ln!=="linkFromPortIdProperty"&&ln!=="linkToPortIdProperty"&&ln!=="linkLabelKeysProperty"&&ln!=="nodeIsGroupProperty"&&ln!=="nodeGroupKeyProperty"&&ln!=="linkCategoryProperty"||n.undoManager.isUndoingRedoing||this.Wd(),n.isModified=!0}}finally{n.aa=!0}}}}},Ls.prototype.refreshDataBoundLinks=function(){var e=this,t=this.diagram.model,n=new ut,r=t.linkDataArray;r.forEach(function(o){n.add(o)});var i=[];this.links.each(function(o){o.data===null||n.contains(o.data)||i.push(o.data)}),i.forEach(function(o){Gb(t,o,!1)}),r.forEach(function(o){e.Kc(o)===null&&zb(t,o,!1)})},Ls.prototype.updateRelationshipsFromData=function(e){var t=e.data;if(t!==null){var n=e.diagram;if(n!==null){var r=n.model;if(e instanceof cn){var i=Tl(r,t,!0);if(i=n.Vb(i),e.fromNode=i,i=Tl(r,t,!1),i=n.Vb(i),e.toNode=i,t=r.Ef(t),0<t.length||0<e.labelNodes.count){if(t.length===1&&e.labelNodes.count===1){i=t[0];var o=e.labelNodes.first();if(r.wa(o.data)===i)return}i=new ut().addAll(t);var a=new ut;e.labelNodes.each(function(p){p.data!==null&&(p=r.wa(p.data),p!==void 0&&a.add(p))}),t=a.copy(),t.hp(i),i=i.copy(),i.hp(a),(0<t.count||0<i.count)&&(t.each(function(p){p=n.Vb(p),p!==null&&p.labeledLink===e&&(p.labeledLink=null)}),i.each(function(p){p=n.Vb(p),p!==null&&p.labeledLink!==e&&(p.labeledLink=e)}))}}else!(e instanceof qr)&&(t=r.lh(t),t=n.findPartForKey(t),t===null||t instanceof lr)&&(e.containingGroup=t)}}},Ls.prototype.resolveReferencesForData=function(e){var t=this.diagram.model,n=t.wa(e);if(n!==void 0){var r=Gp(t,n),i=this.Lc(e);if(r!==null&&i!==null){r=r.iterator;for(var o={};r.next();){var a=r.value;t.lb(a)?i instanceof lr&&t.lh(a)===n&&(a=this.Lc(a),a!==null&&(a.containingGroup=i)):(o.link=this.Kc(a),o.link!==null&&i instanceof En&&(Tl(t,a,!0)===n&&(o.link.fromNode=i),Tl(t,a,!1)===n&&(o.link.toNode=i),a=t.Ef(a),Array.isArray(a)&&a.some(function(p){return function(w){return w===n?(i.labeledLink=p.link,!0):!1}}(o)))),o={link:o.link}}Nu(t,n)}e=t.lh(e),e!==void 0&&(e=this.Vb(e),e instanceof lr&&(i.containingGroup=e))}},Ls.prototype.unresolveReferencesForPart=function(e){var t=this.diagram.model;if(e instanceof En){var n=t.wa(e.data);if(n!==void 0){for(var r=e.linksConnected;r.next();)ku(t,n,r.value.data);if(e.isLinkLabel&&(r=e.labeledLink,r!==null&&ku(t,n,r.data)),e instanceof lr)for(e=e.memberParts;e.next();)r=e.value.data,t.lb(r)&&ku(t,n,r)}}},Ls.prototype.copyPartData=function(e,t){var n=Si.prototype.copyPartData.call(this,e,t);if(e instanceof cn)if(e=e.data,e!==null&&t!==null){var r=t.model;e=r.Jo(e),typeof e=="object"&&e!==null&&(r.fi(e),n=t.Kc(e))}else n!==null&&(t=this.diagram,e!==null&&t!==null&&t.commandHandler!==null&&t.commandHandler.copiesClipboardData&&(t=t.model.Jo(e),typeof t=="object"&&t!==null&&(n.data=t)));return n},Ls.prototype.insertLink=function(e,t,n,r){var i=this.diagram,o=i.model,a=i.toolManager.findTool("Linking"),p="";if(e!==null&&(t===null&&(t=e),p=t.portId,p===null&&(p="")),t="",n!==null&&(r===null&&(r=n),t=r.portId,t===null&&(t="")),r=a.archetypeLinkData,r instanceof cn){if(ql(r),o=r.copy(),o!==null)return o.fromNode=e,o.fromPortId=p,o.toNode=n,o.toPortId=t,i.add(o),e=a.archetypeLabelNodeData,e instanceof En&&(ql(e),e=e.copy(),e!==null&&(e.labeledLink=o,i.add(e))),o}else if(r!==null&&(r=o.Jo(r),typeof r=="object"&&r!==null))return e!==null&&Md(o,r,o.wa(e.data),!0),Dd(o,r,p,!0),n!==null&&Md(o,r,o.wa(n.data),!1),Dd(o,r,t,!1),o.fi(r),e=a.archetypeLabelNodeData,e===null||e instanceof En||(e=o.copyNodeData(e),typeof e=="object"&&e!==null&&(o.xf(e),e=o.wa(e),e!==void 0&&o.Bu(r,e))),i.Kc(r);return null},Ls.prototype.findLinkForKey=Ls.prototype.findLinkForKey,Ls.prototype.findPartForKey=Ls.prototype.findPartForKey,Ls.prototype.removeAllModeledParts=Ls.prototype.removeAllModeledParts,Ls.prototype.addModeledParts=Ls.prototype.addModeledParts,Ls.prototype.addAllModeledParts=Ls.prototype.addAllModeledParts,Ls.className="GraphLinksPartManager";function Ul(){Si.apply(this,arguments),this.Sg=null}Tn(Ul,Si);function Em(e,t,n){if(t!==null&&n!==null&&n.kh()===null){var r=e.diagram.toolManager.findTool("Linking"),i=t,o=n;if(e.diagram.isTreePathToChildren||(i=n,o=t),(r===null||!Xr(r,i,o,null,!0))&&(t=e.getLinkCategoryForData(n.data),r=e.findLinkTemplateForCategory(t),r!==null&&(ql(r),r=r.copy(),r!==null))){var a=e.diagram.skipsModelSourceBindings;e.diagram.skipsModelSourceBindings=!0,r.Tf=t,r.ub=n.data,r.fromNode=i,r.toNode=o,e.diagram.add(r),r.ub=null,r.data=n.data,e.diagram.skipsModelSourceBindings=a}}}Ul.prototype.getLinkCategoryForData=function(e){return this.diagram.model.ss(e)},Ul.prototype.setLinkCategoryForData=function(e,t){this.diagram.model.Ms(e,t)},Ul.prototype.setFromNodeForLink=function(e,t,n){var r=this.diagram.model;if(n===void 0&&(n=null),t=t!==null?t.data:null,this.diagram.isTreePathToChildren)r.qe(e.data,r.wa(t));else{var i=this.Sg;this.Sg=e,n!==null&&r.qe(n.data,void 0),r.qe(t,r.wa(e.toNode!==null?e.toNode.data:null)),this.Sg=i}},Ul.prototype.setToNodeForLink=function(e,t,n){var r=this.diagram.model;if(n===void 0&&(n=null),t=t!==null?t.data:null,this.diagram.isTreePathToChildren){var i=this.Sg;this.Sg=e,n!==null&&r.qe(n.data,void 0),r.qe(t,r.wa(e.fromNode!==null?e.fromNode.data:null)),this.Sg=i}else r.qe(e.data,r.wa(t))},Ul.prototype.removeDataForLink=function(e){this.diagram.model.qe(e.data,void 0)},Ul.prototype.findLinkForKey=function(e){return e==null?null:(e=this.diagram.model.hc(e),e!==null?this.bf.I(e):null)},Ul.prototype.doModelChanged=function(e){if(Si.prototype.doModelChanged.call(this,e),this.diagram){var t=this.diagram;if(e.model===t.model){var n=e.change;if(t.aa){t.aa=!1;try{var r=e.modelChange;if(r!==""){if(n===Fi){if(r==="nodeParentKey"){var i=e.object,o=this.Vb(e.newValue),a=this.ii(i);if(this.Sg!==null)o!==null&&(this.Sg.data=i,this.Sg.category=this.getLinkCategoryForData(i));else if(a!==null){var p=a.kh();p!==null?o===null?t.remove(p):t.isTreePathToChildren?p.fromNode=o:p.toNode=o:Em(this,o,a)}}else if(r==="parentLinkCategory"){var w=this.ii(e.object),O=e.newValue;if(w!==null&&typeof O=="string"){var D=w.kh();D!==null&&(D.category=O)}}t.isModified=!0}}else if(n===Fi){var X=e.propertyName;e.object===t.model&&X==="nodeParentKeyProperty"&&(t.undoManager.isUndoingRedoing||this.Wd()),t.isModified=!0}}finally{t.aa=!0}}}}},Ul.prototype.updateRelationshipsFromData=function(e){var t=e.data;if(t!==null){var n=e.diagram;if(n!==null){var r=n.model;e instanceof En&&(t=r.mh(t),t=n.Vb(t),r=e.pg(),t!==r&&(r=e.kh(),t!==null?r!==null?n.isTreePathToChildren?r.fromNode=t:r.toNode=t:Em(this,t,e):r!==null&&np(n,r,!1)))}}},Ul.prototype.updateDataBindings=function(e,t){Si.prototype.updateDataBindings.call(this,e,t),typeof t=="string"&&this.Lc(e)!==null&&(e=this.Kc(e),e!==null&&e.La(t))},Ul.prototype.resolveReferencesForData=function(e){var t=this.diagram.model,n=t.wa(e);if(n!==void 0){var r=Gp(t,n),i=this.Lc(e);if(r!==null&&i!==null){for(r=r.iterator;r.next();){var o=r.value;t.lb(o)&&i instanceof En&&t.mh(o)===n&&Em(this,i,this.ii(o))}Nu(t,n)}e=t.mh(e),e!==void 0&&i instanceof En&&(e=this.Vb(e),Em(this,e,i))}},Ul.prototype.unresolveReferencesForPart=function(e){var t=this.diagram.model;if(e instanceof En){var n=t.wa(e.data),r=this.Kc(e.data);if(r!==null){r.isSelected=!1,r.isHighlighted=!1;var i=r.layer;if(i!==null){var o=i.pc(-1,r,!1);0<=o&&this.diagram.cb(Lo,"parts",i,r,null,o,null),o=r.layerChanged,o!==null&&o(r,i,null)}}for(r=this.diagram.isTreePathToChildren,e=e.linksConnected;e.next();)i=e.value,i=(r?i.toNode:i.fromNode).data,t.lb(i)&&ku(t,n,i)}},Ul.prototype.insertLink=function(e,t,n){t=this.diagram.model;var r=e,i=n;return this.diagram.isTreePathToChildren||(r=n,i=e),r!==null&&i!==null?(t.qe(i.data,t.wa(r.data)),i.kh()):null},Ul.prototype.findLinkForKey=Ul.prototype.findLinkForKey,Ul.className="TreePartManager";function Pn(e,t){this.kl=new ut,this.il=new ut,this.Wv=`,
"insertedNodeKeys": `,this.jy=`,
"modifiedNodeData": `,this.Yv=`,
"removedNodeKeys": `,this.vh=null,Ge(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new nn,this.Th="key",this.Bk=this.bl=null,this.Jm=this.Km=!1,this.Mm=!0,this.xm=null,this.lj="category",this.Vf=new nn,this.Lt=new tn,this.Wg=!1,this.o=null,this.undoManager=new ro,e!==void 0&&(or(e)?this.nodeDataArray=e:t=e),t&&(Object.assign(this,t),e=t.Changed)&&(delete this.Changed,this.Pe(e))}Pn.prototype.cloneProtected=function(e){e.xa=this.xa,e.Sm=this.Sm,e.Gg=this.Gg,e.Th=this.Th,e.bl=this.bl,e.Bk=this.Bk,e.Km=this.Km,e.Jm=this.Jm,e.Mm=this.Mm,e.xm=this.xm,e.lj=this.lj},Pn.prototype.copy=function(){var e=new this.constructor;return this.cloneProtected(e),e},Pn.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},Pn.prototype.toString=function(e){if(e===void 0&&(e=0),1<e)return this.np();var t=(this.name!==""?this.name:"")+" Model";if(0<e){t+=`
node data:`,e=this.nodeDataArray;for(var n=e.length,r=0;r<n;r++){var i=e[r];t+=" "+this.wa(i)+":"+Di(i)}}return t},Pn.prototype.xA=function(e){e.change!==Gs&&Lt("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+e.toString());var t=e.object;return e.isTransactionFinished&&t instanceof Go?(Lb(this,t),e=this.Qv(t,e.propertyName==="FinishedUndo"),this.vh=null,e):null},Pn.prototype.Qv=function(e,t){var n=this,r=!1,i=new ut,o=new ut,a=new ut,p=this.vh;e.changes.each(function(X){X.model===n&&(X.modelChange==="nodeDataArray"?X.change===xo?i.add(X.newValue):X.change===Lo&&a.add(X.oldValue):n.lb(X.object)?o.add(X.object):X.change!==Fi||n.modelData!==X.object&&X.propertyName!=="modelData"?X.object!==null&&(p&&p.contains(X.object)?p.get(X.object).each(function(re){n.lb(re)&&o.add(re)}):X.object instanceof Pn||n.ri()&&n.Jc(X.object)||Mb(n,X.object).each(function(re){o.add(re)})):r=!0)});var w=this.il;w.clear(),i.each(function(X){w.add(n.wa(X)),t||o.add(X)});var O=this.kl;O.clear(),a.each(function(X){O.add(n.wa(X)),t&&o.add(X)}),e=n.cloneDeep(o.Fa());var D=null;return r&&(D===null&&(D={}),D.modelData=this.cloneDeep(this.modelData)),0<w.count&&(D===null&&(D={}),t?D.removedNodeKeys=w.Fa():D.insertedNodeKeys=w.Fa()),0<e.length&&(D===null&&(D={}),D.modifiedNodeData=e),0<O.count&&(D===null&&(D={}),t?D.insertedNodeKeys=O.Fa():D.removedNodeKeys=O.Fa()),O.clear(),w.clear(),D},Pn.prototype.cloneDeep=function(e){return Ld(this,e,!0)};function Ld(e,t,n,r,i,o){function a(X,re){p?(X.__gohashid===void 0&&o.push(X),r.set(X,re)):(X=dt++,r.set(X,re),i.set(X,t))}if(!bn(t))return t;o||(o=[]);var p=Object.isExtensible(t);if(r||(r=new nn),p){var w=r.get(t);if(w)return w}else for(i||(i=new nn),w=i.iterator;w.next();){var O=w.key;if(w.value===t&&(O=r.get(O)))return O}if(Array.isArray(t)){w=[],a(t,w);for(var D=0;D<t.length;D++)w.push(Ld(e,t[D],!1,r,i,o))}else if(t instanceof Ue||t instanceof Yt||t instanceof Nt||t instanceof Wn||t instanceof Nn)w=t.copy(),a(t,w);else{if(t instanceof yi||t instanceof un||t instanceof hn)return t;if(t instanceof tn)w=new tn().addAll(Ld(e,t.Fa(),!1,r,i,o)),a(t,w);else if(t instanceof ut)w=new ut().addAll(Ld(e,t.Fa(),!1,r,i,o)),a(t,w);else if(t instanceof nn)w=new nn().addAll(Ld(e,t.Fa(),!1,r,i,o)),a(t,w);else if(t instanceof Date)w=new Date(t.getTime()),a(t,w);else if(t instanceof RegExp)w=new RegExp(t),a(t,w),w.lastIndex=t.lastIndex;else if(typeof t.copy=="function")w=t.copy(),a(t,w);else for(D in w={},a(t,w),t)D!=="__gohashid"&&(w[D]=Ld(e,t[D],!1,r,i,o))}return n&&o.forEach(function(X){delete X.__gohashid}),w}ye=Pn.prototype,ye.quote=function(e){return JSON.stringify(e).replace(/[\u007F-\uFFFF]/g,function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).substr(-4)})},ye.rm=function(){var e="";return this.name!==""&&(e+=`,
"name": `+this.quote(this.name)),this.dataFormat!==""&&(e+=`,
"dataFormat": `+this.quote(this.dataFormat)),this.isReadOnly&&(e+=`,
"isReadOnly": `+this.isReadOnly),this.nodeKeyProperty!=="key"&&typeof this.nodeKeyProperty=="string"&&(e+=`,
"nodeKeyProperty": `+this.quote(this.nodeKeyProperty)),this.copiesArrays&&(e+=`,
"copiesArrays": true`),this.copiesArrayObjects&&(e+=`,
"copiesArrayObjects": true`),this.copiesKey||(e+=`,
"copiesKey": false`),this.nodeCategoryProperty!=="category"&&typeof this.nodeCategoryProperty=="string"&&(e+=`,
"nodeCategoryProperty": `+this.quote(this.nodeCategoryProperty)),e},ye.gp=function(e){e.name&&(this.name=e.name),e.dataFormat&&(this.dataFormat=e.dataFormat),e.isReadOnly&&(this.isReadOnly=!0),e.nodeKeyProperty&&(this.nodeKeyProperty=e.nodeKeyProperty),e.copiesArrays&&(this.copiesArrays=!0),e.copiesArrayObjects&&(this.copiesArrayObjects=!0),e.copiesKey===!1&&(this.copiesKey=!1),e.nodeCategoryProperty&&(this.nodeCategoryProperty=e.nodeCategoryProperty)};function Ob(e,t){t=t.modelData,bn(t)&&(e.dm(t),e.modelData=t)}ye.Rv=function(){var e=this.modelData,t=!1,n;for(n in e)if(!Db(n,e[n])){t=!0;break}return e="",t&&(e=`,
"modelData": `+xy(this,this.modelData)),e+`,
"nodeDataArray": `+kh(this,this.nodeDataArray,!0)},ye.kv=function(e){Ob(this,e),e=e.nodeDataArray,or(e)&&(this.dm(e),this.nodeDataArray=e)};function Lb(e,t){function n(i,o){if((o=o.part)&&(o=o.data,i!==o)){var a=r.get(i);a===null?(a=new ut,a.add(o),r.add(i,a)):a.add(o)}}var r=e.vh;r===null&&(r=new nn,t.changes.each(function(i){if(i.diagram!==null){var o=i.change;o===Fi?(i=i.object.panel)&&(o=i.data)&&n(o,i):(o===xo||o===Lo)&&(i=i.object,(o=i.itemArray)&&n(o,i))}}),e.vh=r)}function Mb(e,t){for(var n=new ut,r=0;r<e.nodeDataArray.length;r++){var i=e.nodeDataArray[r];wm(e,t,i,i,n)}return n}function wm(e,t,n,r,i){if(Array.isArray(n))for(var o=0;o<n.length;o++){var a=n[o];if(a===t)return i.add(r),!0;if(wm(e,t,a,r,i))return!0}else if(bn(n)&&Object.getPrototypeOf(n)===Object.prototype)for(o in n){if(a=n[o],a===t)return i.add(r),!0;if(wm(e,t,a,r,i))return!0}return!1}ye.Pv=function(e,t){var n=this,r=!1,i=new ut,o=new ut,a=new ut,p=this.vh;e.changes.each(function(D){D.model===n&&(D.modelChange==="nodeDataArray"?D.change===xo?i.add(D.newValue):D.change===Lo&&a.add(D.oldValue):n.lb(D.object)?o.add(D.object):D.change!==Fi||n.modelData!==D.object&&D.propertyName!=="modelData"?D.object!==null&&(p&&p.contains(D.object)?p.get(D.object).each(function(X){n.lb(X)&&o.add(X)}):D.object instanceof Pn||n.ri()&&n.Jc(D.object)||Mb(n,D.object).each(function(X){o.add(X)})):r=!0)});var w=this.il;w.clear(),i.each(function(D){w.add(n.wa(D)),t||o.add(D)});var O=this.kl;return O.clear(),a.each(function(D){O.add(n.wa(D)),t&&o.add(D)}),e="",r&&(e+=`,
"modelData": `+xy(this,this.modelData)),0<w.count&&(e+=(t?this.Yv:this.Wv)+kh(this,w.Fa(),!0)),0<o.count&&(e+=this.jy+kh(this,o.Fa(),!0)),0<O.count&&(e+=(t?this.Wv:this.Yv)+kh(this,O.Fa(),!0)),O.clear(),w.clear(),e},ye.fp=function(e){(e.name!==void 0&&e.name!==this.name||e.dataFormat!==void 0&&e.dataFormat!==this.dataFormat||e.isReadOnly!==void 0&&e.isReadOnly!==this.isReadOnly||e.nodeKeyProperty!==void 0&&e.nodeKeyProperty!==this.nodeKeyProperty||e.copiesArrays!==void 0&&e.copiesArrays!==this.copiesArrays||e.copiesArrayObjects!==void 0&&e.copiesArrayObjects!==this.copiesArrayObjects||e.copiesKey!==void 0&&e.copiesKey!==this.copiesKey||e.nodeCategoryProperty!==void 0&&e.nodeCategoryProperty!==this.nodeCategoryProperty)&&Lt("applyIncrementalJson cannot change Model properties"),Ob(this,e);var t=e.insertedNodeKeys,n=e.modifiedNodeData,r=new nn;if(Array.isArray(n))for(var i=0;i<n.length;i++){var o=n[i],a=this.wa(o);a!=null&&r.set(a,o)}if(Array.isArray(t))for(i=t.length,o=0;o<i;o++){a=t[o];var p=this.hc(a);p===null&&(p=(p=r.get(a))?p:this.copyNodeData({}),this.km(p,a),this.xf(p))}if(Array.isArray(n)){for(t=n.length,r=0;r<t;r++)if(i=n[r],o=this.wa(i),o=this.hc(o),o!==null){for(var w in i)w==="__gohashid"||w===this.nodeKeyProperty||this.Wj()&&w===this.nodeIsGroupProperty||this.setDataProperty(o,w,i[w]);this.lm(i,o)}}if(e=e.removedNodeKeys,Array.isArray(e))for(n=e.length,w=0;w<n;w++)t=this.hc(e[w]),t!==null&&this.cm(t)},ye.$x=function(e,t){e.change!==Gs&&Lt("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+e.toString());var n=e.object;return e.isTransactionFinished&&n instanceof Go?(t===void 0&&(t=Wp(this,this)),Lb(this,n),e=this.Pv(n,e.propertyName==="FinishedUndo"),this.vh=null,t==="2"?'{ "incremental": 2'+e+"}":'{ "class": '+this.quote(t)+', "incremental": 1'+this.rm()+e+"}"):'{ "incremental": 0 }'},ye.yA=function(e,t){return this.$x(e,t)},ye.np=function(e){return e===void 0&&(e=Wp(this,this)),'{ "class": '+this.quote(e)+this.rm()+this.Rv()+"}"},ye.toJSON=function(e){return this.np(e)},ye.Zw=function(e){var t=null;if(typeof e=="string")try{t=vn.JSON.parse(e)}catch(r){}else typeof e=="object"?t=e:Lt("Unable to modify a Model from: "+e);var n=t.incremental;typeof n!="number"&&Lt("Unable to apply non-incremental changes to Model: "+e),n!==0&&(this.Ea("applyIncrementalJson"),this.fp(t),this.eb("applyIncrementalJson"))},ye.Ky=function(e){return this.Zw(e)},Pn.constructGraphLinksModel=function(){return new Pn},ye=Pn.prototype,ye.dm=function(e){if(or(e))for(var t=e.length,n=0;n<t;n++){var r=e[n];if(bn(r)){var i=n;r=this.dm(r),Array.isArray(e)?e[i]=r:Lt("Cannot replace an object in an HTMLCollection or NodeList at "+i)}}else if(bn(e)){for(t in e)if(n=e[t],bn(n)&&(n=this.dm(n),e[t]=n,t==="points"&&Array.isArray(n))){for(i=n.length%2===0,r=0;r<n.length;r++)if(typeof n[r]!="number"){i=!1;break}if(i){for(i=new tn,r=0;r<n.length/2;r++)i.add(new Ue(n[2*r],n[2*r+1]));i.freeze(),e[t]=i}}return $1(e)}return e},ye.sm=function(e){return e===void 0?"undefined":e===null?"null":e===!0?"true":e===!1?"false":typeof e=="string"?this.quote(e):typeof e=="number"?e===1/0?"9e9999":e===-1/0?"-9e9999":isNaN(e)?'{"class":"NaN"}':e.toString():e instanceof Date?'{"class":"Date", "value":"'+e.toJSON()+'"}':e instanceof Number?this.sm(e.valueOf()):or(e)?kh(this,e):bn(e)?xy(this,e):typeof e=="function"?"null":e.toString()};function kh(e,t,n){n===void 0&&(n=!1);var r=t.length;if(0>=r)return"[]";var i=new cs;i.add("["),n&&1<r&&i.add(`
`);for(var o=0;o<r;o++){var a=t[o];a!==void 0&&(0<o&&(i.add(","),n&&i.add(`
`)),i.add(e.sm(a)))}return n&&1<r&&i.add(`
`),i.add("]"),i.toString()}function Db(e,t){return t===void 0||e==="__gohashid"||e[0]==="_"||typeof t=="function"}function ka(e){return isNaN(e)?"NaN":e===1/0?"9e9999":e===-1/0?"-9e9999":e}function xy(e,t){var n=t;if(n instanceof Ue)t={class:"go.Point",x:ka(n.x),y:ka(n.y)};else if(n instanceof Yt)t={class:"go.Size",width:ka(n.width),height:ka(n.height)};else if(n instanceof Nt)t={class:"go.Rect",x:ka(n.x),y:ka(n.y),width:ka(n.width),height:ka(n.height)};else if(n instanceof Wn)t={class:"go.Margin",top:ka(n.top),right:ka(n.right),bottom:ka(n.bottom),left:ka(n.left)};else if(n instanceof Nn)n.sb()?t={class:"go.Spot",x:ka(n.x),y:ka(n.y),offsetX:ka(n.offsetX),offsetY:ka(n.offsetY)}:t={class:"go.Spot",enum:n.toString()};else if(n instanceof yi){if(t={class:"go.Brush",type:n.type.name},n.type===Xc?t.color=n.color:(n.type===Rc||n.type===Bl)&&(t.start=n.start,t.end=n.end,n.type===Bl&&(n.startRadius!==0&&(t.startRadius=ka(n.startRadius)),isNaN(n.endRadius)||(t.endRadius=ka(n.endRadius)))),n.colorStops!==null){var r={};for(n=n.colorStops.iterator;n.next();)r[n.key]=n.value;t.colorStops=r}}else n instanceof un?(t={class:"go.Geometry",type:n.type.name},n.startX!==0&&(t.startX=ka(n.startX)),n.startY!==0&&(t.startY=ka(n.startY)),n.endX!==0&&(t.endX=ka(n.endX)),n.endY!==0&&(t.endY=ka(n.endY)),n.spot1.D(No)||(t.spot1=n.spot1),n.spot2.D(ks)||(t.spot2=n.spot2),n.type===un.o&&(t.path=un.ia(n))):n instanceof hn&&(t={class:"go.EnumValue",classType:Wp(e,n.classType),name:n.name});r="{",n=!0;for(var i in t){var o=$o(t,i);if(!Db(i,o))if(n?n=!1:r+=",",r+=e.quote(i)+":",i==="points"&&o instanceof tn){var a="[";for(o=o.iterator;o.next();){var p=o.value;1<a.length&&(a+=","),a+=e.sm(p.x),a+=",",a+=e.sm(p.y)}a+="]",r+=a}else r+=e.sm(o)}return r+"}"}function Na(e){return typeof e=="number"?e:e==="NaN"?NaN:e==="9e9999"?1/0:e==="-9e9999"?-1/0:parseFloat(e)}function $1(e){if(typeof e!="object")return e;var t=e.class||"";if(t==="NaN")return NaN;if(t==="Date")return new Date(e.value);if(t.indexOf("go.")!==0)return e;t=t.substr(3);var n=e;if(t==="Point")n=new Ue(Na(e.x),Na(e.y));else if(t==="Size")n=new Yt(Na(e.width),Na(e.height));else if(t==="Rect")n=new Nt(Na(e.x),Na(e.y),Na(e.width),Na(e.height));else if(t==="Margin")n=new Wn(Na(e.top),Na(e.right),Na(e.bottom),Na(e.left));else if(t==="Spot")typeof e.enum=="string"?n=Uu(e.enum):n=new Nn(Na(e.x),Na(e.y),Na(e.offsetX),Na(e.offsetY));else if(t==="Brush"){if(n=new yi,n.type=us(yi,e.type),typeof e.color=="string"&&(n.color=e.color),e.start instanceof Nn&&(n.start=e.start),e.end instanceof Nn&&(n.end=e.end),typeof e.startRadius=="number"&&(n.startRadius=Na(e.startRadius)),typeof e.endRadius=="number"&&(n.endRadius=Na(e.endRadius)),e=e.colorStops,bn(e))for(var r in e)n.addColorStop(parseFloat(r),e[r])}else t==="Geometry"?(n=null,typeof e.path=="string"?n=un.parse(e.path):n=new un,n.type=us(un,e.type),typeof e.startX=="number"&&(n.startX=Na(e.startX)),typeof e.startY=="number"&&(n.startY=Na(e.startY)),typeof e.endX=="number"&&(n.endX=Na(e.endX)),typeof e.endY=="number"&&(n.endY=Na(e.endY)),e.spot1 instanceof Nn&&(n.spot1=e.spot1),e.spot2 instanceof Nn&&(n.spot2=e.spot2)):t==="EnumValue"&&(r=e.classType,r.indexOf("go.")===0&&(r=r.substr(3)),r=wy(r),typeof r=="function"&&(n=us(r,e.name)));return n}ye.Pe=function(e){return this.Lt.add(e),this},ye.ik=function(e){this.Lt.remove(e)},ye.ds=function(e){this.skipsUndoManager||this.undoManager.Tu(e);for(var t=this.Lt,n=t.length,r=0;r<n;r++)t.M(r)(e)},ye.cb=function(e,t,n,r,i,o,a){vs(this,"",e,t,n,r,i,o,a)},ye.g=function(e,t,n,r,i){vs(this,"",Fi,e,this,t,n,r,i)},ye.Fs=function(e,t,n,r,i,o){vs(this,"",Fi,t,e,n,r,i,o)};function vs(e,t,n,r,i,o,a,p,w){p===void 0&&(p=null),w===void 0&&(w=null);var O=new Qi;O.model=e,O.change=n,O.modelChange=t,O.propertyName=r,O.object=i,O.oldValue=o,O.oldParam=p,O.newValue=a,O.newParam=w,e.ds(O)}Pn.prototype.changeState=function(e,t){if(e!==null&&e.model===this)if(e.change===Fi){var n=e.object,r=e.propertyName,i=e.I(t);r===this.nodeKeyProperty&&this.lb(n)&&(t=e.I(!t),t!==void 0&&this.kb.remove(t),i!==void 0&&this.kb.add(i,n)),oo(n,r,i)}else e.change===xo?(n=e.newParam,e.modelChange==="nodeDataArray"?(e=e.newValue,bn(e)&&typeof n=="number"&&(r=this.wa(e),t?(this.Tc[n]===e&&ki(this.Tc,n),r!==void 0&&this.kb.remove(r)):(this.Tc[n]!==e&&Co(this.Tc,n,e),r!==void 0&&this.kb.add(r,e)))):e.modelChange===""?((r=e.object)&&!or(r)&&e.propertyName&&(r=$o(e.object,e.propertyName)),or(r)&&typeof n=="number"&&(e=e.newValue,t?ki(r,n):Co(r,n,e))):Lt("unknown ChangedEvent.Insert modelChange: "+e.toString())):e.change===Lo?(n=e.oldParam,e.modelChange==="nodeDataArray"?(e=e.oldValue,bn(e)&&typeof n=="number"&&(r=this.wa(e),t?(this.Tc[n]!==e&&Co(this.Tc,n,e),r!==void 0&&this.kb.add(r,e)):(this.Tc[n]===e&&ki(this.Tc,n),r!==void 0&&this.kb.remove(r)))):e.modelChange===""?((r=e.object)&&!or(r)&&e.propertyName&&(r=$o(e.object,e.propertyName)),or(r)&&typeof n=="number"&&(e=e.oldValue,t?Co(r,n,e):ki(r,n))):Lt("unknown ChangedEvent.Remove modelChange: "+e.toString())):e.change!==Gs&&Lt("unknown ChangedEvent: "+e.toString())},Pn.prototype.Ea=function(e){return this.undoManager.Ea(e)},Pn.prototype.eb=function(e){return this.undoManager.eb(e)},Pn.prototype.Kf=function(){return this.undoManager.Kf()},Pn.prototype.commit=function(e,t){t===void 0&&(t="");var n=this.skipsUndoManager;t===null&&(this.skipsUndoManager=!0,t=""),this.undoManager.Ea(t);var r=!1;try{e(this),r=!0}finally{r?this.undoManager.eb(t):this.undoManager.Kf(),this.skipsUndoManager=n}},ye=Pn.prototype,ye.La=function(e,t){t===void 0&&(t=""),vs(this,"SourceChanged",Gs,t,e,null,null)},ye.wa=function(e){if(e!==null){var t=this.Th;if(t!==""&&(t=$o(e,t),t!==void 0)){if(Nh(t))return t;Lt("Key value for node data "+e+" is not a number or a string: "+t)}}},ye.km=function(e,t){if(e!==null){var n=this.Th;if(n!=="")if(this.lb(e)){var r=$o(e,n);r!==t&&this.hc(t)===null&&(oo(e,n,t),r!==void 0&&this.kb.remove(r),this.kb.add(t,e),vs(this,"nodeKey",Fi,n,e,r,t),typeof n=="string"&&this.La(e,n),this.jp(r,t))}else oo(e,n,t)}};function Nh(e){return typeof e=="number"||typeof e=="string"}ye.lb=function(e){var t=this.wa(e);return t===void 0?!1:this.kb.I(t)===e},ye.hc=function(e){return e===null&&Lt("Model.findNodeDataForKey:key must not be null"),e!==void 0&&Nh(e)?this.kb.I(e):null},ye.$u=function(e){if(e!==null){var t=this.Th;if(t!==""){var n=this.wa(e);if(n===void 0||this.kb.contains(n)){var r=this.bl;if(r!==null&&(n=r(this,e),n!=null&&!this.kb.contains(n))){oo(e,t,n);return}if(typeof n=="string"){for(r=2;this.kb.contains(n+r);)r++;oo(e,t,n+r)}else if(n===void 0||typeof n=="number"){for(n=-this.kb.count-1;this.kb.contains(n);)n--;oo(e,t,n)}}}}},ye.xf=function(e){e!==null&&(an(e),this.lb(e)||Pb(this,e,!0))};function Pb(e,t,n){var r=e.wa(t);(r===void 0||e.kb.I(r)!==t)&&(e.$u(t),r=e.wa(t),r===void 0&&Lt("Model.makeNodeDataKeyUnique failed on "+t+". Data not added to Model."),e.kb.add(r,t),r=null,n&&(r=e.Tc.length,Co(e.Tc,r,t)),vs(e,"nodeDataArray",xo,"nodeDataArray",e,null,t,null,r),e.fm(t),e.em(t))}ye.Fy=function(e){if(or(e))for(var t=e.length,n=0;n<t;n++)this.xf(e[n]);else for(e=e.iterator;e.next();)this.xf(e.value)},ye.cm=function(e){e!==null&&Fb(this,e,!0)};function Fb(e,t,n){var r=e.wa(t);if(r!==void 0&&e.kb.remove(r),r=null,n){e:if(n=e.Tc,Array.isArray(n))r=n.indexOf(t);else{r=n.length;for(var i=0;i<r;i++)if(n[i]===t){r=i;break e}r=-1}if(0>r)return;ki(e.Tc,r)}vs(e,"nodeDataArray",Lo,"nodeDataArray",e,t,null,r,null),e.qp(t)}ye.nA=function(e){if(or(e))for(var t=e.length,n=0;n<t;n++)this.cm(e[n]);else for(e=e.iterator;e.next();)this.cm(e.value)},ye.$z=function(e){if(e!==this.nodeDataArray&&or(e)){var t=this.kl;t.clear(),t.addAll(this.kb.iteratorKeys);var n=this.il;n.clear();for(var r=e.length,i=0;i<r;i++){var o=e[i],a=this.wa(o);if(a!==void 0){n.add(a);var p=this.hc(a);p!==o&&(p!==null?(this.Do(p,o),this.lm(o,p)):(o=this.cloneDeep(o),this.km(o,a),this.xf(o)))}else a=this.cloneDeep(o),this.xf(a),n.add(this.wa(a))}for(e=t.iterator;e.next();)r=e.value,n.contains(r)||(r=this.hc(r))&&this.cm(r);t.clear(),n.clear()}},ye.jp=function(e,t){t!==void 0&&(e=Gp(this,e),e instanceof ut&&this.Vf.add(t,e))},ye.Lv=function(){},ye.fm=function(){},ye.em=function(){},ye.qp=function(){};function ku(e,t,n){if(t!==void 0){var r=e.Vf.I(t);r===null&&(r=new ut,e.Vf.add(t,r)),r.add(n)}}function Nu(e,t,n){if(t!==void 0){var r=e.Vf.I(t);r instanceof ut&&(n==null?e.Vf.remove(t):(r.remove(n),r.count===0&&e.Vf.remove(t)))}}function Gp(e,t){return t===void 0?null:(e=e.Vf.I(t),e instanceof ut?e:null)}ye.Qy=function(e){e===void 0?this.Vf.clear():this.Vf.remove(e)},Pn.prototype.copyNodeData=function(e){if(e===null)return null;var t=this.Bk;return e=t!==null?t(e,this):Cm(this,e,!0),bn(e)&&Ge(e),e};function Cm(e,t,n){if(e.copiesArrays&&Array.isArray(t)){var r=[];for(n=0;n<t.length;n++){var i=Cm(e,t[n],e.copiesArrayObjects);r.push(i)}return Ge(r),r}if(n&&bn(t)){n=(n=t.constructor)?new n:{},i=e.copiesKey||typeof e.nodeKeyProperty!="string"?null:e.nodeKeyProperty;for(r in t)if(r==="__gohashid")n.__gohashid=void 0;else if(r===i)n[i]=void 0;else{var o=$o(t,r),a=Wp(e,o);a==="GraphObject"||a==="Diagram"||a==="Layer"||a==="RowColumnDefinition"||a==="AnimationManager"||a==="Tool"||a==="CommandHandler"||a==="Layout"||a==="InputEvent"||a==="DiagramEvent"||o instanceof Pn||o instanceof ro||o instanceof Go||o instanceof Qi||(o=Cm(e,o,!1)),oo(n,r,o)}return Ge(n),n}return t instanceof Ue||t instanceof Yt||t instanceof Nt||t instanceof Nn||t instanceof Wn?t.copy():t}Pn.prototype.setDataProperty=function(e,t,n){if(this.lb(e)){if(t===this.nodeKeyProperty){this.km(e,n);return}if(t===this.nodeCategoryProperty){this.jm(e,n);return}}else!Bb&&e instanceof gt&&(Bb=!0,zi('Model.setDataProperty is modifying a GraphObject, "'+e.toString()+'"'),zi(" Is that really your intent?"));var r=$o(e,t);r!==n&&(oo(e,t,n),this.Fs(e,t,r,n))},ye=Pn.prototype,ye.set=function(e,t,n){this.setDataProperty(e,t,n)},ye.Do=function(e,t){if(t){var n=this.lb(e),r;for(r in t)r==="__gohashid"||n&&r===this.nodeKeyProperty||this.setDataProperty(e,r,t[r])}},ye.Ay=function(e,t){this.ts(e,-1,t)},ye.ts=function(e,t,n){0>t&&(t=e.length),Co(e,t,n),vs(this,"",xo,"",e,null,n,null,t)},ye.ov=function(e,t){t===void 0&&(t=-1),e===this.Tc&&Lt("Model.removeArrayItem should not be called on the Model.nodeDataArray"),t===-1&&(t=e.length-1);var n=e[t];ki(e,t),vs(this,"",Lo,"",e,n,null,t,null)},ye.Ro=function(e){if(e===null)return"";var t=this.lj;if(t===""||(t=$o(e,t),t===void 0))return"";if(typeof t=="string")return t;Lt("getCategoryForNodeData found a non-string category for "+e+": "+t)},ye.jm=function(e,t){if(e!==null){var n=this.lj;if(n!=="")if(this.lb(e)){var r=$o(e,n);r===void 0&&(r=""),r!==t&&(oo(e,n,t),vs(this,"nodeCategory",Fi,n,e,r,t))}else oo(e,n,t)}},ye.lm=function(e,t){this.jm(t,this.Ro(e))},ye.Tl=function(){return!1},ye.Wj=function(){return!1},ye.ri=function(){return!1},ye.xs=function(){return!1},ye.Xj=function(){return!1};function Ey(){return new Pn}function Wp(e,t){if(typeof t=="function"){if(t.className)return t.className;if(t.name)return t.name}else if(typeof t=="object"&&t!==null&&t.constructor)return Wp(e,t.constructor);return typeof t}function wy(e){return mu[e]?mu[e]:vn.go!==void 0&&vn.go[e]?vn.go[e]:null}function $o(e,t){if(!e||!t)return null;try{if(typeof t=="function")var n=t(e);else typeof e.getAttribute=="function"?(n=e.getAttribute(t),n===null&&(n=void 0)):n=e[t]}catch(r){}return n}function oo(e,t,n){if(e&&t)try{typeof t=="function"?t(e,n):typeof e.setAttribute=="function"?e.setAttribute(t,n):e[t]=n}catch(r){}}kn.Object.defineProperties(Pn.prototype,{name:{get:function(){return this.xa},set:function(e){var t=this.xa;t!==e&&(this.xa=e,this.g("name",t,e))}},dataFormat:{get:function(){return this.Sm},set:function(e){var t=this.Sm;t!==e&&(this.Sm=e,this.g("dataFormat",t,e))}},isReadOnly:{get:function(){return this.Gg},set:function(e){var t=this.Gg;t!==e&&(this.Gg=e,this.g("isReadOnly",t,e))}},modelData:{get:function(){return this.j},set:function(e){var t=this.j;t!==e&&(this.j=e,this.g("modelData",t,e),this.La(e))}},undoManager:{get:function(){return this.o},set:function(e){var t=this.o;t!==e&&(t!==null&&t.Rx(this),this.o=e,e!==null&&e.Xw(this))}},skipsUndoManager:{get:function(){return this.Wg},set:function(e){this.Wg=e}},nodeKeyProperty:{get:function(){return this.Th},set:function(e){var t=this.Th;t!==e&&(e===""&&Lt("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&Lt("Cannot set Model.nodeKeyProperty when there is existing node data"),this.Th=e,this.g("nodeKeyProperty",t,e))}},makeUniqueKeyFunction:{get:function(){return this.bl},set:function(e){var t=this.bl;t!==e&&(this.bl=e,this.g("makeUniqueKeyFunction",t,e))}},nodeDataArray:{get:function(){return this.Tc},set:function(e){var t=this.Tc;if(t!==e){this.kb.clear(),this.Lv();for(var n=e.length,r=0;r<n;r++){var i=e[r];bn(i)||Lt("Model.nodeDataArray must only contain Objects, not: "+i),an(i)}for(this.Tc=e,r=new tn,i=0;i<n;i++){var o=e[i],a=this.wa(o);a===void 0||this.kb.I(a)!==null?r.add(o):this.kb.add(a,o)}for(r=r.iterator;r.next();)i=r.value,this.$u(i),o=this.wa(i),o!==void 0&&this.kb.add(o,i);for(vs(this,"nodeDataArray",Fi,"nodeDataArray",this,t,e),t=0;t<n;t++)r=e[t],this.fm(r),this.em(r);Array.isArray(e)||(this.isReadOnly=!0)}}},copyNodeDataFunction:{get:function(){return this.Bk},set:function(e){var t=this.Bk;t!==e&&(this.Bk=e,this.g("copyNodeDataFunction",t,e))}},copiesArrays:{get:function(){return this.Km},set:function(e){var t=this.Km;t!==e&&(this.Km=e,this.g("copiesArrays",t,e))}},copiesArrayObjects:{get:function(){return this.Jm},set:function(e){var t=this.Jm;t!==e&&(this.Jm=e,this.g("copiesArrayObjects",t,e))}},copiesKey:{get:function(){return this.Mm},set:function(e){var t=this.Mm;t!==e&&(this.Mm=e,this.g("copiesKey",t,e))}},afterCopyFunction:{get:function(){return this.xm},set:function(e){var t=this.xm;t!==e&&(this.xm=e,this.g("afterCopyFunction",t,e))}},nodeCategoryProperty:{get:function(){return this.lj},set:function(e){var t=this.lj;t!==e&&(this.lj=e,this.g("nodeCategoryProperty",t,e))}},type:{get:function(){return"Model"}}}),Pn.prototype.setCategoryForNodeData=Pn.prototype.jm,Pn.prototype.getCategoryForNodeData=Pn.prototype.Ro,Pn.prototype.removeArrayItem=Pn.prototype.ov,Pn.prototype.insertArrayItem=Pn.prototype.ts,Pn.prototype.addArrayItem=Pn.prototype.Ay,Pn.prototype.assignAllDataProperties=Pn.prototype.Do,Pn.prototype.set=Pn.prototype.set,Pn.prototype.clearUnresolvedReferences=Pn.prototype.Qy,Pn.prototype.mergeNodeDataArray=Pn.prototype.$z,Pn.prototype.removeNodeDataCollection=Pn.prototype.nA,Pn.prototype.removeNodeData=Pn.prototype.cm,Pn.prototype.addNodeDataCollection=Pn.prototype.Fy,Pn.prototype.addNodeData=Pn.prototype.xf,Pn.prototype.makeNodeDataKeyUnique=Pn.prototype.$u,Pn.prototype.findNodeDataForKey=Pn.prototype.hc,Pn.prototype.containsNodeData=Pn.prototype.lb,Pn.prototype.setKeyForNodeData=Pn.prototype.km,Pn.prototype.getKeyForNodeData=Pn.prototype.wa,Pn.prototype.updateTargetBindings=Pn.prototype.La,Pn.prototype.commit=Pn.prototype.commit,Pn.prototype.rollbackTransaction=Pn.prototype.Kf,Pn.prototype.commitTransaction=Pn.prototype.eb,Pn.prototype.startTransaction=Pn.prototype.Ea,Pn.prototype.raiseDataChanged=Pn.prototype.Fs,Pn.prototype.raiseChanged=Pn.prototype.g,Pn.prototype.raiseChangedEvent=Pn.prototype.cb,Pn.prototype.removeChangedListener=Pn.prototype.ik,Pn.prototype.addChangedListener=Pn.prototype.Pe,Pn.prototype.writeJsonValue=Pn.prototype.sm,Pn.prototype.replaceJsonObjects=Pn.prototype.dm,Pn.prototype.applyIncrementalJSON=Pn.prototype.Ky,Pn.prototype.applyIncrementalJson=Pn.prototype.Zw,Pn.prototype.toJSON=Pn.prototype.toJSON,Pn.prototype.toJson=Pn.prototype.np,Pn.prototype.toIncrementalJSON=Pn.prototype.yA,Pn.prototype.toIncrementalJson=Pn.prototype.$x,Pn.prototype.toIncrementalData=Pn.prototype.xA,Pn.prototype.clear=Pn.prototype.clear;var Bb=!1,mu={};Pn.className="Model",Pn.fromJSON=Pn.fromJson=function(e,t){t===void 0&&(t=null);var n=null;if(typeof e=="string")try{n=vn.JSON.parse(e)}catch(o){}else typeof e=="object"?n=e:Lt("Unable to construct a Model from: "+e);if(t===null){e=null;var r=n.class;if(typeof r=="string")try{var i=null;r.indexOf("go.")===0?(r=r.substr(3),i=wy(r)):(i=wy(r),i===null&&(i=vn[r])),typeof i=="function"&&(e=new i)}catch(o){}e===null||e instanceof Pn?t=e:Lt("Unable to construct a Model of declared class: "+n.class)}return t===null&&(t=Pn.constructGraphLinksModel()),t.gp(n),t.kv(n),t},Pn.safePropertyValue=$o,Pn.safePropertySet=oo,mu.Brush=yi,mu.ChangedEvent=Qi,mu.Geometry=un,mu.Margin=Wn,mu.Panel=qt,mu.Point=Ue,mu.Rect=Nt,mu.Size=Yt,mu.Spot=Nn,mu.Transaction=Go,mu.UndoManager=ro;function qo(e,t,n,r){Ge(this),this._isFrozen=!1,e===void 0&&(e=""),t===void 0&&(t=e),n===void 0&&(n=null),this.j=-1,this.xd=null,this.xl=e,this.wl=this.to=0,this.Cr=null,this.wn=!1,this.sl=t,this.Im=n,r===void 0?(this.el=Ub,this.wk=null):(this.el=Vp,this.wk=r),this.st=new ut}qo.prototype.copy=function(){var e=new qo;return e.xl=this.xl,e.to=this.to,e.wl=this.wl,e.Cr=this.Cr,e.wn=this.wn,e.sl=this.sl,e.Im=this.Im,e.el=this.el,e.wk=this.wk,e},ye=qo.prototype,ye.qb=function(e){e.classType===qo&&(this.mode=e)},ye.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},ye.freeze=function(){return this._isFrozen=!0,this},ye.ka=function(){return this._isFrozen=!1,this},ye.Kx=function(e){return e===void 0&&(e=null),this.mode=Vp,this.backConverter=e,this},ye.cp=function(e){return e===void 0&&(e=""),this.sourceName=e,this.isToModel=!1,this},ye.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function jb(e,t,n){return e=e.sourceName,e===null||e===""?t:e==="/"?n.part:e==="."?n:e===".."?n.panel:t.fb(e)}ye.Mv=function(e,t,n){var r=this.sl;if(n===void 0||r===""||r===n){n=this.xl;var i=this.Im;if(i===null&&n==="")zi("Binding error: target property is the empty string: "+this.toString());else{var o=t;if(r!==""&&(o=$o(t,r)),o!==void 0)if(i===null)n!==""&&oo(e,n,o);else try{if(n!==""){var a=i(o,e);oo(e,n,a)}else i(o,e)}catch(p){}}}},ye.sp=function(e,t,n,r){if(this.el===Vp){var i=this.xl;if(n===void 0||i===n){n=this.sl;var o=this.wk,a=e;if(i!==""&&(a=$o(e,i)),a!==void 0&&!this.st.contains(e))try{this.st.add(e);var p=r!==null?r.diagram:null,w=p!==null?p.model:null;if(o===null){if(n!=="")w!==null?w.setDataProperty(t,n,a):oo(t,n,a);else if(w!==null&&r!==null&&0<=r.itemIndex&&r.panel!==null&&Array.isArray(r.panel.itemArray)){var O=r.itemIndex,D=r.panel.itemArray;w.ov(D,O),w.ts(D,O,a)}}else try{if(n!==""){var X=o(a,t,w);w!==null?w.setDataProperty(t,n,X):oo(t,n,X)}else{var re=o(a,t,w);if(re!==void 0&&w!==null&&r!==null&&0<=r.itemIndex&&r.panel!==null&&Array.isArray(r.panel.itemArray)){var de=r.itemIndex,Se=r.panel.itemArray;w.ov(Se,de),w.ts(Se,de,re)}}}catch(Te){}}finally{this.st.remove(e)}}}},kn.Object.defineProperties(qo.prototype,{Ai:{get:function(){return this.j},set:function(e){this._isFrozen&&Yn(this),this.j=e}},targetProperty:{get:function(){return this.xl},set:function(e){this._isFrozen&&Yn(this),this.xl=e}},sourceName:{get:function(){return this.Cr},set:function(e){this._isFrozen&&Yn(this),this.Cr=e,e!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(e){this._isFrozen&&Yn(this),this.wn=e}},sourceProperty:{get:function(){return this.sl},set:function(e){this._isFrozen&&Yn(this),this.sl=e}},converter:{get:function(){return this.Im},set:function(e){this._isFrozen&&Yn(this),this.Im=e}},backConverter:{get:function(){return this.wk},set:function(e){this._isFrozen&&Yn(this),this.wk=e}},mode:{get:function(){return this.el},set:function(e){this._isFrozen&&Yn(this),this.el=e}}}),qo.prototype.updateSource=qo.prototype.sp,qo.prototype.updateTarget=qo.prototype.Mv,qo.prototype.ofModel=qo.prototype.dA,qo.prototype.ofObject=qo.prototype.cp,qo.prototype.makeTwoWay=qo.prototype.Kx;var X1="Binding",Ub=new hn(qo,"OneWay",1),Vp=new hn(qo,"TwoWay",2);qo.className="Binding",qo.parseEnum=function(e,t){return function(n){return n=us(e,n),n===null?t:n}},qo.toString=Di,qo.OneWay=Ub,qo.TwoWay=Vp;function Gr(e,t,n){Pn.call(this),this.Vv=`,
"insertedLinkKeys": `,this.iy=`,
"modifiedLinkData": `,this.Xv=`,
"removedLinkKeys": `,this.md=[],this.$f=new ut,this.wb=new nn,this.Jh="",this.Ri=this.Ak=this.cl=null,this.lf="from",this.mf="to",this.fj=this.ej="",this.dj="category",this.je="",this.jl="isGroup",this.Je="group",this.Lm=!1,t!==void 0&&(this.linkDataArray=t),e!==void 0&&(or(e)?this.nodeDataArray=e:n=e),n&&(Object.assign(this,n),e=n.Changed)&&(delete this.Changed,this.Pe(e))}Tn(Gr,Pn),Gr.constructGraphLinksModel=Pn.constructGraphLinksModel,Gr.prototype.cloneProtected=function(e){Pn.prototype.cloneProtected.call(this,e),e.Jh=this.Jh,e.cl=this.cl,e.Ak=this.Ak,e.lf=this.lf,e.mf=this.mf,e.ej=this.ej,e.fj=this.fj,e.dj=this.dj,e.je=this.je,e.jl=this.jl,e.Je=this.Je,e.Lm=this.Lm},ye=Gr.prototype,ye.clear=function(){Pn.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},ye.toString=function(e){if(e===void 0&&(e=0),2<=e)return this.np();var t=(this.name!==""?this.name:"")+" GraphLinksModel";if(0<e){t+=`
node data:`,e=this.nodeDataArray;var n=e.length,r;for(r=0;r<n;r++){var i=e[r];t+=" "+this.wa(i)+":"+Di(i)}for(t+=`
link data:`,e=this.linkDataArray,n=e.length,r=0;r<n;r++)i=e[r],t+=" "+Tl(this,i,!0)+"-->"+Tl(this,i,!1)}return t},ye.Qv=function(e,t){this.linkKeyProperty===""&&Lt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var n=Pn.prototype.Qv.call(this,e,t),r=this,i=new ut,o=new ut,a=new ut,p=this.vh;e.changes.each(function(D){D.model===r&&(D.modelChange==="linkDataArray"?D.change===xo?i.add(D.newValue):D.change===Lo&&a.add(D.oldValue):r.Jc(D.object)?o.add(D.object):D.object!==null&&(D.object!==null&&p&&p.contains(D.object)?p.get(D.object).each(function(X){r.Jc(X)&&o.add(X)}):D.object instanceof Pn||r.lb(D.object)||Hb(r,D.object).each(function(X){o.add(X)})))});var w=this.il;w.clear(),i.each(function(D){w.add(r.Ac(D)),t||o.add(D)});var O=this.kl;return O.clear(),a.each(function(D){O.add(r.Ac(D)),t&&o.add(D)}),e=r.cloneDeep(o.Fa()),0<w.count&&(n===null&&(n={}),t?n.removedLinkKeys=w.Fa():n.insertedLinkKeys=w.Fa()),0<e.length&&(n===null&&(n={}),n.modifiedLinkData=e),0<O.count&&(n===null&&(n={}),t?n.insertedLinkKeys=O.Fa():n.removedLinkKeys=O.Fa()),O.clear(),w.clear(),n},ye.rm=function(){var e=Pn.prototype.rm.call(this),t="";return this.linkCategoryProperty!=="category"&&typeof this.linkCategoryProperty=="string"&&(t+=`,
"linkCategoryProperty": `+this.quote(this.linkCategoryProperty)),this.linkKeyProperty!==""&&typeof this.linkKeyProperty=="string"&&(t+=`,
"linkKeyProperty": `+this.quote(this.linkKeyProperty)),this.linkFromKeyProperty!=="from"&&typeof this.linkFromKeyProperty=="string"&&(t+=`,
"linkFromKeyProperty": `+this.quote(this.linkFromKeyProperty)),this.linkToKeyProperty!=="to"&&typeof this.linkToKeyProperty=="string"&&(t+=`,
"linkToKeyProperty": `+this.quote(this.linkToKeyProperty)),this.linkFromPortIdProperty!==""&&typeof this.linkFromPortIdProperty=="string"&&(t+=`,
"linkFromPortIdProperty": `+this.quote(this.linkFromPortIdProperty)),this.linkToPortIdProperty!==""&&typeof this.linkToPortIdProperty=="string"&&(t+=`,
"linkToPortIdProperty": `+this.quote(this.linkToPortIdProperty)),this.linkLabelKeysProperty!==""&&typeof this.linkLabelKeysProperty=="string"&&(t+=`,
"linkLabelKeysProperty": `+this.quote(this.linkLabelKeysProperty)),this.nodeIsGroupProperty!=="isGroup"&&typeof this.nodeIsGroupProperty=="string"&&(t+=`,
"nodeIsGroupProperty": `+this.quote(this.nodeIsGroupProperty)),this.nodeGroupKeyProperty!=="group"&&typeof this.nodeGroupKeyProperty=="string"&&(t+=`,
"nodeGroupKeyProperty": `+this.quote(this.nodeGroupKeyProperty)),e+t},ye.gp=function(e){Pn.prototype.gp.call(this,e),e.linkKeyProperty&&(this.linkKeyProperty=e.linkKeyProperty),e.linkFromKeyProperty&&(this.linkFromKeyProperty=e.linkFromKeyProperty),e.linkToKeyProperty&&(this.linkToKeyProperty=e.linkToKeyProperty),e.linkFromPortIdProperty&&(this.linkFromPortIdProperty=e.linkFromPortIdProperty),e.linkToPortIdProperty&&(this.linkToPortIdProperty=e.linkToPortIdProperty),e.linkCategoryProperty&&(this.linkCategoryProperty=e.linkCategoryProperty),e.linkLabelKeysProperty&&(this.linkLabelKeysProperty=e.linkLabelKeysProperty),e.nodeIsGroupProperty&&(this.nodeIsGroupProperty=e.nodeIsGroupProperty),e.nodeGroupKeyProperty&&(this.nodeGroupKeyProperty=e.nodeGroupKeyProperty)},ye.Rv=function(){var e=Pn.prototype.Rv.call(this),t=`,
"linkDataArray": `+kh(this,this.linkDataArray,!0);return e+t},ye.kv=function(e){Pn.prototype.kv.call(this,e),e=e.linkDataArray,Array.isArray(e)&&(this.dm(e),this.linkDataArray=e)};function Hb(e,t){for(var n=new ut,r=0;r<e.linkDataArray.length;r++){var i=e.linkDataArray[r];wm(e,t,i,i,n)}return n}ye.Pv=function(e,t){this.linkKeyProperty===""&&Lt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var n=Pn.prototype.Pv.call(this,e,t),r=this,i=new ut,o=new ut,a=new ut,p=this.vh;e.changes.each(function(D){D.model===r&&(D.modelChange==="linkDataArray"?D.change===xo?i.add(D.newValue):D.change===Lo&&a.add(D.oldValue):r.Jc(D.object)?o.add(D.object):D.object!==null&&(D.object!==null&&p&&p.contains(D.object)?p.get(D.object).each(function(X){r.Jc(X)&&o.add(X)}):D.object instanceof Pn||r.lb(D.object)||Hb(r,D.object).each(function(X){o.add(X)})))});var w=this.il;w.clear(),i.each(function(D){w.add(r.Ac(D)),t||o.add(D)});var O=this.kl;return O.clear(),a.each(function(D){O.add(r.Ac(D)),t&&o.add(D)}),e=n,0<w.count&&(e+=(t?this.Xv:this.Vv)+kh(this,w.Fa(),!0)),0<o.count&&(e+=this.iy+kh(this,o.Fa(),!0)),0<O.count&&(e+=(t?this.Vv:this.Xv)+kh(this,O.Fa(),!0)),O.clear(),w.clear(),e},ye.fp=function(e){(e.linkCategoryProperty!==void 0&&e.linkCategoryProperty!==this.linkCategoryProperty||e.linkKeyProperty!==void 0&&e.linkKeyProperty!==this.linkKeyProperty||e.linkFromKeyProperty!==void 0&&e.linkFromKeyProperty!==this.linkFromKeyProperty||e.linkToKeyProperty!==void 0&&e.linkToKeyProperty!==this.linkToKeyProperty||e.linkFromPortIdProperty!==void 0&&e.linkFromPortIdProperty!==this.linkFromPortIdProperty||e.linkToPortIdProperty!==void 0&&e.linkToPortIdProperty!==this.linkToPortIdProperty||e.linkLabelKeysProperty!==void 0&&e.linkLabelKeysProperty!==this.linkLabelKeysProperty||e.nodeIsGroupProperty!==void 0&&e.nodeIsGroupProperty!==this.nodeIsGroupProperty||e.nodeGroupKeyProperty!==void 0&&e.nodeGroupKeyProperty!==this.nodeGroupKeyProperty)&&Lt("applyIncrementalJson cannot change Model properties"),Pn.prototype.fp.call(this,e);var t=e.insertedLinkKeys;if(Array.isArray(t))for(var n=t.length,r=0;r<n;r++){var i=t[r],o=this.jh(i);o===null&&(o=this.Jo({}),this.Ks(o,i),this.fi(o))}if(t=e.modifiedLinkData,Array.isArray(t)){for(n=t.length,r=0;r<n;r++)if(i=t[r],o=this.Ac(i),o=this.jh(o),o!==null){for(var a in i)a!=="__gohashid"&&a!==this.linkKeyProperty&&this.setDataProperty(o,a,i[a]);Wb(this,i,o)}}if(e=e.removedLinkKeys,Array.isArray(e))for(a=e.length,t=0;t<a;t++)n=this.jh(e[t]),n!==null&&this.bm(n)},Gr.prototype.changeState=function(e,t){if(e!==null&&e.model===this){if(e.change===Fi){var n=e.object,r=e.propertyName;if(r===this.linkKeyProperty&&this.Jc(n)){var i=e.I(t);t=e.I(!t),t!==void 0&&this.wb.remove(t),i!==void 0&&this.wb.add(i,n),oo(n,r,i);return}}else if(e.change===xo){if(n=e.newParam,e.modelChange==="linkDataArray"){e=e.newValue,bn(e)&&typeof n=="number"&&(r=this.Ac(e),t?(this.$f.remove(e),this.md[n]===e&&this.md.splice(n,1),r!==void 0&&this.wb.remove(r)):(this.$f.add(e),this.md[n]!==e&&this.md.splice(n,0,e),r!==void 0&&this.wb.add(r,e)));return}if(e.modelChange==="linkLabelKeys"){r=this.Ef(e.object),Array.isArray(r)&&typeof n=="number"&&(t?(n=r.indexOf(e.newValue),0<=n&&r.splice(n,1)):0>r.indexOf(e.newValue)&&r.splice(n,0,e.newValue));return}}else if(e.change===Lo){if(n=e.oldParam,e.modelChange==="linkDataArray"){e=e.oldValue,bn(e)&&typeof n=="number"&&(r=this.Ac(e),t?(this.$f.add(e),this.md[n]!==e&&this.md.splice(n,0,e),r!==void 0&&this.wb.add(r,e)):(this.$f.remove(e),this.md[n]===e&&this.md.splice(n,1),r!==void 0&&this.wb.remove(r)));return}if(e.modelChange==="linkLabelKeys"){r=this.Ef(e.object),Array.isArray(r)&&typeof n=="number"&&(t?0>r.indexOf(e.newValue)&&r.splice(n,0,e.newValue):(n=r.indexOf(e.newValue),0<=n&&r.splice(n,1)));return}}Pn.prototype.changeState.call(this,e,t)}},ye=Gr.prototype,ye.Vl=function(e){if(e!==void 0){var t=this.Ri;if(t!==null){var n=this.hc(e);n===null&&(n=this.copyNodeData(t),oo(n,this.nodeKeyProperty,e),this.xf(n))}return e}},ye.yx=function(e){return Tl(this,e,!0)},ye.wv=function(e,t){Md(this,e,t,!0)},ye.Bx=function(e){return Tl(this,e,!1)},ye.Bv=function(e,t){Md(this,e,t,!1)};function Tl(e,t,n){if(t!==null&&(e=n?e.lf:e.mf,e!==""&&(e=$o(t,e),e!==void 0))){if(Nh(e))return e;Lt((n?"FromKey":"ToKey")+" value for link data "+t+" is not a number or a string: "+e)}}function Md(e,t,n,r){if(n===null&&(n=void 0),t!==null){var i=r?e.lf:e.mf;if(i!=="")if(n=e.Vl(n),e.Jc(t)){var o=$o(t,i);o!==n&&(Nu(e,o,t),oo(t,i,n),e.hc(n)===null&&ku(e,n,t),vs(e,r?"linkFromKey":"linkToKey",Fi,i,t,o,n),typeof i=="string"&&e.La(t,i))}else oo(t,i,n)}}ye.zx=function(e){return Tm(this,e,!0)},ye.xv=function(e,t){Dd(this,e,t,!0)},ye.Cx=function(e){return Tm(this,e,!1)},ye.Cv=function(e,t){Dd(this,e,t,!1)};function Tm(e,t,n){return t===null||(e=n?e.ej:e.fj,e==="")?"":(t=$o(t,e),t===void 0?"":t)}function Dd(e,t,n,r){if(t!==null){var i=r?e.ej:e.fj;if(i!=="")if(e.Jc(t)){var o=$o(t,i);o===void 0&&(o=""),o!==n&&(oo(t,i,n),vs(e,r?"linkFromPortId":"linkToPortId",Fi,i,t,o,n),typeof i=="string"&&e.La(t,i))}else oo(t,i,n)}}ye.Ef=function(e){if(e===null)return _m;var t=this.je;return t===""?_m:(e=$o(e,t),e===void 0?_m:e)},ye.Ls=function(e,t){if(e!==null){var n=this.je;if(n!=="")if(this.Jc(e)){var r=$o(e,n);if(r===void 0&&(r=_m),r!==t){if(Array.isArray(r))for(var i=r.length,o=0;o<i;o++)Nu(this,r[o],e);for(oo(e,n,t),i=t.length,o=0;o<i;o++){var a=t[o];this.hc(a)===null&&ku(this,a,e)}vs(this,"linkLabelKeys",Fi,n,e,r,t),typeof n=="string"&&this.La(e,n)}}else oo(e,n,t)}},ye.Bu=function(e,t){if(t!=null&&e!==null){var n=this.je;if(n!==""){var r=$o(e,n);if(r===void 0)n=[],n.push(t),this.Ls(e,n);else if(Array.isArray(r)){var i=r.indexOf(t);0<=i||(i=r.length,r.push(t),this.Jc(e)&&(this.hc(t)===null&&ku(this,t,e),vs(this,"linkLabelKeys",xo,n,e,null,t,null,i)))}else Lt(n+" property is not an Array; cannot addLabelKeyForLinkData: "+e)}}},ye.Qx=function(e,t){if(t!=null&&e!==null){var n=this.je;if(n!==""){var r=$o(e,n);if(Array.isArray(r)){var i=r.indexOf(t);0>i||(r.splice(i,1),this.Jc(e)&&(Nu(this,t,e),vs(this,"linkLabelKeys",Lo,n,e,t,null,i,null)))}else r!==void 0&&Lt(n+" property is not an Array; cannot removeLabelKeyforLinkData: "+e)}}},ye.Ac=function(e){if(e!==null){var t=this.Jh;if(t!==""&&(t=$o(e,t),t!==void 0)){if(Nh(t))return t;Lt("Key value for link data "+e+" is not a number or a string: "+t)}}},ye.Ks=function(e,t){if(e!==null){var n=this.Jh;if(n!=="")if(this.Jc(e)){var r=$o(e,n);r!==t&&this.jh(t)===null&&(oo(e,n,t),r!==void 0&&this.wb.remove(r),this.wb.add(t,e),vs(this,"linkKey",Fi,n,e,r,t),typeof n=="string"&&this.La(e,n))}else oo(e,n,t)}},ye.jh=function(e){return e===null&&Lt("GraphLinksModel.findLinkDataForKey:key must not be null"),e!==void 0&&Nh(e)?this.wb.I(e):null},ye.Bs=function(e){if(e!==null){var t=this.Jh;if(t!==""){var n=this.Ac(e);if(n===void 0||this.wb.contains(n)){var r=this.cl;if(r!==null&&(n=r(this,e),n!=null&&!this.wb.contains(n))){oo(e,t,n);return}if(typeof n=="string"){for(r=2;this.wb.contains(n+r);)r++;oo(e,t,n+r)}else if(n===void 0||typeof n=="number"){for(n=-this.wb.count-1;this.wb.contains(n);)n--;oo(e,t,n)}}}}},ye.Jc=function(e){return e===null?!1:this.$f.contains(e)},ye.fi=function(e){e!==null&&(an(e),this.Jc(e)||zb(this,e,!0))};function zb(e,t,n){if(e.linkKeyProperty!==""){var r=e.Ac(t);if(r!==void 0&&e.wb.I(r)===t)return;e.Bs(t),r=e.Ac(t),r===void 0&&Lt("GraphLinksModel.makeLinkDataKeyUnique failed on "+t+". Data not added to model."),e.wb.add(r,t)}e.$f.add(t),r=null,n&&(r=e.md.length,e.md.splice(r,0,t)),vs(e,"linkDataArray",xo,"linkDataArray",e,null,t,null,r),Cy(e,t)}ye.Ey=function(e){if(Array.isArray(e))for(var t=e.length,n=0;n<t;n++)this.fi(e[n]);else for(e=e.iterator;e.next();)this.fi(e.value)},ye.bm=function(e){e!==null&&Gb(this,e,!0)};function Gb(e,t,n){e.$f.remove(t);var r=e.Ac(t);if(r!==void 0&&e.wb.remove(r),r=null,n){if(r=e.md.indexOf(t),0>r)return;e.md.splice(r,1)}if(vs(e,"linkDataArray",Lo,"linkDataArray",e,t,null,r,null),n=Tl(e,t,!0),Nu(e,n,t),n=Tl(e,t,!1),Nu(e,n,t),r=e.Ef(t),Array.isArray(r))for(var i=r.length,o=0;o<i;o++)n=r[o],Nu(e,n,t)}ye.lA=function(e){if(Array.isArray(e))for(var t=e.length,n=0;n<t;n++)this.bm(e[n]);else for(e=e.iterator;e.next();)this.bm(e.value)},ye.Zz=function(e){if(this.linkKeyProperty===""&&Lt("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),e!==this.linkDataArray&&or(e)){var t=this.kl;t.clear(),t.addAll(this.wb.iteratorKeys);var n=this.il;n.clear();for(var r=e.length,i=0;i<r;i++){var o=e[i],a=this.Ac(o);if(a!==void 0){n.add(a);var p=this.jh(a);p!==o&&(p!==null?(this.Do(p,o),Wb(this,o,p)):(o=this.cloneDeep(o),this.Ks(o,a),this.fi(o)))}else a=this.cloneDeep(o),this.fi(a),n.add(this.Ac(a))}for(e=t.iterator;e.next();)r=e.value,n.contains(r)||(r=this.jh(r))&&this.bm(r);t.clear(),n.clear()}};function Cy(e,t){var n=Tl(e,t,!0);n=e.Vl(n),e.hc(n)===null&&ku(e,n,t),n=Tl(e,t,!1),n=e.Vl(n),e.hc(n)===null&&ku(e,n,t);var r=e.Ef(t);if(Array.isArray(r))for(var i=r.length,o=0;o<i;o++)n=r[o],e.hc(n)===null&&ku(e,n,t)}ye.Jo=function(e){if(e===null)return null;var t=this.Ak;return e=t!==null?t(e,this):Cm(this,e,!0),bn(e)&&(Ge(e),this.lf!==""&&oo(e,this.lf,void 0),this.mf!==""&&oo(e,this.mf,void 0),this.je!==""&&oo(e,this.je,[])),e},ye.Yu=function(e){if(e===null)return!1;var t=this.jl;return t===""?!1:!!$o(e,t)},ye.lh=function(e){if(e!==null){var t=this.Je;if(t!==""&&(t=$o(e,t),t!==void 0)){if(Nh(t))return t;Lt("GroupKey value for node data "+e+" is not a number or a string: "+t)}}},ye.mp=function(e,t){if(t===null&&(t=void 0),e!==null){var n=this.Je;if(n!=="")if(this.lb(e)){var r=$o(e,n);r!==t&&(Nu(this,r,e),oo(e,n,t),this.hc(t)===null&&ku(this,t,e),vs(this,"nodeGroupKey",Fi,n,e,r,t),typeof n=="string"&&this.La(e,n))}else oo(e,n,t)}},Gr.prototype.copyNodeData=function(e){return e===null?null:(e=Pn.prototype.copyNodeData.call(this,e),this.Ij||this.Je===""||$o(e,this.Je)===void 0||oo(e,this.Je,void 0),e)},Gr.prototype.setDataProperty=function(e,t,n){if(this.lb(e)){if(t===this.nodeKeyProperty){this.km(e,n);return}if(t===this.nodeCategoryProperty){this.jm(e,n);return}if(t===this.nodeGroupKeyProperty){this.mp(e,n);return}}else if(this.Jc(e)){if(t===this.linkFromKeyProperty){Md(this,e,n,!0);return}if(t===this.linkToKeyProperty){Md(this,e,n,!1);return}if(t===this.linkFromPortIdProperty){Dd(this,e,n,!0);return}if(t===this.linkToPortIdProperty){Dd(this,e,n,!1);return}if(t===this.linkKeyProperty){this.Ks(e,n);return}if(t===this.linkCategoryProperty){this.lp(e,n);return}if(t===this.linkLabelKeysProperty){this.Ls(e,n);return}}var r=$o(e,t);r!==n&&(oo(e,t,n),this.Fs(e,t,r,n))},ye=Gr.prototype,ye.Do=function(e,t){if(t){var n=this.lb(e),r=this.Jc(e),i;for(i in t)i==="__gohashid"||n&&i===this.nodeKeyProperty||n&&i===this.nodeIsGroupProperty&&$o(e,i)===t[i]||r&&i===this.linkKeyProperty||this.setDataProperty(e,i,t[i])}},ye.jp=function(e,t){Pn.prototype.jp.call(this,e,t);for(var n=this.kb.iterator;n.next();)this.qv(n.value,e,t);for(n=this.$f.iterator;n.next();){var r=n.value,i=e,o=t;if(Tl(this,r,!0)===i){var a=this.lf;oo(r,a,o),vs(this,"linkFromKey",Fi,a,r,i,o),typeof a=="string"&&this.La(r,a)}if(Tl(this,r,!1)===i&&(a=this.mf,oo(r,a,o),vs(this,"linkToKey",Fi,a,r,i,o),typeof a=="string"&&this.La(r,a)),a=this.Ef(r),Array.isArray(a))for(var p=a.length,w=this.je,O=0;O<p;O++)a[O]===i&&(a[O]=o,vs(this,"linkLabelKeys",xo,w,r,i,o,O,O))}},ye.qv=function(e,t,n){if(this.lh(e)===t){var r=this.Je;oo(e,r,n),vs(this,"nodeGroupKey",Fi,r,e,t,n),typeof r=="string"&&this.La(e,r)}},ye.Lv=function(){Pn.prototype.Lv.call(this);for(var e=this.linkDataArray,t=e.length,n=0;n<t;n++)Cy(this,e[n])},ye.fm=function(e){Pn.prototype.fm.call(this,e),e=this.wa(e);var t=Gp(this,e);if(t!==null){var n=yr();for(t=t.iterator;t.next();){var r=t.value;if(this.lb(r)){if(this.lh(r)===e){var i=this.Je;vs(this,"nodeGroupKey",Fi,i,r,e,e),typeof i=="string"&&this.La(r,i),n.push(r)}}else if(Tl(this,r,!0)===e&&(i=this.lf,vs(this,"linkFromKey",Fi,i,r,e,e),typeof i=="string"&&this.La(r,i),n.push(r)),Tl(this,r,!1)===e&&(i=this.mf,vs(this,"linkToKey",Fi,i,r,e,e),typeof i=="string"&&this.La(r,i),n.push(r)),i=this.Ef(r),Array.isArray(i))for(var o=i.length,a=this.je,p=0;p<o;p++)i[p]===e&&(vs(this,"linkLabelKeys",xo,a,r,e,e,p,p),n.push(r))}for(t=0;t<n.length;t++)Nu(this,e,n[t]);Mr(n)}},ye.em=function(e){Pn.prototype.em.call(this,e);var t=this.lh(e);this.hc(t)===null&&ku(this,t,e)},ye.qp=function(e){Pn.prototype.qp.call(this,e);var t=this.lh(e);Nu(this,t,e)},ye.ps=function(e){if(e===null)return"";var t=this.dj;if(t===""||(t=$o(e,t),t===void 0))return"";if(typeof t=="string")return t;Lt("getCategoryForLinkData found a non-string category for "+e+": "+t)},Gr.prototype.getLinkCategoryForData=function(e){return this.ps(e)},Gr.prototype.lp=function(e,t){if(e!==null){var n=this.dj;if(n!=="")if(this.Jc(e)){var r=$o(e,n);r===void 0&&(r=""),r!==t&&(oo(e,n,t),vs(this,"linkCategory",Fi,n,e,r,t),typeof n=="string"&&this.La(e,n))}else oo(e,n,t)}},Gr.prototype.setLinkCategoryForData=function(e,t){this.lp(e,t)},ye=Gr.prototype,ye.lm=function(e,t){Pn.prototype.lm.call(this,e,t),this.mp(t,this.lh(e))};function Wb(e,t,n){e.lp(n,e.ps(t)),e.wv(n,e.yx(t)),e.Bv(n,e.Bx(t)),e.Ls(n,e.Ef(t)),e.xv(n,e.zx(t)),e.Cv(n,e.Cx(t))}ye.Wj=function(){return!0},ye.ri=function(){return!0},ye.xs=function(){return!0},ye.Xj=function(){return!0},kn.Object.defineProperties(Gr.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(e){var t=this.Ri;t!==e&&(this.Ri=e,this.g("archetypeNodeData",t,e))}},linkFromKeyProperty:{get:function(){return this.lf},set:function(e){var t=this.lf;t!==e&&(this.lf=e,this.g("linkFromKeyProperty",t,e))}},linkToKeyProperty:{get:function(){return this.mf},set:function(e){var t=this.mf;t!==e&&(this.mf=e,this.g("linkToKeyProperty",t,e))}},linkFromPortIdProperty:{get:function(){return this.ej},set:function(e){var t=this.ej;t!==e&&(this.ej=e,this.g("linkFromPortIdProperty",t,e))}},linkToPortIdProperty:{get:function(){return this.fj},set:function(e){var t=this.fj;t!==e&&(this.fj=e,this.g("linkToPortIdProperty",t,e))}},linkLabelKeysProperty:{get:function(){return this.je},set:function(e){var t=this.je;t!==e&&(this.je=e,this.g("linkLabelKeysProperty",t,e))}},linkDataArray:{get:function(){return this.md},set:function(e){var t=this.md;if(t!==e){this.wb.clear();for(var n=e.length,r=0;r<n;r++){var i=e[r];bn(i)||Lt("GraphLinksModel.linkDataArray must only contain Objects, not: "+i),an(i)}if(this.md=e,this.linkKeyProperty!==""){for(r=new tn,i=0;i<n;i++){var o=e[i],a=this.Ac(o);a===void 0||this.wb.I(a)!==null?r.add(o):this.wb.add(a,o)}for(r=r.iterator;r.next();)i=r.value,this.Bs(i),o=this.Ac(i),o!==void 0&&this.wb.add(o,i)}for(r=new ut,i=0;i<n;i++)r.add(e[i]);for(this.$f=r,vs(this,"linkDataArray",Fi,"linkDataArray",this,t,e),t=0;t<n;t++)Cy(this,e[t])}}},linkKeyProperty:{get:function(){return this.Jh},set:function(e){var t=this.Jh;if(t!==e){this.Jh=e,this.wb.clear();for(var n=this.linkDataArray.length,r=0;r<n;r++){var i=this.linkDataArray[r],o=this.Ac(i);o===void 0&&(this.Bs(i),o=this.Ac(i)),o!==void 0&&this.wb.add(o,i)}this.g("linkKeyProperty",t,e)}}},makeUniqueLinkKeyFunction:{get:function(){return this.cl},set:function(e){var t=this.cl;t!==e&&(this.cl=e,this.g("makeUniqueLinkKeyFunction",t,e))}},copyLinkDataFunction:{get:function(){return this.Ak},set:function(e){var t=this.Ak;t!==e&&(this.Ak=e,this.g("copyLinkDataFunction",t,e))}},nodeIsGroupProperty:{get:function(){return this.jl},set:function(e){var t=this.jl;t!==e&&(this.jl=e,this.g("nodeIsGroupProperty",t,e))}},nodeGroupKeyProperty:{get:function(){return this.Je},set:function(e){var t=this.Je;t!==e&&(this.Je=e,this.g("nodeGroupKeyProperty",t,e))}},Ij:{get:function(){return this.Lm},set:function(e){this.Lm!==e&&(this.Lm=e)}},linkCategoryProperty:{get:function(){return this.dj},set:function(e){var t=this.dj;t!==e&&(this.dj=e,this.g("linkCategoryProperty",t,e))}},type:{get:function(){return"GraphLinksModel"}}}),Gr.prototype.setCategoryForLinkData=Gr.prototype.lp,Gr.prototype.getCategoryForLinkData=Gr.prototype.ps,Gr.prototype.assignAllDataProperties=Gr.prototype.Do,Gr.prototype.setGroupKeyForNodeData=Gr.prototype.mp,Gr.prototype.getGroupKeyForNodeData=Gr.prototype.lh,Gr.prototype.isGroupForNodeData=Gr.prototype.Yu,Gr.prototype.copyLinkData=Gr.prototype.Jo,Gr.prototype.mergeLinkDataArray=Gr.prototype.Zz,Gr.prototype.removeLinkDataCollection=Gr.prototype.lA,Gr.prototype.removeLinkData=Gr.prototype.bm,Gr.prototype.addLinkDataCollection=Gr.prototype.Ey,Gr.prototype.addLinkData=Gr.prototype.fi,Gr.prototype.containsLinkData=Gr.prototype.Jc,Gr.prototype.makeLinkDataKeyUnique=Gr.prototype.Bs,Gr.prototype.findLinkDataForKey=Gr.prototype.jh,Gr.prototype.setKeyForLinkData=Gr.prototype.Ks,Gr.prototype.getKeyForLinkData=Gr.prototype.Ac,Gr.prototype.removeLabelKeyForLinkData=Gr.prototype.Qx,Gr.prototype.addLabelKeyForLinkData=Gr.prototype.Bu,Gr.prototype.setLabelKeysForLinkData=Gr.prototype.Ls,Gr.prototype.getLabelKeysForLinkData=Gr.prototype.Ef,Gr.prototype.setToPortIdForLinkData=Gr.prototype.Cv,Gr.prototype.getToPortIdForLinkData=Gr.prototype.Cx,Gr.prototype.setFromPortIdForLinkData=Gr.prototype.xv,Gr.prototype.getFromPortIdForLinkData=Gr.prototype.zx,Gr.prototype.setToKeyForLinkData=Gr.prototype.Bv,Gr.prototype.getToKeyForLinkData=Gr.prototype.Bx,Gr.prototype.setFromKeyForLinkData=Gr.prototype.wv,Gr.prototype.getFromKeyForLinkData=Gr.prototype.yx,Gr.prototype.clear=Gr.prototype.clear;var _m=Object.freeze([]);Gr.className="GraphLinksModel",mu.GraphLinksModel=Gr,Pn.constructGraphLinksModel=Pn.constructGraphLinksModel=function(){return new Gr},Pn.initDiagramModel=Ey=function(){return new Gr};function Ra(e,t){Pn.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",e!==void 0&&(or(e)?this.nodeDataArray=e:t=e),t&&(Object.assign(this,t),e=t.Changed)&&(delete this.Changed,this.Pe(e))}Tn(Ra,Pn),Ra.constructGraphLinksModel=Pn.constructGraphLinksModel,Ra.prototype.cloneProtected=function(e){Pn.prototype.cloneProtected.call(this,e),e.Ke=this.Ke,e.Nm=this.Nm,e.nj=this.nj},ye=Ra.prototype,ye.toString=function(e){if(e===void 0&&(e=0),2<=e)return this.np();var t=(this.name!==""?this.name:"")+" TreeModel";if(0<e){t+=`
node data:`,e=this.nodeDataArray;for(var n=e.length,r=0;r<n;r++){var i=e[r];t+=" "+this.wa(i)+":"+Di(i)}}return t},ye.rm=function(){var e=Pn.prototype.rm.call(this),t="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(t+=`,
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),e+t},ye.gp=function(e){Pn.prototype.gp.call(this,e),e.nodeParentKeyProperty&&(this.nodeParentKeyProperty=e.nodeParentKeyProperty)},ye.fp=function(e){e.nodeParentKeyProperty!==void 0&&e.nodeParentKeyProperty!==this.nodeParentKeyProperty&&Lt("applyIncrementalJson cannot change Model properties"),Pn.prototype.fp.call(this,e)},ye.Vl=function(e){return e},ye.mh=function(e){if(e!==null){var t=this.Ke;if(t!==""&&(t=$o(e,t),t!==void 0)){if(Nh(t))return t;Lt("ParentKey value for node data "+e+" is not a number or a string: "+t)}}},ye.qe=function(e,t){if(t===null&&(t=void 0),e!==null){var n=this.Ke;if(n!=="")if(t=this.Vl(t),this.lb(e)){var r=$o(e,n);r!==t&&(Nu(this,r,e),oo(e,n,t),this.hc(t)===null&&ku(this,t,e),vs(this,"nodeParentKey",Fi,n,e,r,t),typeof n=="string"&&this.La(e,n))}else oo(e,n,t)}},ye.ss=function(e){if(e===null)return"";var t=this.nj;return t===""||(t=$o(e,t),t===void 0)?"":typeof t=="string"?t:(Lt("getParentLinkCategoryForNodeData found a non-string category for "+e+": "+t),"")},Ra.prototype.getLinkCategoryForData=function(e){return this.ss(e)},Ra.prototype.Ms=function(e,t){if(e!==null){var n=this.nj;if(n!=="")if(this.lb(e)){var r=$o(e,n);r===void 0&&(r=""),r!==t&&(oo(e,n,t),vs(this,"parentLinkCategory",Fi,n,e,r,t),typeof n=="string"&&this.La(e,n))}else oo(e,n,t)}},Ra.prototype.setLinkCategoryForData=function(e,t){this.Ms(e,t)},Ra.prototype.copyNodeData=function(e){return e===null?null:(e=Pn.prototype.copyNodeData.call(this,e),this.Jj||this.Ke===""||$o(e,this.Ke)===void 0||oo(e,this.Ke,void 0),e)},Ra.prototype.setDataProperty=function(e,t,n){if(this.lb(e)){if(t===this.nodeKeyProperty){this.km(e,n);return}if(t===this.nodeCategoryProperty){this.jm(e,n);return}if(t===this.nodeParentKeyProperty){this.qe(e,n);return}}var r=$o(e,t);r!==n&&(oo(e,t,n),this.Fs(e,t,r,n))},ye=Ra.prototype,ye.jp=function(e,t){Pn.prototype.jp.call(this,e,t);for(var n=this.kb.iterator;n.next();)this.qv(n.value,e,t)},ye.qv=function(e,t,n){if(this.mh(e)===t){var r=this.Ke;oo(e,r,n),vs(this,"nodeParentKey",Fi,r,e,t,n),typeof r=="string"&&this.La(e,r)}},ye.fm=function(e){Pn.prototype.fm.call(this,e),e=this.wa(e);var t=Gp(this,e);if(t!==null){var n=yr();for(t=t.iterator;t.next();){var r=t.value;if(this.lb(r)&&this.mh(r)===e){var i=this.Ke;vs(this,"nodeParentKey",Fi,i,r,e,e),typeof i=="string"&&this.La(r,i),n.push(r)}}for(t=0;t<n.length;t++)Nu(this,e,n[t]);Mr(n)}},ye.em=function(e){Pn.prototype.em.call(this,e);var t=this.mh(e);t=this.Vl(t),this.hc(t)===null&&ku(this,t,e)},ye.qp=function(e){Pn.prototype.qp.call(this,e);var t=this.mh(e);Nu(this,t,e)},ye.lm=function(e,t){Pn.prototype.lm.call(this,e,t),this.Ms(t,this.ss(e)),this.qe(t,this.mh(e))},ye.Tl=function(){return!0},ye.xs=function(){return!0},kn.Object.defineProperties(Ra.prototype,{nodeParentKeyProperty:{get:function(){return this.Ke},set:function(e){var t=this.Ke;t!==e&&(this.Ke=e,this.g("nodeParentKeyProperty",t,e))}},Jj:{get:function(){return this.Nm},set:function(e){this.Nm!==e&&(this.Nm=e)}},parentLinkCategoryProperty:{get:function(){return this.nj},set:function(e){var t=this.nj;t!==e&&(this.nj=e,this.g("parentLinkCategoryProperty",t,e))}},linkCategoryProperty:{get:function(){return this.parentLinkCategoryProperty},set:function(e){this.parentLinkCategoryProperty=e}},type:{get:function(){return"TreeModel"}}}),Ra.prototype.setParentLinkCategoryForNodeData=Ra.prototype.Ms,Ra.prototype.getParentLinkCategoryForNodeData=Ra.prototype.ss,Ra.prototype.setParentKeyForNodeData=Ra.prototype.qe,Ra.prototype.getParentKeyForNodeData=Ra.prototype.mh,Ra.className="TreeModel",mu.TreeModel=Ra;function wo(e){co.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=vu,this.Ti=0,this.Zv=new Ue,this.Jp=this.me=0,this.Xr=new Xp,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=vu,this.K=Ia,this.nd=Fd,this.hd=my,this.tf=6,this.Nn=Lm,e&&Object.assign(this,e)}Tn(wo,co),wo.prototype.cloneProtected=function(e){co.prototype.cloneProtected.call(this,e),e.eo=this.eo,e.Cm=this.Cm,e.ro=this.ro,e.ul=this.ul,e.Rb=this.Rb,e.K=this.K,e.nd=this.nd,e.hd=this.hd,e.tf=this.tf,e.Nn=this.Nn},wo.prototype.qb=function(e){e.classType===wo?e===Im||e===Om||e===Nm||e===Rm||e===Fd?this.sorting=e:e===gf||e===Pd||e===Ia||e===Ih?this.direction=e:e===rh||e===Rh||e===vu||e===yu?this.arrangement=e:(e===Gf||e===Lm)&&(this.nodeDiameterFormula=e):co.prototype.qb.call(this,e)},wo.prototype.createNetwork=function(){return new Bd(this)},wo.prototype.doLayout=function(e){if(this.network===null&&(this.network=this.makeNetwork(e)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),e=this.network.vertexes,1>=e.count)e.count===1&&(e=e.first(),e.centerX=0,e.centerY=0);else{var t=new tn;t.addAll(e.iterator),e=new tn;var n=new tn,r=this.sort(t),i,o,a=this.Jp,p=this.arrangement,w=this.nodeDiameterFormula,O=this.radius;(!isFinite(O)||0>=O)&&(O=NaN);var D=this.aspectRatio;(!isFinite(D)||0>=D)&&(D=1);var X=this.startAngle;isFinite(X)||(X=0);var re=this.sweepAngle;if((!isFinite(re)||360<re||1>re)&&(re=360),t=this.spacing,isFinite(t)||(t=NaN),p===yu&&w===Gf?p=vu:p===yu&&w!==Gf&&(p=this.arrangement),(this.direction===gf||this.direction===Pd)&&this.sorting!==Fd){for(w=0;!(w>=r.length)&&(e.add(r.M(w)),!(w+1>=r.length));w+=2)n.add(r.M(w+1));this.direction===gf?(this.arrangement===yu&&e.reverse(),r=new tn,r.addAll(e),r.addAll(n)):(this.arrangement===yu&&n.reverse(),r=new tn,r.addAll(n),r.addAll(e))}w=r.length;for(var de=o=i=0;de<r.length;de++){var Se=X+re*o*(this.direction===Ia?1:-1)/w,Te=r.M(de).diameter;isNaN(Te)&&(Te=Oh(r.M(de),Se)),360>re&&(de===0||de===r.length-1)&&(Te/=2),i+=Te,o++}if(isNaN(O)||p===yu){if(isNaN(t)&&(t=6),p!==vu&&p!==yu){for(o=-1/0,a=0;a<w;a++)de=r.M(a),i=r.M(a===w-1?0:a+1),isNaN(de.diameter)&&Oh(de,0),isNaN(i.diameter)&&Oh(i,0),o=Math.max(o,(de.diameter+i.diameter)/2);a=o+t,p===rh?O=(o+t)/(2*Math.PI/w):O=Am(this,a*(360<=re?w:w-1),D,X*Math.PI/180,re*Math.PI/180)}else O=Am(this,i+(360<=re?w:w-1)*(p!==yu?t:1.6*t),D,X*Math.PI/180,re*Math.PI/180);o=O*D}else if(o=O*D,de=Ty(this,O,o,X*Math.PI/180,re*Math.PI/180),isNaN(t))(p===vu||p===yu)&&(t=(de-i)/(360<=re?w:w-1));else if(p===vu||p===yu)de=(de-i)/(360<=re?w:w-1),de<t?(O=Am(this,i+t*(360<=re?w:w-1),D,X*Math.PI/180,re*Math.PI/180),o=O*D):t=de;else{for(a=-1/0,i=0;i<w;i++)Se=r.M(i),Te=r.M(i===w-1?0:i+1),isNaN(Se.diameter)&&Oh(Se,0),isNaN(Te.diameter)&&Oh(Te,0),a=Math.max(a,(Se.diameter+Te.diameter)/2);a+=t,i=Am(this,a*(360<=re?w:w-1),D,X*Math.PI/180,re*Math.PI/180),i>O?(O=i,o=O*D):a=de/(360<=re?w:w-1)}if(this.kw=p,this.lc=O,this.Zm=D,this.lw=X,this.Wp=re,this.Ti=t,this.me=o,this.Jp=a,t=r,r=this.kw,p=this.lc,O=this.lw,D=this.Wp,X=this.Ti,re=this.me,w=this.Jp,this.direction!==gf&&this.direction!==Pd||r!==yu)if(this.direction===gf||this.direction===Pd){switch(a=0,r){case Rh:a=180*km(this,p,re,O,w)/Math.PI;break;case vu:w=t=0,a=e.first(),a!==null&&(t=Oh(a,Math.PI/2)),a=n.first(),a!==null&&(w=Oh(a,Math.PI/2)),a=180*km(this,p,re,O,X+(t+w)/2)/Math.PI;break;case rh:a=D/t.length}if(this.direction===gf){switch(r){case Rh:$p(this,e,O,Ih);break;case vu:Yp(this,e,O,Ih);break;case rh:Kp(this,e,D/2,O,Ih)}switch(r){case Rh:$p(this,n,O+a,Ia);break;case vu:Yp(this,n,O+a,Ia);break;case rh:Kp(this,n,D/2,O+a,Ia)}}else{switch(r){case Rh:$p(this,n,O,Ih);break;case vu:Yp(this,n,O,Ih);break;case rh:Kp(this,n,D/2,O,Ih)}switch(r){case Rh:$p(this,e,O+a,Ia);break;case vu:Yp(this,e,O+a,Ia);break;case rh:Kp(this,e,D/2,O+a,Ia)}}}else switch(r){case Rh:$p(this,t,O,this.direction);break;case vu:Yp(this,t,O,this.direction);break;case rh:Kp(this,t,D,O,this.direction);break;case yu:Vb(this,t,D,O,this.direction)}else Vb(this,t,D,O-D/2,Ia)}this.updateParts(),this.network=null,this.isValidLayout=!0};function Kp(e,t,n,r,i){var o=e.Wp,a=e.lc;e=e.me,r=r*Math.PI/180,n=n*Math.PI/180;for(var p=t.length,w=0;w<p;w++){var O=r+(i===Ia?w*n/(360<=o?p:p-1):-(w*n)/p),D=t.M(w),X=a*Math.tan(O)/e;X=Math.sqrt((a*a+e*e*X*X)/(1+X*X)),D.centerX=X*Math.cos(O),D.centerY=X*Math.sin(O),D.actualAngle=180*O/Math.PI}}function Yp(e,t,n,r){var i=e.lc,o=e.me,a=e.Ti;n=n*Math.PI/180;for(var p=t.length,w=0;w<p;w++){var O=t.M(w),D=t.M(w===p-1?0:w+1),X=o*Math.sin(n);O.centerX=i*Math.cos(n),O.centerY=X,O.actualAngle=180*n/Math.PI,isNaN(O.diameter)&&Oh(O,0),isNaN(D.diameter)&&Oh(D,0),O=km(e,i,o,r===Ia?n:-n,(O.diameter+D.diameter)/2+a),n+=r===Ia?O:-O}}function $p(e,t,n,r){var i=e.lc,o=e.me,a=e.Jp;n=n*Math.PI/180;for(var p=t.length,w=0;w<p;w++){var O=t.M(w);O.centerX=i*Math.cos(n),O.centerY=o*Math.sin(n),O.actualAngle=180*n/Math.PI,O=km(e,i,o,r===Ia?n:-n,a),n+=r===Ia?O:-O}}function Vb(e,t,n,r,i){var o=e.Wp;if(e.mj=0,e.Xr=new Xp,360>n){for(o=r+(i===Ia?o:-o);0>o;)o+=360;o%=360,180<o&&(o-=360),o*=Math.PI/180,e.gt=o,Yb(e,t,n,r,i)}else Kb(e,t,n,r,i);e.Xr.commit(t)}function Kb(e,t,n,r,i){var o=e.lc,a=e.Ti,p=e.Zm,w=o*Math.cos(r*Math.PI/180),O=e.me*Math.sin(r*Math.PI/180),D=t.Fa();if(D.length===3)D[0].centerX=o,D[0].centerY=0,D[1].centerX=D[0].centerX-D[0].width/2-D[1].width/2-a,D[1].y=D[0].y,D[2].centerX=(D[0].centerX+D[1].centerX)/2,D[2].y=D[0].y-D[2].height-a;else if(D.length===4)D[0].centerX=o,D[0].centerY=0,D[2].centerX=-D[0].centerX,D[2].centerY=D[0].centerY,D[1].centerX=0,D[1].y=Math.min(D[0].y,D[2].y)-D[1].height-a,D[3].centerX=0,D[3].y=Math.max(D[0].y+D[0].height+a,D[2].y+D[2].height+a);else{o=Ue.alloc();for(var X=0;X<D.length&&(D[X].centerX=w,D[X].centerY=O,!(X>=D.length-1));X++)$b(e,w,O,D,X,i,o)||Xb(e,w,O,D,X,i,o),w=o.x,O=o.y;if(Ue.free(o),e.mj++,!(23<e.mj)){w=D[0].centerX,O=D[0].centerY,o=D[D.length-1].centerX,X=D[D.length-1].centerY;var re=Math.abs(w-o)-((D[0].width+D[D.length-1].width)/2+a),de=Math.abs(O-X)-((D[0].height+D[D.length-1].height)/2+a);a=0,1>Math.abs(de)?Math.abs(w-o)<(D[0].width+D[D.length-1].width)/2&&(a=0):a=0<de?de:1>Math.abs(re)?0:re,w=Math.abs(o)>Math.abs(X)?0<o!=O>X:0<X!=w<o,(w=i===Ia?w:!w)&&(a=-Math.abs(a),a=Math.min(a,-D[D.length-1].width),a=Math.min(a,-D[D.length-1].height)),e.Xr.compare(a,D),1<Math.abs(a)&&(e.lc=8>e.mj?e.lc-a/(2*Math.PI):5>D.length&&10<a?e.lc/2:e.lc-(0<a?1.7:-2.3),e.me=e.lc*p,Kb(e,t,n,r,i))}}}function Yb(e,t,n,r,i){for(var o=e.lc,a=e.me,p=e.Zm,w=o*Math.cos(r*Math.PI/180),O=a*Math.sin(r*Math.PI/180),D=Ue.alloc(),X=t.Fa(),re=0;re<X.length&&(X[re].centerX=w,X[re].centerY=O,!(re>=X.length-1));re++)$b(e,w,O,X,re,i,D)||Xb(e,w,O,X,re,i,D),w=D.x,O=D.y;if(Ue.free(D),e.mj++,!(23<e.mj)){if(w=Math.atan2(O,w),w=i===Ia?e.gt-w:w-e.gt,w=Math.abs(w)<Math.abs(w-2*Math.PI)?w:w-2*Math.PI,o=w*(o+a)/2,a=e.Xr,Math.abs(o)<Math.abs(a.Pl))for(a.Pl=o,a.mk=[],a.tm=[],w=0;w<X.length;w++)a.mk[w]=X[w].bounds.x,a.tm[w]=X[w].bounds.y;1<Math.abs(o)&&(e.lc=8>e.mj?e.lc-o/(2*Math.PI):e.lc-(0<o?1.7:-2.3),e.me=e.lc*p,Yb(e,t,n,r,i))}}function $b(e,t,n,r,i,o,a){var p=e.lc,w=e.me,O=0;e=(r[i].width+r[i+1].width)/2+e.Ti;var D=!1;if(0<=n!=(o===Ia)){if(o=t+e,o>p){if(o=t-e,o<-p)return a.x=o,a.y=O,!1;D=!0}}else if(o=t-e,o<-p){if(o=t+e,o>p)return a.x=o,a.y=O,!1;D=!0}return O=Math.sqrt(1-Math.min(1,o*o/(p*p)))*w,0>n!==D&&(O=-O),Math.abs(n-O)>(r[i].height+r[i+1].height)/2?(a.x=o,a.y=O,!1):(a.x=o,a.y=O,!0)}function Xb(e,t,n,r,i,o,a){var p=e.lc,w=e.me,O=0;if(e=(r[i].height+r[i+1].height)/2+e.Ti,r=!1,0<=t!=(o===Ia)){if(o=n-e,o<-w){if(o=n+e,o>w){a.x=O,a.y=o;return}r=!0}}else if(o=n+e,o>w){if(o=n-e,o<-w){a.x=O,a.y=o;return}r=!0}O=Math.sqrt(1-Math.min(1,o*o/(w*w)))*p,0>t!==r&&(O=-O),a.x=O,a.y=o}wo.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},wo.prototype.commitNodes=function(){var e=this.group!==null&&this.group.placeholder!==null&&this.group.isSubGraphExpanded,t=e?this.group.location.copy():null,n=this.actualCenter;e?n=new Ue(0,0):(n.x=this.arrangementOrigin.x+this.lc,n.y=this.arrangementOrigin.y+this.me);for(var r=this.network.vertexes.iterator;r.next();){var i=r.value;i.x+=n.x,i.y+=n.y,i.commit()}e&&(this.group.Va(),e=this.group.position.copy(),n=this.group.location.copy(),t=t.re(n.re(e)),this.group.move(t),this.Zv=t.re(e))},wo.prototype.commitLinks=function(){for(var e=this.network.edges.iterator;e.next();)e.value.commit()};function Ty(e,t,n,r,i){var o=e.ty;if(.001>Math.abs(e.Zm-1))return r!==void 0&&i!==void 0?i*t:2*Math.PI*t;e=t>n?Math.sqrt(t*t-n*n)/t:Math.sqrt(n*n-t*t)/n;for(var a=0,p=r!==void 0&&i!==void 0?i/(o+1):Math.PI/(2*(o+1)),w=0,O=0;O<=o;O++){r!==void 0&&i!==void 0?w=r+O*i/o:w=O*Math.PI/(2*o);var D=Math.sin(w);a+=Math.sqrt(1-e*e*D*D)*p}return r!==void 0&&i!==void 0?(t>n?t:n)*a:4*(t>n?t:n)*a}function Am(e,t,n,r,i){return t/(r!==void 0&&i!==void 0?Ty(e,1,n,r,i):Ty(e,1,n))}function km(e,t,n,r,i){if(.001>Math.abs(e.Zm-1))return i/t;var o=t>n?Math.sqrt(t*t-n*n)/t:Math.sqrt(n*n-t*t)/n,a=0;e=2*Math.PI/(700*e.network.vertexes.count),t>n&&(r+=Math.PI/2);for(var p=0;;p++){var w=Math.sin(r+p*e);if(a+=(t>n?t:n)*Math.sqrt(1-o*o*w*w)*e,a>=i)return p*e}}wo.prototype.sort=function(e){switch(this.sorting){case Nm:break;case Rm:e.reverse();break;case Im:e.sort(this.comparer);break;case Om:e.sort(this.comparer),e.reverse();break;case Fd:return this.ak(Z1(e));default:Lt("Invalid sorting type.")}return e};function Z1(e){for(var t=[],n=0;n<e.length;n++)t.push(0);n=new tn;for(var r=0;r<e.length;r++){var i=-1,o=-1;if(r===0)for(var a=0;a<e.length;a++){var p=e.M(a).edgesCount;p>i&&(i=p,o=a)}else for(a=0;a<e.length;a++)p=t[a],p>i&&(i=p,o=a);for(n.add(e.M(o)),t[o]=-1,o=e.M(o),a=o.sourceEdges;a.next();)i=e.indexOf(a.value.fromVertex),0>i||0<=t[i]&&t[i]++;for(o=o.destinationEdges;o.next();)i=e.indexOf(o.value.toVertex),0>i||0<=t[i]&&t[i]++}return n}wo.prototype.ak=function(e){for(var t=[],n=0;n<e.length;n++){var r=e.M(n);t[n]=[];for(var i,o=r.destinationEdges;o.next();)i=e.indexOf(o.value.toVertex),i!==n&&0>t[n].indexOf(i)&&t[n].push(i);for(r=r.sourceEdges;r.next();)i=e.indexOf(r.value.fromVertex),i!==n&&0>t[n].indexOf(i)&&t[n].push(i)}for(o=[],n=0;n<t.length;n++)o[n]=0;n=[];var a=[],p=[];r=[],i=new tn;for(var w=0,O=0;O<t.length;O++){var D=t[O].length;if(D===1)r.push(O);else if(D===0)i.add(e.M(O));else{if(w===0)n.push(O);else{for(var X=D=1/0,re=-1,de=[],Se=0;Se<n.length;Se++)0>t[n[Se]].indexOf(n[Se===n.length-1?0:Se+1])&&de.push(Se===n.length-1?0:Se+1);if(de.length===0)for(Se=0;Se<n.length;Se++)de.push(Se);for(Se=0;Se<de.length;Se++){for(var Te=de[Se],Xe=t[O],We=0,qe=0;qe<a.length;qe++){var tt=o[a[qe]],rt=o[p[qe]];if(tt<rt){var ft=tt;tt=rt}else ft=rt;if(ft<Te&&Te<=tt)for(rt=0;rt<Xe.length;rt++){var Tt=Xe[rt];0>n.indexOf(Tt)||ft<o[Tt]&&o[Tt]<tt||ft===o[Tt]||tt===o[Tt]||We++}else for(rt=0;rt<Xe.length;rt++)Tt=Xe[rt],0>n.indexOf(Tt)||ft<o[Tt]&&o[Tt]<tt&&ft!==o[Tt]&&tt!==o[Tt]&&We++}for(Xe=We,qe=We=0;qe<t[O].length;qe++)ft=n.indexOf(t[O][qe]),0<=ft&&(ft=Math.abs(Te-(ft>=Te?ft+1:ft)),We+=ft<n.length+1-ft?ft:n.length+1-ft);for(qe=0;qe<a.length;qe++)ft=o[a[qe]],tt=o[p[qe]],ft>=Te&&ft++,tt>=Te&&tt++,ft>tt&&(rt=tt,tt=ft,ft=rt),tt-ft<(n.length+2)/2==(ft<Te&&Te<=tt)&&We++;(Xe<D||Xe===D&&We<X)&&(D=Xe,X=We,re=Te)}for(n.splice(re,0,O),D=0;D<n.length;D++)o[n[D]]=D;for(D=0;D<t[O].length;D++)X=t[O][D],0<=n.indexOf(X)&&(a.push(O),p.push(X))}w++}}for(a=n.length;;){for(o=!0,p=0;p<r.length;p++)if(w=r[p],O=t[w][0],D=n.indexOf(O),0<=D){for(re=X=0;re<t[O].length;re++)de=n.indexOf(t[O][re]),0>de||de===D||(Se=de>D?de-D:D-de,X+=de<D!=Se>a-Se?1:-1);n.splice(0>X?D:D+1,0,w),r.splice(p,1),p--}else o=!1;if(o)break;n.push(r[0]),r.splice(0,1)}for(t=0;t<n.length;t++)i.add(e.M(n[t]));return i},kn.Object.defineProperties(wo.prototype,{radius:{get:function(){return this.eo},set:function(e){this.eo!==e&&(0<e||isNaN(e))&&(this.eo=e,this.C())}},aspectRatio:{get:function(){return this.Cm},set:function(e){this.Cm!==e&&0<e&&(this.Cm=e,this.C())}},startAngle:{get:function(){return this.ro},set:function(e){this.ro!==e&&(this.ro=e,this.C())}},sweepAngle:{get:function(){return this.ul},set:function(e){this.ul!==e&&(0<e&&360>=e?this.ul=e:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(e){this.Rb===e||e!==yu&&e!==vu&&e!==Rh&&e!==rh||(this.Rb=e,this.C())}},direction:{get:function(){return this.K},set:function(e){this.K===e||e!==Ia&&e!==Ih&&e!==gf&&e!==Pd||(this.K=e,this.C())}},sorting:{get:function(){return this.nd},set:function(e){this.nd===e||e!==Nm&&e!==Rm&&e!==Im&&!Om&&e!==Fd||(this.nd=e,this.C())}},comparer:{get:function(){return this.hd},set:function(e){this.hd!==e&&(this.hd=e,this.C())}},spacing:{get:function(){return this.tf},set:function(e){this.tf!==e&&(this.tf=e,this.C())}},nodeDiameterFormula:{get:function(){return this.Nn},set:function(e){this.Nn===e||e!==Lm&&e!==Gf||(this.Nn=e,this.C())}},actualXRadius:{get:function(){return this.lc}},actualYRadius:{get:function(){return this.me}},actualSpacing:{get:function(){return this.Ti}},actualCenter:{get:function(){return this.Zv}}});var vu=new hn(wo,"ConstantSpacing",0),Rh=new hn(wo,"ConstantDistance",1),rh=new hn(wo,"ConstantAngle",2),yu=new hn(wo,"Packed",3),Ia=new hn(wo,"Clockwise",4),Ih=new hn(wo,"Counterclockwise",5),gf=new hn(wo,"BidirectionalLeft",6),Pd=new hn(wo,"BidirectionalRight",7),Nm=new hn(wo,"Forwards",8),Rm=new hn(wo,"Reverse",9),Im=new hn(wo,"Ascending",10),Om=new hn(wo,"Descending",11),Fd=new hn(wo,"Optimized",12),Lm=new hn(wo,"Pythagorean",13),Gf=new hn(wo,"Circular",14);wo.className="CircularLayout",wo.ConstantSpacing=vu,wo.ConstantDistance=Rh,wo.ConstantAngle=rh,wo.Packed=yu,wo.Clockwise=Ia,wo.Counterclockwise=Ih,wo.BidirectionalLeft=gf,wo.BidirectionalRight=Pd,wo.Forwards=Nm,wo.Reverse=Rm,wo.Ascending=Im,wo.Descending=Om,wo.Optimized=Fd,wo.Pythagorean=Lm,wo.Circular=Gf;function Xp(){this.Pl=-1/0,this.tm=this.mk=null}Xp.prototype.compare=function(e,t){if(0<e&&0>this.Pl||Math.abs(e)<Math.abs(this.Pl)&&!(0>e&&0<this.Pl))for(this.Pl=e,this.mk=[],this.tm=[],e=0;e<t.length;e++)this.mk[e]=t[e].bounds.x,this.tm[e]=t[e].bounds.y},Xp.prototype.commit=function(e){if(this.mk!==null&&this.tm!==null)for(var t=0;t<this.mk.length;t++){var n=e.M(t);n.x=this.mk[t],n.y=this.tm[t]}},Xp.className="VertexArrangement";function Bd(e){Ki.call(this,e)}Tn(Bd,Ki),Bd.prototype.createVertex=function(){return new Zp(this)},Bd.prototype.createEdge=function(){return new Mm(this)},Bd.className="CircularNetwork";function Zp(e){xs.call(this,e),this.u=this.Si=NaN}Tn(Zp,xs);function Oh(e,t){var n=e.network;if(n===null)return NaN;if(n=n.layout,n===null)return NaN;if(n.arrangement===yu)if(n.nodeDiameterFormula===Gf)e.Si=Math.max(e.width,e.height);else{if(n=Math.abs(Math.sin(t)),t=Math.abs(Math.cos(t)),n===0)return e.width;if(t===0)return e.height;e.Si=Math.min(e.height/n,e.width/t)}else e.Si=n.nodeDiameterFormula===Gf?Math.max(e.width,e.height):Math.sqrt(e.width*e.width+e.height*e.height);return e.Si}kn.Object.defineProperties(Zp.prototype,{diameter:{get:function(){return this.Si},set:function(e){this.Si!==e&&(this.Si=e)}},actualAngle:{get:function(){return this.u},set:function(e){this.u!==e&&(this.u=e)}}}),Zp.className="CircularVertex";function Mm(e){ll.call(this,e)}Tn(Mm,ll),Mm.className="CircularEdge";function Xs(e){co.call(this),this.ah=null,this.An=0,this.$d=new Yt(100,100).freeze(),this.Bm=!1,this.sf=!0,this.td=!1,this.dl=100,this.$m=1,this.Zf=1e3,this.In=10,this.fo=Math,this.Hk=.05,this.Gk=50,this.Ek=150,this.Fk=0,this.Vm=10,this.Um=5,e&&Object.assign(this,e)}Tn(Xs,co),Xs.prototype.cloneProtected=function(e){co.prototype.cloneProtected.call(this,e),e.$d.assign(this.$d),e.Bm=this.Bm,e.sf=this.sf,e.td=this.td,e.dl=this.dl,e.$m=this.$m,e.Zf=this.Zf,e.In=this.In,e.fo=this.fo,e.Hk=this.Hk,e.Gk=this.Gk,e.Ek=this.Ek,e.Fk=this.Fk,e.Vm=this.Vm,e.Um=this.Um},Xs.prototype.createNetwork=function(){return new Wf(this)},Xs.prototype.doLayout=function(e){if(this.network===null&&(this.network=this.makeNetwork(e)),e=this.maxIterations,0<this.network.vertexes.count){this.network.Ko();for(var t=this.network.vertexes.iterator;t.next();){var n=t.value;n.charge=this.electricalCharge(n),n.mass=this.gravitationalMass(n)}for(t=this.network.edges.iterator;t.next();)n=t.value,n.stiffness=this.springStiffness(n),n.length=this.springLength(n);if(this.Cu(),this.An=0,this.needsClusterLayout()){t=this.network,n=t.Zx();for(var r=n.iterator;r.next();){this.network=r.value;for(var i=this.network.vertexes.iterator;i.next();){var o=i.value;o.Vd=o.vertexes.count,o.sh=1,o.Hj=null,o.We=null}Zb(this,0,e)}this.network=t;var a=r=n.iterator;r=this.arrangementSpacing;var p=a.count,w=!0;o=i=0;for(var O=yr(),D=0;D<p+t.vertexes.count+2;D++)O[D]=null;p=0,a.reset();for(var X=Nt.alloc();a.next();)if(D=a.value,this.computeBounds(D,X),w)w=!1,i=X.x+X.width/2,o=X.y+X.height/2,O[0]=new Ue(X.x+X.width+r.width,X.y),O[1]=new Ue(X.x,X.y+X.height+r.height),p=2;else{var re=Jb(O,p,i,o,X.width,X.height,r),de=O[re],Se=new Ue(de.x+X.width+r.width,de.y),Te=new Ue(de.x,de.y+X.height+r.height);for(re+1<p&&O.splice(re+1,0,null),O[re]=Se,O[re+1]=Te,p++,re=de.x-X.x,de=de.y-X.y,D=D.vertexes.iterator;D.next();)Se=D.value,Se.centerX+=re,Se.centerY+=de}for(Nt.free(X),D=t.vertexes.iterator;D.next();)a=D.value,re=a.bounds,2>p?(i=re.x+re.width/2,o=re.y+re.height/2,O[0]=new Ue(re.x+re.width+r.width,re.y),O[1]=new Ue(re.x,re.y+re.height+r.height),p=2):(w=Jb(O,p,i,o,re.width,re.height,r),X=O[w],de=new Ue(X.x+re.width+r.width,X.y),re=new Ue(X.x,X.y+re.height+r.height),w+1<p&&O.splice(w+1,0,null),O[w]=de,O[w+1]=re,p++,a.centerX=X.x+a.width/2,a.centerY=X.y+a.height/2);for(Mr(O),r=n.iterator;r.next();){for(n=r.value,i=n.vertexes.iterator;i.next();)t.dh(i.value);for(n=n.edges.iterator;n.next();)t.Bo(n.value)}}qb(this,e),this.updateParts()}this.dl=e,this.network=null,this.isValidLayout=!0},Xs.prototype.needsClusterLayout=function(){if(3>this.network.vertexes.count)return!1;for(var e=0,t=0,n=this.network.vertexes.first().bounds,r=this.network.vertexes.iterator;r.next();){if(r.value.bounds.Yc(n)&&(e++,2<e))return!0;if(10<t)break;t++}return!1},Xs.prototype.computeBounds=function(e,t){var n=!0;for(e=e.vertexes.iterator;e.next();){var r=e.value;n?(n=!1,t.set(r.bounds)):t.ed(r.bounds)}return t};function Zb(e,t,n){if(J1(e,t)){var r=e.Zf;e.Zf*=1+1/(t+1);var i=Q1(e,t),o=Math.max(0,Math.max(Math.min(e.network.vertexes.count,n*(t+1)/11),10));for(e.maxIterations+=o,Zb(e,t+1,n),qb(e,o),q1(e,i),t=i.vertexes.Fa(),t.sort(function(a,p){return a===null||p===null||a===p?0:p.Vd-a.Vd}),n=0;n<t.length;n++)eS(e,t[n]);e.Zf=r}}function J1(e,t){if(10<t||3>e.network.vertexes.count)return!1;for(e.ah=e.network.vertexes.Fa(),e=e.ah,e.sort(function(n,r){return n===null||r===null||n===r?0:r.Vd-n.Vd}),t=e.length-1;0<=t&&1>=e[t].Vd;)t--;return 1<e.length-t}function Q1(e,t){for(var n=e.network,r=new Wf(e),i=0;i<e.ah.length;i++){var o=e.ah[i];if(1<o.Vd){r.dh(o);var a=new e1;a.Rs=o.Vd,a.Ss=o.width,a.Qs=o.height,a.Sv=o.focus.x,a.Tv=o.focus.y,o.We===null&&(o.We=new tn),o.We.add(a),o.sv=o.We.count-1}else break}for(o=n.edges.iterator;o.next();){var p=o.value;i=p.fromVertex,a=p.toVertex,i.network===r&&a.network===r?r.Bo(p):i.network===r?(p=i.Hj,p===null&&(p=new tn,i.Hj=p),p.add(a),i.Vd--,i.sh+=a.sh):a.network===r&&(p=a.Hj,p===null&&(p=new tn,a.Hj=p),p.add(i),a.Vd--,a.sh+=i.sh)}for(i=r.edges.iterator;i.next();)o=i.value,o.length*=Math.max(1,vt.sqrt((o.fromVertex.sh+o.toVertex.sh)/(4*t+1)));for(t=r.vertexes.iterator;t.next();){i=t.value;var w=i.Hj;if(w!==null&&0<w.count&&(a=i.We.M(i.We.count-1).Rs-i.Vd,!(0>=a))){for(var O=p=0,D=w.count-a;D<w.count;D++){var X=w.M(D),re=null;for(o=X.edges.iterator;o.next();){var de=o.value;if(de.Ax(X)===i){re=de;break}}re!==null&&(O+=re.length,p+=X.width*X.height)}o=i.centerX,w=i.centerY,D=i.width,X=i.height,re=i.focus,de=D*X,1>de&&(de=1),p=vt.sqrt((p+de+O*O*4/(a*a))/de),a=(p-1)*D/2,p=(p-1)*X/2,i.bounds=new Nt(o-re.x-a,w-re.y-p,D+2*a,X+2*p),i.focus=new Ue(re.x+a,re.y+p)}}return e.network=r,n}function q1(e,t){for(var n=e.network.vertexes.iterator;n.next();){var r=n.value;if(r.network=t,r.We!==null){var i=r.We.M(r.sv);r.Vd=i.Rs;var o=i.Sv,a=i.Tv;r.bounds=new Nt(r.centerX-o,r.centerY-a,i.Ss,i.Qs),r.focus=new Ue(o,a),r.sv--}}for(n=e.network.edges.iterator;n.next();)n.value.network=t;e.network=t}function eS(e,t){var n=t.Hj;if(n!==null&&n.count!==0){var r=t.centerX,i=t.centerY,o=t.width,a=t.height;t.We!==null&&0<t.We.count&&(a=t.We.M(0),o=a.Ss,a=a.Qs),o=vt.sqrt(o*o+a*a)/2;for(var p=!1,w=a=0,O=0,D=t.vertexes.iterator;D.next();){var X=D.value;1>=X.Vd?w++:(p=!0,O++,a+=Math.atan2(t.centerY-X.centerY,t.centerX-X.centerX))}if(w!==0){for(0<O&&(a/=O),O=t=0,t=p?2*Math.PI/(w+1):2*Math.PI/w,w%2===0&&(O=t/2),1<n.count&&n.sort(function(de,Se){return de===null||Se===null||de===Se?0:Se.width*Se.height-de.width*de.height}),p=w%2===0?0:1,n=n.iterator;n.next();)if(w=n.value,!(1<w.Vd||e.isFixed(w))){for(D=null,X=w.edges.iterator;X.next();){D=X.value;break}X=w.width;var re=w.height;X=vt.sqrt(X*X+re*re)/2,D=o+D.length+X,X=a+(t*(p/2>>1)+O)*(p%2===0?1:-1),w.centerX=r+D*Math.cos(X),w.centerY=i+D*Math.sin(X),p++}}}}function Jb(e,t,n,r,i,o,a){var p=9e19,w=-1,O=0;e:for(;O<t;O++){var D=e[O],X=D.x-n,re=D.y-r;if(X=X*X+re*re,X<p){for(re=O-1;0<=re;re--)if(e[re].y>D.y&&e[re].x-D.x<i+a.width)continue e;for(re=O+1;re<t;re++)if(e[re].x>D.x&&e[re].y-D.y<o+a.height)continue e;w=O,p=X}}return w}Xs.prototype.Cu=function(){if(this.comments)for(var e=this.network.vertexes.iterator;e.next();)this.addComments(e.value)},Xs.prototype.addComments=function(e){var t=e.node;if(t!==null)for(t=t.Mu();t.next();){var n=t.value;if(n.category==="Comment"&&n.isVisible()){var r=this.network.ki(n);r===null&&(r=this.network.Bl(n)),r.charge=this.defaultCommentElectricalCharge,n=null;for(var i=r.destinationEdges;i.next();){var o=i.value;if(o.toVertex===e){n=o;break}}if(n===null){for(i=r.sourceEdges;i.next();)if(o=i.value,o.fromVertex===e){n=o;break}}n===null&&(n=this.network.Zj(e,r,null)),n.length=this.defaultCommentSpringLength}}};function Qb(e,t){var n=e.bounds,r=n.x;e=n.y;var i=n.width;n=n.height;var o=t.bounds,a=o.x;t=o.y;var p=o.width;return o=o.height,r+i<a?e>t+o?(n=r+i-a,e=e-t-o,vt.sqrt(n*n+e*e)):e+n<t?(r=r+i-a,e=e+n-t,vt.sqrt(r*r+e*e)):a-(r+i):r>a+p?e>t+o?(n=r-a-p,e=e-t-o,vt.sqrt(n*n+e*e)):e+n<t?(r=r-a-p,e=e+n-t,vt.sqrt(r*r+e*e)):r-(a+p):e>t+o?e-(t+o):e+n<t?t-(e+n):.1}function qb(e,t){for(e.ah=null,t=e.An+t;e.An<t&&(e.An++,tS(e)););e.ah=null}function tS(e){e.ah===null&&(e.ah=e.network.vertexes.Fa());var t=e.ah;if(0>=t.length)return!1;var n=t[0];n.forceX=0,n.forceY=0;for(var r=n.centerX,i=r,o=n=n.centerY,a=1;a<t.length;a++){var p=t[a];p.forceX=0,p.forceY=0;var w=p.centerX;p=p.centerY,r=Math.min(r,w),i=Math.max(i,w),n=Math.min(n,p),o=Math.max(o,p)}(i=i-r>o-n)?t.sort(function(Te,Xe){return Te===null||Xe===null||Te===Xe?0:Te.centerX-Xe.centerX}):t.sort(function(Te,Xe){return Te===null||Xe===null||Te===Xe?0:Te.centerY-Xe.centerY}),n=e.Zf;var O=r=p=0;for(o=0;o<t.length;o++){a=t[o],r=a.bounds,p=a.focus,w=r.x+p.x;var D=r.y+p.y;r=a.charge*e.electricalFieldX(w,D),O=a.charge*e.electricalFieldY(w,D),r+=a.mass*e.gravitationalFieldX(w,D),O+=a.mass*e.gravitationalFieldY(w,D),a.forceX+=r,a.forceY+=O;for(var X=o+1;X<t.length;X++){var re=t[X];if(re!==a){r=re.bounds,p=re.focus,O=r.x+p.x;var de=r.y+p.y;if(w-O>n||O-w>n){if(i)break}else if(D-de>n||de-D>n){if(!i)break}else{var Se=Qb(a,re);1>Se?(r=e.randomNumberGenerator,r===null&&(e.randomNumberGenerator=r=new Dm),Se=r.random(),p=r.random(),w>O?(r=Math.abs(re.bounds.right-a.bounds.x),r=(1+r)*Se):w<O?(r=Math.abs(re.bounds.x-a.bounds.right),r=-(1+r)*Se):(r=Math.max(re.width,a.width),r=(1+r)*Se-r/2),D>de?(O=Math.abs(re.bounds.bottom-a.bounds.y),O=(1+O)*p):w<O?(O=Math.abs(re.bounds.y-a.bounds.bottom),O=-(1+O)*p):(O=Math.max(re.height,a.height),O=(1+O)*p-O/2)):(p=-(a.charge*re.charge)/(Se*Se),r=(O-w)/Se*p,O=(de-D)/Se*p),a.forceX+=r,a.forceY+=O,re.forceX-=r,re.forceY-=O}}}}for(i=e.network.edges.iterator;i.next();)p=i.value,n=p.fromVertex,o=p.toVertex,a=n.bounds,w=n.focus,r=a.x+w.x,a=a.y+w.y,D=o.bounds,X=o.focus,w=D.x+X.x,D=D.y+X.y,X=Qb(n,o),1>X?(X=e.randomNumberGenerator,X===null&&(e.randomNumberGenerator=X=new Dm),p=X.random(),X=X.random(),r=(r>w?1:-1)*(1+(o.width>n.width?o.width:n.width))*p,O=(a>D?1:-1)*(1+(o.height>n.height?o.height:n.height))*X):(p=p.stiffness*(X-p.length),r=(w-r)/X*p,O=(D-a)/X*p),n.forceX+=r,n.forceY+=O,o.forceX-=r,o.forceY-=O;for(i=r=0;i<t.length;i++)n=t[i],e.isFixed(n)?e.moveFixedVertex(n):r=Math.max(r,e.moveVertex(n)||0);return r>e.epsilonDistance*e.epsilonDistance}Xs.prototype.moveVertex=function(e){var t=e.forceX,n=e.forceY,r=this.moveLimit;return t<-r?t=-r:t>r&&(t=r),n<-r?n=-r:n>r&&(n=r),e.centerX+=t,e.centerY+=n,t*t+n*n},Xs.prototype.moveFixedVertex=function(){},Xs.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},Xs.prototype.yv=function(){if(this.setsPortSpots)for(var e=this.network.edges.iterator;e.next();){var t=e.value.link;t!==null&&(t.fromSpot=is,t.toSpot=is)}},Xs.prototype.commitNodes=function(){var e=0,t=0;if(this.arrangesToOrigin){var n=Nt.alloc();this.computeBounds(this.network,n),t=this.arrangementOrigin,e=t.x-n.x,t=t.y-n.y,Nt.free(n)}n=Nt.alloc();for(var r=this.network.vertexes.iterator;r.next();){var i=r.value;(e!==0||t!==0)&&(n.assign(i.bounds),n.x+=e,n.y+=t,i.bounds=n),i.commit()}Nt.free(n)},Xs.prototype.commitLinks=function(){for(var e=this.network.edges.iterator;e.next();)e.value.commit()},Xs.prototype.springStiffness=function(e){return e=e.stiffness,isNaN(e)?this.Hk:e},Xs.prototype.springLength=function(e){return e=e.length,isNaN(e)?this.Gk:e},Xs.prototype.electricalCharge=function(e){return e=e.charge,isNaN(e)?this.Ek:e},Xs.prototype.electricalFieldX=function(){return 0},Xs.prototype.electricalFieldY=function(){return 0},Xs.prototype.gravitationalMass=function(e){return e=e.mass,isNaN(e)?this.Fk:e},Xs.prototype.gravitationalFieldX=function(){return 0},Xs.prototype.gravitationalFieldY=function(){return 0},Xs.prototype.isFixed=function(e){return e.isFixed},kn.Object.defineProperties(Xs.prototype,{currentIteration:{get:function(){return this.An}},arrangementSpacing:{get:function(){return this.$d},set:function(e){this.$d.D(e)||(this.$d.assign(e),this.C())}},arrangesToOrigin:{get:function(){return this.Bm},set:function(e){this.Bm!==e&&(this.Bm=e,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(e){this.sf!==e&&(this.sf=e,this.C())}},comments:{get:function(){return this.td},set:function(e){this.td!==e&&(this.td=e,this.C())}},maxIterations:{get:function(){return this.dl},set:function(e){this.dl!==e&&0<=e&&(this.dl=e,this.C())}},epsilonDistance:{get:function(){return this.$m},set:function(e){this.$m!==e&&0<e&&(this.$m=e,this.C())}},infinityDistance:{get:function(){return this.Zf},set:function(e){this.Zf!==e&&1<e&&(this.Zf=e,this.C())}},moveLimit:{get:function(){return this.In},set:function(e){this.In!==e&&1<e&&(this.In=e,this.C())}},randomNumberGenerator:{get:function(){return this.fo},set:function(e){this.fo!==e&&(e!==null&&typeof e.random!="function"&&Lt('ForceDirectedLayout.randomNumberGenerator must have a "random()" function on it: '+e),this.fo=e)}},defaultSpringStiffness:{get:function(){return this.Hk},set:function(e){this.Hk!==e&&(this.Hk=e,this.C())}},defaultSpringLength:{get:function(){return this.Gk},set:function(e){this.Gk!==e&&(this.Gk=e,this.C())}},defaultElectricalCharge:{get:function(){return this.Ek},set:function(e){this.Ek!==e&&(this.Ek=e,this.C())}},defaultGravitationalMass:{get:function(){return this.Fk},set:function(e){this.Fk!==e&&(this.Fk=e,this.C())}},defaultCommentSpringLength:{get:function(){return this.Vm},set:function(e){this.Vm!==e&&(this.Vm=e,this.C())}},defaultCommentElectricalCharge:{get:function(){return this.Um},set:function(e){this.Um!==e&&(this.Um=e,this.C())}}}),Xs.className="ForceDirectedLayout";function e1(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}e1.className="ForceDirectedSubnet";function Wf(e){Ki.call(this,e)}Tn(Wf,Ki),Wf.prototype.createVertex=function(){return new Jp(this)},Wf.prototype.createEdge=function(){return new Qp(this)},Wf.className="ForceDirectedNetwork";function Jp(e){xs.call(this,e),this.ia=!1,this.Ha=this.u=NaN,this.sh=this.Vd=this.V=this.F=0,this.We=this.Hj=null,this.sv=0}Tn(Jp,xs),kn.Object.defineProperties(Jp.prototype,{isFixed:{get:function(){return this.ia},set:function(e){this.ia!==e&&(this.ia=e)}},charge:{get:function(){return this.u},set:function(e){this.u!==e&&(this.u=e)}},mass:{get:function(){return this.Ha},set:function(e){this.Ha!==e&&(this.Ha=e)}},forceX:{get:function(){return this.F},set:function(e){this.F!==e&&(this.F=e)}},forceY:{get:function(){return this.V},set:function(e){this.V!==e&&(this.V=e)}}}),Jp.className="ForceDirectedVertex";function Qp(e){ll.call(this,e),this.j=this.o=NaN}Tn(Qp,ll),kn.Object.defineProperties(Qp.prototype,{stiffness:{get:function(){return this.o},set:function(e){this.o!==e&&(this.o=e)}},length:{get:function(){return this.j},set:function(e){this.j!==e&&(this.j=e)}}}),Qp.className="ForceDirectedEdge";function Dm(){var e=0;e===void 0&&(e=42),this.seed=e,this.ay=48271,this.ey=2147483647,this.Q=44488.07041494893,this.gy=3399,this.by=1/2147483647,this.random()}Dm.prototype.random=function(){var e=this.seed%this.Q*this.ay-this.seed/this.Q*this.gy;return 0<e?this.seed=e:this.seed=e+this.ey,this.seed*this.by},Dm.className="RandomNumberGenerator";function xi(e){co.call(this),this.kc=this.ie=25,this.K=0,this.Dk=Um,this.Zk=Hm,this.Qk=zm,this.bj=4,this.rk=Gm,this.bg=15,this.sf=!0,this.Cn=4,this.Ra=this.Iq=this.Ia=-1,this.Md=this.Hn=0,this.Ta=this.Kd=this.Ld=this.he=this.tc=null,this.Kn=0,this.Jn=this.kj=null,this.le=0,this.fl=null,this.Rf=new Ue,this.He=[],this.He.length=100,this.xw=this.ve=0,e&&Object.assign(this,e)}Tn(xi,co),xi.prototype.cloneProtected=function(e){co.prototype.cloneProtected.call(this,e),e.ie=this.ie,e.kc=this.kc,e.K=this.K,e.Dk=this.Dk,e.Zk=this.Zk,e.Qk=this.Qk,e.bj=this.bj,e.rk=this.rk,e.bg=this.bg,e.sf=this.sf,e.Cn=this.Cn,e.ve=this.ve},xi.prototype.qb=function(e){e.classType===xi?e.name.indexOf("Aggressive")===0?this.aggressiveOption=e:e.name.indexOf("Cycle")===0?this.cycleRemoveOption=e:e.name.indexOf("Init")===0?this.initializeOption=e:e.name.indexOf("Layer")===0?this.layeringOption=e:Lt("Unknown enum value: "+e):co.prototype.qb.call(this,e)},xi.prototype.createNetwork=function(){return new Ud(this)},xi.prototype.doLayout=function(e){for(this.network===null&&(this.network=this.makeNetwork(e)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),this.Iq=-1,this.Md=this.Hn=0,this.fl=this.Jn=this.kj=null,e=0;e<this.He.length;e++)this.He[e]=null;if(0<this.network.vertexes.count){for(this.network.Ko(),this.cycleRemoveOption!==eg&&this.removeCycles(),e=this.network.vertexes.iterator;e.next();)e.value.layer=-1;for(this.Ia=-1,this.assignLayers(),e.reset();e.next();)this.Ia=Math.max(this.Ia,e.value.layer);this.cycleRemoveOption===eg&&this.removeCycles(),e=this.network;for(var t=[],n=e.edges.iterator;n.next();){var r=n.value;r.valid=!1,t.push(r)}for(n=0;n<t.length;n++){r=t[n];var i=r.fromVertex,o=r.toVertex;if(!(r.valid||(i.node===null&&i.data===null||o.node===null&&o.data===null)&&i.layer===o.layer)){var a=0,p=0,w=0,O=0;if(r.link!==null){if(p=r.link,p===null)continue;var D=i.node;if(a=o.node,D===null||a===null)continue;var X=p.fromNode;w=p.toNode;for(var re=p.fromPort;re!==null&&!re.Ed();)re=re.panel;for(p=p.toPort;p!==null&&!p.Ed();)p=p.panel;if(r.rev){O=X;var de=re;X=w,re=p,w=O,p=de}var Se=i.focus;O=o.focus;var Te=r.rev?o.bounds:i.bounds;de=Ue.alloc(),D!==X?Te.w()&&X.isVisible()?X.actualBounds.w()?(Qc(X,re,jr,de),de.x+=X.actualBounds.x-Te.x,de.y+=X.actualBounds.y-Te.y):(Qc(X,re,jr,de),de.w()||de.assign(Se)):de.assign(Se):Te.w()?(Qc(X,re,jr,de),de.w()||de.assign(Se)):de.assign(Se),X=r.rev?i.bounds:o.bounds,D=Ue.alloc(),a!==w?X.w()&&w.isVisible()?w.actualBounds.w()?(Qc(w,p,jr,D),D.x+=w.actualBounds.x-X.x,D.y+=w.actualBounds.y-X.y):(Qc(w,p,jr,D),D.w()||D.assign(O)):D.assign(O):X.w()?(Qc(w,p,jr,D),D.w()||D.assign(O)):D.assign(O),this.K===90||this.K===270?(a=Math.round((de.x-Se.x)/this.kc),w=de.x,p=Math.round((D.x-O.x)/this.kc),O=D.x):(a=Math.round((de.y-Se.y)/this.kc),w=de.y,p=Math.round((D.y-O.y)/this.kc),O=D.y),Ue.free(de),Ue.free(D),r.portFromColOffset=a,r.portFromPos=w,r.portToColOffset=p,r.portToPos=O}else r.portFromColOffset=0,r.portFromPos=0,r.portToColOffset=0,r.portToPos=0;if(de=i.layer,D=o.layer,X=0,Te=r.link,Te!==null){var Xe=Te.fromPort,We=Te.toPort;if(Xe!==null&&We!==null){var qe=Te.fromNode;if(re=Te.toNode,qe!==null&&re!==null){var tt=jm(this,!0),rt=jm(this,!1),ft=this.setsPortSpots?tt:Te.computeSpot(!0,Xe);Se=this.setsPortSpots?rt:Te.computeSpot(!1,We);var Tt=Te.isOrthogonal;ft.$c()&&ft.Hf(rt)&&Se.$c()&&Se.Hf(tt)?X=0:(tt=Te.getLinkPoint(qe,Xe,ft,!0,Tt,re,We,Ue.alloc()),rt=Te.getLinkDirection(qe,Xe,tt,ft,!0,Tt,re,We),Ue.free(tt),ft.ys()||rt!==u1(this,r,!0)?this.setsPortSpots&&qe!==null&&qe.ports.count===1&&r.rev&&(X+=1):X+=1,ft=Te.getLinkPoint(re,We,Se,!1,Tt,qe,Xe,Ue.alloc()),Te=Te.getLinkDirection(re,We,ft,Se,!1,Tt,qe,Xe),Ue.free(ft),Se.ys()||Te!==u1(this,r,!1)?this.setsPortSpots&&re!==null&&re.ports.count===1&&r.rev&&(X+=2):X+=2)}}}if(re=X,X=re===1||re===3,(re=re===2||re===3)&&(Se=e.createVertex(),Se.node=null,Se.Dj=1,Se.layer=de,Se.near=i,e.dh(Se),i=e.Zj(i,Se,r.link),i.valid=!1,i.rev=r.rev,i.portFromColOffset=a,i.portToColOffset=0,i.portFromPos=w,i.portToPos=0,i=Se),Te=1,X&&Te--,de-D>Te&&0<de){for(r.valid=!1,Se=e.createVertex(),Se.node=null,Se.Dj=2,Se.layer=de-1,e.dh(Se),i=e.Zj(i,Se,r.link),i.valid=!0,i.rev=r.rev,i.portFromColOffset=re?0:a,i.portToColOffset=0,i.portFromPos=re?0:w,i.portToPos=0,i=Se,de--;de-D>Te&&0<de;)Se=e.createVertex(),Se.node=null,Se.Dj=3,Se.layer=de-1,e.dh(Se),i=e.Zj(i,Se,r.link),i.valid=!0,i.rev=r.rev,i.portFromColOffset=0,i.portToColOffset=0,i.portFromPos=0,i.portToPos=0,i=Se,de--;i=e.Zj(Se,o,r.link),i.valid=!X,X&&(Se.near=o),i.rev=r.rev,i.portFromColOffset=0,i.portToColOffset=p,i.portFromPos=0,i.portToPos=O}else r.valid=!0}}for(e=this.tc=[],t=0;t<=this.Ia;t++)e[t]=0;for(t=this.network.vertexes.iterator;t.next();)t.value.index=-1;for(this.initializeIndices(),this.Iq=-1,n=this.Md=this.Hn=0;n<=this.Ia;n++)e[n]>e[this.Md]&&(this.Iq=e[n]-1,this.Md=n),e[n]<e[this.Hn]&&(this.Hn=n);for(this.fl=[],n=0;n<e.length;n++)this.fl[n]=[];for(t.reset();t.next();)e=t.value,this.fl[e.layer][e.index]=e;for(this.Ra=-1,e=0;e<=this.Ia;e++){for(t=Lh(this,e),n=0,r=this.tc[e],o=0;o<r;o++)i=t[o],n+=this.nodeMinColumnSpace(i,!0),i.column=n,n+=1,n+=this.nodeMinColumnSpace(i,!1);this.Ra=Math.max(this.Ra,n-1),Mh(this,e,t)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},xi.prototype.linkMinLength=function(){return 1};function _y(e){var t=e.fromVertex.node||e.fromVertex.data;return e=e.toVertex.node||e.toVertex.data,t===null&&e===null?8:t===null||e===null?4:1}xi.prototype.nodeMinLayerSpace=function(e,t){return e.node===null&&e.data===null?0:this.K===90||this.K===270?t?e.focus.y+10:e.bounds.height-e.focus.y+10:t?e.focus.x+10:e.bounds.width-e.focus.x+10},xi.prototype.nodeMinColumnSpace=function(e,t){if(e.node===null&&e.data===null)return 0;var n=t?e.ev:e.dv;return n!==null?n:(n=this.K,n===90||n===270?t?e.ev=e.focus.x/this.kc+1|0:e.dv=(e.bounds.width-e.focus.x)/this.kc+1|0:t?e.ev=e.focus.y/this.kc+1|0:e.dv=(e.bounds.height-e.focus.y)/this.kc+1|0)};function za(e){e.kj===null&&(e.kj=[]);for(var t=0,n=e.network.vertexes.iterator;n.next();){var r=n.value;e.kj[t]=r.layer,t++,e.kj[t]=r.column,t++,e.kj[t]=r.index,t++}return e.kj}function Hl(e,t){var n=0;for(e=e.network.vertexes.iterator;e.next();){var r=e.value;r.layer=t[n],n++,r.column=t[n],n++,r.index=t[n],n++}}function t1(e,t,n){var r=Lh(e,t),i=e.tc[t];(e.Jn===null||e.Jn.length<i*i)&&(e.Jn=[]);for(var o=e.Jn,a=0;a<i;a++){var p=0,w=r[a],O=w.near;if(O!==null&&O.layer===w.layer)if(w=O.index,w>a)for(var D=a+1;D<w;D++){var X=r[D];X.near===O&&X.Dj===O.Dj||p++}else for(D=a-1;D>w;D--)X=r[D],X.near===O&&X.Dj===O.Dj||p++;var re;if(0<=n)for(w=r[a].sourceEdgesArrayAccess,O=0;O<w.length;O++){var de=w[O];if(de.valid&&de.fromVertex.layer!==t)for(X=de.fromVertex.index,D=de.portToPos,de=de.portFromPos,re=O+1;re<w.length;re++){var Se=w[re];if(Se.valid&&Se.fromVertex.layer!==t){var Te=Se.fromVertex.index,Xe=Se.portToPos;Se=Se.portFromPos,D<Xe&&(X>Te||X===Te&&de>Se)&&p++,Xe<D&&(Te>X||Te===X&&Se>de)&&p++}}}if(0>=n){for(w=r[a].destinationEdgesArrayAccess,O=0;O<w.length;O++)if(de=w[O],de.valid&&de.toVertex.layer!==t)for(X=de.toVertex.index,D=de.portToPos,de=de.portFromPos,re=O+1;re<w.length;re++)Se=w[re],Se.valid&&Se.toVertex.layer!==t&&(Te=Se.toVertex.index,Xe=Se.portToPos,Se=Se.portFromPos,de<Se&&(X>Te||X===Te&&D>Xe)&&p++,Se<de&&(Te>X||Te===X&&Xe>D)&&p++)}for(o[a*i+a]=p,w=a+1;w<i;w++){var We=0,qe=0;if(0<=n){p=r[a].sourceEdgesArrayAccess;var tt=r[w].sourceEdgesArrayAccess;for(O=0;O<p.length;O++)if(de=p[O],de.valid&&de.fromVertex.layer!==t)for(X=de.fromVertex.index,de=de.portFromPos,re=0;re<tt.length;re++)Se=tt[re],Se.valid&&Se.fromVertex.layer!==t&&(Te=Se.fromVertex.index,Se=Se.portFromPos,(X<Te||X===Te&&de<Se)&&qe++,(Te<X||Te===X&&Se<de)&&We++)}if(0>=n){for(p=r[a].destinationEdgesArrayAccess,tt=r[w].destinationEdgesArrayAccess,O=0;O<p.length;O++)if(de=p[O],de.valid&&de.toVertex.layer!==t)for(X=de.toVertex.index,D=de.portToPos,re=0;re<tt.length;re++)Se=tt[re],Se.valid&&Se.toVertex.layer!==t&&(Te=Se.toVertex.index,Xe=Se.portToPos,(X<Te||X===Te&&D<Xe)&&qe++,(Te<X||Te===X&&Xe<D)&&We++)}o[a*i+w]=We,o[w*i+a]=qe}}return Mh(e,t,r),o}xi.prototype.countCrossings=function(){for(var e=0,t=0;t<=this.Ia;t++)for(var n=t1(this,t,1),r=this.tc[t],i=0;i<r;i++)for(var o=i;o<r;o++)e+=n[i*r+o];return e};function Pm(e){for(var t=0,n=0;n<=e.Ia;n++){for(var r=e,i=n,o=Lh(r,i),a=r.tc[i],p=0,w=0;w<a;w++){var O=o[w].destinationEdgesArrayAccess;if(O!==null)for(var D=0;D<O.length;D++){var X=O[D];if(X.valid&&X.toVertex.layer!==i){var re=X.fromVertex.column+X.portFromColOffset,de=X.toVertex.column+X.portToColOffset;p+=(Math.abs(re-de)+1)*_y(X)}}}Mh(r,i,o),t+=p}return t}xi.prototype.normalize=function(){var e=1/0;this.Ra=-1;for(var t=this.network.vertexes.iterator;t.next();){var n=t.value;e=Math.min(e,n.column-this.nodeMinColumnSpace(n,!0)),this.Ra=Math.max(this.Ra,n.column+this.nodeMinColumnSpace(n,!1))}for(t.reset();t.next();)t.value.column-=e;this.Ra-=e};function Ay(e,t,n){for(var r=Lh(e,t),i=e.tc[t],o=[],a=0;a<i;a++){var p=r[a],w=null;0>=n&&(w=p.sourceEdgesArrayAccess);var O=null;0<=n&&(O=p.destinationEdgesArrayAccess);var D=0,X=0,re=p.near;if(re!==null&&re.layer===p.layer&&(D+=re.column-1,X++),w!==null)for(re=0;re<w.length;re++){p=w[re];var de=p.fromVertex;p.valid&&!p.rev&&de.layer!==t&&(D+=de.column,X++)}if(O!==null)for(w=0;w<O.length;w++)p=O[w],re=p.toVertex,p.valid&&!p.rev&&re.layer!==t&&(D+=re.column,X++);o[a]=X===0?-1:D/X}return Mh(e,t,r),o}function n1(e,t,n){for(var r=Lh(e,t),i=e.tc[t],o=[],a=0;a<i;a++){var p=r[a],w=null;0>=n&&(w=p.sourceEdgesArrayAccess);var O=null;0<=n&&(O=p.destinationEdgesArrayAccess);var D=0,X=[],re=p.near;if(re!==null&&re.layer===p.layer&&(X[D]=re.column-1,D++),p=void 0,w!==null)for(re=0;re<w.length;re++){p=w[re];var de=p.fromVertex;p.valid&&!p.rev&&de.layer!==t&&(X[D]=de.column+p.portFromColOffset,D++)}if(O!==null)for(w=0;w<O.length;w++)p=O[w],re=p.toVertex,p.valid&&!p.rev&&re.layer!==t&&(X[D]=re.column+p.portToColOffset,D++);D===0?o[a]=-1:(X.sort(function(Se,Te){return Se-Te}),O=D>>1,o[a]=D&1?X[O]:X[O-1]+X[O]>>1)}return Mh(e,t,r),o}function qp(e,t,n,r,i,o){if(t.component===r){if(t.component=n,i)for(var a=t.destinationEdges;a.next();){var p=a.value,w=p.toVertex,O=t.layer-w.layer;p=e.linkMinLength(p),O===p&&qp(e,w,n,r,i,o)}if(o)for(a=t.sourceEdges;a.next();)p=a.value,w=p.fromVertex,O=w.layer-t.layer,p=e.linkMinLength(p),O===p&&qp(e,w,n,r,i,o)}}function ky(e,t,n,r,i,o){if(t.component===r){if(t.component=n,i)for(var a=t.destinationEdges;a.next();)ky(e,a.value.toVertex,n,r,i,o);if(o)for(t=t.sourceEdges;t.next();)ky(e,t.value.fromVertex,n,r,i,o)}}xi.prototype.removeCycles=function(){for(var e=this.network.edges.iterator;e.next();)e.value.rev=!1;switch(this.Dk){default:case Iy:e=this.network;var t=0,n=e.vertexes.count-1,r=[];r.length=n+1;for(var i=e.vertexes.iterator;i.next();)i.value.valid=!0;for(;nS(e)!==null;){for(i=r1(e);i!==null;)r[n]=i,n--,i.valid=!1,i=r1(e);for(i=i1(e);i!==null;)r[t]=i,t++,i.valid=!1,i=i1(e);i=null;for(var o=0,a=this.network.vertexes.iterator;a.next();){var p=a.value;if(p.valid){for(var w=0,O=p.destinationEdges;O.next();)O.value.toVertex.valid&&w++;O=0;for(var D=p.sourceEdges;D.next();)D.value.fromVertex.valid&&O++;(i===null||o<w-O)&&(i=p,o=w-O)}}i!==null&&(r[t]=i,t++,i.valid=!1)}for(t=0;t<e.vertexes.count;t++)r[t].index=t;for(r=e.edges.iterator;r.next();)t=r.value,t.fromVertex.index>t.toVertex.index&&(e.gm(t),t.rev=!0);break;case Um:for(r=this.network.vertexes.iterator;r.next();)e=r.value,e.Ll=-1,e.finish=-1;for(e=this.network.edges.iterator;e.next();)e.value.forest=!1;for(this.Kn=0,r.reset();r.next();)t=r.value,t.sourceEdges.count===0&&Ny(this,t);for(r.reset();r.next();)t=r.value,t.Ll===-1&&Ny(this,t);for(e.reset();e.next();)r=e.value,r.forest||(t=r.fromVertex,n=t.finish,i=r.toVertex,o=i.finish,i.Ll<t.Ll&&n<o&&(this.network.gm(r),r.rev=!0));break;case eg:for(e=this.network,t=e.vertexes.iterator,r=1/0;t.next();)r=Math.min(r,t.value.layer);if(1/0>r){if(0>r)for(t.reset();t.next();)t.value.layer-=r;for(r=[],t.reset();t.next();)n=t.value,i=r[n.layer],i===void 0?r[n.layer]=[n]:i.push(n);for(n=t=0;n<r.length;n++)if(i=r[n],!i||i.length===0)t++;else if(0<n)for(o=0;o<i.length;o++)i[o].layer-=t;for(r=e.edges.iterator;r.next();)t=r.value,t.fromVertex.layer<t.toVertex.layer&&(e.gm(t),t.rev=!0)}}};function nS(e){for(e=e.vertexes.iterator;e.next();){var t=e.value;if(t.valid)return t}return null}function r1(e){for(e=e.vertexes.iterator;e.next();){var t=e.value;if(t.valid){for(var n=!0,r=t.destinationEdges;r.next();)if(r.value.toVertex.valid){n=!1;break}if(n)return t}}return null}function i1(e){for(e=e.vertexes.iterator;e.next();){var t=e.value;if(t.valid){for(var n=!0,r=t.sourceEdges;r.next();)if(r.value.fromVertex.valid){n=!1;break}if(n)return t}}return null}function Ny(e,t){t.Ll=e.Kn,e.Kn++;for(var n=t.destinationEdges;n.next();){var r=n.value,i=r.toVertex;i.Ll===-1&&(r.forest=!0,Ny(e,i))}t.finish=e.Kn,e.Kn++}xi.prototype.assignLayers=function(){switch(this.Zk){case Oy:o1(this);break;case Ly:for(var e,t=this.network.vertexes.iterator;t.next();)e=a1(this,t.value),this.Ia=Math.max(e,this.Ia);for(t.reset();t.next();)e=t.value,e.layer=this.Ia-e.layer;break;default:case Hm:for(o1(this),t=this.network.vertexes.iterator;t.next();)t.value.valid=!1;for(t.reset();t.next();)e=t.value,e.sourceEdges.count===0&&l1(this,e);for(e=1/0,t.reset();t.next();)e=Math.min(e,t.value.layer);for(this.Ia=-1,t.reset();t.next();){var n=t.value;n.layer-=e,this.Ia=Math.max(this.Ia,n.layer)}}};function o1(e){for(var t=e.network.vertexes.iterator;t.next();){var n=s1(e,t.value);e.Ia=Math.max(n,e.Ia)}}function s1(e,t){var n=0;if(t.layer===-1){for(var r=t.destinationEdges;r.next();){var i=r.value,o=i.toVertex;i=e.linkMinLength(i),n=Math.max(n,s1(e,o)+i)}t.layer=n}else n=t.layer;return n}function a1(e,t){var n=0;if(t.layer===-1){for(var r=t.sourceEdges;r.next();){var i=r.value,o=i.fromVertex;i=e.linkMinLength(i),n=Math.max(n,a1(e,o)+i)}t.layer=n}else n=t.layer;return n}function l1(e,t){if(!t.valid){t.valid=!0;for(var n=t.destinationEdges;n.next();)l1(e,n.value.toVertex);for(n=e.network.vertexes.iterator;n.next();)n.value.component=-1;for(var r=t.sourceEdgesArrayAccess,i=r.length,o=0;o<i;o++){var a=r[o],p=a.fromVertex,w=a.toVertex;a=e.linkMinLength(a),p.layer-w.layer>a&&qp(e,p,0,-1,!0,!1)}for(qp(e,t,1,-1,!0,!0);t.component!==0;){for(o=0,r=1/0,p=0,w=null,a=e.network.vertexes.iterator;a.next();){var O=a.value;if(O.component===1){var D=0,X=!1,re=O.sourceEdgesArrayAccess;i=re.length;for(var de=0;de<i;de++){var Se=re[de],Te=Se.fromVertex;D+=1,Te.component!==1&&(o+=1,Te=Te.layer-O.layer,Se=e.linkMinLength(Se),r=Math.min(r,Te-Se))}for(re=O.destinationEdgesArrayAccess,i=re.length,de=0;de<i;de++)Se=re[de].toVertex,--D,Se.component!==1?--o:X=!0;(w===null||D<p)&&!X&&(w=O,p=D)}}if(0<o){for(n.reset();n.next();)i=n.value,i.component===1&&(i.layer+=r);t.component=0}else w.component=0}for(n=e.network.vertexes.iterator;n.next();)n.value.component=-1;for(qp(e,t,1,-1,!0,!1);t.component!==0;){for(r=0,i=1/0,o=0,p=null,w=e.network.vertexes.iterator;w.next();)if(a=w.value,a.component===1){for(O=0,D=!1,re=a.sourceEdgesArrayAccess,X=re.length,de=0;de<X;de++)Se=re[de].fromVertex,O+=1,Se.component!==1?r+=1:D=!0;for(re=a.destinationEdgesArrayAccess,X=re.length,de=0;de<X;de++)Se=re[de],Te=Se.toVertex,--O,Te.component!==1&&(--r,Te=a.layer-Te.layer,Se=e.linkMinLength(Se),i=Math.min(i,Te-Se));(p===null||O>o)&&!D&&(p=a,o=O)}if(0>r){for(n.reset();n.next();)r=n.value,r.component===1&&(r.layer-=i);t.component=0}else p.component=0}}}function u1(e,t,n){return e.K===90?n&&!t.rev||!n&&t.rev?270:90:e.K===180?n&&!t.rev||!n&&t.rev?0:180:e.K===270?n&&!t.rev||!n&&t.rev?90:270:n&&!t.rev||!n&&t.rev?180:0}xi.prototype.initializeIndices=function(){switch(this.Qk){default:case Dy:for(var e=this.network.vertexes.iterator;e.next();){var t=e.value,n=t.layer;t.index=this.tc[n],this.tc[n]++}break;case zm:for(e=this.network.vertexes.iterator,t=this.Ia;0<=t;t--)for(e.reset();e.next();)n=e.value,n.layer===t&&n.index===-1&&c1(this,n);break;case My:for(e=this.network.vertexes.iterator,t=0;t<=this.Ia;t++)for(e.reset();e.next();)n=e.value,n.layer===t&&n.index===-1&&h1(this,n)}};function c1(e,t){var n=t.layer;for(t.index=e.tc[n],e.tc[n]++,t=t.destinationEdgesArrayAccess,n=!0;n;){n=!1;for(var r=0;r<t.length-1;r++){var i=t[r],o=t[r+1];i.portFromColOffset>o.portFromColOffset&&(n=!0,t[r]=o,t[r+1]=i)}}for(n=0;n<t.length;n++)r=t[n],r.valid&&(r=r.toVertex,r.index===-1&&c1(e,r))}function h1(e,t){var n=t.layer;t.index=e.tc[n],e.tc[n]++,t=t.sourceEdgesArrayAccess;for(var r=!0;r;)for(r=!1,n=0;n<t.length-1;n++){var i=t[n],o=t[n+1];i.portToColOffset>o.portToColOffset&&(r=!0,t[n]=o,t[n+1]=i)}for(n=0;n<t.length;n++)r=t[n],r.valid&&(r=r.fromVertex,r.index===-1&&h1(e,r))}xi.prototype.reduceCrossings=function(){var e=this.countCrossings(),t=za(this),n,r;for(n=0;n<this.bj;n++){for(r=0;r<=this.Ia;r++)Fm(this,r,1),eu(this,r,1);var i=this.countCrossings();for(i<e&&(e=i,t=za(this)),r=this.Ia;0<=r;r--)Fm(this,r,-1),eu(this,r,-1);i=this.countCrossings(),i<e&&(e=i,t=za(this))}for(Hl(this,t),n=0;n<this.bj;n++){for(r=0;r<=this.Ia;r++)Fm(this,r,0),eu(this,r,0);for(i=this.countCrossings(),i<e&&(e=i,t=za(this)),r=this.Ia;0<=r;r--)Fm(this,r,0),eu(this,r,0);i=this.countCrossings(),i<e&&(e=i,t=za(this))}Hl(this,t);var o,a,p;switch(this.rk){case Py:break;case Fy:for(p=e+1;(r=this.countCrossings())<p;)for(p=r,n=this.Ia;0<=n;n--)for(a=0;a<=n;a++){for(o=!0;o;)for(o=!1,r=n;r>=a;r--)o=eu(this,r,-1)||o;for(i=this.countCrossings(),i>=e?Hl(this,t):(e=i,t=za(this)),o=!0;o;)for(o=!1,r=n;r>=a;r--)o=eu(this,r,1)||o;for(i=this.countCrossings(),i>=e?Hl(this,t):(e=i,t=za(this)),o=!0;o;)for(o=!1,r=a;r<=n;r++)o=eu(this,r,1)||o;for(i>=e?Hl(this,t):(e=i,t=za(this)),o=!0;o;)for(o=!1,r=a;r<=n;r++)o=eu(this,r,-1)||o;for(i>=e?Hl(this,t):(e=i,t=za(this)),o=!0;o;)for(o=!1,r=n;r>=a;r--)o=eu(this,r,0)||o;for(i>=e?Hl(this,t):(e=i,t=za(this)),o=!0;o;)for(o=!1,r=a;r<=n;r++)o=eu(this,r,0)||o;i>=e?Hl(this,t):(e=i,t=za(this))}break;default:case Gm:for(n=this.Ia,a=0,p=e+1;(r=this.countCrossings())<p;){for(p=r,o=!0;o;)for(o=!1,r=n;r>=a;r--)o=eu(this,r,-1)||o;for(i=this.countCrossings(),i>=e?Hl(this,t):(e=i,t=za(this)),o=!0;o;)for(o=!1,r=n;r>=a;r--)o=eu(this,r,1)||o;for(i=this.countCrossings(),i>=e?Hl(this,t):(e=i,t=za(this)),o=!0;o;)for(o=!1,r=a;r<=n;r++)o=eu(this,r,1)||o;for(i>=e?Hl(this,t):(e=i,t=za(this)),o=!0;o;)for(o=!1,r=a;r<=n;r++)o=eu(this,r,-1)||o;for(i>=e?Hl(this,t):(e=i,t=za(this)),o=!0;o;)for(o=!1,r=n;r>=a;r--)o=eu(this,r,0)||o;for(i>=e?Hl(this,t):(e=i,t=za(this)),o=!0;o;)for(o=!1,r=a;r<=n;r++)o=eu(this,r,0)||o;i>=e?Hl(this,t):(e=i,t=za(this))}}Hl(this,t)};function Fm(e,t,n){var r=Lh(e,t),i=e.tc[t],o=n1(e,t,n),a=Ay(e,t,n);for(n=0;n<i;n++)a[n]===-1&&(a[n]=r[n].column),o[n]===-1&&(o[n]=r[n].column);for(var p=!0,w;p;)for(p=!1,n=0;n<i-1;n++)(o[n+1]<o[n]||o[n+1]===o[n]&&a[n+1]<a[n])&&(p=!0,w=o[n],o[n]=o[n+1],o[n+1]=w,w=a[n],a[n]=a[n+1],a[n+1]=w,w=r[n],r[n]=r[n+1],r[n+1]=w);for(n=o=0;n<i;n++)w=r[n],w.index=n,o+=e.nodeMinColumnSpace(w,!0),w.column=o,o+=1,o+=e.nodeMinColumnSpace(w,!1);Mh(e,t,r)}function eu(e,t,n){var r=Lh(e,t),i=e.tc[t];n=t1(e,t,n);var o,a=[];for(o=0;o<i;o++)a[o]=-1;var p=[];for(o=0;o<i;o++)p[o]=-1;for(var w=!1,O=!0;O;)for(O=!1,o=0;o<i-1;o++){var D=n[r[o].index*i+r[o+1].index],X=n[r[o+1].index*i+r[o].index],re=0,de=0,Se=r[o].column,Te=r[o+1].column,Xe=e.nodeMinColumnSpace(r[o],!0),We=e.nodeMinColumnSpace(r[o],!1),qe=e.nodeMinColumnSpace(r[o+1],!0),tt=e.nodeMinColumnSpace(r[o+1],!1);Xe=Se-Xe+qe,We=Te-We+tt;var rt=r[o].sourceEdges.iterator;for(rt.reset();rt.next();)if(qe=rt.value,tt=qe.fromVertex,qe.valid&&tt.layer===t){for(qe=0;r[qe]!==tt;)qe++;qe<o&&(re+=2*(o-qe),de+=2*(o+1-qe)),qe===o+1&&(re+=1),qe>o+1&&(re+=4*(qe-o),de+=4*(qe-(o+1)))}for(rt=r[o].destinationEdges.iterator,rt.reset();rt.next();)if(qe=rt.value,tt=qe.toVertex,qe.valid&&tt.layer===t){for(qe=0;r[qe]!==tt;)qe++;qe===o+1&&(de+=1)}for(rt=r[o+1].sourceEdges.iterator,rt.reset();rt.next();)if(qe=rt.value,tt=qe.fromVertex,qe.valid&&tt.layer===t){for(qe=0;r[qe]!==tt;)qe++;qe<o&&(re+=2*(o+1-qe),de+=2*(o-qe)),qe===o&&(de+=1),qe>o+1&&(re+=4*(qe-(o+1)),de+=4*(qe-o))}for(rt=r[o+1].destinationEdges.iterator,rt.reset();rt.next();)if(qe=rt.value,tt=qe.toVertex,qe.valid&&tt.layer===t){for(qe=0;r[qe]!==tt;)qe++;qe===o&&(re+=1)}qe=tt=0,rt=a[r[o].index];var ft=p[r[o].index],Tt=a[r[o+1].index],Sn=p[r[o+1].index];rt!==-1&&(tt+=Math.abs(rt-Se),qe+=Math.abs(rt-We)),ft!==-1&&(tt+=Math.abs(ft-Se),qe+=Math.abs(ft-We)),Tt!==-1&&(tt+=Math.abs(Tt-Te),qe+=Math.abs(Tt-Xe)),Sn!==-1&&(tt+=Math.abs(Sn-Te),qe+=Math.abs(Sn-Xe)),(de<re-.5||de===re&&X<D-.5||de===re&&X===D&&qe<tt-.5)&&(O=w=!0,r[o].column=We,r[o+1].column=Xe,D=r[o],r[o]=r[o+1],r[o+1]=D)}for(o=0;o<i;o++)r[o].index=o;return Mh(e,t,r),w}xi.prototype.straightenAndPack=function(){if(this.ve===0){var e=(this.bg&1)!==0,t=(this.bg&cS)!==0;if(1e3<this.network.edges.count&&t&&(e=!1),e){var n=[];for(t=0;t<=this.Ia;t++)n[t]=0;for(var r,i=this.network.vertexes.iterator;i.next();){var o=i.value;t=o.layer,r=o.column,o=this.nodeMinColumnSpace(o,!1),n[t]=Math.max(n[t],r+o)}for(i.reset();i.next();)o=i.value,t=o.layer,r=o.column,o.column=(8*(this.Ra-n[t])>>1)+8*r;this.Ra*=8}if(this.bg&2)for(n=!0;n;){for(n=!1,t=this.Md+1;t<=this.Ia;t++)n=jd(this,t,1)||n;for(t=this.Md-1;0<=t;t--)n=jd(this,t,-1)||n;n=jd(this,this.Md,0)||n}if(this.bg&4){for(t=this.Md+1;t<=this.Ia;t++)Ry(this,t,1);for(t=this.Md-1;0<=t;t--)Ry(this,t,-1);Ry(this,this.Md,0)}if(e&&(f1(this,-1),f1(this,1)),this.bg&2)for(n=!0;n;){for(n=!1,n=jd(this,this.Md,0)||n,t=this.Md+1;t<=this.Ia;t++)n=jd(this,t,0)||n;for(t=this.Md-1;0<=t;t--)n=jd(this,t,0)||n}}else sS(this)};function jd(e,t,n){for(var r=!1;rS(e,t,n);)r=!0;return r}function rS(e,t,n){var r,i=Lh(e,t),o=e.tc[t],a=Ay(e,t,-1);if(0<n)for(r=0;r<o;r++)a[r]=-1;var p=Ay(e,t,1);if(0>n)for(r=0;r<o;r++)p[r]=-1;for(var w=!1,O=!0;O;)for(O=!1,r=0;r<o;r++){var D=i[r].column,X=e.nodeMinColumnSpace(i[r],!0),re=e.nodeMinColumnSpace(i[r],!1),de=0;0>r-1||D-i[r-1].column-1>X+e.nodeMinColumnSpace(i[r-1],!1)?de=D-1:de=D,X=r+1>=o||i[r+1].column-D-1>re+e.nodeMinColumnSpace(i[r+1],!0)?D+1:D;var Se=re=0,Te=0;if(0>=n)for(var Xe=i[r].sourceEdges.iterator;Xe.next();){var We=Xe.value,qe=We.fromVertex;if(We.valid&&qe.layer!==t){var tt=_y(We),rt=We.portFromColOffset;We=We.portToColOffset,qe=qe.column,re+=(Math.abs(D+We-(qe+rt))+1)*tt,Se+=(Math.abs(de+We-(qe+rt))+1)*tt,Te+=(Math.abs(X+We-(qe+rt))+1)*tt}}if(0<=n)for(Xe=i[r].destinationEdges.iterator;Xe.next();)We=Xe.value,qe=We.toVertex,We.valid&&qe.layer!==t&&(tt=_y(We),rt=We.portFromColOffset,We=We.portToColOffset,qe=qe.column,re+=(Math.abs(D+rt-(qe+We))+1)*tt,Se+=(Math.abs(de+rt-(qe+We))+1)*tt,Te+=(Math.abs(X+rt-(qe+We))+1)*tt);We=rt=tt=0,Xe=a[i[r].index],qe=p[i[r].index],Xe!==-1&&(tt+=Math.abs(Xe-D),rt+=Math.abs(Xe-de),We+=Math.abs(Xe-X)),qe!==-1&&(tt+=Math.abs(qe-D),rt+=Math.abs(qe-de),We+=Math.abs(qe-X)),Se<re||Se===re&&rt<tt?(O=w=!0,i[r].column=de):(Te<re||Te===re&&We<tt)&&(O=w=!0,i[r].column=X)}return Mh(e,t,i),e.normalize(),w}function Ry(e,t,n){var r=Lh(e,t),i=e.tc[t],o=n1(e,t,n),a=[];for(n=0;n<i;n++)a[n]=o[n];for(o=!0;o;)for(o=!1,n=0;n<i;n++){var p=r[n].column,w=e.nodeMinColumnSpace(r[n],!0),O=e.nodeMinColumnSpace(r[n],!1),D=0;if(a[n]===-1)if(n===0&&n===i-1)D=p;else if(n===0){var X=r[n+1].column;X-p===O+e.nodeMinColumnSpace(r[n+1],!0)?D=p-1:D=p}else n===i-1?(X=r[n-1].column,D=p-X===w+e.nodeMinColumnSpace(r[n-1],!1)?p+1:p):(X=r[n-1].column,w=X+e.nodeMinColumnSpace(r[n-1],!1)+w+1,X=r[n+1].column,O=X-e.nodeMinColumnSpace(r[n+1],!0)-O-1,D=(w+O)/2|0);else n===0&&n===i-1?D=a[n]:n===0?(X=r[n+1].column,O=X-e.nodeMinColumnSpace(r[n+1],!0)-O-1,D=Math.min(a[n],O)):n===i-1?(X=r[n-1].column,w=X+e.nodeMinColumnSpace(r[n-1],!1)+w+1,D=Math.max(a[n],w)):(X=r[n-1].column,w=X+e.nodeMinColumnSpace(r[n-1],!1)+w+1,X=r[n+1].column,O=X-e.nodeMinColumnSpace(r[n+1],!0)-O-1,w<a[n]&&a[n]<O?D=a[n]:w>=a[n]?D=w:O<=a[n]&&(D=O));D!==p&&(o=!0,r[n].column=D)}Mh(e,t,r),e.normalize()}function iS(e,t){for(var n=!0,r=e.network.vertexes.iterator;r.next();){var i=r.value,o=e.nodeMinColumnSpace(i,!0),a=e.nodeMinColumnSpace(i,!1);if(i.column-o<=t&&i.column+a>=t){n=!1;break}}if(e=!1,n)for(r.reset();r.next();)n=r.value,n.column>t&&(--n.column,e=!0);return e}function oS(e,t){var n=t+1,r,i=[],o=[];for(r=0;r<=e.Ia;r++)i[r]=!1,o[r]=!1;for(var a=e.network.vertexes.iterator;a.next();){r=a.value;var p=r.column-e.nodeMinColumnSpace(r,!0),w=r.column+e.nodeMinColumnSpace(r,!1);p<=t&&w>=t&&(i[r.layer]=!0),p<=n&&w>=n&&(o[r.layer]=!0)}for(p=!0,n=!1,r=0;r<=e.Ia;r++)p=p&&!(i[r]&&o[r]);if(p)for(a.reset();a.next();)e=a.value,e.column>t&&(--e.column,n=!0);return n}function f1(e,t){for(var n=0;n<=e.Ra;n++)for(;iS(e,n););for(e.normalize(),n=0;n<e.Ra;n++)for(;oS(e,n););e.normalize();var r;if(0<t)for(n=0;n<=e.Ra;n++){var i=za(e),o=Pm(e);for(r=o+1;o<r;){r=o,d1(e,n,1);var a=Pm(e);a>o?Hl(e,i):a<o&&(o=a,i=za(e))}}if(0>t)for(n=e.Ra;0<=n;n--)for(i=za(e),o=Pm(e),r=o+1;o<r;)r=o,d1(e,n,-1),a=Pm(e),a>o?Hl(e,i):a<o&&(o=a,i=za(e));e.normalize()}function d1(e,t,n){e.le=0;for(var r=e.network.vertexes.iterator;r.next();)r.value.component=-1;if(0<n)for(r.reset();r.next();){var i=r.value;i.column-e.nodeMinColumnSpace(i,!0)<=t&&(i.component=e.le)}if(0>n)for(r.reset();r.next();)i=r.value,i.column+e.nodeMinColumnSpace(i,!1)>=t&&(i.component=e.le);for(e.le++,r.reset();r.next();)t=r.value,t.component===-1&&(ky(e,t,e.le,-1,!0,!0),e.le++);var o;for(t=[],o=0;o<e.le*e.le;o++)t[o]=!1;for(i=[],o=0;o<(e.Ia+1)*(e.Ra+1);o++)i[o]=-1;for(r.reset();r.next();){o=r.value;for(var a=o.layer,p=Math.max(0,o.column-e.nodeMinColumnSpace(o,!0)),w=Math.min(e.Ra,o.column+e.nodeMinColumnSpace(o,!1));p<=w;p++)i[a*(e.Ra+1)+p]=o.component}for(o=0;o<=e.Ia;o++){if(0<n)for(a=0;a<e.Ra;a++)i[o*(e.Ra+1)+a]!==-1&&i[o*(e.Ra+1)+a+1]!==-1&&i[o*(e.Ra+1)+a]!==i[o*(e.Ra+1)+a+1]&&(t[i[o*(e.Ra+1)+a]*e.le+i[o*(e.Ra+1)+a+1]]=!0);if(0>n)for(a=e.Ra;0<a;a--)i[o*(e.Ra+1)+a]!==-1&&i[o*(e.Ra+1)+a-1]!==-1&&i[o*(e.Ra+1)+a]!==i[o*(e.Ra+1)+a-1]&&(t[i[o*(e.Ra+1)+a]*e.le+i[o*(e.Ra+1)+a-1]]=!0)}for(i=[],o=0;o<e.le;o++)i[o]=!0;for(a=[],a.push(0);a.length!==0;)if(w=a[a.length-1],a.pop(),i[w])for(i[w]=!1,o=0;o<e.le;o++)t[w*e.le+o]&&a.splice(0,0,o);if(0<n)for(r.reset();r.next();)e=r.value,i[e.component]&&--e.column;if(0>n)for(r.reset();r.next();)n=r.value,i[n.component]&&(n.column+=1)}function sS(e){for(var t=yr(),n=e.fl.length,r=0;r<=n;r++)t[r]=[];for(r=e.network.vertexes.iterator;r.next();){var i=r.value;t[n-i.layer][i.index]=i}n=new ut,aS(t,n);var o=null,a=null,p=null,w=null,O=(e.ve&1)!==0,D=(e.ve&2)!==0,X=(e.ve&4)!==0,re=(e.ve&8)!==0;for(O&&(e.verticalAlignment(t,n,!0),o=Bm(e,t,!0,!1)),t.reverse(),X&&(e.verticalAlignment(t,n,!1),p=Bm(e,t,!1,!1)),r=rn(t),i=r.next();!i.done;i=r.next())i.value.reverse();re&&(e.verticalAlignment(t,n,!1),w=Bm(e,t,!1,!0)),t.reverse(),D&&(e.verticalAlignment(t,n,!0),a=Bm(e,t,!0,!0)),Mr(t),e.u(o,a,p,w),e.network.vertexes.each(function(de){var Se=yr();O&&Se.push(o.get(de)),D&&Se.push(a.get(de)),X&&Se.push(p.get(de)),re&&Se.push(w.get(de)),Se.sort(function(Xe,We){return Xe-We});var Te=Se.length;Te=(Se[Math.floor((Te-1)/2)]+Se[Math.ceil((Te-1)/2)])/2,Mr(Se),de.zc=Te})}function aS(e,t){for(var n=e.length,r=1;r<n-1;r++)for(var i=0,o=0,a=e[r],p=e[r+1],w=0;o<p.length;w++){var O=p[w];e:{if(O.node===null){var D=By(O);if(0<D.length){D=D[0].node===null;break e}}D=!1}var X=D;if(w===p.length-1||X){for(D=a.length-1,X&&(D=By(O)[0].index);o<=w;){if(O=p[o],!O.bo){X=[];for(var re=rn(O.sourceEdgesArrayAccess),de=re.next();!de.done;de=re.next())de=de.value,de.valid&&X.push(de);O.bo=X}for(O=rn(O.bo),X=O.next();!X.done;X=O.next())X=X.value,re=X.fromVertex.index,(re<i||re>D)&&t.add(X);o++}i=D}}}xi.prototype.verticalAlignment=function(e,t,n){lS(e),e=rn(e);for(var r=e.next();!r.done;r=e.next()){var i=-1;r=rn(r.value);for(var o=r.next();!o.done;o=r.next()){o=o.value;var a=n?By(o):hS(o),p=a.length;if(0<p){a.sort(function(X,re){return X.vi-re.vi});var w=(p-1)/2;for(p=Math.floor(w),w=Math.ceil(w);p<=w;p++)if(o.align===o){var O=a[p],D=void 0;D=n?Wm(O,o):Wm(o,O),!t.contains(D)&&i<O.vi&&(O.align=o,o.root=O.root,o.align=O.root,i=O.vi)}}}}};function lS(e){for(var t=0;t<e.length;t++)for(var n=e[t],r=0;r<n.length;r++){var i=n[r];i.root=i,i.align=i,i.Tz=t,i.vi=r}}function Bm(e,t,n,r){for(var i=e.K===90||e.K===270,o=rn(t),a=o.next();!a.done;a=o.next()){var p=rn(a.value);for(a=p.next();!a.done;a=p.next())a=a.value,a.sd=a,a.shift=1/0,a.zc=NaN,a.qg=0}for(a=e.K===90||e.K===270,o=rn(t),p=o.next();!p.done;p=o.next()){p=rn(p.value);for(var w=p.next();!w.done;w=p.next())if(w=w.value,w.root===w){for(var O=0,D=w;D.align!==w;){var X=D.align,re=a?D.width:D.height,de=a?X.width:X.height;if(n){var Se=Wm(D,X),Te=Se.portFromPos,Xe=Se.portToPos;Se.link!==null&&(D.node&&D.node!==Se.link.fromNode&&(Te=a?D.focusX:D.focusY),X.node&&X.node!==Se.link.toNode&&(Xe=a?X.focusX:X.focusY))}else Se=Wm(X,D),Te=Se.portToPos,Xe=Se.portFromPos,Se.link!==null&&(D.node&&D.node!==Se.link.toNode&&(Te=a?D.focusX:D.focusY),X.node&&X.node!==Se.link.fromNode&&(Xe=a?X.focusX:X.focusY));re=r?D.qg+(re-Te)-(de-Xe):D.qg+Te-Xe,X.qg=re,O=Math.min(O,re),D=D.align}D=w;do D.qg=D.qg-O,D=D.align;while(D!==w)}}for(n=rn(t),a=n.next();!a.done;a=n.next())for(o=rn(a.value),a=o.next();!a.done;a=o.next())a=a.value,a.root===a&&p1(e,a,t);for(n=0;n<t.length;n++)if(!(0>=t[n].length)&&(a=t[n][0],a.sd===a)){a.sd.shift===1/0&&(a.sd.shift=0),a=n,p=0;do{for(o=t[a][p];o.align!==o.root;)o=o.align,a++,0<o.vi&&(p=g1(o,t),p.sd.shift=Math.min(p.sd.shift,o.sd.shift+o.zc+o.qg-(p.zc+p.qg+(i?p.width:p.height)+e.columnSpacing)));p=o.vi+1}while(a<t.length&&p<t[a].length&&o.sd===t[a][p].sd)}for(e=new nn,t=rn(t),a=t.next();!a.done;a=t.next())for(n=rn(a.value),a=n.next();!a.done;a=n.next())a=a.value,a.zc=a.zc+a.sd.shift+a.qg,o=i?a.width:a.height,e.add(a,r?-a.zc-o:a.zc);return e}function p1(e,t,n){if(isNaN(t.zc)){t.zc=0;var r=t;do{if(0<r.vi){var i=g1(r,n),o=i.root;p1(e,o,n),t.sd===t&&(t.sd=o.sd);var a=e.K===90||e.K===270?i.width:i.height;t.sd===o.sd&&(t.zc=Math.max(t.zc,o.zc+i.qg+a-r.qg+e.columnSpacing))}r=r.align}while(r!==t);for(;r.align!==t;)r=r.align,r.zc=t.zc,r.sd=t.sd}}function g1(e,t){var n=e.Tz;return e=e.vi,1>e&&Lt("Could not determine previous vertex in layer"),t[n][e-1]}xi.prototype.u=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];n=-1;for(var r=yr(),i=yr(),o=1/0,a=0;4>a;a++)if(t[a]){var p=uS(this,t[a],r,i,a);p<o&&(n=a,o=p)}for(o={},a=0;4>a;o={delta:o.delta},a++)t[a]&&(o.delta=a===0||a===2?r[n]-r[a]:i[n]-i[a],o.delta!==0&&t[a].each(function(w){return function(O){O.value+=w.delta}}(o)));Mr(r),Mr(i)};function uS(e,t,n,r,i){if(!t||t.count===0)return n[i]=0,r[i]=0,1/0;var o=1/0,a=-1/0;return t.each(function(p){var w=p.key;p=p.value,w=e.K===90||e.K===270?w.width:w.height,p<o&&(o=p),p+w>a&&(a=p+w)}),n[i]=o,r[i]=a,a-o}xi.prototype.commitLayout=function(){if(this.setsPortSpots)for(var e=jm(this,!0),t=jm(this,!1),n=this.network.edges.iterator;n.next();){var r=n.value.link;r!==null&&(r.fromSpot=e,r.toSpot=t)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function jm(e,t){return e.K===270?t?Vs:js:e.K===90?t?js:Vs:e.K===180?t?Ks:ws:t?ws:Ks}xi.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var e=0;e<=this.Ia;e++)this.he[e]=0,this.Ld[e]=0,this.Kd[e]=0,this.Ta[e]=0;for(e=this.network.vertexes.iterator;e.next();){var t=e.value,n=t.layer;this.he[n]=Math.max(this.he[n],this.nodeMinLayerSpace(t,!0)),this.Ld[n]=Math.max(this.Ld[n],this.nodeMinLayerSpace(t,!1))}t=0,n=this.ie;for(var r=0;r<=this.Ia;r++){var i=n;0>=this.he[r]+this.Ld[r]&&(i=0),0<r&&(t+=i/2),this.K===90||this.K===0?(t+=this.Ld[r],this.Kd[r]=t,t+=this.he[r]):(t+=this.he[r],this.Kd[r]=t,t+=this.Ld[r]),r<this.Ia&&(t+=i/2),this.Ta[r]=t}for(n=t,t=this.arrangementOrigin,r=0;r<=this.Ia;r++)this.K===270?this.Kd[r]=t.y+this.Kd[r]:this.K===90?(this.Kd[r]=t.y+n-this.Kd[r],this.Ta[r]=n-this.Ta[r]):this.K===180?this.Kd[r]=t.x+this.Kd[r]:(this.Kd[r]=t.x+n-this.Kd[r],this.Ta[r]=n-this.Ta[r]);n=this.ve!==0,e.reset(),r=this.K===270||this.K===90;for(var o=1/0,a=i=1/0,p=-1/0;e.next();){var w=e.value,O=w.layer,D=w.column|0;r?(a=t.x+this.kc*D,O=this.Kd[O]):(a=this.Kd[O],O=t.y+this.kc*D),w.centerX=a,w.centerY=O,n&&isFinite(w.zc)&&(r?w.node?w.x=t.x+w.zc:w.centerX=t.x+w.zc:w.node?w.y=t.y+w.zc:w.centerY=t.y+w.zc),o=Math.min(w.x,o),i=Math.min(w.y,i),r?(a=o,p=Math.max(p,w.bounds.right)):(a=i,p=Math.max(p,w.bounds.bottom))}for(this.xw=p-a,o=t.x-o,t=t.y-i,this.Rf=new Ue(n&&r?0:o,n&&!r?0:t),e.reset();e.next();)n=e.value,n.x+=o,n.y+=t,n.commit()},xi.prototype.Gu=function(){for(var e=0,t=this.ie,n=0;n<=this.Ia;n++)e+=this.he[n],e+=this.Ld[n];e+=this.Ia*t,t=[],n=this.ve!==0?this.xw:this.kc*this.Ra;for(var r=this.maxLayer;0<=r;r--)this.K===270?r===0?t.push(new Nt(0,0,n,Math.abs(this.Ta[0]))):t.push(new Nt(0,this.Ta[r-1],n,Math.abs(this.Ta[r-1]-this.Ta[r]))):this.K===90?r===0?t.push(new Nt(0,this.Ta[0],n,Math.abs(this.Ta[0]-e))):t.push(new Nt(0,this.Ta[r],n,Math.abs(this.Ta[r-1]-this.Ta[r]))):this.K===180?r===0?t.push(new Nt(0,0,Math.abs(this.Ta[0]),n)):t.push(new Nt(this.Ta[r-1],0,Math.abs(this.Ta[r-1]-this.Ta[r]),n)):r===0?t.push(new Nt(this.Ta[0],0,Math.abs(this.Ta[0]-e),n)):t.push(new Nt(this.Ta[r],0,Math.abs(this.Ta[r-1]-this.Ta[r]),n));this.commitLayers(t,this.Rf)},xi.prototype.commitLayers=function(){},xi.prototype.commitLinks=function(){for(var e=this.network.edges.iterator,t;e.next();)t=e.value.link,t!==null&&(t.uh(),t.Fj(),t.zf());for(e.reset();e.next();)t=e.value.link,t!==null&&t.vg();for(e.reset();e.next();){var n=e.value;if(t=n.link,t!==null){t.uh();var r=t,i=r.fromNode,o=r.toNode,a=r.fromPort,p=r.toPort;if(i!==null){var w=i.findVisibleNode();w!==null&&w!==i&&(i=w,a=w.port)}o!==null&&(w=o.findVisibleNode(),w!==null&&w!==o&&(o=w,p=w.port));var O=t.computeSpot(!0,a);w=t.computeSpot(!1,p);var D=n.fromVertex,X=n.toVertex;if(n.valid)t.curve===Cl&&t.pointsCount===4&&(D.column===X.column&&this.alignOption===0?(n=t.getLinkPoint(i,a,O,!0,!1,o,p),p=t.getLinkPoint(o,p,w,!1,!1,i,a),n.w()||n.set(i.actualBounds.center),p.w()||p.set(o.actualBounds.center),t.Fj(),t.yf(n.x,n.y),t.yf((2*n.x+p.x)/3,(2*n.y+p.y)/3),t.yf((n.x+2*p.x)/3,(n.y+2*p.y)/3),t.yf(p.x,p.y)):(n=r=!1,a!==null&&O===So&&(r=!0),p!==null&&w===So&&(n=!0),(r||n)&&(w=null,r&&(w=t.getLinkPointFromPoint(i,a,a.ga(jr),t.i(3),!0),w.w()||w.set(i.actualBounds.center),t.L(0,w.x,w.y)),i=null,n&&(i=t.getLinkPointFromPoint(o,p,p.ga(jr),t.i(0),!1),i.w()||i.set(o.actualBounds.center),t.L(3,i.x,i.y)),w&&(o=t.i(2),t.L(1,(2*w.x+o.x)/3,(2*w.y+o.y)/3)),i&&(o=t.i(1),t.L(2,(2*i.x+o.x)/3,(2*i.y+o.y)/3))))),t.zf();else if(D.layer===X.layer)t.zf();else{var re=!1,de=!1,Se=this.ie,Te=t.firstPickIndex+1;if(t.isOrthogonal){de=!0;var Xe=t.pointsCount;4<Xe&&t.points.removeRange(2,Xe-3)}else if(t.curve===Cl)re=!0,Xe=t.pointsCount,4<Xe&&t.points.removeRange(2,Xe-3),Xe===4&&(Te=2);else{Xe=t.pointsCount;var We=O===So,qe=w===So;2<Xe&&We&&qe?t.points.removeRange(1,Xe-2):3<Xe&&We&&!qe?t.points.removeRange(1,Xe-3):3<Xe&&!We&&qe?t.points.removeRange(2,Xe-2):4<Xe&&!We&&!qe&&t.points.removeRange(2,Xe-3)}if(n.rev){for(;X!==null&&D!==X;){var tt=Xe=null;for(We=X.sourceEdges.iterator;We.next()&&(qe=We.value,qe.link!==n.link||(Xe=qe.fromVertex,tt=qe.toVertex,Xe.node!==null)););if(Xe===null)break;if(Xe!==D){We=t.i(Te-1).x,qe=t.i(Te-1).y;var rt=Xe.centerX,ft=Xe.centerY;if(de)this.K===180||this.K===0?Te===t.firstPickIndex+1?(t.m(Te++,We,qe),t.m(Te++,We,ft)):(tt!==null?tt.centerY:qe)!==ft&&(tt=this.Ta[Xe.layer-1]+this.Rf.x,t.m(Te++,tt,qe),t.m(Te++,tt,ft)):Te===t.firstPickIndex+1?(t.m(Te++,We,qe),t.m(Te++,rt,qe)):(tt!==null?tt.centerX:We)!==rt&&(tt=this.Ta[Xe.layer-1]+this.Rf.y,t.m(Te++,We,tt),t.m(Te++,rt,tt));else if(Te===t.firstPickIndex+1){tt=Math.max(10,this.he[X.layer]);var Tt=Math.max(10,this.Ld[X.layer]);if(re)this.K===180?rt<=X.bounds.x?(X=X.bounds.x,t.m(Te++,X-tt,ft),t.m(Te++,X,ft),t.m(Te++,X+Tt,ft)):(t.m(Te++,rt-tt,ft),t.m(Te++,rt,ft),t.m(Te++,rt+Tt,ft)):this.K===90?ft>=X.bounds.bottom?(X=X.bounds.y+X.bounds.height,t.m(Te++,rt,X+Tt),t.m(Te++,rt,X),t.m(Te++,rt,X-tt)):(t.m(Te++,rt,ft+Tt),t.m(Te++,rt,ft),t.m(Te++,rt,ft-tt)):this.K===270?ft<=X.bounds.y?(X=X.bounds.y,t.m(Te++,rt,X-tt),t.m(Te++,rt,X),t.m(Te++,rt,X+Tt)):(t.m(Te++,rt,ft-tt),t.m(Te++,rt,ft),t.m(Te++,rt,ft+Tt)):this.K===0&&(rt>=X.bounds.right?(X=X.bounds.x+X.bounds.width,t.m(Te++,X+Tt,ft),t.m(Te++,X,ft),t.m(Te++,X-tt,ft)):(t.m(Te++,rt+Tt,ft),t.m(Te++,rt,ft),t.m(Te++,rt-tt,ft)));else{t.m(Te++,We,qe);var Sn=0;this.K===180||this.K===0?((this.K===180?rt>=X.bounds.right:rt<=X.bounds.x)&&(Sn=(this.K===0?-tt:Tt)/2),t.m(Te++,We+Sn,ft)):((this.K===270?ft>=X.bounds.bottom:ft<=X.bounds.y)&&(Sn=(this.K===90?-tt:Tt)/2),t.m(Te++,rt,qe+Sn)),t.m(Te++,rt,ft)}}else tt=Math.max(10,this.he[Xe.layer]),Tt=Math.max(10,this.Ld[Xe.layer]),re?this.K===180?(t.m(Te++,rt-tt-Se,ft),t.m(Te++,Math.min(rt-tt+Se/2,rt),ft),t.m(Te++,rt,ft),t.m(Te++,rt,ft),t.m(Te++,Math.max(rt+Tt-Se/2,rt),ft),t.m(Te++,rt+Tt+Se,ft)):this.K===90?(t.m(Te++,rt,ft+Tt+Se),t.m(Te++,rt,Math.max(ft+Tt-Se/2,ft)),t.m(Te++,rt,ft),t.m(Te++,rt,ft),t.m(Te++,rt,Math.min(ft-tt+Se/2,ft)),t.m(Te++,rt,ft-tt-Se)):this.K===270?(t.m(Te++,rt,ft-tt-Se),t.m(Te++,rt,Math.min(ft-tt+Se/2,ft)),t.m(Te++,rt,ft),t.m(Te++,rt,ft),t.m(Te++,rt,Math.max(ft+Tt-Se/2,ft)),t.m(Te++,rt,ft+Tt+Se)):(t.m(Te++,rt+Tt+Se,ft),t.m(Te++,Math.max(rt+Tt-Se/2,rt),ft),t.m(Te++,rt,ft),t.m(Te++,rt,ft),t.m(Te++,Math.min(rt-tt+Se/2,rt),ft),t.m(Te++,rt-tt-Se,ft)):t.m(Te++,rt,ft)}X=Xe}(p===null||O!==So||de)&&(We=t.i(Te-1).x,qe=t.i(Te-1).y,rt=t.i(Te).x,ft=t.i(Te).y,de?(Se=this.Ld[D.layer],this.K===180||this.K===0?(de=qe,de>=D.bounds.y&&de<=D.bounds.bottom&&(this.K===180?rt>=D.bounds.x:rt<=D.bounds.right)&&(X=D.centerX+(this.K===180?-Se:Se),de<D.bounds.y+D.bounds.height/2?de=D.bounds.y-this.kc/2:de=D.bounds.bottom+this.kc/2,t.m(Te++,X,qe),t.m(Te++,X,de)),t.m(Te++,rt,de)):(de=We,de>=D.bounds.x&&de<=D.bounds.right&&(this.K===270?ft>=D.bounds.y:ft<=D.bounds.bottom)&&(X=D.centerY+(this.K===270?-Se:Se),de<D.bounds.x+D.bounds.width/2?de=D.bounds.x-this.kc/2:de=D.bounds.right+this.kc/2,t.m(Te++,We,X),t.m(Te++,de,X)),t.m(Te++,de,ft)),t.m(Te++,rt,ft)):re?(tt=Math.max(10,this.he[D.layer]),Tt=Math.max(10,this.Ld[D.layer]),this.K===180&&rt>=D.bounds.x?(X=D.bounds.x+D.bounds.width,t.L(Te-2,X,qe),t.L(Te-1,X+Tt,qe)):this.K===90&&ft<=D.bounds.bottom?(X=D.bounds.y,t.L(Te-2,We,X),t.L(Te-1,We,X-tt)):this.K===270&&ft>=D.bounds.y?(X=D.bounds.y+D.bounds.height,t.L(Te-2,We,X),t.L(Te-1,We,X+Tt)):this.K===0&&rt<=D.bounds.right&&(X=D.bounds.x,t.L(Te-2,X,qe),t.L(Te-1,X-tt,qe))):(tt=Math.max(10,this.he[D.layer]),Tt=Math.max(10,this.Ld[D.layer]),de=0,this.K===180||this.K===0?((this.K===180?rt<=D.bounds.x:rt>=D.bounds.right)&&(de=(this.K===0?Tt:-tt)/2),t.m(Te++,rt+de,qe)):((this.K===270?ft<=D.bounds.y:ft>=D.bounds.bottom)&&(de=(this.K===90?Tt:-tt)/2),t.m(Te++,We,ft+de)),t.m(Te++,rt,ft)))}else{for(;D!==null&&D!==X;){for(tt=Xe=null,D=D.destinationEdges.iterator;D.next()&&(We=D.value,We.link!==n.link||(Xe=We.toVertex,tt=We.fromVertex,tt.node!==null&&(tt=null),Xe.node!==null)););if(Xe===null)break;Xe!==X&&(We=t.i(Te-1).x,qe=t.i(Te-1).y,rt=Xe.centerX,ft=Xe.centerY,de?this.K===180||this.K===0?(tt!==null?tt.centerY:qe)!==ft&&(tt=this.Ta[Xe.layer]+this.Rf.x,Te===t.firstPickIndex+1&&(tt=this.K===0?Math.max(tt,We):Math.min(tt,We)),t.m(Te++,tt,qe),t.m(Te++,tt,ft)):(tt!==null?tt.centerX:We)!==rt&&(tt=this.Ta[Xe.layer]+this.Rf.y,Te===t.firstPickIndex+1&&(tt=this.K===90?Math.max(tt,qe):Math.min(tt,qe)),t.m(Te++,We,tt),t.m(Te++,rt,tt)):(tt=Math.max(10,this.he[Xe.layer]),Tt=Math.max(10,this.Ld[Xe.layer]),re?this.K===180?(t.m(Te++,rt+Tt+Se,ft),t.m(Te++,Math.max(rt+Tt-Se/2,rt),ft),t.m(Te++,rt,ft),t.m(Te++,rt,ft),t.m(Te++,Math.min(rt-tt+Se/2,rt),ft),t.m(Te++,rt-tt-Se,ft)):this.K===90?(t.m(Te++,rt,ft-tt-Se),t.m(Te++,rt,Math.min(ft-tt+Se/2,ft)),t.m(Te++,rt,ft),t.m(Te++,rt,ft),t.m(Te++,rt,Math.max(ft+Tt-Se/2,ft)),t.m(Te++,rt,ft+Tt+Se)):this.K===270?(t.m(Te++,rt,ft+Tt+Se),t.m(Te++,rt,Math.max(ft+Tt-Se/2,ft)),t.m(Te++,rt,ft),t.m(Te++,rt,ft),t.m(Te++,rt,Math.min(ft-tt+Se/2,ft)),t.m(Te++,rt,ft-tt-Se)):(t.m(Te++,rt-tt-Se,ft),t.m(Te++,Math.min(rt-tt+Se/2,rt),ft),t.m(Te++,rt,ft),t.m(Te++,rt,ft),t.m(Te++,Math.max(rt+Tt-Se/2,rt),ft),t.m(Te++,rt+Tt+Se,ft)):this.K===180?(t.m(Te++,rt+Tt,ft),t.m(Te++,rt-tt,ft)):this.K===90?(t.m(Te++,rt,ft-tt),t.m(Te++,rt,ft+Tt)):this.K===270?(t.m(Te++,rt,ft+Tt),t.m(Te++,rt,ft-tt)):(t.m(Te++,rt-tt,ft),t.m(Te++,rt+Tt,ft)))),D=Xe}de&&(We=t.i(Te-1).x,qe=t.i(Te-1).y,rt=t.i(Te).x,ft=t.i(Te).y,this.K===180||this.K===0?qe!==ft&&(tt=this.K===0?Math.min(Math.max((rt+We)/2,this.Ta[X.layer]+this.Rf.x),rt):Math.max(Math.min((rt+We)/2,this.Ta[X.layer]+this.Rf.x),rt),t.m(Te++,tt,qe),t.m(Te++,tt,ft)):We!==rt&&(tt=this.K===90?Math.min(Math.max((ft+qe)/2,this.Ta[X.layer]+this.Rf.y),ft):Math.max(Math.min((ft+qe)/2,this.Ta[X.layer]+this.Rf.y),ft),t.m(Te++,We,tt),t.m(Te++,rt,tt)))}r!==null&&re&&4<=t.pointsCount&&(a!==null&&(a=O===So?t.getLinkPointFromPoint(i,a,a.ga(jr),t.i(3),!0):t.i(0),O===So&&(O=t.i(2),r=t.i(3),this.direction===90||this.direction===270?(t.L(1,(a.x+O.x)/2,O.y),t.L(2,r.x,(O.y+r.y)/2)):(t.L(1,O.x,(a.y+O.y)/2),t.L(2,(O.x+r.x)/2,r.y))),a.w()||a.set(i.actualBounds.center),t.L(0,a.x,a.y)),p!==null&&(i=w===So?t.getLinkPointFromPoint(o,p,p.ga(jr),t.i(t.pointsCount-4),!1):t.i(t.pointsCount-1),w===So&&(p=t.i(t.pointsCount-3),w=t.i(t.pointsCount-4),this.direction===90||this.direction===270?(t.L(t.pointsCount-2,(i.x+p.x)/2,p.y),t.L(t.pointsCount-2,w.x,(p.y+w.y)/2)):(t.L(t.pointsCount-2,p.x,(i.y+p.y)/2),t.L(t.pointsCount-3,(p.x+w.x)/2,w.y))),i.w()||i.set(o.actualBounds.center),t.L(t.pointsCount-1,i.x,i.y))),t.zf(),n.commit()}}}this.avoidOrthogonalOverlaps()},xi.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var e=new tn,t=this.network.edges.iterator;t.next();){var n=t.value.link;n!==null&&n.isOrthogonal&&!e.contains(n)&&e.add(n)}if(0<e.count)if(this.K===90||this.K===270){for(t=0,n=[],e=e.iterator;e.next();){var r=e.value;if(r!==null&&r.isOrthogonal)for(var i=2;i<r.pointsCount-3;i++){var o=r.i(i),a=r.i(i+1);if(this.B(o.y,a.y)&&!this.B(o.x,a.x)){var p=new Dh;p.layer=Math.floor(o.y/2);var w=r.i(0),O=r.i(r.pointsCount-1);if(p.first=w.x*w.x+w.y,p.jc=O.x*O.x+O.y,p.rd=Math.min(o.x,a.x),p.Ic=Math.max(o.x,a.x),p.index=i,p.link=r,i+2<r.pointsCount){w=r.i(i-1),O=r.i(i+2);var D=0;w.y<o.y?D=O.y<o.y?3:o.x<a.x?2:1:w.y>o.y&&(D=O.y>o.y?0:a.x<o.x?2:1),p.j=D}n.push(p)}}}if(1<n.length)for(n.sort(this.Vx),e=0;e<n.length;){for(o=n[e].layer,r=e+1;r<n.length&&n[r].layer===o;)r++;if(1<r-e)for(o=e;o<r;){for(a=n[o].Ic,i=e+1;i<r&&n[i].rd<a;)a=Math.max(a,n[i].Ic),i++;if(a=i-o,1<a){for(this.zi(n,this.Js,o,o+a),D=1,p=n[o].jc,w=o;w<i;w++)O=n[w],O.jc!==p&&(D++,p=O.jc);this.zi(n,this.Ux,o,o+a);var X=1;for(p=n[o].first,w=o;w<i;w++)O=n[w],O.first!==p&&(X++,p=O.first);for(w=!0,O=X,D<X?(w=!1,O=D,p=n[o].jc,this.zi(n,this.Js,o,o+a)):p=n[o].first,D=0,X=o;X<i;X++){var re=n[X];(w?re.first:re.jc)!==p&&(D++,p=w?re.first:re.jc);var de=re.link;o=de.i(re.index),a=de.i(re.index+1);var Se=this.linkSpacing*(D-(O-1)/2);t++,de.uh(),de.L(re.index,o.x,o.y+Se),de.L(re.index+1,a.x,a.y+Se),de.zf()}}o=i}e=r}}else{for(t=0,n=[],e=e.iterator;e.next();)if(r=e.value,r!==null&&r.isOrthogonal)for(i=2;i<r.pointsCount-3;i++)o=r.i(i),a=r.i(i+1),this.B(o.x,a.x)&&!this.B(o.y,a.y)&&(p=new Dh,p.layer=Math.floor(o.x/2),w=r.i(0),O=r.i(r.pointsCount-1),p.first=w.x+w.y*w.y,p.jc=O.x+O.y*O.y,p.rd=Math.min(o.y,a.y),p.Ic=Math.max(o.y,a.y),p.index=i,p.link=r,i+2<r.pointsCount&&(w=r.i(i-1),O=r.i(i+2),D=0,w.x<o.x?D=O.x<o.x?3:o.y<a.y?2:1:w.x>o.x&&(D=O.x>o.x?0:a.y<o.y?2:1),p.j=D),n.push(p));if(1<n.length)for(n.sort(this.Vx),e=0;e<n.length;){for(o=n[e].layer,r=e+1;r<n.length&&n[r].layer===o;)r++;if(1<r-e)for(o=e;o<r;){for(a=n[o].Ic,i=e+1;i<r&&n[i].rd<a;)a=Math.max(a,n[i].Ic),i++;if(a=i-o,1<a){for(this.zi(n,this.Js,o,o+a),D=1,p=n[o].jc,w=o;w<i;w++)O=n[w],O.jc!==p&&(D++,p=O.jc);for(this.zi(n,this.Ux,o,o+a),X=1,p=n[o].first,w=o;w<i;w++)O=n[w],O.first!==p&&(X++,p=O.first);for(w=!0,O=X,D<X?(w=!1,O=D,p=n[o].jc,this.zi(n,this.Js,o,o+a)):p=n[o].first,D=0,X=o;X<i;X++)re=n[X],(w?re.first:re.jc)!==p&&(D++,p=w?re.first:re.jc),de=re.link,o=de.i(re.index),a=de.i(re.index+1),Se=this.linkSpacing*(D-(O-1)/2),t++,de.uh(),de.L(re.index,o.x+Se,o.y),de.L(re.index+1,a.x+Se,a.y),de.zf()}o=i}e=r}}}},ye=xi.prototype,ye.Vx=function(e,t){return e instanceof Dh&&t instanceof Dh&&e!==t?e.layer<t.layer?-1:e.layer>t.layer?1:e.rd<t.rd?-1:e.rd>t.rd?1:e.Ic<t.Ic?-1:e.Ic>t.Ic?1:0:0},ye.Ux=function(e,t){return e instanceof Dh&&t instanceof Dh&&e!==t?e.first<t.first?-1:e.first>t.first||e.j<t.j?1:e.j>t.j||e.rd<t.rd?-1:e.rd>t.rd?1:e.Ic<t.Ic?-1:e.Ic>t.Ic?1:0:0},ye.Js=function(e,t){return e instanceof Dh&&t instanceof Dh&&e!==t?e.jc<t.jc?-1:e.jc>t.jc||e.j<t.j?1:e.j>t.j||e.rd<t.rd?-1:e.rd>t.rd?1:e.Ic<t.Ic?-1:e.Ic>t.Ic?1:0:0},ye.B=function(e,t){return e-=t,-1<e&&1>e},ye.zi=function(e,t,n,r){var i=e.length,o=r-n;if(!(1>=o))if((0>n||n>=i-1)&&Lt("not in range 0 <= from < length: "+n),o===2)r=e[n],i=e[n+1],0<t(r,i)&&(e[n]=i,e[n+1]=r);else if(n===0)if(r>=i)e.sort(t);else for(n=e.slice(0,r),n.sort(t),t=0;t<r;t++)e[t]=n[t];else if(r>=i)for(r=e.slice(n),r.sort(t),t=n;t<i;t++)e[t]=r[t-n];else for(i=e.slice(n,r),i.sort(t),t=n;t<r;t++)e[t]=i[t-n]};function Lh(e,t){var n=e.tc[t];if(n>=e.He.length){for(var r=[],i=0;i<e.He.length;i++)r[i]=e.He[i];e.He=r}for(e.He[n]===void 0||e.He[n]===null?r=[]:(r=e.He[n],e.He[n]=null),e=e.fl[t],t=0;t<e.length;t++)n=e[t],r[n.index]=n;return r}function Mh(e,t,n){e.He[e.tc[t]]=n}kn.Object.defineProperties(xi.prototype,{layerSpacing:{get:function(){return this.ie},set:function(e){this.ie!==e&&0<=e&&(this.ie=e,this.C())}},columnSpacing:{get:function(){return this.kc},set:function(e){this.kc!==e&&0<e&&(this.kc=e,this.C())}},direction:{get:function(){return this.K},set:function(e){this.K!==e&&(e===0||e===90||e===180||e===270?(this.K=e,this.C()):Lt("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(e){this.Dk===e||e!==Iy&&e!==Um&&e!==eg||(this.Dk=e,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(e){this.Zk===e||e!==Hm&&e!==Oy&&e!==Ly||(this.Zk=e,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(e){this.Qk===e||e!==zm&&e!==My&&e!==Dy||(this.Qk=e,this.C())}},iterations:{get:function(){return this.bj},set:function(e){this.bj!==e&&0<=e&&(this.bj=e,this.C())}},aggressiveOption:{get:function(){return this.rk},set:function(e){this.rk===e||e!==Py&&e!==Gm&&e!==Fy||(this.rk=e,this.C())}},packOption:{get:function(){return this.bg},set:function(e){this.bg!==e&&0<=e&&8>e&&(this.bg=e,this.C())}},alignOption:{get:function(){return this.ve},set:function(e){this.ve!==e&&0<=e&&16>e&&(this.ve=e,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(e){this.sf!==e&&(this.sf=e,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(e){this.Cn!==e&&0<=e&&(this.Cn=e,this.C())}},maxLayer:{get:function(){return this.Ia}},maxIndex:{get:function(){return this.Iq}},maxColumn:{get:function(){return this.Ra}},minIndexLayer:{get:function(){return this.Hn}},maxIndexLayer:{get:function(){return this.Md}}});var Um=new hn(xi,"CycleDepthFirst",0),Iy=new hn(xi,"CycleGreedy",1),eg=new hn(xi,"CycleFromLayers",2),Hm=new hn(xi,"LayerOptimalLinkLength",0),Oy=new hn(xi,"LayerLongestPathSink",1),Ly=new hn(xi,"LayerLongestPathSource",2),zm=new hn(xi,"InitDepthFirstOut",0),My=new hn(xi,"InitDepthFirstIn",1),Dy=new hn(xi,"InitNaive",2),Py=new hn(xi,"AggressiveNone",0),Gm=new hn(xi,"AggressiveLess",1),Fy=new hn(xi,"AggressiveMore",2),cS=8;xi.className="LayeredDigraphLayout",xi.CycleDepthFirst=Um,xi.CycleGreedy=Iy,xi.CycleFromLayers=eg,xi.LayerOptimalLinkLength=Hm,xi.LayerLongestPathSink=Oy,xi.LayerLongestPathSource=Ly,xi.InitDepthFirstOut=zm,xi.InitDepthFirstIn=My,xi.InitNaive=Dy,xi.AggressiveNone=Py,xi.AggressiveLess=Gm,xi.AggressiveMore=Fy,xi.PackNone=0,xi.PackExpand=1,xi.PackStraighten=2,xi.PackMedian=4,xi.PackAll=15,xi.AlignNone=0,xi.AlignUpperLeft=1,xi.AlignUpperRight=2,xi.AlignLowerLeft=4,xi.AlignLowerRight=8,xi.AlignAll=15;function Dh(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}Dh.className="SegInfo";function Ud(e){Ki.call(this,e)}Tn(Ud,Ki),Ud.prototype.createVertex=function(){return new zl(this)},Ud.prototype.createEdge=function(){return new tg(this)},Ud.className="LayeredDigraphNetwork";function zl(e){xs.call(this,e),this.$n=this.bo=this.ao=this.co=null,this.Za=this.Ag=this.Ig=-1,this.u=NaN,this.F=null,this.valid=!1,this.finish=this.Ll=NaN,this.Dj=0,this.dv=this.ev=null}Tn(zl,xs);function m1(e,t){return e.index-t.index}function Wm(e,t){if(!e.$n){for(var n=[],r=rn(e.destinationEdgesArrayAccess),i=r.next();!i.done;i=r.next())i=i.value,i.valid&&n.push(i);e.$n=n}for(e=rn(e.$n),n=e.next();!n.done;n=e.next())if(n=n.value,n.toVertex===t)return n;Lt("Unable to find destination edge to given vertex")}function By(e){if(!e.co){for(var t=[],n=rn(e.sourceEdgesArrayAccess),r=n.next();!r.done;r=n.next())r=r.value,r.valid&&t.push(r.fromVertex);t.sort(m1),e.co=t}return e.co}function hS(e){if(!e.ao){for(var t=[],n=rn(e.destinationEdgesArrayAccess),r=n.next();!r.done;r=n.next())r=r.value,r.valid&&t.push(r.toVertex);t.sort(m1),e.ao=t}return e.ao}zl.prototype.Cl=function(e){xs.prototype.Cl.call(this,e),this.bo=this.co=null},zl.prototype.Kl=function(e){xs.prototype.Kl.call(this,e),this.bo=this.co=null},zl.prototype.zl=function(e){xs.prototype.zl.call(this,e),this.$n=this.ao=null},zl.prototype.Jl=function(e){xs.prototype.Jl.call(this,e),this.$n=this.ao=null},kn.Object.defineProperties(zl.prototype,{layer:{get:function(){return this.Ig},set:function(e){this.Ig!==e&&(this.Ig=e)}},column:{get:function(){return this.Ag},set:function(e){this.Ag!==e&&(this.Ag=e)}},index:{get:function(){return this.Za},set:function(e){this.Za!==e&&(this.Za=e)}},component:{get:function(){return this.u},set:function(e){this.u!==e&&(this.u=e)}},near:{get:function(){return this.F},set:function(e){this.F!==e&&(this.F=e)}}}),zl.prototype.deleteDestinationEdge=zl.prototype.Jl,zl.prototype.addDestinationEdge=zl.prototype.zl,zl.prototype.deleteSourceEdge=zl.prototype.Kl,zl.prototype.addSourceEdge=zl.prototype.Cl,zl.className="LayeredDigraphVertex";function tg(e){ll.call(this,e),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}Tn(tg,ll),kn.Object.defineProperties(tg.prototype,{fromVertex:{get:function(){return this.kd},set:function(e){this.kd!==e&&(this.kd=e)}},toVertex:{get:function(){return this.qd},set:function(e){this.qd!==e&&(this.qd=e)}},valid:{get:function(){return this.Ha},set:function(e){this.Ha!==e&&(this.Ha=e)}},rev:{get:function(){return this.ia},set:function(e){this.ia!==e&&(this.ia=e)}},forest:{get:function(){return this.j},set:function(e){this.j!==e&&(this.j=e)}},portFromPos:{get:function(){return this.u},set:function(e){this.u!==e&&(this.u=e)}},portToPos:{get:function(){return this.V},set:function(e){this.V!==e&&(this.V=e)}},portFromColOffset:{get:function(){return this.o},set:function(e){this.o!==e&&(this.o=e)}},portToColOffset:{get:function(){return this.F},set:function(e){this.F!==e&&(this.F=e)}}}),tg.className="LayeredDigraphEdge";function Lr(e){co.call(this),this.Ub=new ut,this.Wn=$m,this.ud=hc,this.vo=Zm,this.Bq=Xy,this.$v=[],this.td=!0,this.Rb=Jm,this.$d=new Yt(10,10).freeze();var t=new $f(this);this.W=new tu(t),this.Y=new tu(t),this.ru=[],e&&Object.assign(this,e)}Tn(Lr,co),Lr.prototype.cloneProtected=function(e){co.prototype.cloneProtected.call(this,e),e.Wn=this.Wn,e.vo=this.vo,e.Bq=this.Bq,e.td=this.td,e.Rb=this.Rb,e.$d.assign(this.$d),e.W.copyInheritedPropertiesFrom(this.W),e.Y.copyInheritedPropertiesFrom(this.Y)},Lr.prototype.qb=function(e){e.classType===Lr?e.name.indexOf("Alignment")===0?this.alignment=e:e.name.indexOf("Arrangement")===0?this.arrangement=e:e.name.indexOf("Compaction")===0?this.compaction=e:e.name.indexOf("Path")===0?this.path=e:e.name.indexOf("Sorting")===0?this.sorting=e:e.name.indexOf("Style")===0?this.treeStyle=e:Lt("Unknown enum value: "+e):co.prototype.qb.call(this,e)},Lr.prototype.createNetwork=function(){return new $f(this)},Lr.prototype.makeNetwork=function(e){function t(r){if(r instanceof En)return!r.isLinkLabel&&r.category!=="Comment";if(r instanceof cn){var i=r.fromNode;return i===null||i.isLinkLabel||i.category==="Comment"?!1:(r=r.toNode,!(r===null||r.isLinkLabel||r.category==="Comment"))}return!1}var n=this.createNetwork();return e instanceof Ct?(n.lg(e.nodes,!0,t),n.lg(e.links,!0,t)):e instanceof lr?n.lg(e.memberParts,!1,t):n.lg(e.iterator,!1,t),n},Lr.prototype.doLayout=function(e){this.network===null&&(this.network=this.makeNetwork(e)),this.arrangement!==Qm&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var t=this.diagram;if(t===null&&e instanceof Ct&&(t=e),this.path===$m&&t!==null?this.ud=t.isTreePathToChildren?hc:Kf:this.ud=this.path===$m?hc:this.path,0<this.network.vertexes.count){for(this.network.Ko(),e=this.network.vertexes.iterator;e.next();)t=e.value,t.initialized=!1,t.level=0,t.parent=null,t.children=[];if(0<this.Ub.count){for(e=new ut,t=this.Ub.iterator;t.next();){var n=t.value;n instanceof En?(n=this.network.ki(n),n!==null&&e.add(n)):n instanceof tu&&e.add(n)}this.Ub=e}for(this.Ub.count===0&&this.findRoots(),e=this.Ub.copy().iterator;e.next();)t=e.value,t.initialized||(t.initialized=!0,jy(this,t));for(t=this.network.vertexes,e=null;e=fS(t),0<e.count;)t=v1(this,e),t!==null&&this.Ub.add(t),t.initialized=!0,jy(this,t),t=e;for(e=this.Ub.iterator;e.next();)t=e.value,t instanceof tu&&b1(this,t);for(e=this.Ub.iterator;e.next();)t=e.value,t instanceof tu&&S1(this,t);for(e=this.Ub.iterator;e.next();)t=e.value,t instanceof tu&&x1(this,t);if(this.Cu(),this.layerStyle===qm){for(e=[],t=this.network.vertexes.iterator;t.next();){n=t.value;var r=n.parent;r===null&&(r=n),r=r.angle===0||r.angle===180;var i=e[n.level];i===void 0&&(i=0),e[n.level]=Math.max(i,r?n.width:n.height)}for(t=0;t<e.length;t++)e[t]===void 0&&(e[t]=0);for(this.$v=e,t=this.network.vertexes.iterator;t.next();)n=t.value,r=n.parent,r===null&&(r=n),r.angle===0||r.angle===180?(r.angle===180&&(n.focusX+=e[n.level]-n.width),n.width=e[n.level]):(r.angle===270&&(n.focusY+=e[n.level]-n.height),n.height=e[n.level])}else if(this.layerStyle===Zy)for(e=this.network.vertexes.iterator;e.next();){for(t=e.value,n=t.angle===0||t.angle===180,r=-1,i=0;i<t.children.length;i++){var o=t.children[i];r=Math.max(r,n?o.width:o.height)}if(0<=r)for(i=0;i<t.children.length;i++)o=t.children[i],n?(t.angle===180&&(o.focusX+=r-o.width),o.width=r):(t.angle===270&&(o.focusY+=r-o.height),o.height=r)}for(e=this.Ub.iterator;e.next();)t=e.value,t instanceof tu&&this.layoutTree(t);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new ut,this.isValidLayout=!0};function fS(e){var t=new ut;for(e=e.iterator;e.next();){var n=e.value;n.initialized||t.add(n)}return t}Lr.prototype.findRoots=function(){for(var e=this.network.vertexes,t=e.iterator;t.next();){var n=t.value;switch(this.ud){case hc:n.sourceEdges.count===0&&this.Ub.add(n);break;case Kf:n.destinationEdges.count===0&&this.Ub.add(n);break;default:Lt("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(e=v1(this,e),e!==null&&this.Ub.add(e))};function v1(e,t){var n=999999,r=null;for(t=t.iterator;t.next();){var i=t.value;switch(e.ud){case hc:i.sourceEdges.count<n&&(n=i.sourceEdges.count,r=i);break;case Kf:i.destinationEdges.count<n&&(n=i.destinationEdges.count,r=i);break;default:Lt("Unhandled path value "+e.ud.toString())}}return r}function jy(e,t){if(t!==null){switch(e.ud){case hc:if(0<t.destinationEdges.count){for(var n=new tn,r=t.destinationVertexes;r.next();){var i=r.value;y1(e,t,i)&&n.add(i)}0<n.count&&(t.children=n.Fa())}break;case Kf:if(0<t.sourceEdges.count){for(n=new tn,r=t.sourceVertexes;r.next();)i=r.value,y1(e,t,i)&&n.add(i);0<n.count&&(t.children=n.Fa())}break;default:Lt("Unhandled path value"+e.ud.toString())}for(n=t.children,r=n.length,i=0;i<r;i++){var o=n[i];o.initialized=!0,o.level=t.level+1,o.parent=t,e.Ub.remove(o)}for(t=0;t<r;t++)jy(e,n[t])}}function y1(e,t,n){if(n.initialized){if(t===null)var r=!1;else{for(r=t.parent;r!==null&&r!==n;)r=r.parent;r=r===n}if(r||n.level>t.level)return!1;e.removeChild(n.parent,n)}return!0}Lr.prototype.removeChild=function(e,t){if(e!==null&&t!==null){for(var n=e.children,r=0,i=0;i<n.length;i++)n[i]===t&&r++;if(0<r){r=Array(n.length-r);for(var o=i=0;o<n.length;o++)n[o]!==t&&(r[i++]=n[o]);e.children=r}}};function b1(e,t){if(t!==null){e.initializeTreeVertexValues(t),t.alignment===pc&&e.sortTreeVertexChildren(t);for(var n=0,r=t.childrenCount,i=0,o=t.children,a=o.length,p=0;p<a;p++){var w=o[p];b1(e,w),n+=w.descendantCount+1,r=Math.max(r,w.maxChildrenCount),i=Math.max(i,w.maxGenerationCount)}t.descendantCount=n,t.maxChildrenCount=r,t.maxGenerationCount=0<r?i+1:0}}function dS(e,t){switch(e.vo){default:case Zm:return t.parent!==null?t.parent:e.W;case Yy:return t.parent===null?e.W:t.parent.parent===null?e.Y:t.parent;case Ky:return t.parent!==null?t.parent.parent!==null?t.parent.parent:e.Y:e.W;case Vy:var n=!0;if(t.childrenCount===0)n=!1;else for(var r=t.children,i=r.length,o=0;o<i;o++)if(0<r[o].childrenCount){n=!1;break}return n&&t.parent!==null?e.Y:t.parent!==null?t.parent:e.W}}Lr.prototype.initializeTreeVertexValues=function(e){if(e.copyInheritedPropertiesFrom(dS(this,e)),e.parent!==null&&e.parent.alignment===pc){for(var t=e.angle,n=e.parent.children,r=0;r<n.length&&e!==n[r];)r++;r%2===0?r!==n.length-1&&(t=t===90?180:t===180?270:t===270?180:270):t=t===90?0:t===180?90:t===270?0:90,e.angle=t}e.initialized=!0};function S1(e,t){if(t!==null){e.assignTreeVertexValues(t),t=t.children;for(var n=t.length,r=0;r<n;r++)S1(e,t[r])}}Lr.prototype.assignTreeVertexValues=function(){};function x1(e,t){if(t!==null){t.alignment!==pc&&e.sortTreeVertexChildren(t),t=t.children;for(var n=t.length,r=0;r<n;r++)x1(e,t[r])}}Lr.prototype.sortTreeVertexChildren=function(e){switch(e.sorting){case Hd:break;case rg:e.children.reverse();break;case ig:e.children.sort(e.comparer);break;case og:e.children.sort(e.comparer),e.children.reverse();break;default:Lt("Unhandled sorting value "+e.sorting.toString())}},Lr.prototype.Cu=function(){if(this.comments)for(var e=this.network.vertexes.iterator;e.next();)this.addComments(e.value)},Lr.prototype.addComments=function(e){var t=e.angle,n=e.parent,r=0,i=!1;n!==null&&(r=n.angle,i=n.alignment,i=Ph(i)),t=t===90||t===270,r=r===90||r===270,n=e.childrenCount===0;var o=0,a=0,p=0,w=e.commentSpacing;if(e.node!==null)for(var O=e.node.Mu();O.next();){var D=O.value;D.category==="Comment"&&D.canLayout()&&(e.comments===null&&(e.comments=[]),e.comments.push(D),D.Va(),D=D.measuredBounds,t&&!n||!i&&!r&&n||i&&r&&n?(o=Math.max(o,D.width),a+=D.height+Math.abs(p)):(o+=D.width+Math.abs(p),a=Math.max(a,D.height)),p=w)}e.comments!==null&&(t&&!n||!i&&!r&&n||i&&r&&n?(o+=Math.abs(e.commentMargin),a=Math.max(0,a-e.height)):(a+=Math.abs(e.commentMargin),o=Math.max(0,o-e.width)),i=Nt.allocAt(0,0,e.bounds.width+o,e.bounds.height+a),e.bounds=i,Nt.free(i))};function Ph(e){return e===ih||e===pc||e===oh||e===Lc}function ng(e){return e===ih||e===pc}function Uy(e){var t=e.parent;if(t!==null){var n=t.alignment;if(Ph(n)){if(ng(n)){for(t=t.children,n=0;n<t.length&&e!==t[n];)n++;return n%2===0}if(n===oh)return!0}}return!1}Lr.prototype.layoutComments=function(e){if(e.comments!==null){var t=e.node.measuredBounds,n=e.parent,r=e.angle,i=0,o=!1;n!==null&&(i=n.angle,o=n.alignment,o=Ph(o)),r=r===90||r===270,n=i===90||i===270;for(var a=e.childrenCount===0,p=Uy(e),w=0,O=e.comments,D=O.length,X=Ue.alloc(),re=0;re<D;re++){var de=O[re],Se=de.measuredBounds;if(r&&!a||!o&&!n&&a||o&&n&&a){if(135<i&&!o||n&&p)if(0<=e.commentMargin)for(X.h(e.bounds.x-e.commentMargin-Se.width,e.bounds.y+w),de.move(X),de=de.Sd();de.next();){var Te=de.value;Te.fromSpot=Ks,Te.toSpot=ws}else for(X.h(e.bounds.x+2*e.focus.x-e.commentMargin,e.bounds.y+w),de.move(X),de=de.Sd();de.next();)Te=de.value,Te.fromSpot=ws,Te.toSpot=Ks;else if(0<=e.commentMargin)for(X.h(e.bounds.x+2*e.focus.x+e.commentMargin,e.bounds.y+w),de.move(X),de=de.Sd();de.next();)Te=de.value,Te.fromSpot=ws,Te.toSpot=Ks;else for(X.h(e.bounds.x+e.commentMargin-Se.width,e.bounds.y+w),de.move(X),de=de.Sd();de.next();)Te=de.value,Te.fromSpot=Ks,Te.toSpot=ws;w=0<=e.commentSpacing?w+(Se.height+e.commentSpacing):w+(e.commentSpacing-Se.height)}else{if(135<i&&!o||!n&&p)if(0<=e.commentMargin)for(X.h(e.bounds.x+w,e.bounds.y-e.commentMargin-Se.height),de.move(X),de=de.Sd();de.next();)Te=de.value,Te.fromSpot=Vs,Te.toSpot=js;else for(X.h(e.bounds.x+w,e.bounds.y+2*e.focus.y-e.commentMargin),de.move(X),de=de.Sd();de.next();)Te=de.value,Te.fromSpot=js,Te.toSpot=Vs;else if(0<=e.commentMargin)for(X.h(e.bounds.x+w,e.bounds.y+2*e.focus.y+e.commentMargin),de.move(X),de=de.Sd();de.next();)Te=de.value,Te.fromSpot=js,Te.toSpot=Vs;else for(X.h(e.bounds.x+w,e.bounds.y+e.commentMargin-Se.height),de.move(X),de=de.Sd();de.next();)Te=de.value,Te.fromSpot=Vs,Te.toSpot=js;w=0<=e.commentSpacing?w+(Se.width+e.commentSpacing):w+(e.commentSpacing-Se.width)}}if(Ue.free(X),t=w-e.commentSpacing-(r?t.height:t.width),this.ud===hc)for(e=e.destinationEdges;e.next();)i=e.value.link,i===null||i.isAvoiding||(i.fromEndSegmentLength=0<t?t:NaN);else for(e=e.sourceEdges;e.next();)i=e.value.link,i===null||i.isAvoiding||(i.toEndSegmentLength=0<t?t:NaN)}},Lr.prototype.layoutTree=function(e){if(e!==null){for(var t=e.children,n=t.length,r=0;r<n;r++)this.layoutTree(t[r]);switch(e.compaction){case Xm:E1(this,e);break;case sg:if(e.alignment===pc)E1(this,e);else if(e.childrenCount===0)r=e.parent,n=!1,t=0,r!==null&&(t=r.angle,n=r.alignment,n=Ph(n)),r=Uy(e),e.S.h(0,0),e.Da.h(e.width,e.height),e.parent===null||e.comments===null||(t!==180&&t!==270||n)&&!r?e.la.h(0,0):t===180&&!n||(t===90||t===270)&&r?e.la.h(e.width-2*e.focus.x,0):e.la.h(0,e.height-2*e.focus.y),e.Yo=null,e.kp=null;else{var i=bu(e);t=i===90||i===270;var o=0,a=e.children,p=a.length;for(n=0;n<p;n++)r=a[n],o=Math.max(o,t?r.Da.width:r.Da.height);var w=e.alignment;r=w===fc;var O=w===dc,D=Ph(w),X=Math.max(0,e.breadthLimit);n=this.computeLayerSpacing(e);var re=e.nodeSpacing,de=this.computeNodeIndent(e),Se=e.rowSpacing,Te=0;(r||O||e.hm||e.im&&e.maxGenerationCount===1)&&(Te=Math.max(0,e.rowIndent)),r=e.width;var Xe=e.height,We=0,qe=0,tt=0,rt=null,ft=null,Tt=0,Sn=0,Rn=0,_n=0,ln=0,Gt=0,ar=0,er=0;if(D&&!ng(w)&&135<i&&a.reverse(),ng(w))if(1<p)for(var si=0;si<p;si++)si%2===0&&si!==p-1&&(er=Math.max(er,t?a[si].Da.width:a[si].Da.height));else p===1&&(er=t?a[0].Da.width:a[0].Da.height);if(D){switch(w){case ih:qe=135>i?w1(this,e,a,er,We,qe):C1(this,e,a,er,We,qe),er=qe.x,We=qe.width,qe=qe.height;break;case oh:for(rt=0;rt<p;rt++)ft=a[rt],X=ft.Da,tt=Gt===0?0:Se,t?(ft.S.h(o-X.width,_n+tt),We=Math.max(We,X.width),qe=Math.max(qe,_n+tt+X.height),_n+=tt+X.height):(ft.S.h(Rn+tt,o-X.height),We=Math.max(We,Rn+tt+X.width),qe=Math.max(qe,X.height),Rn+=tt+X.width),Gt++;break;case Lc:for(rt=0;rt<p;rt++)ft=a[rt],o=ft.Da,X=Gt===0?0:Se,t?(ft.S.h(re/2+e.focus.x,_n+X),We=Math.max(We,o.width),qe=Math.max(qe,_n+X+o.height),_n+=X+o.height):(ft.S.h(Rn+X,re/2+e.focus.y),We=Math.max(We,Rn+X+o.width),qe=Math.max(qe,o.height),Rn+=X+o.width),Gt++}rt=Za(this,2),ft=Za(this,2),t?(rt[0].h(0,0),rt[1].h(0,qe),ft[0].h(We,0)):(rt[0].h(0,0),rt[1].h(We,0),ft[0].h(0,qe)),ft[1].h(We,qe)}else for(si=0;si<p;si++){var Hi=a[si],_s=Hi.Da;if(t){0<X&&0<Gt&&Rn+re+_s.width>X&&(Rn<o&&mf(e,w,o-Rn,0,ar,si-1),ln++,Gt=0,ar=si,tt=qe,Rn=0,_n=135<i?-qe-Se:qe+Se),Km(this,Hi,0,_n);var Ms=0;if(Gt===0)rt=Hi.Yo,ft=Hi.kp,Tt=_s.width,Sn=_s.height,(rt===null||ft===null||i!==bu(Hi))&&(rt=Za(this,2),ft=Za(this,2),rt[0].h(0,0),rt[1].h(0,Sn),ft[0].h(Tt,0),ft[1].h(Tt,Sn));else{var ma=yr();Sn=T1(this,e,Hi,rt,ft,Tt,Sn,ma),Ms=Sn.x,rt=ma[0],ft=ma[1],Tt=Sn.width,Sn=Sn.height,Mr(ma),Rn<_s.width&&0>Ms&&(Vf(e,-Ms,0,ar,si-1),Ym(rt,-Ms,0),Ym(ft,-Ms,0),Ms=0)}Hi.S.h(Ms,_n),We=Math.max(We,Tt),qe=Math.max(qe,tt+(ln===0?0:Se)+_s.height),Rn=Tt}else 0<X&&0<Gt&&_n+re+_s.height>X&&(_n<o&&mf(e,w,0,o-_n,ar,si-1),ln++,Gt=0,ar=si,tt=We,_n=0,Rn=135<i?-We-Se:We+Se),Km(this,Hi,Rn,0),Ms=0,Gt===0?(rt=Hi.Yo,ft=Hi.kp,Tt=_s.width,Sn=_s.height,(rt===null||ft===null||i!==bu(Hi))&&(rt=Za(this,2),ft=Za(this,2),rt[0].h(0,0),rt[1].h(Tt,0),ft[0].h(0,Sn),ft[1].h(Tt,Sn))):(ma=yr(),Sn=T1(this,e,Hi,rt,ft,Tt,Sn,ma),Ms=Sn.x,rt=ma[0],ft=ma[1],Tt=Sn.width,Sn=Sn.height,Mr(ma),_n<_s.height&&0>Ms&&(Vf(e,0,-Ms,ar,si-1),Ym(rt,0,-Ms),Ym(ft,0,-Ms),Ms=0)),Hi.S.h(Rn,Ms),qe=Math.max(qe,Sn),We=Math.max(We,tt+(ln===0?0:Se)+_s.width),_n=Sn;Gt++}switch(0<ln&&(t?(qe+=Math.max(0,n),Rn<We&&mf(e,w,We-Rn,0,ar,p-1),0<Te&&(O||Vf(e,Te,0,0,p-1),We+=Te)):(We+=Math.max(0,n),_n<qe&&mf(e,w,0,qe-_n,ar,p-1),0<Te&&(O||Vf(e,0,Te,0,p-1),qe+=Te))),Te=O=0,w){case zd:t?O+=We/2-e.focus.x-de/2:Te+=qe/2-e.focus.y-de/2;break;case Yf:0<ln?t?O+=We/2-e.focus.x-de/2:Te+=qe/2-e.focus.y-de/2:t?(er=a[0].S.x+a[0].la.x,O+=er+(a[p-1].S.x+a[p-1].la.x+2*a[p-1].focus.x-er)/2-e.focus.x-de/2):(er=a[0].S.y+a[0].la.y,Te+=er+(a[p-1].S.y+a[p-1].la.y+2*a[p-1].focus.y-er)/2-e.focus.y-de/2);break;case fc:t?(O-=de,We+=de):(Te-=de,qe+=de);break;case dc:t?(O+=We-e.width+de,We+=de):(Te+=qe-e.height+de,qe+=de);break;case ih:t?1<p?O+=er+re/2-e.focus.x:O+=a[0].focus.x-e.focus.x+a[0].la.x:1<p?Te+=er+re/2-e.focus.y:Te+=a[0].focus.y-e.focus.y+a[0].la.y;break;case oh:t?O+=We+re/2-e.focus.x:Te+=qe+re/2-e.focus.y;break;case Lc:break;default:qe=this.customAlignment(e,O,Te,We,qe),O=qe[0],Te=qe[1],We=qe[2],qe=qe[3]}for(de=0;de<p;de++)er=a[de],t?er.S.h(er.S.x+er.la.x-O,er.S.y+(135<i?(D?-qe:-er.Da.height)+er.la.y-n:Xe+n+er.la.y)):er.S.h(er.S.x+(135<i?(D?-We:-er.Da.width)+er.la.x-n:r+n+er.la.x),er.S.y+er.la.y-Te);if(p=a=0,D?t?(We=Hy(e,We,O),0>O&&(O=0),135<i&&(Te+=qe+n),qe+=Xe+n,w===Lc&&(a+=re/2+e.focus.x),p+=Xe+n):(135<i&&(O+=We+n),We+=r+n,qe=zy(e,qe,Te),0>Te&&(Te=0),w===Lc&&(p+=re/2+e.focus.y),a+=r+n):t?(e.comments===null?r>We&&(We=Gy(w,r-We,0),a=We.x,p=We.y,We=r,O=0):We=Hy(e,We,O),0>O&&(a-=O,O=0),135<i&&(Te+=qe+n),qe=Math.max(Math.max(qe,Xe),qe+Xe+n),p+=Xe+n):(135<i&&(O+=We+n),We=Math.max(Math.max(We,r),We+r+n),e.comments===null?Xe>qe&&(qe=Gy(w,0,Xe-qe),a=qe.x,p=qe.y,qe=Xe,Te=0):qe=zy(e,qe,Te),0>Te&&(p-=Te,Te=0),a+=r+n),0<ln)i=Za(this,4),ln=Za(this,4),t?(i[2].h(0,Xe+n),i[3].h(i[2].x,qe),ln[2].h(We,i[2].y),ln[3].h(ln[2].x,i[3].y)):(i[2].h(r+n,0),i[3].h(We,i[2].y),ln[2].h(i[2].x,qe),ln[3].h(i[3].x,ln[2].y));else{for(i=Za(this,rt.length+2),ln=Za(this,ft.length+2),w=0;w<rt.length;w++)D=rt[w],i[w+2].h(D.x+a,D.y+p);for(w=0;w<ft.length;w++)D=ft[w],ln[w+2].h(D.x+a,D.y+p)}t?(i[0].h(O,0),i[1].h(i[0].x,Xe),i[2].y<i[1].y&&(i[2].x>i[0].x?i[2].assign(i[1]):i[1].assign(i[2])),i[3].y<i[2].y&&(i[3].x>i[0].x?i[3].assign(i[2]):i[2].assign(i[3])),ln[0].h(O+r,0),ln[1].h(ln[0].x,Xe),ln[2].y<ln[1].y&&(ln[2].x<ln[0].x?ln[2].assign(ln[1]):ln[1].assign(ln[2])),ln[3].y<ln[2].y&&(ln[3].x<ln[0].x?ln[3].assign(ln[2]):ln[2].assign(ln[3])),i[2].y-=n/2,ln[2].y-=n/2):(i[0].h(0,Te),i[1].h(r,i[0].y),i[2].x<i[1].x&&(i[2].y>i[0].y?i[2].assign(i[1]):i[1].assign(i[2])),i[3].x<i[2].x&&(i[3].y>i[0].y?i[3].assign(i[2]):i[2].assign(i[3])),ln[0].h(0,Te+Xe),ln[1].h(r,ln[0].y),ln[2].x<ln[1].x&&(ln[2].y<ln[0].y?ln[2].assign(ln[1]):ln[1].assign(ln[2])),ln[3].x<ln[2].x&&(ln[3].y<ln[0].y?ln[3].assign(ln[2]):ln[2].assign(ln[3])),i[2].x-=n/2,ln[2].x-=n/2),Ru(this,rt),Ru(this,ft),e.Yo=i,e.kp=ln,e.la.h(O,Te),e.Da.h(We,qe)}break;default:Lt("Unhandled compaction value "+e.compaction.toString())}}};function E1(e,t){if(t.childrenCount===0){var n=!1,r=0;t.parent!==null&&(r=t.parent.angle,n=t.parent.alignment,n=Ph(n));var i=Uy(t);t.S.h(0,0),t.Da.h(t.width,t.height),t.parent===null||t.comments===null||(r!==180&&r!==270||n)&&!i?t.la.h(0,0):r===180&&!n||(r===90||r===270)&&i?t.la.h(t.width-2*t.focus.x,0):t.la.h(0,t.height-2*t.focus.y)}else{r=bu(t),n=r===90||r===270;var o=0;i=t.children;for(var a=i.length,p=0;p<a;p++){var w=i[p];o=Math.max(o,n?w.Da.width:w.Da.height)}var O=t.alignment,D=O===fc,X=O===dc;p=Ph(O);var re=Math.max(0,t.breadthLimit);w=e.computeLayerSpacing(t);var de=t.nodeSpacing,Se=e.computeNodeIndent(t),Te=D||X?0:Se/2,Xe=t.rowSpacing,We=0;(D||X||t.hm||t.im&&t.maxGenerationCount===1)&&(We=Math.max(0,t.rowIndent)),D=t.width;var qe=t.height,tt=0,rt=0,ft=0,Tt=0,Sn=0,Rn=0,_n=0,ln=0,Gt=0,ar=0;if(p&&!ng(O)&&135<r&&i.reverse(),ng(O))if(1<a)for(var er=0;er<a;er++){var si=i[er],Hi=si.Da;er%2===0&&er!==a-1?Gt=Math.max(Gt,(n?Hi.width:Hi.height)+e.computeBusNodeSpacing(si)-de):er%2!==0&&(ar=Math.max(ar,(n?Hi.width:Hi.height)+e.computeBusNodeSpacing(si)-de))}else a===1&&(Gt=n?i[0].Da.width:i[0].Da.height);if(p)switch(O){case ih:case pc:rt=135>r?w1(e,t,i,Gt,tt,rt):C1(e,t,i,Gt,tt,rt),Gt=rt.x,tt=rt.width,rt=rt.height;break;case oh:for(re=0;re<a;re++)Te=i[re],ft=Te.Da,ar=_n===0?0:Xe,n?(Te.S.h(o-ft.width,Sn+ar),tt=Math.max(tt,ft.width),rt=Math.max(rt,Sn+ar+ft.height),Sn+=ar+ft.height):(Te.S.h(Tt+ar,o-ft.height),tt=Math.max(tt,Tt+ar+ft.width),rt=Math.max(rt,ft.height),Tt+=ar+ft.width),_n++;break;case Lc:for(o=0;o<a;o++)re=i[o],Te=re.Da,ft=_n===0?0:Xe,n?(re.S.h(de/2+t.focus.x,Sn+ft),tt=Math.max(tt,Te.width),rt=Math.max(rt,Sn+ft+Te.height),Sn+=ft+Te.height):(re.S.h(Tt+ft,de/2+t.focus.y),tt=Math.max(tt,Tt+ft+Te.width),rt=Math.max(rt,Te.height),Tt+=ft+Te.width),_n++}else for(ar=0;ar<a;ar++)er=i[ar],si=er.Da,n?(0<re&&0<_n&&Tt+de+si.width>re&&(Tt<o&&mf(t,O,o-Tt,0,ln,ar-1),Rn++,_n=0,ln=ar,ft=rt,Tt=0,Sn=135<r?-rt-Xe:rt+Xe),Hi=_n===0?Te:de,Km(e,er,0,Sn),er.S.h(Tt+Hi,Sn),tt=Math.max(tt,Tt+Hi+si.width),rt=Math.max(rt,ft+(Rn===0?0:Xe)+si.height),Tt+=Hi+si.width):(0<re&&0<_n&&Sn+de+si.height>re&&(Sn<o&&mf(t,O,0,o-Sn,ln,ar-1),Rn++,_n=0,ln=ar,ft=tt,Sn=0,Tt=135<r?-tt-Xe:tt+Xe),Hi=_n===0?Te:de,Km(e,er,Tt,0),er.S.h(Tt,Sn+Hi),rt=Math.max(rt,Sn+Hi+si.height),tt=Math.max(tt,ft+(Rn===0?0:Xe)+si.width),Sn+=Hi+si.height),_n++;switch(0<Rn&&(n?(rt+=Math.max(0,w),Tt<tt&&mf(t,O,tt-Tt,0,ln,a-1),0<We&&(X||Vf(t,We,0,0,a-1),tt+=We)):(tt+=Math.max(0,w),Sn<rt&&mf(t,O,0,rt-Sn,ln,a-1),0<We&&(X||Vf(t,0,We,0,a-1),rt+=We))),We=X=0,O){case zd:n?X+=tt/2-t.focus.x-Se/2:We+=rt/2-t.focus.y-Se/2;break;case Yf:0<Rn?n?X+=tt/2-t.focus.x-Se/2:We+=rt/2-t.focus.y-Se/2:n?(e=i[0].S.x+i[0].la.x,X+=e+(i[a-1].S.x+i[a-1].la.x+2*i[a-1].focus.x-e)/2-t.focus.x-Se/2):(e=i[0].S.y+i[0].la.y,We+=e+(i[a-1].S.y+i[a-1].la.y+2*i[a-1].focus.y-e)/2-t.focus.y-Se/2);break;case fc:n?(X-=Se,tt+=Se):(We-=Se,rt+=Se);break;case dc:n?(X+=tt-t.width+Se,tt+=Se):(We+=rt-t.height+Se,rt+=Se);break;case ih:case pc:n?1<a?X+=Gt+de/2-t.focus.x:X+=i[0].focus.x-t.focus.x+i[0].la.x:1<a?We+=Gt+de/2-t.focus.y:We+=i[0].focus.y-t.focus.y+i[0].la.y;break;case oh:n?X+=tt+de/2-t.focus.x:We+=rt+de/2-t.focus.y;break;case Lc:break;default:e=e.customAlignment(t,X,We,tt,rt),X=e[0],We=e[1],tt=e[2],rt=e[3]}for(e=0;e<a;e++)Se=i[e],n?Se.S.h(Se.S.x+Se.la.x-X,Se.S.y+(135<r?(p?-rt:-Se.Da.height)+Se.la.y-w:qe+w+Se.la.y)):Se.S.h(Se.S.x+(135<r?(p?-tt:-Se.Da.width)+Se.la.x-w:D+w+Se.la.x),Se.S.y+Se.la.y-We);n?(tt=Hy(t,tt,X),0>X&&(X=0),135<r&&(We+=rt+w),rt=Math.max(Math.max(rt,qe),rt+qe+w)):(135<r&&(X+=tt+w),tt=Math.max(Math.max(tt,D),tt+D+w),rt=zy(t,rt,We),0>We&&(We=0)),t.la.h(X,We),t.Da.h(tt,rt)}}Lr.prototype.customAlignment=function(e,t,n,r,i){return[t,n,r,i]};function w1(e,t,n,r,i,o){var a=n.length;if(a===0)return new Nt(r,0,i,o);if(a===1)return t=n[0],i=t.Da.width,o=t.Da.height,new Nt(r,0,i,o);for(var p=t.nodeSpacing,w=t.rowSpacing,O=bu(t)===90,D=0,X=0,re=0,de=0;de<a;de++)if(!(de%2!==0||1<a&&de===a-1)){var Se=n[de],Te=Se.Da,Xe=D===0?0:w;if(O){var We=e.computeBusNodeSpacing(Se)-p;Se.S.h(r-(Te.width+We),re+Xe),i=Math.max(i,Te.width+We),o=Math.max(o,re+Xe+Te.height),re+=Xe+Te.height}else We=e.computeBusNodeSpacing(Se)-p,Se.S.h(X+Xe,r-(Te.height+We)),o=Math.max(o,Te.height+We),i=Math.max(i,X+Xe+Te.width),X+=Xe+Te.width;D++}for(D=0,Se=X,de=re,O?(X=r+p,re=0):(X=0,re=r+p),Te=0;Te<a;Te++)if(Te%2!==0){Xe=n[Te],We=Xe.Da;var qe=D===0?0:w;if(O){var tt=e.computeBusNodeSpacing(Xe)-p;Xe.S.h(X+tt,re+qe),i=Math.max(i,X+We.width+tt),o=Math.max(o,re+qe+We.height),re+=qe+We.height}else tt=e.computeBusNodeSpacing(Xe)-p,Xe.S.h(X+qe,re+tt),i=Math.max(i,X+qe+We.width),o=Math.max(o,re+We.height+tt),X+=qe+We.width;D++}return 1<a&&a%2===1&&(n=n[a-1],a=n.Da,e=e.computeBusLastRowSpacing(n,O?Math.max(Math.abs(de),Math.abs(re)):Math.max(Math.abs(Se),Math.abs(X))),O?(n.S.h(r+p/2-n.focus.x-n.la.x,o+e),O=r+p/2-n.focus.x-n.la.x,i=Math.max(i,O+a.width),0>O&&(i-=O),o=Math.max(o,Math.max(de,re)+e+a.height),0>n.S.x&&(r=Vm(t,n.S.x,!1,r,p))):(n.S.h(i+e,r+p/2-n.focus.y-n.la.y),i=Math.max(i,Math.max(Se,X)+e+a.width),re=r+p/2-n.focus.y-n.la.y,o=Math.max(o,re+a.height),0>re&&(o-=re),0>n.S.y&&(r=Vm(t,n.S.y,!0,r,p)))),new Nt(r,0,i,o)}function C1(e,t,n,r,i,o){var a=n.length;if(a===0)return new Nt(r,0,i,o);if(a===1)return n=n[0],i=n.Da.width,o=n.Da.height,new Nt(r,0,i,o);for(var p=t.nodeSpacing,w=t.rowSpacing,O=bu(t)===270,D=0,X=0,re=0,de=0;de<a;de++)if(!(de%2!==0||1<a&&de===a-1)){var Se=n[de],Te=Se.Da,Xe=D===0?0:w;if(O){var We=e.computeBusNodeSpacing(Se)-p;re-=Xe+Te.height,Se.S.h(r-(Te.width+We),re),i=Math.max(i,Te.width+We),o=Math.max(o,Math.abs(re))}else We=e.computeBusNodeSpacing(Se)-p,X-=Xe+Te.width,Se.S.h(X,r-(Te.height+We)),o=Math.max(o,Te.height+We),i=Math.max(i,Math.abs(X));D++}for(D=0,Se=X,de=re,O?(X=r+p,re=0):(X=0,re=r+p),Te=0;Te<a;Te++)if(Te%2!==0){Xe=n[Te],We=Xe.Da;var qe=D===0?0:w;if(O){var tt=e.computeBusNodeSpacing(Xe)-p;re-=qe+We.height,Xe.S.h(X+tt,re),i=Math.max(i,X+We.width+tt),o=Math.max(o,Math.abs(re))}else tt=e.computeBusNodeSpacing(Xe)-p,X-=qe+We.width,Xe.S.h(X,re+tt),o=Math.max(o,re+We.height+tt),i=Math.max(i,Math.abs(X));D++}for(1<a&&a%2===1&&(w=n[a-1],D=w.Da,e=e.computeBusLastRowSpacing(w,O?Math.max(Math.abs(de),Math.abs(re)):Math.max(Math.abs(Se),Math.abs(X))),O?(w.S.h(r+p/2-w.focus.x-w.la.x,-o-D.height-e),X=r+p/2-w.focus.x-w.la.x,i=Math.max(i,X+D.width),0>X&&(i-=X),o=Math.max(o,Math.abs(Math.min(de,re))+e+D.height),0>w.S.x&&(r=Vm(t,w.S.x,!1,r,p))):(w.S.h(-i-D.width-e,r+p/2-w.focus.y-w.la.y),i=Math.max(i,Math.abs(Math.min(Se,X))+e+D.width),re=r+p/2-w.focus.y-w.la.y,o=Math.max(o,re+D.height),0>re&&(o-=re),0>w.S.y&&(r=Vm(t,w.S.y,!0,r,p)))),t=0;t<a;t++)p=n[t],O?p.S.h(p.S.x,p.S.y+o):p.S.h(p.S.x+i,p.S.y);return new Nt(r,0,i,o)}Lr.prototype.computeBusNodeSpacing=function(e){return e.parent===null?0:e.parent.nodeSpacing},Lr.prototype.computeBusLastRowSpacing=function(e){return e.parent===null?0:e.parent.rowSpacing};function Vm(e,t,n,r,i){e=e.children;for(var o=e.length,a=0;a<o;a++)n?e[a].S.h(e[a].S.x,e[a].S.y-t):e[a].S.h(e[a].S.x-t,e[a].S.y);return t=e[o-1],Math.max(r,n?t.la.y+t.focus.y-i/2:t.la.x+t.focus.x-i/2)}function Hy(e,t,n){switch(e.alignment){case Yf:case zd:return n+e.width>t&&(t=n+e.width),0>n&&(t-=n),t;case fc:return e.width>t?e.width:t;case dc:return 2*e.focus.x>t?e.width:t+e.width-2*e.focus.x;case ih:case pc:return Math.max(e.width,Math.max(t,n+e.width)-Math.min(0,n));case oh:return e.width-e.focus.x+e.nodeSpacing/2+t;case Lc:return Math.max(e.width,e.focus.x+e.nodeSpacing/2+t);default:return t}}function zy(e,t,n){switch(e.alignment){case Yf:case zd:return n+e.height>t&&(t=n+e.height),0>n&&(t-=n),t;case fc:return e.height>t?e.height:t;case dc:return 2*e.focus.y>t?e.height:t+e.height-2*e.focus.y;case ih:case pc:return Math.max(e.height,Math.max(t,n+e.height)-Math.min(0,n));case oh:return e.height-e.focus.y+e.nodeSpacing/2+t;case Lc:return Math.max(e.height,e.focus.y+e.nodeSpacing/2+t);default:return t}}function Gy(e,t,n){switch(e){case zd:t/=2,n/=2;break;case Yf:t/=2,n/=2;break;case fc:n=t=0;break;case dc:break;default:Lt("Unhandled alignment value "+e.toString())}return new Ue(t,n)}function mf(e,t,n,r,i,o){t=Gy(t,n,r),Vf(e,t.x,t.y,i,o)}function Vf(e,t,n,r,i){if(t!==0||n!==0)for(e=e.children;r<=i;r++){var o=e[r].S;o.x+=t,o.y+=n}}function Km(e,t,n,r){var i=t.parent;switch(e.ud){case hc:for(e=t.sourceEdges;e.next();)t=e.value,t.fromVertex===i&&t.relativePoint.h(n,r);break;case Kf:for(e=t.destinationEdges;e.next();)t=e.value,t.toVertex===i&&t.relativePoint.h(n,r);break;default:Lt("Unhandled path value "+e.ud.toString())}}function Ym(e,t,n){for(var r=0;r<e.length;r++){var i=e[r];i.x+=t,i.y+=n}}function T1(e,t,n,r,i,o,a,p){var w=bu(t),O=w===90||w===270,D=t.nodeSpacing;t=r;var X=i;r=o;var re=a,de=n.Yo,Se=n.kp;a=n.Da;var Te=O?Math.max(re,a.height):Math.max(r,a.width);if((de===null||w!==bu(n))&&(de=Za(e,2),Se=Za(e,2),O?(de[0].h(0,0),de[1].h(0,a.height),Se[0].h(a.width,0),Se[1].h(Se[0].x,de[1].y)):(de[0].h(0,0),de[1].h(a.width,0),Se[0].h(0,a.height),Se[1].h(de[1].x,Se[0].y))),O){if(re=9999999,!(X===null||2>X.length||de===null||2>de.length))for(i=n=0;n<X.length&&i<de.length;){o=X[n];var Xe=de[i];w=Xe.x,O=Xe.y,w+=r;var We=o;n+1<X.length&&(We=X[n+1]);var qe=Xe;Xe=qe.x,qe=qe.y,i+1<de.length&&(qe=de[i+1],Xe=qe.x,qe=qe.y,Xe+=r);var tt=re;o.y===O?tt=w-o.x:o.y>O&&o.y<qe?tt=w+(o.y-O)/(qe-O)*(Xe-w)-o.x:O>o.y&&O<We.y&&(tt=w-(o.x+(O-o.y)/(We.y-o.y)*(We.x-o.x))),tt<re&&(re=tt),We.y<=o.y?n++:qe<=O?i++:(We.y<=qe&&n++,qe<=We.y&&i++)}if(re=r-re,re+=D,n=de,i=re,t===null||2>t.length||n===null||2>n.length)r=null;else{for(D=Za(e,t.length+n.length),r=o=w=0;o<n.length&&n[o].y<t[0].y;)O=n[o++],D[r++].h(O.x+i,O.y);for(;w<t.length;)O=t[w++],D[r++].h(O.x,O.y);for(w=t[t.length-1].y;o<n.length&&n[o].y<=w;)o++;for(;o<n.length&&n[o].y>w;)O=n[o++],D[r++].h(O.x+i,O.y);for(n=Za(e,r),w=0;w<r;w++)n[w].assign(D[w]);Ru(e,D),r=n}if(o=Se,w=re,X===null||2>X.length||o===null||2>o.length)i=null;else{for(D=Za(e,X.length+o.length),i=O=n=0;n<X.length&&X[n].y<o[0].y;)We=X[n++],D[i++].h(We.x,We.y);for(;O<o.length;)We=o[O++],D[i++].h(We.x+w,We.y);for(o=o[o.length-1].y;n<X.length&&X[n].y<=o;)n++;for(;n<X.length&&X[n].y>o;)w=X[n++],D[i++].h(w.x,w.y);for(o=Za(e,i),n=0;n<i;n++)o[n].assign(D[n]);Ru(e,D),i=o}return o=Math.max(0,re)+a.width,a=Te,Ru(e,t),Ru(e,de),Ru(e,X),Ru(e,Se),p[0]=r,p[1]=i,new Nt(re,0,o,a)}if(r=9999999,!(X===null||2>X.length||de===null||2>de.length))for(i=n=0;n<X.length&&i<de.length;)o=X[n],Xe=de[i],w=Xe.x,O=Xe.y,O+=re,We=o,n+1<X.length&&(We=X[n+1]),qe=Xe,Xe=qe.x,qe=qe.y,i+1<de.length&&(qe=de[i+1],Xe=qe.x,qe=qe.y,qe+=re),tt=r,o.x===w?tt=O-o.y:o.x>w&&o.x<Xe?tt=O+(o.x-w)/(Xe-w)*(qe-O)-o.y:w>o.x&&w<We.x&&(tt=O-(o.y+(w-o.x)/(We.x-o.x)*(We.y-o.y))),tt<r&&(r=tt),We.x<=o.x?n++:Xe<=w?i++:(We.x<=Xe&&n++,Xe<=We.x&&i++);if(re-=r,re+=D,n=de,i=re,t===null||2>t.length||n===null||2>n.length)r=null;else{for(D=Za(e,t.length+n.length),r=o=w=0;o<n.length&&n[o].x<t[0].x;)O=n[o++],D[r++].h(O.x,O.y+i);for(;w<t.length;)O=t[w++],D[r++].h(O.x,O.y);for(w=t[t.length-1].x;o<n.length&&n[o].x<=w;)o++;for(;o<n.length&&n[o].x>w;)O=n[o++],D[r++].h(O.x,O.y+i);for(n=Za(e,r),w=0;w<r;w++)n[w].assign(D[w]);Ru(e,D),r=n}if(o=Se,w=re,X===null||2>X.length||o===null||2>o.length)i=null;else{for(D=Za(e,X.length+o.length),i=O=n=0;n<X.length&&X[n].x<o[0].x;)We=X[n++],D[i++].h(We.x,We.y);for(;O<o.length;)We=o[O++],D[i++].h(We.x,We.y+w);for(o=o[o.length-1].x;n<X.length&&X[n].x<=o;)n++;for(;n<X.length&&X[n].x>o;)w=X[n++],D[i++].h(w.x,w.y);for(o=Za(e,i),n=0;n<i;n++)o[n].assign(D[n]);Ru(e,D),i=o}return o=Te,a=Math.max(0,re)+a.height,Ru(e,t),Ru(e,de),Ru(e,X),Ru(e,Se),p[0]=r,p[1]=i,new Nt(re,0,o,a)}function Za(e,t){if(e=e.ru[t],e!==void 0&&(e=e.pop(),e!==void 0))return e;e=[];for(var n=0;n<t;n++)e[n]=new Ue;return e}function Ru(e,t){var n=t.length,r=e.ru[n];r===void 0&&(r=[],e.ru[n]=r),r.push(t)}Lr.prototype.arrangeTrees=function(){if(this.Rb===Qm)for(var e=this.Ub.iterator;e.next();){var t=e.value;if(t instanceof tu){var n=t.node;if(n!==null){var r=n.position;n=r.x,r=r.y,isFinite(n)||(n=0),isFinite(r)||(r=0),Wy(this,t,n,r)}}}else{for(e=[],t=this.Ub.iterator;t.next();)n=t.value,n instanceof tu&&e.push(n);switch(this.sorting){case Hd:break;case rg:e.reverse();break;case ig:e.sort(this.comparer);break;case og:e.sort(this.comparer),e.reverse();break;default:Lt("Unhandled sorting value "+this.sorting.toString())}for(n=this.arrangementOrigin,t=n.x,n=n.y,r=0;r<e.length;r++){var i=e[r];switch(Wy(this,i,t+i.la.x,n+i.la.y),this.Rb){case Jm:n+=i.Da.height+this.$d.height;break;case $y:t+=i.Da.width+this.$d.width;break;default:Lt("Unhandled arrangement value "+this.Rb.toString())}}}};function Wy(e,t,n,r){if(t!==null){t.x=n,t.y=r,t=t.children;for(var i=t.length,o=0;o<i;o++){var a=t[o];Wy(e,a,n+a.S.x,r+a.S.y)}}}Lr.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},Lr.prototype.commitNodes=function(){for(var e=this.network.vertexes.iterator;e.next();)e.value.commit();for(e.reset();e.next();)this.layoutComments(e.value)},Lr.prototype.Gu=function(){if(this.layerStyle===qm){for(var e=this.$v,t=[],n=null,r=this.network.vertexes.iterator;r.next();){var i=r.value;n===null?n=i.bounds.copy():n.ed(i.bounds);var o=t[i.level];o===void 0?o=this.computeLayerSpacing(i):o=Math.max(o,this.computeLayerSpacing(i)),t[i.level]=o}for(r=0;r<t.length;r++)t[r]===void 0&&(t[r]=0);if(this.angle===90||this.angle===270?(n.Bc(this.nodeSpacing/2,this.layerSpacing),r=new Ue(-this.nodeSpacing/2,-this.layerSpacing/2)):(n.Bc(this.layerSpacing,this.nodeSpacing/2),r=new Ue(-this.layerSpacing/2,-this.nodeSpacing/2)),i=[],n=this.angle===90||this.angle===270?n.width:n.height,o=0,this.angle===180||this.angle===270)for(var a=0;a<e.length;a++)o+=e[a]+t[a];for(a=0;a<e.length;a++){var p=e[a]+t[a];this.angle===270?(o-=p,i.push(new Nt(0,o,n,p))):this.angle===90?(i.push(new Nt(0,o,n,p)),o+=p):this.angle===180?(o-=p,i.push(new Nt(o,0,p,n))):(i.push(new Nt(o,0,p,n)),o+=p)}this.commitLayers(i,r)}},Lr.prototype.commitLayers=function(){},Lr.prototype.commitLinks=function(){for(var e=this.network.edges.iterator;e.next();)e.value.commit()},Lr.prototype.yv=function(){for(var e=this.Ub.iterator;e.next();){var t=e.value;t instanceof tu&&_1(this,t)}};function _1(e,t){if(t!==null){e.setPortSpots(t),t=t.children;for(var n=t.length,r=0;r<n;r++)_1(e,t[r])}}Lr.prototype.setPortSpots=function(e){var t=e.alignment;if(Ph(t)){var n=this.ud===hc,r=bu(e);switch(r){case 0:var i=ws;break;case 90:i=js;break;case 180:i=Ks;break;default:i=Vs}var o=e.children,a=o.length;switch(t){case ih:case pc:for(t=0;t<a;t++){var p=o[t];if(p=(n?p.sourceEdges:p.destinationEdges).first(),p!==null&&(p=p.link,p!==null)){var w=r===90||r===270?Ks:Vs;if(a===1||t===a-1&&a%2===1)switch(r){case 0:w=Ks;break;case 90:w=Vs;break;case 180:w=ws;break;default:w=js}else t%2===0&&(w=r===90||r===270?ws:js);n?(e.setsPortSpot&&(p.fromSpot=i),e.setsChildPortSpot&&(p.toSpot=w)):(e.setsPortSpot&&(p.fromSpot=w),e.setsChildPortSpot&&(p.toSpot=i))}}break;case oh:for(r=r===90||r===270?ws:js,o=n?e.destinationEdges:e.sourceEdges;o.next();)a=o.value.link,a!==null&&(n?(e.setsPortSpot&&(a.fromSpot=i),e.setsChildPortSpot&&(a.toSpot=r)):(e.setsPortSpot&&(a.fromSpot=r),e.setsChildPortSpot&&(a.toSpot=i)));break;case Lc:for(r=r===90||r===270?Ks:Vs,o=n?e.destinationEdges:e.sourceEdges;o.next();)a=o.value.link,a!==null&&(n?(e.setsPortSpot&&(a.fromSpot=i),e.setsChildPortSpot&&(a.toSpot=r)):(e.setsPortSpot&&(a.fromSpot=r),e.setsChildPortSpot&&(a.toSpot=i)))}}else if(n=bu(e),this.ud===hc){for(i=e.destinationEdges;i.next();)if(r=i.value.link,r!==null){if(e.setsPortSpot)if(e.portSpot.Xb())switch(n){case 0:r.fromSpot=ws;break;case 90:r.fromSpot=js;break;case 180:r.fromSpot=Ks;break;default:r.fromSpot=Vs}else r.fromSpot=e.portSpot;if(e.setsChildPortSpot)if(e.childPortSpot.Xb())switch(n){case 0:r.toSpot=Ks;break;case 90:r.toSpot=Vs;break;case 180:r.toSpot=ws;break;default:r.toSpot=js}else r.toSpot=e.childPortSpot}}else for(i=e.sourceEdges;i.next();)if(r=i.value.link,r!==null){if(e.setsPortSpot)if(e.portSpot.Xb())switch(n){case 0:r.toSpot=ws;break;case 90:r.toSpot=js;break;case 180:r.toSpot=Ks;break;default:r.toSpot=Vs}else r.toSpot=e.portSpot;if(e.setsChildPortSpot)if(e.childPortSpot.Xb())switch(n){case 0:r.fromSpot=Ks;break;case 90:r.fromSpot=Vs;break;case 180:r.fromSpot=ws;break;default:r.fromSpot=js}else r.fromSpot=e.childPortSpot}};function bu(e){return e=e.angle,45>=e?0:135>=e?90:225>=e?180:315>=e?270:0}Lr.prototype.computeLayerSpacing=function(e){var t=bu(e);t=t===90||t===270;var n=e.layerSpacing;if(0<e.layerSpacingParentOverlap){var r=Math.min(1,e.layerSpacingParentOverlap);n-=t?e.height*r:e.width*r}return n<(t?-e.height:-e.width)&&(n=t?-e.height:-e.width),n},Lr.prototype.computeNodeIndent=function(e){var t=bu(e),n=e.nodeIndent;if(0<e.nodeIndentPastParent){var r=Math.min(1,e.nodeIndentPastParent);n+=t===90||t===270?e.width*r:e.height*r}return n=Math.max(0,n)},kn.Object.defineProperties(Lr.prototype,{roots:{get:function(){return this.Ub},set:function(e){this.Ub!==e&&(this.Ub=e,this.C())}},path:{get:function(){return this.Wn},set:function(e){this.Wn!==e&&(this.Wn=e,this.C())}},treeStyle:{get:function(){return this.vo},set:function(e){this.Rb===e||e!==Zm&&e!==Ky&&e!==Vy&&e!==Yy||(this.vo=e,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(e){this.Rb===e||e!==Xy&&e!==Zy&&e!==qm||(this.Bq=e,this.C())}},comments:{get:function(){return this.td},set:function(e){this.td!==e&&(this.td=e,this.C())}},arrangement:{get:function(){return this.Rb},set:function(e){this.Rb===e||e!==Jm&&e!==$y&&e!==Qm||(this.Rb=e,this.C())}},arrangementSpacing:{get:function(){return this.$d},set:function(e){this.$d.D(e)||(this.$d.assign(e),this.C())}},rootDefaults:{get:function(){return this.W},set:function(e){this.W!==e&&(this.W=e,this.C())}},alternateDefaults:{get:function(){return this.Y},set:function(e){this.Y!==e&&(this.Y=e,this.C())}},sorting:{get:function(){return this.W.sorting},set:function(e){this.W.sorting===e||e!==Hd&&e!==rg&&e!==ig&&!og||(this.W.sorting=e,this.C())}},comparer:{get:function(){return this.W.comparer},set:function(e){this.W.comparer!==e&&(this.W.comparer=e,this.C())}},angle:{get:function(){return this.W.angle},set:function(e){this.W.angle!==e&&(e===0||e===90||e===180||e===270?(this.W.angle=e,this.C()):Lt("TreeLayout.angle must be 0, 90, 180, or 270"))}},alignment:{get:function(){return this.W.alignment},set:function(e){this.W.alignment!==e&&(this.W.alignment=e,this.C())}},nodeIndent:{get:function(){return this.W.nodeIndent},set:function(e){this.W.nodeIndent!==e&&0<=e&&(this.W.nodeIndent=e,this.C())}},nodeIndentPastParent:{get:function(){return this.W.nodeIndentPastParent},set:function(e){this.W.nodeIndentPastParent!==e&&0<=e&&1>=e&&(this.W.nodeIndentPastParent=e,this.C())}},nodeSpacing:{get:function(){return this.W.nodeSpacing},set:function(e){this.W.nodeSpacing!==e&&(this.W.nodeSpacing=e,this.C())}},layerSpacing:{get:function(){return this.W.layerSpacing},set:function(e){this.W.layerSpacing!==e&&(this.W.layerSpacing=e,this.C())}},layerSpacingParentOverlap:{get:function(){return this.W.layerSpacingParentOverlap},set:function(e){this.W.layerSpacingParentOverlap!==e&&0<=e&&1>=e&&(this.W.layerSpacingParentOverlap=e,this.C())}},compaction:{get:function(){return this.W.compaction},set:function(e){this.W.compaction===e||e!==Xm&&e!==sg||(this.W.compaction=e,this.C())}},breadthLimit:{get:function(){return this.W.breadthLimit},set:function(e){this.W.breadthLimit!==e&&0<=e&&(this.W.breadthLimit=e,this.C())}},rowSpacing:{get:function(){return this.W.rowSpacing},set:function(e){this.W.rowSpacing!==e&&(this.W.rowSpacing=e,this.C())}},rowIndent:{get:function(){return this.W.rowIndent},set:function(e){this.W.rowIndent!==e&&0<=e&&(this.W.rowIndent=e,this.C())}},commentSpacing:{get:function(){return this.W.commentSpacing},set:function(e){this.W.commentSpacing!==e&&(this.W.commentSpacing=e,this.C())}},commentMargin:{get:function(){return this.W.commentMargin},set:function(e){this.W.commentMargin!==e&&(this.W.commentMargin=e,this.C())}},setsPortSpot:{get:function(){return this.W.setsPortSpot},set:function(e){this.W.setsPortSpot!==e&&(this.W.setsPortSpot=e,this.C())}},portSpot:{get:function(){return this.W.portSpot},set:function(e){this.W.portSpot.D(e)||(this.W.portSpot=e,this.C())}},setsChildPortSpot:{get:function(){return this.W.setsChildPortSpot},set:function(e){this.W.setsChildPortSpot!==e&&(this.W.setsChildPortSpot=e,this.C())}},childPortSpot:{get:function(){return this.W.childPortSpot},set:function(e){this.W.childPortSpot.D(e)||(this.W.childPortSpot=e,this.C())}},alternateSorting:{get:function(){return this.Y.sorting},set:function(e){this.Y.sorting===e||e!==Hd&&e!==rg&&e!==ig&&!og||(this.Y.sorting=e,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(e){this.Y.comparer!==e&&(this.Y.comparer=e,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(e){this.Y.angle===e||e!==0&&e!==90&&e!==180&&e!==270||(this.Y.angle=e,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(e){this.Y.alignment!==e&&(this.Y.alignment=e,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(e){this.Y.nodeIndent!==e&&0<=e&&(this.Y.nodeIndent=e,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(e){this.Y.nodeIndentPastParent!==e&&0<=e&&1>=e&&(this.Y.nodeIndentPastParent=e,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(e){this.Y.nodeSpacing!==e&&(this.Y.nodeSpacing=e,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(e){this.Y.layerSpacing!==e&&(this.Y.layerSpacing=e,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(e){this.Y.layerSpacingParentOverlap!==e&&0<=e&&1>=e&&(this.Y.layerSpacingParentOverlap=e,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(e){this.Y.compaction===e||e!==Xm&&e!==sg||(this.Y.compaction=e,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(e){this.Y.breadthLimit!==e&&0<=e&&(this.Y.breadthLimit=e,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(e){this.Y.rowSpacing!==e&&(this.Y.rowSpacing=e,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(e){this.Y.rowIndent!==e&&0<=e&&(this.Y.rowIndent=e,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(e){this.Y.commentSpacing!==e&&(this.Y.commentSpacing=e,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(e){this.Y.commentMargin!==e&&(this.Y.commentMargin=e,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(e){this.Y.setsPortSpot!==e&&(this.Y.setsPortSpot=e,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(e){this.Y.portSpot.D(e)||(this.Y.portSpot=e,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(e){this.Y.setsChildPortSpot!==e&&(this.Y.setsChildPortSpot=e,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(e){this.Y.childPortSpot.D(e)||(this.Y.childPortSpot=e,this.C())}}});var $m=new hn(Lr,"PathDefault",-1),hc=new hn(Lr,"PathDestination",0),Kf=new hn(Lr,"PathSource",1),Hd=new hn(Lr,"SortingForwards",10),rg=new hn(Lr,"SortingReverse",11),ig=new hn(Lr,"SortingAscending",12),og=new hn(Lr,"SortingDescending",13),zd=new hn(Lr,"AlignmentCenterSubtrees",20),Yf=new hn(Lr,"AlignmentCenterChildren",21),fc=new hn(Lr,"AlignmentStart",22),dc=new hn(Lr,"AlignmentEnd",23),ih=new hn(Lr,"AlignmentBus",24),pc=new hn(Lr,"AlignmentBusBranching",25),oh=new hn(Lr,"AlignmentTopLeftBus",26),Lc=new hn(Lr,"AlignmentBottomRightBus",27),Xm=new hn(Lr,"CompactionNone",30),sg=new hn(Lr,"CompactionBlock",31),Zm=new hn(Lr,"StyleLayered",40),Vy=new hn(Lr,"StyleLastParents",41),Ky=new hn(Lr,"StyleAlternating",42),Yy=new hn(Lr,"StyleRootOnly",43),Jm=new hn(Lr,"ArrangementVertical",50),$y=new hn(Lr,"ArrangementHorizontal",51),Qm=new hn(Lr,"ArrangementFixedRoots",52),Xy=new hn(Lr,"LayerIndividual",60),Zy=new hn(Lr,"LayerSiblings",61),qm=new hn(Lr,"LayerUniform",62);Lr.className="TreeLayout",Lr.PathDefault=$m,Lr.PathDestination=hc,Lr.PathSource=Kf,Lr.SortingForwards=Hd,Lr.SortingReverse=rg,Lr.SortingAscending=ig,Lr.SortingDescending=og,Lr.AlignmentCenterSubtrees=zd,Lr.AlignmentCenterChildren=Yf,Lr.AlignmentStart=fc,Lr.AlignmentEnd=dc,Lr.AlignmentBus=ih,Lr.AlignmentBusBranching=pc,Lr.AlignmentTopLeftBus=oh,Lr.AlignmentBottomRightBus=Lc,Lr.CompactionNone=Xm,Lr.CompactionBlock=sg,Lr.StyleLayered=Zm,Lr.StyleLastParents=Vy,Lr.StyleAlternating=Ky,Lr.StyleRootOnly=Yy,Lr.ArrangementVertical=Jm,Lr.ArrangementHorizontal=$y,Lr.ArrangementFixedRoots=Qm,Lr.LayerIndividual=Xy,Lr.LayerSiblings=Zy,Lr.LayerUniform=qm;function $f(e){Ki.call(this,e)}Tn($f,Ki),$f.prototype.createVertex=function(){return new tu(this)},$f.prototype.createEdge=function(){return new Gd(this)},$f.className="TreeNetwork";function tu(e){xs.call(this,e),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new Ue(0,0),this.Da=new Yt(0,0),this.la=new Ue(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=Hd,this.hd=my,this.Kb=0,this.Jb=Yf,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=sg,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=is,this.wr=!0,this.Dp=is}Tn(tu,xs),tu.prototype.copyInheritedPropertiesFrom=function(e){e!==null&&(this.nd=e.sorting,this.hd=e.comparer,this.Kb=e.angle,this.Jb=e.alignment,this.Uq=e.nodeIndent,this.Vq=e.nodeIndentPastParent,this.Wq=e.nodeSpacing,this.ie=e.layerSpacing,this.Aq=e.layerSpacingParentOverlap,this.Hp=e.compaction,this.Ap=e.breadthLimit,this.nr=e.rowSpacing,this.mr=e.rowIndent,this.Gp=e.commentSpacing,this.Fp=e.commentMargin,this.xr=e.setsPortSpot,this.dr=e.portSpot,this.wr=e.setsChildPortSpot,this.Dp=e.childPortSpot)},kn.Object.defineProperties(tu.prototype,{initialized:{get:function(){return this.V},set:function(e){this.V!==e&&(this.V=e)}},parent:{get:function(){return this.hb},set:function(e){this.hb!==e&&(this.hb=e)}},children:{get:function(){return this.u},set:function(e){if(this.u!==e){if(e!==null)for(var t=e.length,n=0;n<t;n++);this.u=e}}},level:{get:function(){return this.ia},set:function(e){this.ia!==e&&(this.ia=e)}},descendantCount:{get:function(){return this.F},set:function(e){this.F!==e&&(this.F=e)}},maxChildrenCount:{get:function(){return this.Ha},set:function(e){this.Ha!==e&&(this.Ha=e)}},maxGenerationCount:{get:function(){return this.nb},set:function(e){this.nb!==e&&(this.nb=e)}},comments:{get:function(){return this.td},set:function(e){if(this.td!==e){if(e!==null)for(var t=e.length,n=0;n<t;n++);this.td=e}}},sorting:{get:function(){return this.nd},set:function(e){this.nd!==e&&(this.nd=e)}},comparer:{get:function(){return this.hd},set:function(e){this.hd!==e&&(this.hd=e)}},angle:{get:function(){return this.Kb},set:function(e){this.Kb!==e&&(this.Kb=e)}},alignment:{get:function(){return this.Jb},set:function(e){this.Jb!==e&&(this.Jb=e)}},nodeIndent:{get:function(){return this.Uq},set:function(e){this.Uq!==e&&(this.Uq=e)}},nodeIndentPastParent:{get:function(){return this.Vq},set:function(e){this.Vq!==e&&(this.Vq=e)}},nodeSpacing:{get:function(){return this.Wq},set:function(e){this.Wq!==e&&(this.Wq=e)}},layerSpacing:{get:function(){return this.ie},set:function(e){this.ie!==e&&(this.ie=e)}},layerSpacingParentOverlap:{get:function(){return this.Aq},set:function(e){this.Aq!==e&&(this.Aq=e)}},compaction:{get:function(){return this.Hp},set:function(e){this.Hp!==e&&(this.Hp=e)}},breadthLimit:{get:function(){return this.Ap},set:function(e){this.Ap!==e&&(this.Ap=e)}},rowSpacing:{get:function(){return this.nr},set:function(e){this.nr!==e&&(this.nr=e)}},rowIndent:{get:function(){return this.mr},set:function(e){this.mr!==e&&(this.mr=e)}},commentSpacing:{get:function(){return this.Gp},set:function(e){this.Gp!==e&&(this.Gp=e)}},commentMargin:{get:function(){return this.Fp},set:function(e){this.Fp!==e&&(this.Fp=e)}},setsPortSpot:{get:function(){return this.xr},set:function(e){this.xr!==e&&(this.xr=e)}},portSpot:{get:function(){return this.dr},set:function(e){this.dr.D(e)||(this.dr=e)}},setsChildPortSpot:{get:function(){return this.wr},set:function(e){this.wr!==e&&(this.wr=e)}},childPortSpot:{get:function(){return this.Dp},set:function(e){this.Dp.D(e)||(this.Dp=e)}},childrenCount:{get:function(){return this.children.length}},relativePosition:{get:function(){return this.S},set:function(e){this.S.set(e)}},subtreeSize:{get:function(){return this.Da},set:function(e){this.Da.set(e)}},subtreeOffset:{get:function(){return this.la},set:function(e){this.la.set(e)}}}),tu.className="TreeVertex";function Gd(e){ll.call(this,e),this.$t=new Ue(0,0)}Tn(Gd,ll),Gd.prototype.commit=function(){var e=this.link;if(e!==null&&!e.isAvoiding){var t=this.network.layout,n=null,r=null;switch(t.ud){case hc:n=this.fromVertex,r=this.toVertex;break;case Kf:n=this.toVertex,r=this.fromVertex;break;default:Lt("Unhandled path value "+t.ud.toString())}if(n!==null&&r!==null){var i=this.$t;if(i.x!==0||i.y!==0||n.qA){r=n.bounds;var o=bu(n),a=t.computeLayerSpacing(n),p=n.rowSpacing;e.vg();var w=e.curve===Cl,O=e.isOrthogonal,D;if(e.uh(),O||w){for(D=2;4<e.pointsCount;)e.pv(2);var X=e.i(1),re=e.i(2)}else{for(D=1;3<e.pointsCount;)e.pv(1);X=e.i(0),re=e.i(e.pointsCount-1)}var de=e.i(e.pointsCount-1);o===0?(n.alignment===dc?(o=r.bottom+i.y,i.y===0&&X.y>de.y+n.rowIndent&&(o=Math.min(o,Math.max(X.y,o-t.computeNodeIndent(n))))):n.alignment===fc?(o=r.top+i.y,i.y===0&&X.y<de.y-n.rowIndent&&(o=Math.max(o,Math.min(X.y,o+t.computeNodeIndent(n))))):o=n.hm||n.im&&n.maxGenerationCount===1?r.top-n.la.y+i.y:r.y+r.height/2+i.y,w?(e.m(D,X.x,o),D++,e.m(D,r.right+a,o),D++,e.m(D,r.right+a+(i.x-p)/3,o),D++,e.m(D,r.right+a+2*(i.x-p)/3,o),D++,e.m(D,r.right+a+(i.x-p),o),D++,e.m(D,re.x,o)):(O&&(e.m(D,r.right+a/2,X.y),D++),e.m(D,r.right+a/2,o),D++,e.m(D,r.right+a+i.x-(O?p/2:p),o),D++,O&&e.m(D,e.i(D-1).x,re.y))):o===90?(n.alignment===dc?(o=r.right+i.x,i.x===0&&X.x>de.x+n.rowIndent&&(o=Math.min(o,Math.max(X.x,o-t.computeNodeIndent(n))))):n.alignment===fc?(o=r.left+i.x,i.x===0&&X.x<de.x-n.rowIndent&&(o=Math.max(o,Math.min(X.x,o+t.computeNodeIndent(n))))):o=n.hm||n.im&&n.maxGenerationCount===1?r.left-n.la.x+i.x:r.x+r.width/2+i.x,w?(e.m(D,o,X.y),D++,e.m(D,o,r.bottom+a),D++,e.m(D,o,r.bottom+a+(i.y-p)/3),D++,e.m(D,o,r.bottom+a+2*(i.y-p)/3),D++,e.m(D,o,r.bottom+a+(i.y-p)),D++,e.m(D,o,re.y)):(O&&(e.m(D,X.x,r.bottom+a/2),D++),e.m(D,o,r.bottom+a/2),D++,e.m(D,o,r.bottom+a+i.y-(O?p/2:p)),D++,O&&e.m(D,re.x,e.i(D-1).y))):o===180?(n.alignment===dc?(o=r.bottom+i.y,i.y===0&&X.y>de.y+n.rowIndent&&(o=Math.min(o,Math.max(X.y,o-t.computeNodeIndent(n))))):n.alignment===fc?(o=r.top+i.y,i.y===0&&X.y<de.y-n.rowIndent&&(o=Math.max(o,Math.min(X.y,o+t.computeNodeIndent(n))))):o=n.hm||n.im&&n.maxGenerationCount===1?r.top-n.la.y+i.y:r.y+r.height/2+i.y,w?(e.m(D,X.x,o),D++,e.m(D,r.left-a,o),D++,e.m(D,r.left-a+(i.x+p)/3,o),D++,e.m(D,r.left-a+2*(i.x+p)/3,o),D++,e.m(D,r.left-a+(i.x+p),o),D++,e.m(D,re.x,o)):(O&&(e.m(D,r.left-a/2,X.y),D++),e.m(D,r.left-a/2,o),D++,e.m(D,r.left-a+i.x+(O?p/2:p),o),D++,O&&e.m(D,e.i(D-1).x,re.y))):o===270?(n.alignment===dc?(o=r.right+i.x,i.x===0&&X.x>de.x+n.rowIndent&&(o=Math.min(o,Math.max(X.x,o-t.computeNodeIndent(n))))):n.alignment===fc?(o=r.left+i.x,i.x===0&&X.x<de.x-n.rowIndent&&(o=Math.max(o,Math.min(X.x,o+t.computeNodeIndent(n))))):o=n.hm||n.im&&n.maxGenerationCount===1?r.left-n.la.x+i.x:r.x+r.width/2+i.x,w?(e.m(D,o,X.y),D++,e.m(D,o,r.top-a),D++,e.m(D,o,r.top-a+(i.y+p)/3),D++,e.m(D,o,r.top-a+2*(i.y+p)/3),D++,e.m(D,o,r.top-a+(i.y+p)),D++,e.m(D,o,re.y)):(O&&(e.m(D,X.x,r.top-a/2),D++),e.m(D,o,r.top-a/2),D++,e.m(D,o,r.top-a+i.y+(O?p/2:p)),D++,O&&e.m(D,re.x,e.i(D-1).y))):Lt("Invalid angle "+o),e.zf()}else i=r,e=this.link,r=this.network.layout,t=bu(n),t!==bu(i)&&(a=r.computeLayerSpacing(n),p=n.bounds,n=i.bounds,t===0&&n.left-p.right<a+1||t===90&&n.top-p.bottom<a+1||t===180&&p.left-n.right<a+1||t===270&&p.top-n.bottom<a+1||(e.vg(),n=e.curve===Cl,i=e.isOrthogonal,r=Ph(this.fromVertex.alignment),e.uh(),t===0?(t=p.right+a/2,n?e.pointsCount===4&&(n=e.i(3).y,e.L(1,t-20,e.i(1).y),e.m(2,t-20,n),e.m(3,t,n),e.m(4,t+20,n),e.L(5,e.i(5).x,n)):i?r?e.L(3,e.i(2).x,e.i(4).y):e.pointsCount===6&&(e.L(2,t,e.i(2).y),e.L(3,t,e.i(3).y)):e.pointsCount===4?e.m(2,t,e.i(2).y):e.pointsCount===3?e.L(1,t,e.i(2).y):e.pointsCount===2&&e.m(1,t,e.i(1).y)):t===90?(t=p.bottom+a/2,n?e.pointsCount===4&&(n=e.i(3).x,e.L(1,e.i(1).x,t-20),e.m(2,n,t-20),e.m(3,n,t),e.m(4,n,t+20),e.L(5,n,e.i(5).y)):i?r?e.L(3,e.i(2).x,e.i(4).y):e.pointsCount===6&&(e.L(2,e.i(2).x,t),e.L(3,e.i(3).x,t)):e.pointsCount===4?e.m(2,e.i(2).x,t):e.pointsCount===3?e.L(1,e.i(2).x,t):e.pointsCount===2&&e.m(1,e.i(1).x,t)):t===180?(t=p.left-a/2,n?e.pointsCount===4&&(n=e.i(3).y,e.L(1,t+20,e.i(1).y),e.m(2,t+20,n),e.m(3,t,n),e.m(4,t-20,n),e.L(5,e.i(5).x,n)):i?r?e.L(3,e.i(2).x,e.i(4).y):e.pointsCount===6&&(e.L(2,t,e.i(2).y),e.L(3,t,e.i(3).y)):e.pointsCount===4?e.m(2,t,e.i(2).y):e.pointsCount===3?e.L(1,t,e.i(2).y):e.pointsCount===2&&e.m(1,t,e.i(1).y)):t===270&&(t=p.top-a/2,n?e.pointsCount===4&&(n=e.i(3).x,e.L(1,e.i(1).x,t+20),e.m(2,n,t+20),e.m(3,n,t),e.m(4,n,t-20),e.L(5,n,e.i(5).y)):i?r?e.L(3,e.i(2).x,e.i(4).y):e.pointsCount===6&&(e.L(2,e.i(2).x,t),e.L(3,e.i(3).x,t)):e.pointsCount===4?e.m(2,e.i(2).x,t):e.pointsCount===3?e.L(1,e.i(2).x,t):e.pointsCount===2&&e.m(1,e.i(1).x,t)),e.zf()))}}},kn.Object.defineProperties(Gd.prototype,{fromVertex:{get:function(){return this.kd},set:function(e){this.kd!==e&&(this.kd=e)}},toVertex:{get:function(){return this.qd},set:function(e){this.qd!==e&&(this.qd=e)}},relativePoint:{get:function(){return this.$t},set:function(e){this.$t.set(e)}}}),Gd.className="TreeEdge",Wi.prototype.initializeStandardTools=function(){this.gb("Action",new zt,this.mouseDownTools),this.gb("Relinking",new Ae,this.mouseDownTools),this.gb("LinkReshaping",new Ye,this.mouseDownTools),this.gb("Rotating",new Zt,this.mouseDownTools),this.gb("Resizing",new Rt,this.mouseDownTools),this.gb("Linking",new ni,this.mouseMoveTools),this.gb("Dragging",new io,this.mouseMoveTools),this.gb("DragSelecting",new U,this.mouseMoveTools),this.gb("Panning",new Ce,this.mouseMoveTools),this.gb("ContextMenu",new Ut,this.mouseUpTools),this.gb("TextEditing",new $n,this.mouseUpTools),this.gb("ClickCreating",new k,this.mouseUpTools),this.gb("ClickSelecting",new Jt,this.mouseUpTools)},Xu("Horizontal",new kg),Xu("Spot",new Rg),Xu("Table",new Og),Xu("Viewbox",new Dg),Xu("TableRow",new Lg),Xu("TableColumn",new Mg),Xu("Graduated",new Ep),Xu("Grid",new xp),fd.add("GraphLinksModel",Ls),fd.add("TreeModel",Ul);var ev=vn.go,Jy={get licenseKey(){return Ct.licenseKey},set licenseKey(e){Ct.licenseKey=e},get version(){return Ct.version},Group:lr,EnumValue:hn,List:tn,Set:ut,Map:nn,Point:Ue,Size:Yt,Rect:Nt,Margin:Wn,Spot:Nn,Geometry:un,PathFigure:jo,PathSegment:zr,InputEvent:Ds,DiagramEvent:gl,ChangedEvent:Qi,Model:Pn,GraphLinksModel:Gr,TreeModel:Ra,Binding:qo,Transaction:Go,UndoManager:ro,CommandHandler:$e,Tool:xr,DraggingTool:io,DraggingInfo:Ac,DraggingOptions:C,LinkingBaseTool:Qn,LinkingTool:ni,RelinkingTool:Ae,LinkReshapingTool:Ye,ResizingTool:Rt,RotatingTool:Zt,ClickSelectingTool:Jt,ActionTool:zt,ClickCreatingTool:k,HTMLInfo:et,ContextMenuTool:Ut,DragSelectingTool:U,PanningTool:Ce,TextEditingTool:$n,ToolManager:Wi,Animation:Ii,AnimationManager:ss,AnimationTrigger:il,Layer:Qr,Diagram:Ct,Palette:K,Overview:q,Brush:yi,GraphObject:gt,Panel:qt,RowColumnDefinition:ms,Shape:vr,TextBlock:Vi,Picture:Ua,Part:zn,Adornment:qr,Node:En,Link:cn,Placeholder:_a,Layout:co,LayoutNetwork:Ki,LayoutVertex:xs,LayoutEdge:ll,GridLayout:Hs,PanelLayout:Ss,CircularLayout:wo,CircularNetwork:Bd,CircularVertex:Zp,CircularEdge:Mm,ForceDirectedLayout:Xs,ForceDirectedNetwork:Wf,ForceDirectedVertex:Jp,ForceDirectedEdge:Qp,LayeredDigraphLayout:xi,LayeredDigraphNetwork:Ud,LayeredDigraphVertex:zl,LayeredDigraphEdge:tg,TreeLayout:Lr,TreeNetwork:$f,TreeVertex:tu,TreeEdge:Gd};typeof ev=="object"&&ev.version&&zi("WARNING: a `go` object on the root object is already defined. "+("Debug"in ev?"debug ":"")+"version: "+ev.version+", replaced with version: "+Jy.version),Ct.prototype.go=Jy,vn.go=Jy,typeof Ie.exports=="object"&&(Ie.exports=typeof b.g!="undefined"?b.g.go:self.go)}();var B=typeof b.g!="undefined"?b.g.go:self.go;const Y=typeof b.g!="undefined"?b.g.go:self.go,s=Y.Group,E=Y.EnumValue,I=Y.List,u=Y.Set,d=Y.Map,g=Y.Point,y=Y.Size,S=Y.Rect,v=Y.Margin,c=Y.Spot,h=Y.Geometry,m=Y.PathFigure,x=Y.PathSegment,T=Y.InputEvent,_=Y.DiagramEvent,R=Y.ChangedEvent,A=Y.Model,N=Y.GraphLinksModel,L=Y.TreeModel,M=Y.Binding,F=Y.Transaction,H=Y.UndoManager,P=Y.CommandHandler,V=Y.Tool,G=Y.DraggingTool,Q=Y.DraggingInfo,ne=Y.LinkingBaseTool,ue=Y.LinkingTool,ae=Y.RelinkingTool,he=Y.LinkReshapingTool,ce=Y.ResizingTool,we=Y.RotatingTool,me=Y.ClickSelectingTool,Le=Y.ActionTool,ee=Y.ClickCreatingTool,se=Y.HTMLInfo,le=Y.ContextMenuTool,ke=Y.DragSelectingTool,De=Y.PanningTool,Be=Y.TextEditingTool,He=Y.ToolManager,Fe=Y.Animation,Je=Y.AnimationManager,Me=Y.AnimationTrigger,lt=Y.Layer,Re=Y.Diagram,Oe=Y.Palette,pe=Y.Overview,fe=Y.Brush,z=Y.GraphObject,J=Y.Panel,be=Y.RowColumnDefinition,_e=Y.Shape,oe=Y.TextBlock,ie=Y.TextBlockMetrics,ve=Y.Picture,Ne=Y.Part,ze=Y.Adornment,Ve=Y.Node,yt=Y.Link,ct=Y.Placeholder,St=Y.Layout,_t=Y.LayoutNetwork,At=Y.LayoutVertex,ht=Y.LayoutEdge,wt=Y.GridLayout,jt=Y.PanelLayout,st=Y.CircularLayout,ge=Y.CircularNetwork,on=Y.CircularVertex,mn=Y.CircularEdge,Mt=Y.ForceDirectedLayout,On=Y.ForceDirectedNetwork,Vn=Y.ForceDirectedVertex,Fn=Y.ForceDirectedEdge,Gn=Y.LayeredDigraphLayout,sn=Y.LayeredDigraphNetwork,xt=Y.LayeredDigraphVertex,gr=Y.LayeredDigraphEdge,Pr=Y.TreeLayout,tr=Y.TreeNetwork,ii=Y.TreeVertex,Ar=Y.TreeEdge,Kt=Y.version},18139:function(Ie){var Z=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,b=/\n/g,B=/^\s*/,Y=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,E=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,I=/^[;\s]*/,u=/^\s+|\s+$/g,d=`
`,g="/",y="*",S="",v="comment",c="declaration";Ie.exports=function(m,x){if(typeof m!="string")throw new TypeError("First argument must be a string");if(!m)return[];x=x||{};var T=1,_=1;function R(ne){var ue=ne.match(b);ue&&(T+=ue.length);var ae=ne.lastIndexOf(d);_=~ae?ne.length-ae:_+ne.length}function A(){var ne={line:T,column:_};return function(ue){return ue.position=new N(ne),H(),ue}}function N(ne){this.start=ne,this.end={line:T,column:_},this.source=x.source}N.prototype.content=m;var L=[];function M(ne){var ue=new Error(x.source+":"+T+":"+_+": "+ne);if(ue.reason=ne,ue.filename=x.source,ue.line=T,ue.column=_,ue.source=m,x.silent)L.push(ue);else throw ue}function F(ne){var ue=ne.exec(m);if(ue){var ae=ue[0];return R(ae),m=m.slice(ae.length),ue}}function H(){F(B)}function P(ne){var ue;for(ne=ne||[];ue=V();)ue!==!1&&ne.push(ue);return ne}function V(){var ne=A();if(!(g!=m.charAt(0)||y!=m.charAt(1))){for(var ue=2;S!=m.charAt(ue)&&(y!=m.charAt(ue)||g!=m.charAt(ue+1));)++ue;if(ue+=2,S===m.charAt(ue-1))return M("End of comment missing");var ae=m.slice(2,ue-2);return _+=2,R(ae),m=m.slice(ue),_+=2,ne({type:v,comment:ae})}}function G(){var ne=A(),ue=F(Y);if(ue){if(V(),!F(s))return M("property missing ':'");var ae=F(E),he=ne({type:c,property:h(ue[0].replace(Z,S)),value:ae?h(ae[0].replace(Z,S)):S});return F(I),he}}function Q(){var ne=[];P(ne);for(var ue;ue=G();)ue!==!1&&(ne.push(ue),P(ne));return ne}return H(),Q()};function h(m){return m?m.replace(u,S):S}},46260:function(Ie){"use strict";Ie.exports=Z;function Z(b){var B=typeof b=="string"?b.charCodeAt(0):b;return B>=97&&B<=122||B>=65&&B<=90}},7961:function(Ie,Z,b){"use strict";var B=b(46260),Y=b(46195);Ie.exports=s;function s(E){return B(E)||Y(E)}},46195:function(Ie){"use strict";Ie.exports=Z;function Z(b){var B=typeof b=="string"?b.charCodeAt(0):b;return B>=48&&B<=57}},79480:function(Ie){"use strict";Ie.exports=Z;function Z(b){var B=typeof b=="string"?b.charCodeAt(0):b;return B>=97&&B<=102||B>=65&&B<=70||B>=48&&B<=57}},19575:function(Ie,Z,b){var B,Y;(function(s,E){Ie.exports=E(s)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof b.g!="undefined"?b.g:this,function(s){"use strict";s=s||{};var E=s.Base64,I="2.6.4",u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=function(ae){for(var he={},ce=0,we=ae.length;ce<we;ce++)he[ae.charAt(ce)]=ce;return he}(u),g=String.fromCharCode,y=function(ae){if(ae.length<2){var he=ae.charCodeAt(0);return he<128?ae:he<2048?g(192|he>>>6)+g(128|he&63):g(224|he>>>12&15)+g(128|he>>>6&63)+g(128|he&63)}else{var he=65536+(ae.charCodeAt(0)-55296)*1024+(ae.charCodeAt(1)-56320);return g(240|he>>>18&7)+g(128|he>>>12&63)+g(128|he>>>6&63)+g(128|he&63)}},S=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,v=function(ae){return ae.replace(S,y)},c=function(ae){var he=[0,2,1][ae.length%3],ce=ae.charCodeAt(0)<<16|(ae.length>1?ae.charCodeAt(1):0)<<8|(ae.length>2?ae.charCodeAt(2):0),we=[u.charAt(ce>>>18),u.charAt(ce>>>12&63),he>=2?"=":u.charAt(ce>>>6&63),he>=1?"=":u.charAt(ce&63)];return we.join("")},h=s.btoa&&typeof s.btoa=="function"?function(ae){return s.btoa(ae)}:function(ae){if(ae.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return ae.replace(/[\s\S]{1,3}/g,c)},m=function(ae){return h(v(String(ae)))},x=function(ae){return ae.replace(/[+\/]/g,function(he){return he=="+"?"-":"_"}).replace(/=/g,"")},T=function(ae,he){return he?x(m(ae)):m(ae)},_=function(ae){return T(ae,!0)},R;s.Uint8Array&&(R=function(ae,he){for(var ce="",we=0,me=ae.length;we<me;we+=3){var Le=ae[we],ee=ae[we+1],se=ae[we+2],le=Le<<16|ee<<8|se;ce+=u.charAt(le>>>18)+u.charAt(le>>>12&63)+(typeof ee!="undefined"?u.charAt(le>>>6&63):"=")+(typeof se!="undefined"?u.charAt(le&63):"=")}return he?x(ce):ce});var A=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,N=function(ae){switch(ae.length){case 4:var he=(7&ae.charCodeAt(0))<<18|(63&ae.charCodeAt(1))<<12|(63&ae.charCodeAt(2))<<6|63&ae.charCodeAt(3),ce=he-65536;return g((ce>>>10)+55296)+g((ce&1023)+56320);case 3:return g((15&ae.charCodeAt(0))<<12|(63&ae.charCodeAt(1))<<6|63&ae.charCodeAt(2));default:return g((31&ae.charCodeAt(0))<<6|63&ae.charCodeAt(1))}},L=function(ae){return ae.replace(A,N)},M=function(ae){var he=ae.length,ce=he%4,we=(he>0?d[ae.charAt(0)]<<18:0)|(he>1?d[ae.charAt(1)]<<12:0)|(he>2?d[ae.charAt(2)]<<6:0)|(he>3?d[ae.charAt(3)]:0),me=[g(we>>>16),g(we>>>8&255),g(we&255)];return me.length-=[0,0,2,1][ce],me.join("")},F=s.atob&&typeof s.atob=="function"?function(ae){return s.atob(ae)}:function(ae){return ae.replace(/\S{1,4}/g,M)},H=function(ae){return F(String(ae).replace(/[^A-Za-z0-9\+\/]/g,""))},P=function(ae){return L(F(ae))},V=function(ae){return String(ae).replace(/[-_]/g,function(he){return he=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},G=function(ae){return P(V(ae))},Q;s.Uint8Array&&(Q=function(ae){return Uint8Array.from(H(V(ae)),function(he){return he.charCodeAt(0)})});var ne=function(){var ae=s.Base64;return s.Base64=E,ae};if(s.Base64={VERSION:I,atob:H,btoa:h,fromBase64:G,toBase64:T,utob:v,encode:T,encodeURI:_,btou:L,decode:G,noConflict:ne,fromUint8Array:R,toUint8Array:Q},typeof Object.defineProperty=="function"){var ue=function(ae){return{value:ae,enumerable:!1,writable:!0,configurable:!0}};s.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",ue(function(){return G(this)})),Object.defineProperty(String.prototype,"toBase64",ue(function(ae){return T(this,ae)})),Object.defineProperty(String.prototype,"toBase64URI",ue(function(){return T(this,!0)}))}}return s.Meteor&&(Base64=s.Base64),Ie.exports?Ie.exports.Base64=s.Base64:(B=[],Y=function(){return s.Base64}.apply(Z,B),Y!==void 0&&(Ie.exports=Y)),{Base64:s.Base64}})},15979:function(Ie,Z,b){"use strict";b.d(Z,{hP:function(){return pe}});var B=function(fe,z){return(B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,be){J.__proto__=be}||function(J,be){for(var _e in be)Object.prototype.hasOwnProperty.call(be,_e)&&(J[_e]=be[_e])})(fe,z)};function Y(fe,z){function J(){this.constructor=fe}B(fe,z),fe.prototype=z===null?Object.create(z):(J.prototype=z.prototype,new J)}function s(fe,z,J,be){return new(J||(J=Promise))(function(_e,oe){function ie(ze){try{Ne(be.next(ze))}catch(Ve){oe(Ve)}}function ve(ze){try{Ne(be.throw(ze))}catch(Ve){oe(Ve)}}function Ne(ze){var Ve;ze.done?_e(ze.value):(Ve=ze.value,Ve instanceof J?Ve:new J(function(yt){yt(Ve)})).then(ie,ve)}Ne((be=be.apply(fe,z||[])).next())})}function E(fe,z){var J,be,_e,oe,ie={label:0,sent:function(){if(1&_e[0])throw _e[1];return _e[1]},trys:[],ops:[]};return oe={next:ve(0),throw:ve(1),return:ve(2)},typeof Symbol=="function"&&(oe[Symbol.iterator]=function(){return this}),oe;function ve(Ne){return function(ze){return function(Ve){if(J)throw new TypeError("Generator is already executing.");for(;ie;)try{if(J=1,be&&(_e=2&Ve[0]?be.return:Ve[0]?be.throw||((_e=be.return)&&_e.call(be),0):be.next)&&!(_e=_e.call(be,Ve[1])).done)return _e;switch(be=0,_e&&(Ve=[2&Ve[0],_e.value]),Ve[0]){case 0:case 1:_e=Ve;break;case 4:return ie.label++,{value:Ve[1],done:!1};case 5:ie.label++,be=Ve[1],Ve=[0];continue;case 7:Ve=ie.ops.pop(),ie.trys.pop();continue;default:if(_e=ie.trys,!((_e=_e.length>0&&_e[_e.length-1])||Ve[0]!==6&&Ve[0]!==2)){ie=0;continue}if(Ve[0]===3&&(!_e||Ve[1]>_e[0]&&Ve[1]<_e[3])){ie.label=Ve[1];break}if(Ve[0]===6&&ie.label<_e[1]){ie.label=_e[1],_e=Ve;break}if(_e&&ie.label<_e[2]){ie.label=_e[2],ie.ops.push(Ve);break}_e[2]&&ie.ops.pop(),ie.trys.pop();continue}Ve=z.call(fe,ie)}catch(yt){Ve=[6,yt],be=0}finally{J=_e=0}if(5&Ve[0])throw Ve[1];return{value:Ve[0]?Ve[1]:void 0,done:!0}}([Ne,ze])}}}function I(){for(var fe=0,z=0,J=arguments.length;z<J;z++)fe+=arguments[z].length;var be=Array(fe),_e=0;for(z=0;z<J;z++)for(var oe=arguments[z],ie=0,ve=oe.length;ie<ve;ie++,_e++)be[_e]=oe[ie];return be}var u=function(){function fe(){}return fe.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},fe.setAttributes=function(z,J){for(var be=0,_e=J;be<_e.length;be++){var oe=_e[be],ie=oe[0],ve=oe[1];z.setAttribute(ie,ve)}},fe.createRect=function(z,J,be){var _e=document.createElementNS("http://www.w3.org/2000/svg","rect");return _e.setAttribute("width",z.toString()),_e.setAttribute("height",J.toString()),be&&fe.setAttributes(_e,be),_e},fe.createLine=function(z,J,be,_e,oe){var ie=document.createElementNS("http://www.w3.org/2000/svg","line");return ie.setAttribute("x1",z.toString()),ie.setAttribute("y1",J.toString()),ie.setAttribute("x2",be.toString()),ie.setAttribute("y2",_e.toString()),oe&&fe.setAttributes(ie,oe),ie},fe.createPolygon=function(z,J){var be=document.createElementNS("http://www.w3.org/2000/svg","polygon");return be.setAttribute("points",z),J&&fe.setAttributes(be,J),be},fe.createCircle=function(z,J){var be=document.createElementNS("http://www.w3.org/2000/svg","circle");return be.setAttribute("cx",(z/2).toString()),be.setAttribute("cy",(z/2).toString()),be.setAttribute("r",z.toString()),J&&fe.setAttributes(be,J),be},fe.createEllipse=function(z,J,be){var _e=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return _e.setAttribute("cx",(z/2).toString()),_e.setAttribute("cy",(J/2).toString()),_e.setAttribute("rx",(z/2).toString()),_e.setAttribute("ry",(J/2).toString()),be&&fe.setAttributes(_e,be),_e},fe.createGroup=function(z){var J=document.createElementNS("http://www.w3.org/2000/svg","g");return z&&fe.setAttributes(J,z),J},fe.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},fe.createMarker=function(z,J,be,_e,oe,ie,ve){var Ne=document.createElementNS("http://www.w3.org/2000/svg","marker");return fe.setAttributes(Ne,[["id",z],["orient",J],["markerWidth",be.toString()],["markerHeight",_e.toString()],["refX",oe.toString()],["refY",ie.toString()]]),Ne.appendChild(ve),Ne},fe.createText=function(z){var J=document.createElementNS("http://www.w3.org/2000/svg","text");return J.setAttribute("x","0"),J.setAttribute("y","0"),z&&fe.setAttributes(J,z),J},fe.createTSpan=function(z,J){var be=document.createElementNS("http://www.w3.org/2000/svg","tspan");return be.textContent=z,J&&fe.setAttributes(be,J),be},fe.createImage=function(z){var J=document.createElementNS("http://www.w3.org/2000/svg","image");return z&&fe.setAttributes(J,z),J},fe.createPoint=function(z,J){var be=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return be.x=z,be.y=J,be},fe.createPath=function(z,J){var be=document.createElementNS("http://www.w3.org/2000/svg","path");return be.setAttribute("d",z),J&&fe.setAttributes(be,J),be},fe}(),d=function(){function fe(){}return fe.addKey=function(z){fe.key=z},Object.defineProperty(fe,"isLicensed",{get:function(){return!!fe.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(fe.key)},enumerable:!1,configurable:!0}),fe}(),g=function(){function fe(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return fe.prototype.rasterize=function(z,J,be){var _e=this;return new Promise(function(oe){var ie=be!==void 0?be:document.createElement("canvas");z===null&&(_e.markersOnly=!0,_e.naturalSize=!1);var ve=document.createElementNS("http://www.w3.org/2000/svg","svg");ve.setAttribute("xmlns","http://www.w3.org/2000/svg"),ve.setAttribute("width",J.width.baseVal.valueAsString),ve.setAttribute("height",J.height.baseVal.valueAsString),ve.setAttribute("viewBox","0 0 "+J.viewBox.baseVal.width.toString()+" "+J.viewBox.baseVal.height.toString()),ve.innerHTML=J.innerHTML,_e.naturalSize===!0?(ve.width.baseVal.value=z.naturalWidth,ve.height.baseVal.value=z.naturalHeight):_e.width!==void 0&&_e.height!==void 0&&(ve.width.baseVal.value=_e.width,ve.height.baseVal.value=_e.height),ie.width=ve.width.baseVal.value,ie.height=ve.height.baseVal.value;var Ne=ve.outerHTML,ze=ie.getContext("2d");_e.markersOnly!==!0&&ze.drawImage(z,0,0,ie.width,ie.height);var Ve=window.URL,yt=new Image(ie.width,ie.height);yt.setAttribute("crossOrigin","anonymous");var ct=new Blob([Ne],{type:"image/svg+xml"}),St=Ve.createObjectURL(ct);yt.onload=function(){ze.drawImage(yt,0,0),Ve.revokeObjectURL(St);var _t=ie.toDataURL(_e.imageType,_e.imageQuality);oe(_t)},yt.src=St})},fe}(),y=function(){},S=function(){function fe(z){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+z+"_"}return Object.defineProperty(fe.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),fe.prototype.addClass=function(z){return this.styleSheet===void 0&&this.addStyleSheet(),z.name=""+this.classNamePrefix+z.localName,this.classes.push(z),this.styleSheet.sheet.insertRule("."+z.name+" {"+z.style+"}",this.styleSheet.sheet.cssRules.length),z},fe.prototype.addRule=function(z){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(z),this.styleSheet.sheet.insertRule(z.selector+" {"+z.style+"}",this.styleSheet.sheet.cssRules.length)},fe.prototype.addStyleSheet=function(){var z;this.styleSheet=document.createElement("style"),((z=this.styleSheetRoot)!==null&&z!==void 0?z:document.head).appendChild(this.styleSheet),this.addRule(new v("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new v("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new v("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new c("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new c("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},fe.prototype.removeStyleSheet=function(){var z;this.styleSheet&&(((z=this.styleSheetRoot)!==null&&z!==void 0?z:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},fe}(),v=function(fe,z){this.selector=fe,this.style=z},c=function(fe,z){this.localName=fe,this.style=z},h=function(){function fe(z,J,be,_e,oe){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=z,this.displayMode=J,this.markerItems=be,this.uiStyleSettings=_e,this.styles=oe,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return fe.prototype.show=function(z){var J=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=z,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var be=document.createElement("div");be.className=this.toolbarBlockStyleClass.name,be.style.whiteSpace="nowrap",this.uiContainer.appendChild(be),this.addActionButton(be,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(be,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(be,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(be,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(be,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(be,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(be,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(be,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(oe){var ie=document.createElement("div");ie.className=""+J.toolbarButtonStyleClass.name,ie.setAttribute("data-type-name",oe.typeName),ie.innerHTML=oe.icon,ie.addEventListener("click",function(){J.markerToolbarButtonClicked(ie,oe)}),J.buttons.push(ie),J.markerButtons.push(ie)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var _e=document.createElement("div");_e.className=this.toolbarBlockStyleClass.name,_e.style.whiteSpace="nowrap",_e.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(_e),this.addActionButton(_e,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(_e,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},fe.prototype.addButtonClickListener=function(z){this.buttonClickListeners.push(z)},fe.prototype.removeButtonClickListener=function(z){this.buttonClickListeners.indexOf(z)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(z),1)},fe.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},fe.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var z=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var J=0;J<this.markerButtons.length;J++)J<z||J===z&&this.markerButtons.length-1===z?this.markerButtonBlock.appendChild(this.markerButtons[J]):(J===z&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[J]))}},fe.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},fe.prototype.resetButtonStyles=function(){var z=this;this.buttons.forEach(function(J){J.className=J.className.replace(z.uiStyleSettings.toolbarButtonStyleColorsClassName?z.uiStyleSettings.toolbarButtonStyleColorsClassName:z.toolbarButtonStyleColorsClass.name,"").trim(),J.className=J.className.replace(z.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?z.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:z.toolbarActiveButtonStyleColorsClass.name,"").trim(),J.className+=" "+(z.uiStyleSettings.toolbarButtonStyleColorsClassName?z.uiStyleSettings.toolbarButtonStyleColorsClassName:z.toolbarButtonStyleColorsClass.name)})},fe.prototype.addActionButton=function(z,J,be){var _e=this,oe=document.createElement("div");switch(oe.className=""+this.toolbarButtonStyleClass.name,oe.innerHTML=J,oe.setAttribute("data-action",be),oe.addEventListener("click",function(){_e.actionToolbarButtonClicked(oe,be)}),be){case"select":oe.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":oe.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":oe.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":oe.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":oe.style.fill=this.uiStyleSettings.closeButtonColor}z.appendChild(oe),this.buttons.push(oe)},fe.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new c("toolbar",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.uiStyleSettings.toolbarHeight+`px;
box-sizing: content-box;
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new c("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new c("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new c("toolbar-overflow-block",`
position: absolute;
top: `+this.uiStyleSettings.toolbarHeight+`px;
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
z-index: 10;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new c("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var z=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new c("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*z)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*z)+`px;
padding: `+z+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new c("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new c("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new v("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new v("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},fe.prototype.markerToolbarButtonClicked=function(z,J){this.setActiveButton(z),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(be){return be("marker",J)}),this.markerButtonOverflowBlock.style.display="none"},fe.prototype.actionToolbarButtonClicked=function(z,J){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(be){return be("action",J)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},fe.prototype.setActiveButton=function(z){this.resetButtonStyles(),z.className=z.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),z.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},fe.prototype.setActiveMarkerButton=function(z){var J=this.markerButtons.find(function(be){return be.getAttribute("data-type-name")===z});J&&this.setActiveButton(J)},fe.prototype.setCurrentMarker=function(z){var J=this;this.currentMarker=z,this.buttons.filter(function(be){return/delete|notes/.test(be.getAttribute("data-action"))}).forEach(function(be){J.currentMarker===void 0?(be.style.fillOpacity="0.4",be.style.pointerEvents="none"):(be.style.fillOpacity="1",be.style.pointerEvents="all")})},fe}(),m=function(){function fe(z,J,be,_e){this.panels=[],this.panelButtons=[],this.markerjsContainer=z,this.displayMode=J,this.uiStyleSettings=be,this.styles=_e,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return fe.prototype.addStyles=function(){var z;this.toolboxStyleClass=this.styles.addClass(new c("toolbox",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: column;
font-family: sans-serif;
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
box-sizing: content-box;
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolboxStyleColorsClass=this.styles.addClass(new c("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var J=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new c("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new c("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new c("toolbox-panel-row",`
display: flex;
`+(this.displayMode==="inline"?"position: absolute;":"")+`
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
cursor: default;
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
`+(this.displayMode==="inline"?"width: 100%;":"")+`
box-sizing: content-box;
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new c("toolbox-panel-row_colors",`
background-color: `+((z=this.uiStyleSettings.toolboxBackgroundColor)!==null&&z!==void 0?z:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new c("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*J)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*J)+`px;
padding: `+J+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new c("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new c("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new v("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new v("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},fe.prototype.show=function(z){var J;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=z,this.uiContainer.className=this.toolboxStyleClass.name+" "+((J=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&J!==void 0?J:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},fe.prototype.setPanelButtons=function(z){var J,be,_e=this;this.panels=z,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((J=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&J!==void 0?J:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((be=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&be!==void 0?be:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(oe){var ie;oe.uiStyleSettings=_e.uiStyleSettings;var ve=document.createElement("div");ve.className=_e.toolboxButtonStyleClass.name+" "+((ie=_e.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ie!==void 0?ie:_e.toolboxButtonStyleColorsClass.name),ve.innerHTML=oe.icon,ve.title=oe.title,ve.addEventListener("click",function(){_e.panelButtonClick(oe)}),_e.panelButtons.push(ve),_e.buttonRow.appendChild(ve)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},fe.prototype.panelButtonClick=function(z){var J=this,be=-1;if(z!==this.activePanel){be=this.panels.indexOf(z),this.panelRow.innerHTML="";var _e=z.getUi();_e.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(_e),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=z}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){J.displayMode==="inline"?J.panelRow.style.display="none":J.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(oe,ie){var ve,Ne;oe.className=J.toolboxButtonStyleClass.name+" "+(ie===be?""+((ve=J.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&ve!==void 0?ve:J.toolboxActiveButtonStyleColorsClass.name):""+((Ne=J.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ne!==void 0?Ne:J.toolboxButtonStyleColorsClass.name))})},fe}(),x=function(fe,z){this.title=fe,this.icon=z},T=function(fe){function z(J,be,_e,oe){var ie=fe.call(this,J,oe||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return ie.colors=[],ie.addTransparent=!1,ie.colorBoxes=[],ie.colors=be,ie.currentColor=_e,ie.setCurrentColor=ie.setCurrentColor.bind(ie),ie.getColorBox=ie.getColorBox.bind(ie),ie}return Y(z,fe),z.prototype.getUi=function(){var J=this,be=document.createElement("div");return be.style.overflow="hidden",be.style.whiteSpace="nowrap",this.colors.forEach(function(_e){var oe=J.getColorBox(_e);be.appendChild(oe),J.colorBoxes.push(oe)}),be},z.prototype.getColorBox=function(J){var be=this,_e=this.uiStyleSettings.toolbarHeight/4,oe=this.uiStyleSettings.toolbarHeight-_e,ie=document.createElement("div");ie.style.display="inline-block",ie.style.boxSizing="content-box",ie.style.width=oe-2+"px",ie.style.height=oe-2+"px",ie.style.padding="1px",ie.style.marginRight="2px",ie.style.marginBottom="2px",ie.style.borderWidth="2px",ie.style.borderStyle="solid",ie.style.borderRadius=(oe+2)/2+"px",ie.style.borderColor=J===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ie.addEventListener("click",function(){be.setCurrentColor(J,ie)});var ve=document.createElement("div");return ve.style.display="inline-block",ve.style.width=oe-2+"px",ve.style.height=oe-2+"px",ve.style.backgroundColor=J,ve.style.borderRadius=oe/2+"px",J==="transparent"&&(ve.style.fill=this.uiStyleSettings.toolboxAccentColor,ve.innerHTML=`<svg viewBox="0 0 24 24">
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
</svg>`),ie.appendChild(ve),ie},z.prototype.setCurrentColor=function(J,be){var _e=this;this.currentColor=J,this.colorBoxes.forEach(function(oe){oe.style.borderColor=oe===be?_e.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(J)},z}(x),_=function(){function fe(z,J,be){this._state="new",this._isSelected=!1,this._container=z,this._overlayContainer=J,this.globalSettings=be,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(fe.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),fe.prototype.ownsTarget=function(z){return!1},Object.defineProperty(fe.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),fe.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},fe.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},fe.prototype.pointerDown=function(z,J){},fe.prototype.dblClick=function(z,J){},fe.prototype.manipulate=function(z){},fe.prototype.pointerUp=function(z){this.stateChanged()},fe.prototype.dispose=function(){},fe.prototype.addMarkerVisualToContainer=function(z){this.container.childNodes.length>0?this.container.insertBefore(z,this.container.childNodes[0]):this.container.appendChild(z)},fe.prototype.getState=function(){return{typeName:fe.typeName,state:this.state,notes:this.notes}},fe.prototype.restoreState=function(z){this._state=z.state,this.notes=z.notes},fe.prototype.scale=function(z,J){},fe.prototype.colorChanged=function(z){this.onColorChanged&&this.onColorChanged(z),this.stateChanged()},fe.prototype.fillColorChanged=function(z){this.onFillColorChanged&&this.onFillColorChanged(z),this.stateChanged()},fe.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var z=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),z.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(z)&&this.onStateChanged(this)}},fe.typeName="MarkerBase",fe}(),R=function(){function fe(){this.findGripByVisual=this.findGripByVisual.bind(this)}return fe.prototype.findGripByVisual=function(z){return this.topLeft.ownsTarget(z)?this.topLeft:this.topCenter.ownsTarget(z)?this.topCenter:this.topRight.ownsTarget(z)?this.topRight:this.centerLeft.ownsTarget(z)?this.centerLeft:this.centerRight.ownsTarget(z)?this.centerRight:this.bottomLeft.ownsTarget(z)?this.bottomLeft:this.bottomCenter.ownsTarget(z)?this.bottomCenter:this.bottomRight.ownsTarget(z)?this.bottomRight:void 0},fe}(),A=function(){function fe(){this.GRIP_SIZE=10,this.visual=u.createGroup(),this.visual.appendChild(u.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(u.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return fe.prototype.ownsTarget=function(z){return z===this.visual||z===this.visual.childNodes[0]||z===this.visual.childNodes[1]},fe}(),N=function(){function fe(){}return fe.toITransformMatrix=function(z){return{a:z.a,b:z.b,c:z.c,d:z.d,e:z.e,f:z.f}},fe.toSVGMatrix=function(z,J){return z.a=J.a,z.b=J.b,z.c=J.c,z.d=J.d,z.e=J.e,z.f=J.f,z},fe}(),L=function(fe){function z(J,be,_e){var oe=fe.call(this,J,be,_e)||this;return oe.left=0,oe.top=0,oe.width=0,oe.height=0,oe.defaultSize={x:50,y:20},oe.offsetX=0,oe.offsetY=0,oe.rotationAngle=0,oe.CB_DISTANCE=10,oe._suppressMarkerCreateEvent=!1,oe.container.transform.baseVal.appendItem(u.createTransform()),oe.setupControlBox(),oe}return Y(z,fe),Object.defineProperty(z.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"visual",{get:function(){return this._visual},set:function(J){this._visual=J;var be=u.createTransform();this._visual.transform.baseVal.appendItem(be)},enumerable:!1,configurable:!0}),z.prototype.ownsTarget=function(J){return!!fe.prototype.ownsTarget.call(this,J)||!!(this.controlGrips.findGripByVisual(J)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(J))},z.prototype.pointerDown=function(J,be){fe.prototype.pointerDown.call(this,J,be),this.state==="new"&&(this.left=J.x,this.top=J.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var _e=this.unrotatePoint(J);if(this.manipulationStartX=_e.x,this.manipulationStartY=_e.y,this.offsetX=_e.x-this.left,this.offsetY=_e.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(be),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(be)){this.activeGrip=this.rotatorGrip;var oe=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=oe.x-this.width/2,this.top=oe.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var ie=this.container.transform.baseVal.getItem(0);ie.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ie,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},z.prototype.pointerUp=function(J){var be=this.state;fe.prototype.pointerUp.call(this,J),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(J),this._state="select",be==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},z.prototype.moveVisual=function(J){this.visual.style.transform="translate("+J.x+"px, "+J.y+"px)"},z.prototype.manipulate=function(J){var be=this.unrotatePoint(J);this.state==="creating"?this.resize(J):this.state==="move"?(this.left=this.manipulationStartLeft+(be.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(be.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(be):this.state==="rotate"&&this.rotate(J)},z.prototype.resize=function(J){var be=this.manipulationStartLeft,_e=this.manipulationStartWidth,oe=this.manipulationStartTop,ie=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:be=this.manipulationStartLeft+J.x-this.manipulationStartX,_e=this.manipulationStartWidth+this.manipulationStartLeft-be;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:_e=this.manipulationStartWidth+J.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:oe=this.manipulationStartTop+J.y-this.manipulationStartY,ie=this.manipulationStartHeight+this.manipulationStartTop-oe;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ie=this.manipulationStartHeight+J.y-this.manipulationStartY}_e>=0?(this.left=be,this.width=_e):(this.left=be+_e,this.width=-_e),ie>=0?(this.top=oe,this.height=ie):(this.top=oe+ie,this.height=-ie),this.setSize()},z.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},z.prototype.rotate=function(J){if(Math.abs(J.x-this.centerX)>.1){var be=Math.sign(J.x-this.centerX);this.rotationAngle=180*Math.atan((J.y-this.centerY)/(J.x-this.centerX))/Math.PI+90*be,this.applyRotation()}},z.prototype.applyRotation=function(){var J=this.container.transform.baseVal.getItem(0);J.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(J,0)},z.prototype.rotatePoint=function(J){if(this.rotationAngle===0)return J;var be=this.container.getCTM(),_e=u.createPoint(J.x,J.y);return{x:(_e=_e.matrixTransform(be)).x,y:_e.y}},z.prototype.unrotatePoint=function(J){if(this.rotationAngle===0)return J;var be=this.container.getCTM();be=be.inverse();var _e=u.createPoint(J.x,J.y);return{x:(_e=_e.matrixTransform(be)).x,y:_e.y}},z.prototype.select=function(){fe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},z.prototype.deselect=function(){fe.prototype.deselect.call(this),this.controlBox.style.display="none"},z.prototype.setupControlBox=function(){this.controlBox=u.createGroup();var J=u.createTransform();J.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(J),this.container.appendChild(this.controlBox),this.controlRect=u.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=u.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new R,this.addControlGrips(),this.controlBox.style.display="none"},z.prototype.adjustControlBox=function(){var J=this.controlBox.transform.baseVal.getItem(0);J.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(J,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},z.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},z.prototype.createGrip=function(){var J=new A;return J.visual.transform.baseVal.appendItem(u.createTransform()),this.controlBox.appendChild(J.visual),J},z.prototype.positionGrips=function(){var J=this.controlGrips.topLeft.GRIP_SIZE,be=-J/2,_e=be,oe=(this.width+this.CB_DISTANCE)/2-J/2,ie=(this.height+this.CB_DISTANCE)/2-J/2,ve=this.height+this.CB_DISTANCE-J/2,Ne=this.width+this.CB_DISTANCE-J/2;this.positionGrip(this.controlGrips.topLeft.visual,be,_e),this.positionGrip(this.controlGrips.topCenter.visual,oe,_e),this.positionGrip(this.controlGrips.topRight.visual,Ne,_e),this.positionGrip(this.controlGrips.centerLeft.visual,be,ie),this.positionGrip(this.controlGrips.centerRight.visual,Ne,ie),this.positionGrip(this.controlGrips.bottomLeft.visual,be,ve),this.positionGrip(this.controlGrips.bottomCenter.visual,oe,ve),this.positionGrip(this.controlGrips.bottomRight.visual,Ne,ve),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,oe,_e-3*this.CB_DISTANCE)},z.prototype.positionGrip=function(J,be,_e){var oe=J.transform.baseVal.getItem(0);oe.setTranslate(be,_e),J.transform.baseVal.replaceItem(oe,0)},z.prototype.hideControlBox=function(){this.controlBox.style.display="none"},z.prototype.showControlBox=function(){this.controlBox.style.display=""},z.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:N.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:N.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},fe.prototype.getState.call(this))},z.prototype.restoreState=function(J){fe.prototype.restoreState.call(this,J);var be=J;this.left=be.left,this.top=be.top,this.width=be.width,this.height=be.height,this.rotationAngle=be.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(N.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,be.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(N.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,be.containerTransformMatrix))},z.prototype.scale=function(J,be){fe.prototype.scale.call(this,J,be);var _e=this.rotatePoint({x:this.left,y:this.top}),oe=this.unrotatePoint({x:_e.x*J,y:_e.y*be});this.left=oe.x,this.top=oe.y,this.width=this.width*J,this.height=this.height*be,this.adjustControlBox()},z}(_),M=function(fe){function z(J,be,_e){var oe=fe.call(this,J,be,_e)||this;return oe.fillColor="transparent",oe.strokeColor="transparent",oe.strokeWidth=0,oe.strokeDasharray="",oe.opacity=1,oe.setStrokeColor=oe.setStrokeColor.bind(oe),oe.setFillColor=oe.setFillColor.bind(oe),oe.setStrokeWidth=oe.setStrokeWidth.bind(oe),oe.setStrokeDasharray=oe.setStrokeDasharray.bind(oe),oe.createVisual=oe.createVisual.bind(oe),oe}return Y(z,fe),z.prototype.ownsTarget=function(J){return!(!fe.prototype.ownsTarget.call(this,J)&&J!==this.visual)},z.prototype.createVisual=function(){this.visual=u.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},z.prototype.pointerDown=function(J,be){fe.prototype.pointerDown.call(this,J,be),this.state==="new"&&(this.createVisual(),this.moveVisual(J),this._state="creating")},z.prototype.manipulate=function(J){fe.prototype.manipulate.call(this,J)},z.prototype.resize=function(J){fe.prototype.resize.call(this,J),this.setSize()},z.prototype.setSize=function(){fe.prototype.setSize.call(this),u.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},z.prototype.pointerUp=function(J){fe.prototype.pointerUp.call(this,J),this.setSize()},z.prototype.setStrokeColor=function(J){this.strokeColor=J,this.visual&&u.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(J),this.stateChanged()},z.prototype.setFillColor=function(J){this.fillColor=J,this.visual&&u.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},z.prototype.setStrokeWidth=function(J){this.strokeWidth=J,this.visual&&u.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},z.prototype.setStrokeDasharray=function(J){this.strokeDasharray=J,this.visual&&u.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},z.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},fe.prototype.getState.call(this))},z.prototype.restoreState=function(J){var be=J;this.fillColor=be.fillColor,this.strokeColor=be.strokeColor,this.strokeWidth=be.strokeWidth,this.strokeDasharray=be.strokeDasharray,this.opacity=be.opacity,this.createVisual(),fe.prototype.restoreState.call(this,J),this.setSize()},z.prototype.scale=function(J,be){fe.prototype.scale.call(this,J,be),this.setSize()},z.title="Rectangle marker",z}(L),F=function(fe){function z(J,be,_e,oe){var ie=fe.call(this,J,oe||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return ie.widths=[],ie.widthBoxes=[],ie.widths=be,ie.currentWidth=_e,ie.setCurrentWidth=ie.setCurrentWidth.bind(ie),ie}return Y(z,fe),z.prototype.getUi=function(){var J=this,be=document.createElement("div");return be.style.display="flex",be.style.overflow="hidden",be.style.flexGrow="2",this.widths.forEach(function(_e){var oe=document.createElement("div");oe.style.display="flex",oe.style.flexGrow="2",oe.style.alignItems="center",oe.style.justifyContent="space-between",oe.style.padding="5px",oe.style.borderWidth="2px",oe.style.borderStyle="solid",oe.style.borderColor=_e===J.currentWidth?J.uiStyleSettings.toolboxAccentColor:"transparent",oe.addEventListener("click",function(){J.setCurrentWidth(_e,oe)}),be.appendChild(oe);var ie=document.createElement("div");ie.innerText=_e.toString(),ie.style.marginRight="5px",oe.appendChild(ie);var ve=document.createElement("div");ve.style.minHeight="20px",ve.style.flexGrow="2",ve.style.display="flex",ve.style.alignItems="center";var Ne=document.createElement("hr");Ne.style.minWidth="20px",Ne.style.border="0px",Ne.style.borderTop=_e+"px solid "+J.uiStyleSettings.toolboxColor,Ne.style.flexGrow="2",ve.appendChild(Ne),oe.appendChild(ve),J.widthBoxes.push(oe)}),be},z.prototype.setCurrentWidth=function(J,be){var _e=this;this.currentWidth=J,this.widthBoxes.forEach(function(oe){oe.style.borderColor=oe===be?_e.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},z}(x),H=function(fe){function z(J,be,_e,oe){var ie=fe.call(this,J,oe||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return ie.styles=[],ie.styleBoxes=[],ie.styles=be,ie.currentStyle=_e,ie.setCurrentStyle=ie.setCurrentStyle.bind(ie),ie}return Y(z,fe),z.prototype.getUi=function(){var J=this,be=document.createElement("div");return be.style.display="flex",be.style.overflow="hidden",be.style.flexGrow="2",this.styles.forEach(function(_e){var oe=document.createElement("div");oe.style.display="flex",oe.style.alignItems="center",oe.style.justifyContent="space-between",oe.style.padding="5px",oe.style.borderWidth="2px",oe.style.borderStyle="solid",oe.style.overflow="hidden",oe.style.maxWidth=100/J.styles.length-5+"%",oe.style.borderColor=_e===J.currentStyle?J.uiStyleSettings.toolboxAccentColor:"transparent",oe.addEventListener("click",function(){J.setCurrentStyle(_e,oe)}),be.appendChild(oe);var ie=document.createElement("div");ie.style.minHeight="20px",ie.style.flexGrow="2",ie.style.overflow="hidden";var ve=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+J.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(_e!==""?'stroke-dasharray="'+_e+'"':"")+` />
</svg>`;ie.innerHTML=ve,oe.appendChild(ie),J.styleBoxes.push(oe)}),be},z.prototype.setCurrentStyle=function(J,be){var _e=this;this.currentStyle=J,this.styleBoxes.forEach(function(oe){oe.style.borderColor=oe===be?_e.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},z}(x),P=function(fe){function z(J,be,_e){var oe=fe.call(this,J,be,_e)||this;return oe.strokeColor=_e.defaultColor,oe.strokeWidth=_e.defaultStrokeWidth,oe.strokeDasharray=_e.defaultStrokeDasharray,oe.strokePanel=new T("Line color",_e.defaultColorSet,_e.defaultColor),oe.strokePanel.onColorChanged=oe.setStrokeColor,oe.strokeWidthPanel=new F("Line width",_e.defaultStrokeWidths,_e.defaultStrokeWidth),oe.strokeWidthPanel.onWidthChanged=oe.setStrokeWidth,oe.strokeStylePanel=new H("Line style",_e.defaultStrokeDasharrays,_e.defaultStrokeDasharray),oe.strokeStylePanel.onStyleChanged=oe.setStrokeDasharray,oe}return Y(z,fe),Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var J=fe.prototype.getState.call(this);return J.typeName=z.typeName,J},z.typeName="FrameMarker",z.title="Frame marker",z.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',z}(M),V=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},G=function(fe){function z(J,be,_e){var oe=fe.call(this,J,be,_e)||this;return oe.x1=0,oe.y1=0,oe.x2=0,oe.y2=0,oe.defaultLength=50,oe.manipulationStartX=0,oe.manipulationStartY=0,oe.manipulationStartX1=0,oe.manipulationStartY1=0,oe.manipulationStartX2=0,oe.manipulationStartY2=0,oe.setupControlBox(),oe}return Y(z,fe),z.prototype.ownsTarget=function(J){return!!fe.prototype.ownsTarget.call(this,J)||!(!this.grip1.ownsTarget(J)&&!this.grip2.ownsTarget(J))},z.prototype.pointerDown=function(J,be){fe.prototype.pointerDown.call(this,J,be),this.manipulationStartX=J.x,this.manipulationStartY=J.y,this.state==="new"&&(this.x1=J.x,this.y1=J.y,this.x2=J.x,this.y2=J.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(be)?this.activeGrip=this.grip1:this.grip2.ownsTarget(be)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},z.prototype.pointerUp=function(J){var be=this.state;fe.prototype.pointerUp.call(this,J),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(J),this._state="select",be==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},z.prototype.adjustVisual=function(){},z.prototype.manipulate=function(J){this.state==="creating"?this.resize(J):this.state==="move"?(this.x1=this.manipulationStartX1+J.x-this.manipulationStartX,this.y1=this.manipulationStartY1+J.y-this.manipulationStartY,this.x2=this.manipulationStartX2+J.x-this.manipulationStartX,this.y2=this.manipulationStartY2+J.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(J)},z.prototype.resize=function(J){switch(this.activeGrip){case this.grip1:this.x1=J.x,this.y1=J.y;break;case this.grip2:case void 0:this.x2=J.x,this.y2=J.y}this.adjustVisual(),this.adjustControlBox()},z.prototype.select=function(){fe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},z.prototype.deselect=function(){fe.prototype.deselect.call(this),this.controlBox.style.display="none"},z.prototype.setupControlBox=function(){this.controlBox=u.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},z.prototype.adjustControlBox=function(){this.positionGrips()},z.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},z.prototype.createGrip=function(){var J=new A;return J.visual.transform.baseVal.appendItem(u.createTransform()),this.controlBox.appendChild(J.visual),J},z.prototype.positionGrips=function(){var J=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-J/2,this.y1-J/2),this.positionGrip(this.grip2.visual,this.x2-J/2,this.y2-J/2)},z.prototype.positionGrip=function(J,be,_e){var oe=J.transform.baseVal.getItem(0);oe.setTranslate(be,_e),J.transform.baseVal.replaceItem(oe,0)},z.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},fe.prototype.getState.call(this))},z.prototype.restoreState=function(J){fe.prototype.restoreState.call(this,J);var be=J;this.x1=be.x1,this.y1=be.y1,this.x2=be.x2,this.y2=be.y2},z.prototype.scale=function(J,be){fe.prototype.scale.call(this,J,be),this.x1=this.x1*J,this.y1=this.y1*be,this.x2=this.x2*J,this.y2=this.y2*be,this.adjustVisual(),this.adjustControlBox()},z}(_),Q=function(fe){function z(J,be,_e){var oe=fe.call(this,J,be,_e)||this;return oe.strokeColor="transparent",oe.strokeWidth=0,oe.strokeDasharray="",oe.setStrokeColor=oe.setStrokeColor.bind(oe),oe.setStrokeWidth=oe.setStrokeWidth.bind(oe),oe.setStrokeDasharray=oe.setStrokeDasharray.bind(oe),oe.strokeColor=_e.defaultColor,oe.strokeWidth=_e.defaultStrokeWidth,oe.strokeDasharray=_e.defaultStrokeDasharray,oe.strokePanel=new T("Line color",_e.defaultColorSet,_e.defaultColor),oe.strokePanel.onColorChanged=oe.setStrokeColor,oe.strokeWidthPanel=new F("Line width",_e.defaultStrokeWidths,_e.defaultStrokeWidth),oe.strokeWidthPanel.onWidthChanged=oe.setStrokeWidth,oe.strokeStylePanel=new H("Line style",_e.defaultStrokeDasharrays,_e.defaultStrokeDasharray),oe.strokeStylePanel.onStyleChanged=oe.setStrokeDasharray,oe}return Y(z,fe),z.prototype.ownsTarget=function(J){return!(!fe.prototype.ownsTarget.call(this,J)&&J!==this.visual&&J!==this.selectorLine&&J!==this.visibleLine)},z.prototype.createVisual=function(){this.visual=u.createGroup(),this.selectorLine=u.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=u.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},z.prototype.pointerDown=function(J,be){fe.prototype.pointerDown.call(this,J,be),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},z.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),u.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),u.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),u.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},z.prototype.setStrokeColor=function(J){this.strokeColor=J,this.adjustVisual(),this.colorChanged(J)},z.prototype.setStrokeWidth=function(J){this.strokeWidth=J,this.adjustVisual()},z.prototype.setStrokeDasharray=function(J){this.strokeDasharray=J,this.adjustVisual(),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var J=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},fe.prototype.getState.call(this));return J.typeName=z.typeName,J},z.prototype.restoreState=function(J){fe.prototype.restoreState.call(this,J);var be=J;this.strokeColor=be.strokeColor,this.strokeWidth=be.strokeWidth,this.strokeDasharray=be.strokeDasharray,this.createVisual(),this.adjustVisual()},z.typeName="LineMarker",z.title="Line marker",z.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',z}(G),ne=function(fe){function z(J,be,_e,oe){var ie=fe.call(this,J,oe||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return ie.fonts=[],ie.fontBoxes=[],ie.fonts=be,ie.currentFont=_e,ie.setCurrentFont=ie.setCurrentFont.bind(ie),ie}return Y(z,fe),z.prototype.getUi=function(){var J=this,be=document.createElement("div");return be.style.overflow="hidden",be.style.flexGrow="2",this.fonts.forEach(function(_e){var oe=document.createElement("div");oe.style.display="inline-block",oe.style.alignItems="center",oe.style.justifyContent="space-between",oe.style.padding="5px",oe.style.borderWidth="2px",oe.style.borderStyle="solid",oe.style.overflow="hidden",oe.style.maxWidth=100/J.fonts.length-5+"%",oe.style.borderColor=_e===J.currentFont?J.uiStyleSettings.toolboxAccentColor:"transparent",oe.addEventListener("click",function(){J.setCurrentFont(_e,oe)}),be.appendChild(oe);var ie=document.createElement("div");ie.style.display="flex",ie.style.minHeight="20px",ie.style.flexGrow="2",ie.style.fontFamily=_e,ie.style.overflow="hidden";var ve=document.createElement("div");ve.style.whiteSpace="nowrap",ve.style.overflow="hidden",ve.style.textOverflow="ellipsis",ve.innerHTML="The quick brown fox jumps over the lazy dog",ie.appendChild(ve),oe.appendChild(ie),J.fontBoxes.push(oe)}),be},z.prototype.setCurrentFont=function(J,be){var _e=this;this.currentFont=J,this.fontBoxes.forEach(function(oe){oe.style.borderColor=oe===be?_e.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},z}(x),ue=function(fe){function z(J,be,_e){var oe=fe.call(this,J,be,_e)||this;return oe.color="transparent",oe.padding=5,oe.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",oe.text=oe.DEFAULT_TEXT,oe.isMoved=!1,oe.color=_e.defaultColor,oe.fontFamily=_e.defaultFontFamily,oe.defaultSize={x:100,y:30},oe.setColor=oe.setColor.bind(oe),oe.setFont=oe.setFont.bind(oe),oe.renderText=oe.renderText.bind(oe),oe.sizeText=oe.sizeText.bind(oe),oe.textEditDivClicked=oe.textEditDivClicked.bind(oe),oe.showTextEditor=oe.showTextEditor.bind(oe),oe.setSize=oe.setSize.bind(oe),oe.positionTextEditor=oe.positionTextEditor.bind(oe),oe.colorPanel=new T("Color",_e.defaultColorSet,_e.defaultColor),oe.colorPanel.onColorChanged=oe.setColor,oe.fontFamilyPanel=new ne("Font",_e.defaultFontFamilies,_e.defaultFontFamily),oe.fontFamilyPanel.onFontChanged=oe.setFont,oe}return Y(z,fe),z.prototype.ownsTarget=function(J){if(fe.prototype.ownsTarget.call(this,J)||J===this.visual||J===this.textElement||J===this.bgRectangle)return!0;var be=!1;return this.textElement.childNodes.forEach(function(_e){_e===J&&(be=!0)}),be},z.prototype.createVisual=function(){this.visual=u.createGroup(),this.bgRectangle=u.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=u.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(u.createTransform()),this.textElement.transform.baseVal.appendItem(u.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},z.prototype.pointerDown=function(J,be){fe.prototype.pointerDown.call(this,J,be),this.isMoved=!1,this.pointerDownPoint=J,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(J),this._state="creating")},z.prototype.renderText=function(){var J=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(be){J.textElement.appendChild(u.createTSpan(be.trim()===""?" ":be.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},z.prototype.getTextScale=function(){var J=this.textElement.getBBox(),be=1;if(J.width>0&&J.height>0){var _e=(1*this.width-this.width*this.padding*2/100)/J.width,oe=(1*this.height-this.height*this.padding*2/100)/J.height;be=Math.min(_e,oe)}return be},z.prototype.getTextPosition=function(J){var be=this.textElement.getBBox(),_e=0,oe=0;return be.width>0&&be.height>0&&(_e=(this.width-be.width*J)/2,oe=this.height/2-be.height*J/2),{x:_e,y:oe}},z.prototype.sizeText=function(){var J=this.textElement.getBBox(),be=this.getTextScale(),_e=this.getTextPosition(be);_e.y-=J.y*be,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+_e.x+"px, "+_e.y+"px) scale("+be+", "+be+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(_e.x,_e.y),this.textElement.transform.baseVal.getItem(1).setScale(be,be))},z.prototype.manipulate=function(J){fe.prototype.manipulate.call(this,J),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(J.x-this.pointerDownPoint.x)>5||Math.abs(J.y-this.pointerDownPoint.y)>5)},z.prototype.resize=function(J){fe.prototype.resize.call(this,J),this.isMoved=!0,this.setSize(),this.sizeText()},z.prototype.setSize=function(){fe.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(u.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),u.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},z.prototype.pointerUp=function(J){var be=this.state;be==="creating"&&(this._suppressMarkerCreateEvent=!0),fe.prototype.pointerUp.call(this,J),this.setSize(),(be==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},z.prototype.showTextEditor=function(){var J=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(be){be.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var be=Number.parseFloat(J.textEditor.style.fontSize);J.textEditor.clientWidth>=Number.parseInt(J.textEditor.style.maxWidth)&&be>.9;)be-=.1,J.textEditor.style.fontSize=Math.max(be,.9)+"em"}),this.textEditor.addEventListener("keyup",function(be){be.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(be){if(be.clipboardData){var _e=be.clipboardData.getData("text"),oe=window.getSelection();if(!oe.rangeCount)return!1;oe.deleteFromDocument(),oe.getRangeAt(0).insertNode(document.createTextNode(_e)),be.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){J.textEditDivClicked(J.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},z.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var J=this.getTextScale(),be=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),_e=this.textElement.getBBox(),oe={x:_e.width*J,y:_e.height*J};be.x-=oe.x/2,be.y-=oe.y/2,this.textEditor.style.top=be.y+"px",this.textEditor.style.left=be.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-be.x+"px",this.textEditor.style.fontSize=Math.max(16*J,12)+"px",this.textElement.style.display="none"}},z.prototype.textEditDivClicked=function(J){this.text=J.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},z.prototype.select=function(){fe.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},z.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),fe.prototype.deselect.call(this)},z.prototype.dblClick=function(J,be){fe.prototype.dblClick.call(this,J,be),this.showTextEditor()},z.prototype.setColor=function(J){this.textElement&&u.setAttributes(this.textElement,[["fill",J]]),this.color=J,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(J)},z.prototype.setFont=function(J){this.textElement&&u.setAttributes(this.textElement,[["font-family",J]]),this.fontFamily=J,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},z.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},z.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var J=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},fe.prototype.getState.call(this));return J.typeName=z.typeName,J},z.prototype.restoreState=function(J){var be=J;this.color=be.color,this.fontFamily=be.fontFamily,this.padding=be.padding,this.text=be.text,this.createVisual(),fe.prototype.restoreState.call(this,J),this.setSize()},z.prototype.scale=function(J,be){fe.prototype.scale.call(this,J,be),this.setSize(),this.sizeText(),this.positionTextEditor()},z.typeName="TextMarker",z.title="Text marker",z.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',z}(L),ae=function(fe){function z(J,be,_e){var oe=fe.call(this,J,be,_e)||this;return oe.color="transparent",oe.lineWidth=3,oe.drawing=!1,oe.pixelRatio=1,oe.color=_e.defaultColor,oe.lineWidth=_e.defaultStrokeWidth,oe.pixelRatio=_e.freehandPixelRatio,oe.setColor=oe.setColor.bind(oe),oe.addCanvas=oe.addCanvas.bind(oe),oe.finishCreation=oe.finishCreation.bind(oe),oe.setLineWidth=oe.setLineWidth.bind(oe),oe.colorPanel=new T("Color",_e.defaultColorSet,_e.defaultColor),oe.colorPanel.onColorChanged=oe.setColor,oe.lineWidthPanel=new F("Line width",_e.defaultStrokeWidths,_e.defaultStrokeWidth),oe.lineWidthPanel.onWidthChanged=oe.setLineWidth,oe}return Y(z,fe),z.prototype.ownsTarget=function(J){return!(!fe.prototype.ownsTarget.call(this,J)&&J!==this.visual&&J!==this.drawingImage)},z.prototype.createVisual=function(){this.visual=u.createGroup(),this.drawingImage=u.createImage(),this.visual.appendChild(this.drawingImage);var J=u.createTransform();this.visual.transform.baseVal.appendItem(J),this.addMarkerVisualToContainer(this.visual)},z.prototype.pointerDown=function(J,be){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(J.x,J.y),this.drawing=!0):fe.prototype.pointerDown.call(this,J,be)},z.prototype.manipulate=function(J){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(J.x,J.y),this.canvasContext.stroke()):fe.prototype.manipulate.call(this,J)},z.prototype.resize=function(J){fe.prototype.resize.call(this,J),u.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),u.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},z.prototype.pointerUp=function(J){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):fe.prototype.pointerUp.call(this,J)},z.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},z.prototype.select=function(){this.state==="creating"&&this.finishCreation(),fe.prototype.select.call(this)},z.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),fe.prototype.deselect.call(this)},z.prototype.finishCreation=function(){for(var J=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),be=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],_e=be[0],oe=be[1],ie=be[2],ve=be[3],Ne=!1,ze=0;ze<this.canvasElement.height;ze++)for(var Ve=0;Ve<this.canvasElement.width;Ve++)J.data[ze*this.canvasElement.width*4+4*Ve+3]>0&&(Ne=!0,ze<oe&&(oe=ze),Ve<_e&&(_e=Ve),ze>ve&&(ve=ze),Ve>ie&&(ie=Ve));if(Ne){this.left=_e/this.pixelRatio,this.top=oe/this.pixelRatio,this.width=(ie-_e)/this.pixelRatio,this.height=(ve-oe)/this.pixelRatio;var yt=document.createElement("canvas");yt.width=ie-_e,yt.height=ve-oe,yt.getContext("2d").putImageData(this.canvasContext.getImageData(_e,oe,ie-_e,ve-oe),0,0),this.drawingImgUrl=yt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},z.prototype.setDrawingImage=function(){u.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),u.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},z.prototype.setColor=function(J){this.color=J,this.colorChanged(J)},z.prototype.setLineWidth=function(J){this.lineWidth=J},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var J=Object.assign({drawingImgUrl:this.drawingImgUrl},fe.prototype.getState.call(this));return J.typeName=z.typeName,J},z.prototype.restoreState=function(J){this.createVisual(),fe.prototype.restoreState.call(this,J),this.drawingImgUrl=J.drawingImgUrl,this.setDrawingImage()},z.prototype.scale=function(J,be){fe.prototype.scale.call(this,J,be),this.setDrawingImage()},z.typeName="FreehandMarker",z.title="Freehand marker",z.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',z}(L),he=function(fe){function z(J,be,_e){var oe=fe.call(this,J,_e||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return oe.typeBoxes=[],oe.currentType=be,oe.setCurrentType=oe.setCurrentType.bind(oe),oe}return Y(z,fe),z.prototype.getUi=function(){var J=this,be=document.createElement("div");be.style.display="flex",be.style.overflow="hidden",be.style.flexGrow="2";for(var _e=function(ve){var Ne="both";switch(ve){case 0:Ne="both";break;case 1:Ne="start";break;case 2:Ne="end";break;case 3:Ne="none"}var ze=document.createElement("div");if(ze.style.display="flex",ze.style.flexGrow="2",ze.style.alignItems="center",ze.style.justifyContent="space-between",ze.style.padding="5px",ze.style.borderWidth="2px",ze.style.borderStyle="solid",ze.style.borderColor=Ne===oe.currentType?oe.uiStyleSettings.toolboxAccentColor:"transparent",ze.addEventListener("click",function(){J.setCurrentType(Ne,ze)}),be.appendChild(ze),Ne==="both"||Ne==="start"){var Ve=document.createElement("div");Ve.style.display="flex",Ve.style.alignItems="center",Ve.style.minHeight="20px",Ve.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,5 10,0 10,10" fill="`+(oe.uiStyleSettings!==void 0?oe.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Ve.style.marginLeft="5px",ze.appendChild(Ve)}var yt=document.createElement("div");yt.style.display="flex",yt.style.alignItems="center",yt.style.minHeight="20px",yt.style.flexGrow="2";var ct=document.createElement("hr");if(ct.style.minWidth="20px",ct.style.border="0px",ct.style.borderTop="3px solid "+(oe.uiStyleSettings!==void 0?oe.uiStyleSettings.toolboxColor:"#eeeeee"),ct.style.flexGrow="2",yt.appendChild(ct),ze.appendChild(yt),Ne==="both"||Ne==="end"){var St=document.createElement("div");St.style.display="flex",St.style.alignItems="center",St.style.minHeight="20px",St.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,0 10,5 0,10" fill="`+(oe.uiStyleSettings!==void 0?oe.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,St.style.marginRight="5px",ze.appendChild(St)}oe.typeBoxes.push(ze)},oe=this,ie=0;ie<4;ie++)_e(ie);return be},z.prototype.setCurrentType=function(J,be){var _e=this;this.currentType=J,this.typeBoxes.forEach(function(oe){oe.style.borderColor=oe===be?_e.uiStyleSettings!==void 0?_e.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},z}(x),ce=function(fe){function z(J,be,_e){var oe=fe.call(this,J,be,_e)||this;return oe.arrowType="end",oe.arrowBaseHeight=10,oe.arrowBaseWidth=10,oe.getArrowPoints=oe.getArrowPoints.bind(oe),oe.setArrowType=oe.setArrowType.bind(oe),oe.arrowTypePanel=new he("Arrow type","end"),oe.arrowTypePanel.onArrowTypeChanged=oe.setArrowType,oe}return Y(z,fe),z.prototype.ownsTarget=function(J){return!(!fe.prototype.ownsTarget.call(this,J)&&J!==this.arrow1&&J!==this.arrow2)},z.prototype.getArrowPoints=function(J,be){var _e=this.arrowBaseWidth+2*this.strokeWidth,oe=this.arrowBaseHeight+2*this.strokeWidth;return J-_e/2+","+(be+oe/2)+" "+J+","+(be-oe/2)+" "+(J+_e/2)+","+(be+oe/2)},z.prototype.createTips=function(){this.arrow1=u.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(u.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=u.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(u.createTransform()),this.visual.appendChild(this.arrow2)},z.prototype.pointerDown=function(J,be){fe.prototype.pointerDown.call(this,J,be),this.state==="creating"&&this.createTips()},z.prototype.adjustVisual=function(){if(fe.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",u.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),u.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var J=0;Math.abs(this.x1-this.x2)>.1&&(J=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var be=this.arrow1.transform.baseVal.getItem(0);be.setRotate(J,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(be,0);var _e=this.arrow2.transform.baseVal.getItem(0);_e.setRotate(J+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(_e,0)}},z.prototype.setArrowType=function(J){this.arrowType=J,this.adjustVisual(),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var J=Object.assign({arrowType:this.arrowType},fe.prototype.getState.call(this));return J.typeName=z.typeName,J},z.prototype.restoreState=function(J){fe.prototype.restoreState.call(this,J);var be=J;this.arrowType=be.arrowType,this.createTips(),this.adjustVisual()},z.typeName="ArrowMarker",z.title="Arrow marker",z.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',z}(Q),we=function(fe){function z(J,be,_e){var oe=fe.call(this,J,be,_e)||this;return oe.fillColor=_e.defaultFillColor,oe.strokeWidth=0,oe.fillPanel=new T("Color",_e.defaultColorSet,_e.defaultFillColor),oe.fillPanel.onColorChanged=oe.setFillColor,oe}return Y(z,fe),Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var J=fe.prototype.getState.call(this);return J.typeName=z.typeName,J},z.typeName="CoverMarker",z.title="Cover marker",z.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',z}(M),me=function(fe){function z(J,be,_e,oe){var ie=fe.call(this,J,oe||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return ie.opacities=[],ie.opacityBoxes=[],ie.opacities=be,ie.currentOpacity=_e,ie.setCurrentOpacity=ie.setCurrentOpacity.bind(ie),ie}return Y(z,fe),z.prototype.getUi=function(){var J=this,be=document.createElement("div");return be.style.display="flex",be.style.overflow="hidden",be.style.flexGrow="2",be.style.justifyContent="space-between",this.opacities.forEach(function(_e){var oe=document.createElement("div");oe.style.display="flex",oe.style.alignItems="center",oe.style.justifyContent="center",oe.style.padding="5px",oe.style.borderWidth="2px",oe.style.borderStyle="solid",oe.style.borderColor=_e===J.currentOpacity?J.uiStyleSettings.toolboxAccentColor:"transparent",oe.addEventListener("click",function(){J.setCurrentOpacity(_e,oe)}),be.appendChild(oe);var ie=document.createElement("div");ie.innerText=100*_e+"%",oe.appendChild(ie),J.opacityBoxes.push(oe)}),be},z.prototype.setCurrentOpacity=function(J,be){var _e=this;this.currentOpacity=J,this.opacityBoxes.forEach(function(oe){oe.style.borderColor=oe===be?_e.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},z}(x),Le=function(fe){function z(J,be,_e){var oe=fe.call(this,J,be,_e)||this;return oe.setOpacity=oe.setOpacity.bind(oe),oe.fillColor=_e.defaultHighlightColor,oe.strokeWidth=0,oe.opacity=_e.defaultHighlightOpacity,oe.fillPanel=new T("Color",_e.defaultColorSet,oe.fillColor),oe.fillPanel.onColorChanged=oe.setFillColor,oe.opacityPanel=new me("Opacity",_e.defaultOpacitySteps,oe.opacity),oe.opacityPanel.onOpacityChanged=oe.setOpacity,oe}return Y(z,fe),z.prototype.setOpacity=function(J){this.opacity=J,this.visual&&u.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var J=fe.prototype.getState.call(this);return J.typeName=z.typeName,J},z.typeName="HighlightMarker",z.title="Highlight marker",z.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',z}(we),ee='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',se='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',le=function(fe){function z(J,be,_e){var oe=fe.call(this,J,be,_e)||this;return oe.bgColor="transparent",oe.tipPosition={x:0,y:0},oe.tipBase1Position={x:0,y:0},oe.tipBase2Position={x:0,y:0},oe.tipMoving=!1,oe.color=_e.defaultStrokeColor,oe.bgColor=_e.defaultFillColor,oe.fontFamily=_e.defaultFontFamily,oe.defaultSize={x:100,y:30},oe.setBgColor=oe.setBgColor.bind(oe),oe.getTipPoints=oe.getTipPoints.bind(oe),oe.positionTip=oe.positionTip.bind(oe),oe.setTipPoints=oe.setTipPoints.bind(oe),oe.colorPanel=new T("Text color",_e.defaultColorSet,oe.color,ee),oe.colorPanel.onColorChanged=oe.setColor,oe.bgColorPanel=new T("Fill color",_e.defaultColorSet,oe.bgColor,se),oe.bgColorPanel.onColorChanged=oe.setBgColor,oe.fontFamilyPanel=new ne("Font",_e.defaultFontFamilies,_e.defaultFontFamily),oe.fontFamilyPanel.onFontChanged=oe.setFont,oe.tipGrip=new A,oe.tipGrip.visual.transform.baseVal.appendItem(u.createTransform()),oe.controlBox.appendChild(oe.tipGrip.visual),oe}return Y(z,fe),z.prototype.ownsTarget=function(J){return fe.prototype.ownsTarget.call(this,J)||this.tipGrip.ownsTarget(J)||this.tip===J},z.prototype.createTip=function(){u.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=u.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},z.prototype.pointerDown=function(J,be){this.state==="new"&&fe.prototype.pointerDown.call(this,J,be),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(be)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):fe.prototype.pointerDown.call(this,J,be)},z.prototype.pointerUp=function(J){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,fe.prototype.pointerUp.call(this,J);else{var be=this.state==="creating";fe.prototype.pointerUp.call(this,J),this.setTipPoints(be),this.positionTip()}},z.prototype.manipulate=function(J){if(this.tipMoving){var be=this.unrotatePoint(J);this.tipPosition={x:be.x-this.manipulationStartLeft,y:be.y-this.manipulationStartTop},this.positionTip()}else fe.prototype.manipulate.call(this,J)},z.prototype.setBgColor=function(J){this.bgRectangle&&this.tip&&(u.setAttributes(this.bgRectangle,[["fill",J]]),u.setAttributes(this.tip,[["fill",J]])),this.bgColor=J,this.fillColorChanged(J)},z.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},z.prototype.setTipPoints=function(J){J===void 0&&(J=!1);var be=Math.min(this.height/2,15),_e=this.height/5;J&&(this.tipPosition={x:be+_e/2,y:this.height+20});var oe=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?oe<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(_e=this.width/5,be=Math.min(this.width/2,15),this.tipBase1Position={x:be,y:0},this.tipBase2Position={x:be+_e,y:0}):(this.tipBase1Position={x:0,y:be},this.tipBase2Position={x:0,y:be+_e}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?oe<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(_e=this.width/5,be=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-be-_e,y:0},this.tipBase2Position={x:this.width-be,y:0}):(this.tipBase1Position={x:this.width,y:be},this.tipBase2Position={x:this.width,y:be+_e}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?oe<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(_e=this.width/5,be=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-be-_e,y:this.height},this.tipBase2Position={x:this.width-be,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-be-_e},this.tipBase2Position={x:this.width,y:this.height-be}):oe<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(_e=this.width/5,be=Math.min(this.width/2,15),this.tipBase1Position={x:be,y:this.height},this.tipBase2Position={x:be+_e,y:this.height}):(this.tipBase1Position={x:0,y:this.height-be},this.tipBase2Position={x:0,y:this.height-be-_e})},z.prototype.resize=function(J){fe.prototype.resize.call(this,J),this.positionTip()},z.prototype.positionTip=function(){u.setAttributes(this.tip,[["points",this.getTipPoints()]]);var J=this.tipGrip.visual.transform.baseVal.getItem(0);J.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(J,0)},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),z.prototype.select=function(){this.positionTip(),fe.prototype.select.call(this)},z.prototype.getState=function(){var J=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},fe.prototype.getState.call(this));return J.typeName=z.typeName,J},z.prototype.restoreState=function(J){var be=J;this.bgColor=be.bgColor,this.tipPosition=be.tipPosition,fe.prototype.restoreState.call(this,J),this.createTip(),this.setTipPoints()},z.prototype.scale=function(J,be){fe.prototype.scale.call(this,J,be),this.tipPosition={x:this.tipPosition.x*J,y:this.tipPosition.y*be},this.positionTip()},z.typeName="CalloutMarker",z.title="Callout marker",z.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',z}(ue),ke=function(fe){function z(J,be,_e){var oe=fe.call(this,J,be,_e)||this;return oe.fillColor="transparent",oe.strokeColor="transparent",oe.strokeWidth=0,oe.strokeDasharray="",oe.opacity=1,oe.strokeColor=_e.defaultColor,oe.strokeWidth=_e.defaultStrokeWidth,oe.strokeDasharray=_e.defaultStrokeDasharray,oe.fillColor=_e.defaultFillColor,oe.setStrokeColor=oe.setStrokeColor.bind(oe),oe.setFillColor=oe.setFillColor.bind(oe),oe.setStrokeWidth=oe.setStrokeWidth.bind(oe),oe.setStrokeDasharray=oe.setStrokeDasharray.bind(oe),oe.setOpacity=oe.setOpacity.bind(oe),oe.createVisual=oe.createVisual.bind(oe),oe.strokePanel=new T("Line color",I(_e.defaultColorSet,["transparent"]),_e.defaultColor),oe.strokePanel.onColorChanged=oe.setStrokeColor,oe.fillPanel=new T("Fill color",I(_e.defaultColorSet,["transparent"]),oe.fillColor,se),oe.fillPanel.onColorChanged=oe.setFillColor,oe.strokeWidthPanel=new F("Line width",_e.defaultStrokeWidths,_e.defaultStrokeWidth),oe.strokeWidthPanel.onWidthChanged=oe.setStrokeWidth,oe.strokeStylePanel=new H("Line style",_e.defaultStrokeDasharrays,_e.defaultStrokeDasharray),oe.strokeStylePanel.onStyleChanged=oe.setStrokeDasharray,oe.opacityPanel=new me("Opacity",_e.defaultOpacitySteps,oe.opacity),oe.opacityPanel.onOpacityChanged=oe.setOpacity,oe}return Y(z,fe),z.prototype.ownsTarget=function(J){return!(!fe.prototype.ownsTarget.call(this,J)&&J!==this.visual)},z.prototype.createVisual=function(){this.visual=u.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},z.prototype.pointerDown=function(J,be){fe.prototype.pointerDown.call(this,J,be),this.state==="new"&&(this.createVisual(),this.moveVisual(J),this._state="creating")},z.prototype.manipulate=function(J){fe.prototype.manipulate.call(this,J)},z.prototype.resize=function(J){fe.prototype.resize.call(this,J),this.setSize()},z.prototype.setSize=function(){fe.prototype.setSize.call(this),u.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},z.prototype.pointerUp=function(J){fe.prototype.pointerUp.call(this,J),this.setSize()},z.prototype.setStrokeColor=function(J){this.strokeColor=J,this.visual&&u.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(J),this.stateChanged()},z.prototype.setFillColor=function(J){this.fillColor=J,this.visual&&u.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(J),this.stateChanged()},z.prototype.setStrokeWidth=function(J){this.strokeWidth=J,this.visual&&u.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},z.prototype.setStrokeDasharray=function(J){this.strokeDasharray=J,this.visual&&u.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},z.prototype.setOpacity=function(J){this.opacity=J,this.visual&&u.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var J=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},fe.prototype.getState.call(this));return J.typeName=z.typeName,J},z.prototype.restoreState=function(J){var be=J;this.fillColor=be.fillColor,this.strokeColor=be.strokeColor,this.strokeWidth=be.strokeWidth,this.strokeDasharray=be.strokeDasharray,this.opacity=be.opacity,this.createVisual(),fe.prototype.restoreState.call(this,J),this.setSize()},z.prototype.scale=function(J,be){fe.prototype.scale.call(this,J,be),this.setSize()},z.typeName="EllipseMarker",z.title="Ellipse marker",z.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',z}(L),De=function(fe){function z(J,be,_e){return fe.call(this,J,be,_e)||this}return Y(z,fe),Object.defineProperty(z.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),z.prototype.ownsTarget=function(J){return!(!fe.prototype.ownsTarget.call(this,J)&&J!==this.tip1&&J!==this.tip2)},z.prototype.createTips=function(){this.tip1=u.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(u.createTransform()),this.visual.appendChild(this.tip1),this.tip2=u.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(u.createTransform()),this.visual.appendChild(this.tip2)},z.prototype.pointerDown=function(J,be){fe.prototype.pointerDown.call(this,J,be),this.state==="creating"&&this.createTips()},z.prototype.adjustVisual=function(){if(fe.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(u.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),u.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var J=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),be=this.tip1.transform.baseVal.getItem(0);be.setRotate(J,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(be,0);var _e=this.tip2.transform.baseVal.getItem(0);_e.setRotate(J+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(_e,0)}},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var J=fe.prototype.getState.call(this);return J.typeName=z.typeName,J},z.prototype.restoreState=function(J){fe.prototype.restoreState.call(this,J),this.createTips(),this.adjustVisual()},z.typeName="MeasurementMarker",z.title="Measurement marker",z.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',z}(Q),Be=function(fe){function z(J,be,_e){var oe=fe.call(this,J,be,_e)||this;return oe.strokePanel.colors=_e.defaultColorSet,oe.fillColor="transparent",oe}return Y(z,fe),Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var J=fe.prototype.getState.call(this);return J.typeName=z.typeName,J},z.typeName="EllipseFrameMarker",z.title="Ellipse frame marker",z.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',z}(ke),He=function(){function fe(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(fe.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),fe.prototype.addUndoStep=function(z){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(z)||(this.undoStack.push(z),JSON.stringify(this.lastRedoStep)!==JSON.stringify(z)&&this.redoStack.splice(0,this.redoStack.length))},fe.prototype.replaceLastUndoStep=function(z){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=z)},fe.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},fe.prototype.undo=function(){if(this.undoStack.length>1){var z=this.undoStack.pop();return z!==void 0&&this.redoStack.push(z),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},fe.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},fe}(),Fe=function(fe){function z(J,be,_e){var oe=fe.call(this,J,be,_e)||this;return oe.strokeColor="transparent",oe.strokeWidth=0,oe.strokeDasharray="",oe.curveX=0,oe.curveY=0,oe.manipulationStartCurveX=0,oe.manipulationStartCurveY=0,oe.setStrokeColor=oe.setStrokeColor.bind(oe),oe.setStrokeWidth=oe.setStrokeWidth.bind(oe),oe.setStrokeDasharray=oe.setStrokeDasharray.bind(oe),oe.positionGrips=oe.positionGrips.bind(oe),oe.addControlGrips=oe.addControlGrips.bind(oe),oe.adjustVisual=oe.adjustVisual.bind(oe),oe.setupControlBox=oe.setupControlBox.bind(oe),oe.resize=oe.resize.bind(oe),oe.strokeColor=_e.defaultColor,oe.strokeWidth=_e.defaultStrokeWidth,oe.strokeDasharray=_e.defaultStrokeDasharray,oe.strokePanel=new T("Line color",_e.defaultColorSet,_e.defaultColor),oe.strokePanel.onColorChanged=oe.setStrokeColor,oe.strokeWidthPanel=new F("Line width",_e.defaultStrokeWidths,_e.defaultStrokeWidth),oe.strokeWidthPanel.onWidthChanged=oe.setStrokeWidth,oe.strokeStylePanel=new H("Line style",_e.defaultStrokeDasharrays,_e.defaultStrokeDasharray),oe.strokeStylePanel.onStyleChanged=oe.setStrokeDasharray,oe}return Y(z,fe),z.prototype.ownsTarget=function(J){return!(!fe.prototype.ownsTarget.call(this,J)&&J!==this.visual&&J!==this.selectorCurve&&J!==this.visibleCurve&&!this.curveGrip.ownsTarget(J))},z.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},z.prototype.createVisual=function(){this.visual=u.createGroup(),this.selectorCurve=u.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=u.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},z.prototype.pointerDown=function(J,be){fe.prototype.pointerDown.call(this,J,be),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=J.x,this.curveY=J.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(be)&&(this.activeGrip=this.curveGrip,this._state="resize")},z.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),u.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),u.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),u.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},z.prototype.setupControlBox=function(){fe.prototype.setupControlBox.call(this),this.curveControlLine1=u.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=u.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},z.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,fe.prototype.addControlGrips.call(this)},z.prototype.positionGrips=function(){fe.prototype.positionGrips.call(this);var J=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-J/2,this.curveY-J/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},z.prototype.manipulate=function(J){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+J.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+J.y-this.manipulationStartY),fe.prototype.manipulate.call(this,J)},z.prototype.resize=function(J){this.activeGrip===this.curveGrip&&(this.curveX=J.x,this.curveY=J.y),fe.prototype.resize.call(this,J),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},z.prototype.setStrokeColor=function(J){this.strokeColor=J,this.adjustVisual(),this.colorChanged(J)},z.prototype.setStrokeWidth=function(J){this.strokeWidth=J,this.adjustVisual()},z.prototype.setStrokeDasharray=function(J){this.strokeDasharray=J,this.adjustVisual()},z.prototype.scale=function(J,be){this.curveX=this.curveX*J,this.curveY=this.curveY*be,fe.prototype.scale.call(this,J,be)},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var J=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},fe.prototype.getState.call(this));return J.typeName=z.typeName,J},z.prototype.restoreState=function(J){fe.prototype.restoreState.call(this,J);var be=J;this.strokeColor=be.strokeColor,this.strokeWidth=be.strokeWidth,this.strokeDasharray=be.strokeDasharray,this.curveX=be.curveX,this.curveY=be.curveY,this.createVisual(),this.adjustVisual()},z.typeName="CurveMarker",z.title="Curve marker",z.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',z}(G),Je=function(fe){function z(J,be,_e){var oe=fe.call(this,J,be,_e)||this;return oe.fillColor="transparent",oe.strokeColor="transparent",oe.strokeWidth=0,oe.strokeDasharray="",oe.textColor="transparent",oe.fontSize="1rem",oe.isMoved=!1,oe.captionText="Caption",oe.PADDING=5,oe.captionBoxWidth=0,oe.captionBoxHeight=0,oe.strokeColor=_e.defaultColor,oe.strokeWidth=_e.defaultStrokeWidth,oe.strokeDasharray=_e.defaultStrokeDasharray,oe.fillColor=_e.defaultFillColor,oe.textColor=_e.defaultStrokeColor,oe.fontFamily=_e.defaultFontFamily,oe.fontSize=_e.defaultCaptionFontSize,oe.captionText=_e.defaultCaptionText,oe.setStrokeColor=oe.setStrokeColor.bind(oe),oe.setFillColor=oe.setFillColor.bind(oe),oe.setStrokeWidth=oe.setStrokeWidth.bind(oe),oe.setStrokeDasharray=oe.setStrokeDasharray.bind(oe),oe.createVisual=oe.createVisual.bind(oe),oe.sizeCaption=oe.sizeCaption.bind(oe),oe.setCaptionText=oe.setCaptionText.bind(oe),oe.showTextEditor=oe.showTextEditor.bind(oe),oe.positionTextEditor=oe.positionTextEditor.bind(oe),oe.finishTextEditing=oe.finishTextEditing.bind(oe),oe.setFont=oe.setFont.bind(oe),oe.setTextColor=oe.setTextColor.bind(oe),oe.strokePanel=new T("Line color",I(_e.defaultColorSet,["transparent"]),oe.strokeColor),oe.strokePanel.onColorChanged=oe.setStrokeColor,oe.fillPanel=new T("Fill color",I(_e.defaultColorSet,["transparent"]),oe.fillColor,se),oe.fillPanel.onColorChanged=oe.setFillColor,oe.strokeWidthPanel=new F("Line width",_e.defaultStrokeWidths,_e.defaultStrokeWidth),oe.strokeWidthPanel.onWidthChanged=oe.setStrokeWidth,oe.strokeStylePanel=new H("Line style",_e.defaultStrokeDasharrays,_e.defaultStrokeDasharray),oe.strokeStylePanel.onStyleChanged=oe.setStrokeDasharray,oe.fontFamilyPanel=new ne("Font",_e.defaultFontFamilies,_e.defaultFontFamily),oe.fontFamilyPanel.onFontChanged=oe.setFont,oe.textColorPanel=new T("Text color",_e.defaultColorSet,oe.textColor,ee),oe.textColorPanel.onColorChanged=oe.setTextColor,oe}return Y(z,fe),z.prototype.ownsTarget=function(J){return!(!fe.prototype.ownsTarget.call(this,J)&&J!==this.visual&&J!==this.frame&&J!==this.captionBg&&J!==this.captionElement)},z.prototype.createVisual=function(){this.visual=u.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=u.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=u.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=u.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},z.prototype.setCaptionText=function(J){this.captionText=J,this.captionElement.textContent=this.captionText,this.sizeCaption()},z.prototype.pointerDown=function(J,be){fe.prototype.pointerDown.call(this,J,be),this.isMoved=!1,this.pointerDownPoint=J,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(J),this._state="creating")},z.prototype.manipulate=function(J){fe.prototype.manipulate.call(this,J),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(J.x-this.pointerDownPoint.x)>5||Math.abs(J.y-this.pointerDownPoint.y)>5)},z.prototype.resize=function(J){fe.prototype.resize.call(this,J),this.setSize()},z.prototype.sizeCaption=function(){var J=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=J.width+2*this.PADDING,this.captionBoxHeight=J.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),u.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),u.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},z.prototype.showTextEditor=function(){var J=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(be){be.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(be){be.key==="Enter"&&J.finishTextEditing(J.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(be){be.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){J.finishTextEditing(J.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){J.finishTextEditing(J.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},z.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},z.prototype.finishTextEditing=function(J){this.setCaptionText(J.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},z.prototype.setFont=function(J){this.captionElement&&u.setAttributes(this.captionElement,[["font-family",J]]),this.fontFamily=J,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},z.prototype.setTextColor=function(J){this.captionElement&&u.setAttributes(this.captionElement,[["fill",J]]),this.textColor=J,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},z.prototype.setSize=function(){fe.prototype.setSize.call(this),u.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},z.prototype.pointerUp=function(J){fe.prototype.pointerUp.call(this,J),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},z.prototype.dblClick=function(J,be){fe.prototype.dblClick.call(this,J,be),this.showTextEditor()},z.prototype.setStrokeColor=function(J){this.strokeColor=J,this.frame&&u.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(J),this.stateChanged()},z.prototype.setFillColor=function(J){this.fillColor=J,this.captionBg&&u.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(J),this.stateChanged()},z.prototype.setStrokeWidth=function(J){this.strokeWidth=J,this.frame&&u.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},z.prototype.setStrokeDasharray=function(J){this.strokeDasharray=J,this.frame&&u.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var J=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},fe.prototype.getState.call(this));return J.typeName=this.typeName,J},z.prototype.restoreState=function(J){var be=J;this.fillColor=be.fillColor,this.strokeColor=be.strokeColor,this.strokeWidth=be.strokeWidth,this.strokeDasharray=be.strokeDasharray,this.textColor=be.textColor,this.fontFamily=be.fontFamily,this.captionText=be.captionText,this.fontSize=be.fontSize,this.createVisual(),fe.prototype.restoreState.call(this,J),this.setSize()},z.prototype.scale=function(J,be){fe.prototype.scale.call(this,J,be),this.setSize()},z.typeName="CaptionFrameMarker",z.title="Caption frame marker",z.icon='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',z}(L),Me=function(){function fe(z,J){J===void 0&&(J=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=z,this.cancelable=J}return Object.defineProperty(fe.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),fe.prototype.preventDefault=function(){this._defaultPrevented=!0},fe}(),lt=function(fe){function z(J,be,_e){var oe=fe.call(this,J,!1)||this;return oe.dataUrl=be,oe.state=_e,oe}return Y(z,fe),z}(Me),Re=function(fe){function z(J,be,_e){_e===void 0&&(_e=!1);var oe=fe.call(this,J,_e)||this;return oe.marker=be,oe}return Y(z,fe),z}(Me),Oe=function(){function fe(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return fe.prototype.addEventListener=function(z,J){this[z].push(J)},fe.prototype.removeEventListener=function(z,J){var be=this[z].indexOf(J);be>-1&&this[z].splice(be,1)},fe}(),pe=function(){function fe(z){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new V,this._isOpen=!1,this.undoRedoManager=new He,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new Oe,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=fe.instanceCounter++,this.styles=new S(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=z,this.targetRoot=document.body,this.width=z.clientWidth,this.height=z.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(fe.prototype,"ALL_MARKER_TYPES",{get:function(){return[P,ae,ce,ue,Be,ke,Le,le,De,we,Q,Fe,Je]},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[P,ae,ce,ue,ke,Le,le]},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"BASIC_MARKER_TYPES",{get:function(){return[P,ae,ce,ue,Le]},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(z){var J=this;this._availableMarkerTypes.splice(0),z.forEach(function(be){if(typeof be=="string"){var _e=J.ALL_MARKER_TYPES.find(function(oe){return oe.typeName===be});_e!==void 0&&J._availableMarkerTypes.push(_e)}else J._availableMarkerTypes.push(be)})},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(z){this._zoomLevel=z,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),fe.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),d.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},fe.prototype.show=function(){var z=this;this.styles.styleSheetRoot===void 0&&y.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=y.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(J){return J(new Me(z))})},fe.prototype.render=function(){return s(this,void 0,void 0,function(){var z;return E(this,function(J){switch(J.label){case 0:return this.setCurrentMarker(),(z=new g).naturalSize=this.renderAtNaturalSize,z.imageType=this.renderImageType,z.imageQuality=this.renderImageQuality,z.markersOnly=this.renderMarkersOnly,z.width=this.renderWidth,z.height=this.renderHeight,[4,z.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return J.sent(),[4,z.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,J.sent()]}})})},fe.prototype.close=function(z){var J=this;if(z===void 0&&(z=!1),this.isOpen){var be=!1;z||this.eventListeners.beforeclose.forEach(function(_e){var oe=new Me(J,!0);_e(oe),oe.defaultPrevented&&(be=!0)}),be||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(_e){return _e(new Me(J))}),this.detachEvents(),this._isOpen=!1)}},fe.prototype.addMarkersToToolbar=function(){for(var z,J=[],be=0;be<arguments.length;be++)J[be]=arguments[be];(z=this._availableMarkerTypes).push.apply(z,J)},fe.prototype.addRenderEventListener=function(z){this.addEventListener("render",function(J){z(J.dataUrl,J.state)})},fe.prototype.removeRenderEventListener=function(z){},fe.prototype.addCloseEventListener=function(z){this.addEventListener("close",function(){z()})},fe.prototype.removeCloseEventListener=function(z){},fe.prototype.setupResizeObserver=function(){var z=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){z.resize(z.target.clientWidth,z.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return z.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},fe.prototype.onPopupTargetResize=function(){var z=1*this.target.clientWidth/this.target.clientHeight,J=this.editorCanvas.clientWidth/z>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*z:this.editorCanvas.clientWidth,be=J<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/z;this.resize(J,be)},fe.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},fe.prototype.resize=function(z,J){this._isResizing=!0;var be=z/this.imageWidth,_e=J/this.imageHeight;this.imageWidth=Math.round(z),this.imageHeight=Math.round(J),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(be,_e),this._isResizing=!1},fe.prototype.scaleMarkers=function(z,J){var be,_e=this;this._currentMarker&&this._currentMarker instanceof ue?this._currentMarker.scale(z,J):(be=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(oe){oe!==_e._currentMarker&&oe.scale(z,J)}),be!==void 0&&this.setCurrentMarker(be)},fe.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},fe.prototype.setTopLeft=function(){var z=this.editingTarget.getBoundingClientRect(),J=this.editorCanvas.getBoundingClientRect();this.left=z.left-J.left,this.top=z.top-J.top},fe.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},fe.prototype.addDefs=function(){for(var z,J=[],be=0;be<arguments.length;be++)J[be]=arguments[be];this.defs=u.createDefs(),this.addDefsToImage(),(z=this.defs).append.apply(z,J)},fe.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},fe.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},fe.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},fe.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},fe.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},fe.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},fe.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},fe.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var z=document.createElement("a");z.href="https://markerjs.com/",z.target="_blank",z.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',z.title="Powered by marker.js",z.style.display="grid",z.style.alignItems="center",z.style.justifyItems="center",z.style.padding="3px",z.style.width="20px",z.style.height="20px",this.logoUI.appendChild(z),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},fe.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},fe.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},fe.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},fe.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var z=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=z+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new h(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new m(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},fe.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},fe.prototype.removeMarker=function(z){this.markerImage.removeChild(z.container),this.markers.indexOf(z)>-1&&this.markers.splice(this.markers.indexOf(z),1),z.dispose()},fe.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},fe.prototype.toolbarButtonClicked=function(z,J){if(z==="marker"&&J!==void 0)this.createNewMarker(J);else if(z==="action")switch(J){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},fe.prototype.deleteSelectedMarker=function(){var z=this;if(this._currentMarker!==void 0){var J=!1;if(this.eventListeners.markerbeforedelete.forEach(function(_e){var oe=new Re(z,z._currentMarker,!0);_e(oe),oe.defaultPrevented&&(J=!0)}),!J){var be=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(_e){return _e(new Re(z,be))})}}},fe.prototype.clear=function(){var z=this,J=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ie){var ve=new Re(z,void 0,!0);ie(ve),ve.defaultPrevented&&(J=!0)}),!J)){this.setCurrentMarker();for(var be=function(ie){var ve=_e.markers[ie];_e.setCurrentMarker(_e.markers[ie]),_e._currentMarker.dispose(),_e.markerImage.removeChild(_e._currentMarker.container),_e.markers.splice(_e.markers.indexOf(_e._currentMarker),1),_e.eventListeners.markerdelete.forEach(function(Ne){return Ne(new Re(z,ve))})},_e=this,oe=this.markers.length-1;oe>=0;oe--)be(oe);this.addUndoStep()}},Object.defineProperty(fe.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),fe.prototype.showNotesEditor=function(){var z;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(z=this._currentMarker.notes)!==null&&z!==void 0?z:"",this.overlayContainer.appendChild(this.notesArea))},fe.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},fe.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},fe.prototype.addUndoStep=function(){var z=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var J=this.getState(),be=this.undoRedoManager.getLastUndoStep();if(!be||be.width===J.width&&be.height===J.height){var _e=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(J),_e<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(oe){return oe(new Me(z))})}else this.undoRedoManager.replaceLastUndoStep(J),this.eventListeners.statechange.forEach(function(oe){return oe(new Me(z))})}},fe.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},fe.prototype.undoStep=function(){var z=this,J=this.undoRedoManager.undo();J!==void 0&&(this.restoreState(J),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(be){return be(new Me(z))}))},fe.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},fe.prototype.redoStep=function(){var z=this,J=this.undoRedoManager.redo();J!==void 0&&(this.restoreState(J),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(be){return be(new Me(z))}))},fe.prototype.stepZoom=function(){var z=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=z<this.zoomSteps.length-1?this.zoomSteps[z+1]:this.zoomSteps[0]},fe.prototype.panTo=function(z){this.contentDiv.scrollBy({left:this.prevPanPoint.x-z.x,top:this.prevPanPoint.y-z.y}),this.prevPanPoint=z},fe.prototype.startRenderAndClose=function(){return s(this,void 0,void 0,function(){var z,J,be=this;return E(this,function(_e){switch(_e.label){case 0:return[4,this.render()];case 1:return z=_e.sent(),J=this.getState(),this.eventListeners.render.forEach(function(oe){return oe(new lt(be,z,J))}),this.close(!0),[2]}})})},fe.prototype.getState=function(z){z===!0&&this.setCurrentMarker();var J={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(be){return J.markers.push(be.getState())}),J},fe.prototype.restoreState=function(z){var J=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);z.markers.forEach(function(be){var _e=J._availableMarkerTypes.find(function(ie){return ie.typeName===be.typeName});if(_e!==void 0){var oe=J.addNewMarker(_e);oe.restoreState(be),J.markers.push(oe)}}),z.width&&z.height&&(z.width!==this.imageWidth||z.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/z.width,this.imageHeight/z.height),this.eventListeners.restorestate.forEach(function(be){return be(new Me(J))})},fe.prototype.addNewMarker=function(z){var J=u.createGroup();return this.markerImage.appendChild(J),new z(J,this.overlayContainer,this.settings)},fe.prototype.createNewMarker=function(z){var J,be=this;(J=typeof z=="string"?this._availableMarkerTypes.find(function(_e){return _e.typeName===z}):z)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(J),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(J.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(_e){return _e(new Re(be,be._currentMarker))}))},fe.prototype.markerCreated=function(z){var J=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(z),this.setCurrentMarker(z),z instanceof ae&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(ae):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(be){return be(new Re(J,J._currentMarker))})},fe.prototype.colorChanged=function(z){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=z,this.settings.defaultStrokeColor=z)},fe.prototype.fillColorChanged=function(z){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=z)},fe.prototype.markerStateChanged=function(z){var J=this;this.eventListeners.markerchange.forEach(function(be){return be(new Re(J,z))})},fe.prototype.setCurrentMarker=function(z){var J=this;this._currentMarker!==z&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(be){return be(new Re(J,J._currentMarker))})),this._currentMarker=z,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(be){return be(new Re(J,J._currentMarker))}))},fe.prototype.onPointerDown=function(z){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||z.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var J=this.markers.find(function(be){return be.ownsTarget(z.target)});J!==void 0?(this.setCurrentMarker(J),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(z.clientX,z.clientY),z.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:z.clientX,y:z.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(z.clientX,z.clientY))},fe.prototype.onDblClick=function(z){if(this._isFocused||this.focus(),this.mode==="select"){var J=this.markers.find(function(be){return be.ownsTarget(z.target)});J!==void 0&&J!==this._currentMarker&&this.setCurrentMarker(J),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(z.clientX,z.clientY),z.target):this.setCurrentMarker()}},fe.prototype.onPointerMove=function(z){this.touchPoints!==1&&z.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||z.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(z.clientX,z.clientY)):this.zoomLevel>1&&this.panTo({x:z.clientX,y:z.clientY}))},fe.prototype.onPointerUp=function(z){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(z.clientX,z.clientY)),this.isDragging=!1,this.addUndoStep()},fe.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},fe.prototype.onKeyUp=function(z){this._currentMarker===void 0||this.notesArea!==void 0||z.key!=="Delete"&&z.key!=="Backspace"||this.deleteSelectedMarker()},fe.prototype.clientToLocalCoordinates=function(z,J){var be=this.markerImage.getBoundingClientRect();return{x:(z-be.left)/this.zoomLevel,y:(J-be.top)/this.zoomLevel}},fe.prototype.onWindowResize=function(){this.positionUI()},fe.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var z=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=z+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},fe.prototype.addLicenseKey=function(z){d.addKey(z)},fe.prototype.addEventListener=function(z,J){this.eventListeners.addEventListener(z,J)},fe.prototype.removeEventListener=function(z,J){this.eventListeners.removeEventListener(z,J)},fe.prototype.renderState=function(z){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(z),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(fe.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),fe.prototype.focus=function(){var z=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(J){return J(new Me(z))}))},fe.prototype.blur=function(){var z=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(J){return J(new Me(z))}))},fe.instanceCounter=0,fe}()},89435:function(Ie){"use strict";var Z,b=59;Ie.exports=B;function B(Y){var s="&"+Y+";",E;return Z=Z||document.createElement("i"),Z.innerHTML=s,E=Z.textContent,E.charCodeAt(E.length-1)===b&&Y!=="semi"||E===s?!1:E}},57574:function(Ie,Z,b){"use strict";var B=b(21922),Y=b(93580),s=b(46195),E=b(79480),I=b(7961),u=b(89435);Ie.exports=Le;var d={}.hasOwnProperty,g=String.fromCharCode,y=Function.prototype,S={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},v=9,c=10,h=12,m=32,x=38,T=59,_=60,R=61,A=35,N=88,L=120,M=65533,F="named",H="hexadecimal",P="decimal",V={};V[H]=16,V[P]=10;var G={};G[F]=I,G[P]=s,G[H]=E;var Q=1,ne=2,ue=3,ae=4,he=5,ce=6,we=7,me={};me[Q]="Named character references must be terminated by a semicolon",me[ne]="Numeric character references must be terminated by a semicolon",me[ue]="Named character references cannot be empty",me[ae]="Numeric character references cannot be empty",me[he]="Named character references must be known",me[ce]="Numeric character references cannot be disallowed",me[we]="Numeric character references cannot be outside the permissible Unicode range";function Le(ke,De){var Be={},He,Fe;De||(De={});for(Fe in S)He=De[Fe],Be[Fe]=He==null?S[Fe]:He;return(Be.position.indent||Be.position.start)&&(Be.indent=Be.position.indent||[],Be.position=Be.position.start),ee(ke,Be)}function ee(ke,De){var Be=De.additional,He=De.nonTerminated,Fe=De.text,Je=De.reference,Me=De.warning,lt=De.textContext,Re=De.referenceContext,Oe=De.warningContext,pe=De.position,fe=De.indent||[],z=ke.length,J=0,be=-1,_e=pe.column||1,oe=pe.line||1,ie="",ve=[],Ne,ze,Ve,yt,ct,St,_t,At,ht,wt,jt,st,ge,on,mn,Mt,On,Vn,Fn;for(typeof Be=="string"&&(Be=Be.charCodeAt(0)),Mt=Gn(),At=Me?sn:y,J--,z++;++J<z;)if(ct===c&&(_e=fe[be]||1),ct=ke.charCodeAt(J),ct===x){if(_t=ke.charCodeAt(J+1),_t===v||_t===c||_t===h||_t===m||_t===x||_t===_||_t!==_t||Be&&_t===Be){ie+=g(ct),_e++;continue}for(ge=J+1,st=ge,Fn=ge,_t===A?(Fn=++st,_t=ke.charCodeAt(Fn),_t===N||_t===L?(on=H,Fn=++st):on=P):on=F,Ne="",jt="",yt="",mn=G[on],Fn--;++Fn<z&&(_t=ke.charCodeAt(Fn),!!mn(_t));)yt+=g(_t),on===F&&d.call(B,yt)&&(Ne=yt,jt=B[yt]);Ve=ke.charCodeAt(Fn)===T,Ve&&(Fn++,ze=on===F?u(yt):!1,ze&&(Ne=yt,jt=ze)),Vn=1+Fn-ge,!Ve&&!He||(yt?on===F?(Ve&&!jt?At(he,1):(Ne!==yt&&(Fn=st+Ne.length,Vn=1+Fn-st,Ve=!1),Ve||(ht=Ne?Q:ue,De.attribute?(_t=ke.charCodeAt(Fn),_t===R?(At(ht,Vn),jt=null):I(_t)?jt=null:At(ht,Vn)):At(ht,Vn))),St=jt):(Ve||At(ne,Vn),St=parseInt(yt,V[on]),se(St)?(At(we,Vn),St=g(M)):St in Y?(At(ce,Vn),St=Y[St]):(wt="",le(St)&&At(ce,Vn),St>65535&&(St-=65536,wt+=g(St>>>10|55296),St=56320|St&1023),St=wt+g(St))):on!==F&&At(ae,Vn)),St?(xt(),Mt=Gn(),J=Fn-1,_e+=Fn-ge+1,ve.push(St),On=Gn(),On.offset++,Je&&Je.call(Re,St,{start:Mt,end:On},ke.slice(ge-1,Fn)),Mt=On):(yt=ke.slice(ge-1,Fn),ie+=yt,_e+=yt.length,J=Fn-1)}else ct===10&&(oe++,be++,_e=0),ct===ct?(ie+=g(ct),_e++):xt();return ve.join("");function Gn(){return{line:oe,column:_e,offset:J+(pe.offset||0)}}function sn(gr,Pr){var tr=Gn();tr.column+=Pr,tr.offset+=Pr,Me.call(Oe,me[gr],tr,gr)}function xt(){ie&&(ve.push(ie),Fe&&Fe.call(lt,ie,{start:Mt,end:Gn()}),ie="")}}function se(ke){return ke>=55296&&ke<=57343||ke>1114111}function le(ke){return ke>=1&&ke<=8||ke===11||ke>=13&&ke<=31||ke>=127&&ke<=159||ke>=64976&&ke<=65007||(ke&65535)===65535||(ke&65535)===65534}},42289:function(Ie,Z,b){"use strict";b.d(Z,{Z:function(){return an}});function B(it){"@babel/helpers - typeof";return B=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(dt){return typeof dt}:function(dt){return dt&&typeof Symbol=="function"&&dt.constructor===Symbol&&dt!==Symbol.prototype?"symbol":typeof dt},B(it)}function Y(it,dt){if(B(it)!="object"||!it)return it;var Et=it[Symbol.toPrimitive];if(Et!==void 0){var Dt=Et.call(it,dt||"default");if(B(Dt)!="object")return Dt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(dt==="string"?String:Number)(it)}function s(it){var dt=Y(it,"string");return B(dt)=="symbol"?dt:dt+""}function E(it,dt,Et){return(dt=s(dt))in it?Object.defineProperty(it,dt,{value:Et,enumerable:!0,configurable:!0,writable:!0}):it[dt]=Et,it}function I(it,dt){var Et=Object.keys(it);if(Object.getOwnPropertySymbols){var Dt=Object.getOwnPropertySymbols(it);dt&&(Dt=Dt.filter(function(gn){return Object.getOwnPropertyDescriptor(it,gn).enumerable})),Et.push.apply(Et,Dt)}return Et}function u(it){for(var dt=1;dt<arguments.length;dt++){var Et=arguments[dt]!=null?arguments[dt]:{};dt%2?I(Object(Et),!0).forEach(function(Dt){E(it,Dt,Et[Dt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(it,Object.getOwnPropertyDescriptors(Et)):I(Object(Et)).forEach(function(Dt){Object.defineProperty(it,Dt,Object.getOwnPropertyDescriptor(Et,Dt))})}return it}function d(it){if(Array.isArray(it))return it}function g(it,dt){var Et=it==null?null:typeof Symbol!="undefined"&&it[Symbol.iterator]||it["@@iterator"];if(Et!=null){var Dt,gn,Mn,In,nn=[],Ue=!0,kr=!1;try{if(Mn=(Et=Et.call(it)).next,dt===0){if(Object(Et)!==Et)return;Ue=!1}else for(;!(Ue=(Dt=Mn.call(Et)).done)&&(nn.push(Dt.value),nn.length!==dt);Ue=!0);}catch(Br){kr=!0,gn=Br}finally{try{if(!Ue&&Et.return!=null&&(In=Et.return(),Object(In)!==In))return}finally{if(kr)throw gn}}return nn}}function y(it,dt){(dt==null||dt>it.length)&&(dt=it.length);for(var Et=0,Dt=Array(dt);Et<dt;Et++)Dt[Et]=it[Et];return Dt}function S(it,dt){if(it){if(typeof it=="string")return y(it,dt);var Et={}.toString.call(it).slice(8,-1);return Et==="Object"&&it.constructor&&(Et=it.constructor.name),Et==="Map"||Et==="Set"?Array.from(it):Et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Et)?y(it,dt):void 0}}function v(){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 c(it,dt){return d(it)||g(it,dt)||S(it,dt)||v()}function h(it){if(Array.isArray(it))return it}function m(it,dt){var Et=it==null?null:typeof Symbol!="undefined"&&it[Symbol.iterator]||it["@@iterator"];if(Et!=null){var Dt,gn,Mn,In,nn=[],Ue=!0,kr=!1;try{if(Mn=(Et=Et.call(it)).next,dt===0){if(Object(Et)!==Et)return;Ue=!1}else for(;!(Ue=(Dt=Mn.call(Et)).done)&&(nn.push(Dt.value),nn.length!==dt);Ue=!0);}catch(Br){kr=!0,gn=Br}finally{try{if(!Ue&&Et.return!=null&&(In=Et.return(),Object(In)!==In))return}finally{if(kr)throw gn}}return nn}}function x(it,dt){(dt==null||dt>it.length)&&(dt=it.length);for(var Et=0,Dt=new Array(dt);Et<dt;Et++)Dt[Et]=it[Et];return Dt}function T(it,dt){if(it){if(typeof it=="string")return x(it,dt);var Et=Object.prototype.toString.call(it).slice(8,-1);if(Et==="Object"&&it.constructor&&(Et=it.constructor.name),Et==="Map"||Et==="Set")return Array.from(it);if(Et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Et))return x(it,dt)}}function _(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function R(it,dt){return h(it)||m(it,dt)||T(it,dt)||_()}var A=b(67294),N=b(73935);function L(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var M={};function F(it,dt){}function H(it,dt){}function P(){M={}}function V(it,dt,Et){!dt&&!M[Et]&&(it(!1,Et),M[Et]=!0)}function G(it,dt){V(F,it,dt)}function Q(it,dt){V(H,it,dt)}var ne=null;function ue(it){"@babel/helpers - typeof";return ue=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(dt){return typeof dt}:function(dt){return dt&&typeof Symbol=="function"&&dt.constructor===Symbol&&dt!==Symbol.prototype?"symbol":typeof dt},ue(it)}var ae=b(18459);function he(it,dt,Et){var Dt=A.useRef({});return(!("value"in Dt.current)||Et(Dt.current.condition,dt))&&(Dt.current.value=it(),Dt.current.condition=dt),Dt.current.value}function ce(it,dt){typeof it=="function"?it(dt):ue(it)==="object"&&it&&"current"in it&&(it.current=dt)}function we(){for(var it=arguments.length,dt=new Array(it),Et=0;Et<it;Et++)dt[Et]=arguments[Et];var Dt=dt.filter(function(gn){return gn});return Dt.length<=1?Dt[0]:function(gn){dt.forEach(function(Mn){ce(Mn,gn)})}}function me(){for(var it=arguments.length,dt=new Array(it),Et=0;Et<it;Et++)dt[Et]=arguments[Et];return he(function(){return we.apply(void 0,dt)},dt,function(Dt,gn){return Dt.length===gn.length&&Dt.every(function(Mn,In){return Mn===gn[In]})})}function Le(it){var dt,Et,Dt=(0,ae.isMemo)(it)?it.type.type:it.type;return!(typeof Dt=="function"&&!((dt=Dt.prototype)!==null&&dt!==void 0&&dt.render)||typeof it=="function"&&!((Et=it.prototype)!==null&&Et!==void 0&&Et.render))}var ee=A.createContext(null),se=ee;function le(it){if(Array.isArray(it))return x(it)}function ke(it){if(typeof Symbol!="undefined"&&it[Symbol.iterator]!=null||it["@@iterator"]!=null)return Array.from(it)}function De(){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 Be(it){return le(it)||ke(it)||T(it)||De()}var He=L()?A.useLayoutEffect:A.useEffect,Fe=He,Je=function(dt,Et){var Dt=React.useRef(!0);He(function(){if(!Dt.current)return dt()},Et),He(function(){return Dt.current=!1,function(){Dt.current=!0}},[])},Me=[];function lt(it,dt){var Et=A.useState(function(){if(!L())return null;var Wr=document.createElement("div");return Wr}),Dt=R(Et,1),gn=Dt[0],Mn=A.useRef(!1),In=A.useContext(se),nn=A.useState(Me),Ue=R(nn,2),kr=Ue[0],Br=Ue[1],ei=In||(Mn.current?void 0:function(Wr){Br(function(Ri){var ri=[Wr].concat(Be(Ri));return ri})});function ti(){gn.parentElement||document.body.appendChild(gn),Mn.current=!0}function Jr(){var Wr;(Wr=gn.parentElement)===null||Wr===void 0||Wr.removeChild(gn),Mn.current=!1}return Fe(function(){return it?In?In(ti):ti():Jr(),Jr},[it]),Fe(function(){kr.length&&(kr.forEach(function(Wr){return Wr()}),Br(Me))},[kr]),[gn,ei]}function Re(it,dt){if(!it)return!1;if(it.contains)return it.contains(dt);for(var Et=dt;Et;){if(Et===it)return!0;Et=Et.parentNode}return!1}var Oe="data-rc-order",pe="rc-util-key",fe=new Map;function z(){var it=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},dt=it.mark;return dt?dt.startsWith("data-")?dt:"data-".concat(dt):pe}function J(it){if(it.attachTo)return it.attachTo;var dt=document.querySelector("head");return dt||document.body}function be(it){return it==="queue"?"prependQueue":it?"prepend":"append"}function _e(it){return Array.from((fe.get(it)||it).children).filter(function(dt){return dt.tagName==="STYLE"})}function oe(it){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!L())return null;var Et=dt.csp,Dt=dt.prepend,gn=document.createElement("style");gn.setAttribute(Oe,be(Dt)),Et!=null&&Et.nonce&&(gn.nonce=Et==null?void 0:Et.nonce),gn.innerHTML=it;var Mn=J(dt),In=Mn.firstChild;if(Dt){if(Dt==="queue"){var nn=_e(Mn).filter(function(Ue){return["prepend","prependQueue"].includes(Ue.getAttribute(Oe))});if(nn.length)return Mn.insertBefore(gn,nn[nn.length-1].nextSibling),gn}Mn.insertBefore(gn,In)}else Mn.appendChild(gn);return gn}function ie(it){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Et=J(dt);return _e(Et).find(function(Dt){return Dt.getAttribute(z(dt))===it})}function ve(it){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Et=ie(it,dt);if(Et){var Dt=J(dt);Dt.removeChild(Et)}}function Ne(it,dt){var Et=fe.get(it);if(!Et||!Re(document,Et)){var Dt=oe("",dt),gn=Dt.parentNode;fe.set(it,gn),it.removeChild(Dt)}}function ze(){fe.clear()}function Ve(it,dt){var Et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Dt=J(Et);Ne(Dt,Et);var gn=ie(dt,Et);if(gn){var Mn,In;if((Mn=Et.csp)!==null&&Mn!==void 0&&Mn.nonce&&gn.nonce!==((In=Et.csp)===null||In===void 0?void 0:In.nonce)){var nn;gn.nonce=(nn=Et.csp)===null||nn===void 0?void 0:nn.nonce}return gn.innerHTML!==it&&(gn.innerHTML=it),gn}var Ue=oe(it,Et);return Ue.setAttribute(z(Et),dt),Ue}var yt;function ct(it){if(typeof document=="undefined")return 0;if(it||yt===void 0){var dt=document.createElement("div");dt.style.width="100%",dt.style.height="200px";var Et=document.createElement("div"),Dt=Et.style;Dt.position="absolute",Dt.top="0",Dt.left="0",Dt.pointerEvents="none",Dt.visibility="hidden",Dt.width="200px",Dt.height="150px",Dt.overflow="hidden",Et.appendChild(dt),document.body.appendChild(Et);var gn=dt.offsetWidth;Et.style.overflow="scroll";var Mn=dt.offsetWidth;gn===Mn&&(Mn=Et.clientWidth),document.body.removeChild(Et),yt=gn-Mn}return yt}function St(it){var dt=it.match(/^(.*)px$/),Et=Number(dt==null?void 0:dt[1]);return Number.isNaN(Et)?ct():Et}function _t(it){if(typeof document=="undefined"||!it||!(it instanceof Element))return{width:0,height:0};var dt=getComputedStyle(it,"::-webkit-scrollbar"),Et=dt.width,Dt=dt.height;return{width:St(Et),height:St(Dt)}}function At(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var ht="rc-util-locker-".concat(Date.now()),wt=0;function jt(it){var dt=!!it,Et=A.useState(function(){return wt+=1,"".concat(ht,"_").concat(wt)}),Dt=R(Et,1),gn=Dt[0];Fe(function(){if(dt){var Mn=_t(document.body).width,In=At();Ve(`
html body {
overflow-y: hidden;
`.concat(In?"width: calc(100% - ".concat(Mn,"px);"):"",`
}`),gn)}else ve(gn);return function(){ve(gn)}},[dt,gn])}var st=!1;function ge(it){return typeof it=="boolean"&&(st=it),st}var on=function(dt){return dt===!1?!1:!L()||!dt?null:typeof dt=="string"?document.querySelector(dt):typeof dt=="function"?dt():dt},mn=A.forwardRef(function(it,dt){var Et=it.open,Dt=it.autoLock,gn=it.getContainer,Mn=it.debug,In=it.autoDestroy,nn=In===void 0?!0:In,Ue=it.children,kr=A.useState(Et),Br=R(kr,2),ei=Br[0],ti=Br[1],Jr=ei||Et;A.useEffect(function(){(nn||Et)&&ti(Et)},[Et,nn]);var Wr=A.useState(function(){return on(gn)}),Ri=R(Wr,2),ri=Ri[0],wr=Ri[1];A.useEffect(function(){var Ji=on(gn);wr(Ji!=null?Ji:null)});var rr=lt(Jr&&!ri,Mn),Ir=R(rr,2),Nr=Ir[0],$r=Ir[1],Yt=ri!=null?ri:Nr;jt(Dt&&Et&&L()&&(Yt===Nr||Yt===document.body));var Sr=null;if(Ue&&Le(Ue)&&dt){var fr=Ue;Sr=fr.ref}var pi=me(Sr,dt);if(!Jr||!L()||ri===void 0)return null;var Pi=Yt===!1||ge(),Ai=Ue;return dt&&(Ai=A.cloneElement(Ue,{ref:pi})),A.createElement(se.Provider,{value:$r},Pi?Ai:(0,N.createPortal)(Ai,Yt))}),Mt=mn,On=Mt;function Vn(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Fn=Vn()?A.useLayoutEffect:A.useEffect,Gn=function(dt,Et){var Dt=A.useRef(!0);Fn(function(){return dt(Dt.current)},Et),Fn(function(){return Dt.current=!1,function(){Dt.current=!0}},[])},sn=function(dt,Et){Gn(function(Dt){if(!Dt)return dt()},Et)},xt=Gn,gr=A.createContext(null),Pr=A.createContext({}),tr=gr;function ii(){return ii=Object.assign?Object.assign.bind():function(it){for(var dt=1;dt<arguments.length;dt++){var Et=arguments[dt];for(var Dt in Et)({}).hasOwnProperty.call(Et,Dt)&&(it[Dt]=Et[Dt])}return it},ii.apply(null,arguments)}var Ar=b(94184),Kt=b.n(Ar),ye=b(62874),Vt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(dt){var Et=dt.keyCode;if(dt.altKey&&!dt.ctrlKey||dt.metaKey||Et>=Vt.F1&&Et<=Vt.F12)return!1;switch(Et){case Vt.ALT:case Vt.CAPS_LOCK:case Vt.CONTEXT_MENU:case Vt.CTRL:case Vt.DOWN:case Vt.END:case Vt.ESC:case Vt.HOME:case Vt.INSERT:case Vt.LEFT:case Vt.MAC_FF_META:case Vt.META:case Vt.NUMLOCK:case Vt.NUM_CENTER:case Vt.PAGE_DOWN:case Vt.PAGE_UP:case Vt.PAUSE:case Vt.PRINT_SCREEN:case Vt.RIGHT:case Vt.SHIFT:case Vt.UP:case Vt.WIN_KEY:case Vt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(dt){if(dt>=Vt.ZERO&&dt<=Vt.NINE||dt>=Vt.NUM_ZERO&&dt<=Vt.NUM_MULTIPLY||dt>=Vt.A&&dt<=Vt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&dt===0)return!0;switch(dt){case Vt.SPACE:case Vt.QUESTION_MARK:case Vt.NUM_PLUS:case Vt.NUM_MINUS:case Vt.NUM_PERIOD:case Vt.NUM_DIVISION:case Vt.SEMICOLON:case Vt.DASH:case Vt.EQUALS:case Vt.COMMA:case Vt.PERIOD:case Vt.SLASH:case Vt.APOSTROPHE:case Vt.SINGLE_QUOTE:case Vt.OPEN_SQUARE_BRACKET:case Vt.BACKSLASH:case Vt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},rn=Vt;function Xn(it){"@babel/helpers - typeof";return Xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(dt){return typeof dt}:function(dt){return dt&&typeof Symbol=="function"&&dt.constructor===Symbol&&dt!==Symbol.prototype?"symbol":typeof dt},Xn(it)}function Zn(it,dt){if(Xn(it)!=="object"||it===null)return it;var Et=it[Symbol.toPrimitive];if(Et!==void 0){var Dt=Et.call(it,dt||"default");if(Xn(Dt)!=="object")return Dt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(dt==="string"?String:Number)(it)}function ir(it){var dt=Zn(it,"string");return Xn(dt)==="symbol"?dt:String(dt)}function Dr(it,dt,Et){return dt=ir(dt),dt in it?Object.defineProperty(it,dt,{value:Et,enumerable:!0,configurable:!0,writable:!0}):it[dt]=Et,it}function ai(it,dt){var Et=Object.keys(it);if(Object.getOwnPropertySymbols){var Dt=Object.getOwnPropertySymbols(it);dt&&(Dt=Dt.filter(function(gn){return Object.getOwnPropertyDescriptor(it,gn).enumerable})),Et.push.apply(Et,Dt)}return Et}function li(it){for(var dt=1;dt<arguments.length;dt++){var Et=arguments[dt]!=null?arguments[dt]:{};dt%2?ai(Object(Et),!0).forEach(function(Dt){Dr(it,Dt,Et[Dt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(it,Object.getOwnPropertyDescriptors(Et)):ai(Object(Et)).forEach(function(Dt){Object.defineProperty(it,Dt,Object.getOwnPropertyDescriptor(Et,Dt))})}return it}var Zr=`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`,Tn=`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`,kn="".concat(Zr," ").concat(Tn).split(/[\s\n]+/),Vr="aria-",di="data-";function nr(it,dt){return it.indexOf(dt)===0}function vn(it){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Et;dt===!1?Et={aria:!0,data:!0,attr:!0}:dt===!0?Et={aria:!0}:Et=li({},dt);var Dt={};return Object.keys(it).forEach(function(gn){(Et.aria&&(gn==="role"||nr(gn,Vr))||Et.data&&nr(gn,di)||Et.attr&&kn.includes(gn))&&(Dt[gn]=it[gn])}),Dt}function Jn(it,dt){if(it==null)return{};var Et={};for(var Dt in it)if({}.hasOwnProperty.call(it,Dt)){if(dt.indexOf(Dt)!==-1)continue;Et[Dt]=it[Dt]}return Et}function bi(it,dt){if(it==null)return{};var Et,Dt,gn=Jn(it,dt);if(Object.getOwnPropertySymbols){var Mn=Object.getOwnPropertySymbols(it);for(Dt=0;Dt<Mn.length;Dt++)Et=Mn[Dt],dt.indexOf(Et)===-1&&{}.propertyIsEnumerable.call(it,Et)&&(gn[Et]=it[Et])}return gn}var gi=b(33993);function mi(it,dt,Et){var Dt=A.useRef({});return(!("value"in Dt.current)||Et(Dt.current.condition,dt))&&(Dt.current.value=it(),Dt.current.condition=dt),Dt.current.value}var Lt=Symbol.for("react.element"),Yn=Symbol.for("react.transitional.element"),hr=Symbol.for("react.fragment");function zi(it){return it&&_typeof(it)==="object"&&(it.$$typeof===Lt||it.$$typeof===Yn)&&it.type===hr}var bn=Number(A.version.split(".")[0]),or=function(dt,Et){typeof dt=="function"?dt(Et):Xn(dt)==="object"&&dt&&"current"in dt&&(dt.current=Et)},Ei=function(){for(var dt=arguments.length,Et=new Array(dt),Dt=0;Dt<dt;Dt++)Et[Dt]=arguments[Dt];var gn=Et.filter(Boolean);return gn.length<=1?gn[0]:function(Mn){Et.forEach(function(In){or(In,Mn)})}},Co=function(){for(var dt=arguments.length,Et=new Array(dt),Dt=0;Dt<dt;Dt++)Et[Dt]=arguments[Dt];return mi(function(){return Ei.apply(void 0,Et)},Et,function(gn,Mn){return gn.length!==Mn.length||gn.every(function(In,nn){return In!==Mn[nn]})})},ki=function(dt){var Et,Dt;if(!dt)return!1;if(yr(dt)&&bn>=19)return!0;var gn=isMemo(dt)?dt.type.type:dt.type;return!(typeof gn=="function"&&!((Et=gn.prototype)!==null&&Et!==void 0&&Et.render)&&gn.$$typeof!==ForwardRef||typeof dt=="function"&&!((Dt=dt.prototype)!==null&&Dt!==void 0&&Dt.render)&&dt.$$typeof!==ForwardRef)};function yr(it){return isValidElement(it)&&!isFragment(it)}var Mr=function(dt){return yr(dt)&&ki(dt)},Fr=function(dt){if(dt&&yr(dt)){var Et=dt;return Et.props.propertyIsEnumerable("ref")?Et.props.ref:Et.ref}return null},Di=["prefixCls","className","containerRef"],so=function(dt){var Et=dt.prefixCls,Dt=dt.className,gn=dt.containerRef,Mn=bi(dt,Di),In=A.useContext(Pr),nn=In.panel,Ue=Co(nn,gn);return A.createElement("div",ii({className:Kt()("".concat(Et,"-content"),Dt),role:"dialog",ref:Ue},vn(dt,{aria:!0}),{"aria-modal":"true"},Mn))},Gi=so,sr={},ys=[],Wo=function(dt){ys.push(dt)};function Ro(it,dt){if(0)var Et}function hn(it,dt){if(0)var Et}function us(){sr={}}function cs(it,dt,Et){!dt&&!sr[Et]&&(it(!1,Et),sr[Et]=!0)}function yo(it,dt){cs(Ro,it,dt)}function Bs(it,dt){cs(hn,it,dt)}yo.preMessage=Wo,yo.resetWarned=us,yo.noteOnce=Bs;var Yi=yo;function eo(it){return typeof it=="string"&&String(Number(it))===it?(Yi(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(it)):it}function Oi(it){warning(!("wrapperClassName"in it),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!it.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var hi={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Ni(it,dt){var Et,Dt,gn,Mn=it.prefixCls,In=it.open,nn=it.placement,Ue=it.inline,kr=it.push,Br=it.forceRender,ei=it.autoFocus,ti=it.keyboard,Jr=it.classNames,Wr=it.rootClassName,Ri=it.rootStyle,ri=it.zIndex,wr=it.className,rr=it.id,Ir=it.style,Nr=it.motion,$r=it.width,Yt=it.height,Sr=it.children,fr=it.mask,pi=it.maskClosable,Pi=it.maskMotion,Ai=it.maskClassName,Ji=it.maskStyle,To=it.afterOpenChange,_o=it.onClose,bo=it.onMouseEnter,Vo=it.onMouseOver,Nt=it.onMouseLeave,no=it.onClick,Fo=it.onKeyDown,Xo=it.onKeyUp,ho=it.styles,Zo=it.drawerRender,ko=A.useRef(),hs=A.useRef(),fi=A.useRef();A.useImperativeHandle(dt,function(){return ko.current});var $i=function(bs){var jr=bs.keyCode,Zs=bs.shiftKey;switch(jr){case rn.TAB:{if(jr===rn.TAB){if(!Zs&&document.activeElement===fi.current){var Jo;(Jo=hs.current)===null||Jo===void 0||Jo.focus({preventScroll:!0})}else if(Zs&&document.activeElement===hs.current){var Qo;(Qo=fi.current)===null||Qo===void 0||Qo.focus({preventScroll:!0})}}break}case rn.ESC:{_o&&ti&&(bs.stopPropagation(),_o(bs));break}}};A.useEffect(function(){if(In&&ei){var go;(go=ko.current)===null||go===void 0||go.focus({preventScroll:!0})}},[In]);var Rr=A.useState(!1),Yr=c(Rr,2),ui=Yr[0],ji=Yr[1],Wn=A.useContext(tr),mo;typeof kr=="boolean"?mo=kr?{}:{distance:0}:mo=kr||{};var ao=(Et=(Dt=(gn=mo)===null||gn===void 0?void 0:gn.distance)!==null&&Dt!==void 0?Dt:Wn==null?void 0:Wn.pushDistance)!==null&&Et!==void 0?Et:180,fo=A.useMemo(function(){return{pushDistance:ao,push:function(){ji(!0)},pull:function(){ji(!1)}}},[ao]);A.useEffect(function(){if(In){var go;Wn==null||(go=Wn.push)===null||go===void 0||go.call(Wn)}else{var bs;Wn==null||(bs=Wn.pull)===null||bs===void 0||bs.call(Wn)}},[In]),A.useEffect(function(){return function(){var go;Wn==null||(go=Wn.pull)===null||go===void 0||go.call(Wn)}},[]);var ns=fr&&A.createElement(ye.Z,ii({key:"mask"},Pi,{visible:In}),function(go,bs){var jr=go.className,Zs=go.style;return A.createElement("div",{className:Kt()("".concat(Mn,"-mask"),jr,Jr==null?void 0:Jr.mask,Ai),style:u(u(u({},Zs),Ji),ho==null?void 0:ho.mask),onClick:pi&&In?_o:void 0,ref:bs})}),fs=typeof Nr=="function"?Nr(nn):Nr,Nn={};if(ui&&ao)switch(nn){case"top":Nn.transform="translateY(".concat(ao,"px)");break;case"bottom":Nn.transform="translateY(".concat(-ao,"px)");break;case"left":Nn.transform="translateX(".concat(ao,"px)");break;default:Nn.transform="translateX(".concat(-ao,"px)");break}nn==="left"||nn==="right"?Nn.width=eo($r):Nn.height=eo(Yt);var So={onMouseEnter:bo,onMouseOver:Vo,onMouseLeave:Nt,onClick:no,onKeyDown:Fo,onKeyUp:Xo},No=A.createElement(ye.Z,ii({key:"panel"},fs,{visible:In,forceRender:Br,onVisibleChanged:function(bs){To==null||To(bs)},removeOnLeave:!1,leavedClassName:"".concat(Mn,"-content-wrapper-hidden")}),function(go,bs){var jr=go.className,Zs=go.style,Jo=A.createElement(Gi,ii({id:rr,containerRef:bs,prefixCls:Mn,className:Kt()(wr,Jr==null?void 0:Jr.content),style:u(u({},Ir),ho==null?void 0:ho.content)},vn(it,{aria:!0}),So),Sr);return A.createElement("div",ii({className:Kt()("".concat(Mn,"-content-wrapper"),Jr==null?void 0:Jr.wrapper,jr),style:u(u(u({},Nn),Zs),ho==null?void 0:ho.wrapper)},vn(it,{data:!0})),Zo?Zo(Jo):Jo)}),Es=u({},Ri);return ri&&(Es.zIndex=ri),A.createElement(tr.Provider,{value:fo},A.createElement("div",{className:Kt()(Mn,"".concat(Mn,"-").concat(nn),Wr,E(E({},"".concat(Mn,"-open"),In),"".concat(Mn,"-inline"),Ue)),style:Es,tabIndex:-1,ref:ko,onKeyDown:$i},ns,A.createElement("div",{tabIndex:0,ref:hs,style:hi,"aria-hidden":"true","data-sentinel":"start"}),No,A.createElement("div",{tabIndex:0,ref:fi,style:hi,"aria-hidden":"true","data-sentinel":"end"})))}var tn=A.forwardRef(Ni),_i=tn,ut=function(dt){var Et=dt.open,Dt=Et===void 0?!1:Et,gn=dt.prefixCls,Mn=gn===void 0?"rc-drawer":gn,In=dt.placement,nn=In===void 0?"right":In,Ue=dt.autoFocus,kr=Ue===void 0?!0:Ue,Br=dt.keyboard,ei=Br===void 0?!0:Br,ti=dt.width,Jr=ti===void 0?378:ti,Wr=dt.mask,Ri=Wr===void 0?!0:Wr,ri=dt.maskClosable,wr=ri===void 0?!0:ri,rr=dt.getContainer,Ir=dt.forceRender,Nr=dt.afterOpenChange,$r=dt.destroyOnClose,Yt=dt.onMouseEnter,Sr=dt.onMouseOver,fr=dt.onMouseLeave,pi=dt.onClick,Pi=dt.onKeyDown,Ai=dt.onKeyUp,Ji=dt.panelRef,To=A.useState(!1),_o=c(To,2),bo=_o[0],Vo=_o[1],Nt=A.useState(!1),no=c(Nt,2),Fo=no[0],Xo=no[1];xt(function(){Xo(!0)},[]);var ho=Fo?Dt:!1,Zo=A.useRef(),ko=A.useRef();xt(function(){ho&&(ko.current=document.activeElement)},[ho]);var hs=function(ui){var ji;if(Vo(ui),Nr==null||Nr(ui),!ui&&ko.current&&!((ji=Zo.current)!==null&&ji!==void 0&&ji.contains(ko.current))){var Wn;(Wn=ko.current)===null||Wn===void 0||Wn.focus({preventScroll:!0})}},fi=A.useMemo(function(){return{panel:Ji}},[Ji]);if(!Ir&&!bo&&!ho&&$r)return null;var $i={onMouseEnter:Yt,onMouseOver:Sr,onMouseLeave:fr,onClick:pi,onKeyDown:Pi,onKeyUp:Ai},Rr=u(u({},dt),{},{open:ho,prefixCls:Mn,placement:nn,autoFocus:kr,keyboard:ei,width:Jr,mask:Ri,maskClosable:wr,inline:rr===!1,afterOpenChange:hs,ref:Zo},$i);return A.createElement(Pr.Provider,{value:fi},A.createElement(On,{open:ho||Ir||bo,autoDestroy:!1,getContainer:rr,autoLock:Ri&&(ho||bo)},A.createElement(_i,Rr)))},Ge=ut,an=Ge},26819:function(Ie,Z){"use strict";var b;var B=typeof Symbol=="function"&&Symbol.for,Y=B?Symbol.for("react.element"):60103,s=B?Symbol.for("react.portal"):60106,E=B?Symbol.for("react.fragment"):60107,I=B?Symbol.for("react.strict_mode"):60108,u=B?Symbol.for("react.profiler"):60114,d=B?Symbol.for("react.provider"):60109,g=B?Symbol.for("react.context"):60110,y=B?Symbol.for("react.async_mode"):60111,S=B?Symbol.for("react.concurrent_mode"):60111,v=B?Symbol.for("react.forward_ref"):60112,c=B?Symbol.for("react.suspense"):60113,h=B?Symbol.for("react.suspense_list"):60120,m=B?Symbol.for("react.memo"):60115,x=B?Symbol.for("react.lazy"):60116,T=B?Symbol.for("react.block"):60121,_=B?Symbol.for("react.fundamental"):60117,R=B?Symbol.for("react.responder"):60118,A=B?Symbol.for("react.scope"):60119;function N(M){if(typeof M=="object"&&M!==null){var F=M.$$typeof;switch(F){case Y:switch(M=M.type,M){case y:case S:case E:case u:case I:case c:return M;default:switch(M=M&&M.$$typeof,M){case g:case v:case x:case m:case d:return M;default:return F}}case s:return F}}}function L(M){return N(M)===S}b=y,b=S,b=g,b=d,b=Y,b=v,b=E,b=x,b=m,b=s,b=u,b=I,b=c,b=function(M){return L(M)||N(M)===y},b=L,b=function(M){return N(M)===g},b=function(M){return N(M)===d},b=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===Y},b=function(M){return N(M)===v},b=function(M){return N(M)===E},b=function(M){return N(M)===x},Z.isMemo=function(M){return N(M)===m},b=function(M){return N(M)===s},b=function(M){return N(M)===u},b=function(M){return N(M)===I},b=function(M){return N(M)===c},b=function(M){return typeof M=="string"||typeof M=="function"||M===E||M===S||M===u||M===I||M===c||M===h||typeof M=="object"&&M!==null&&(M.$$typeof===x||M.$$typeof===m||M.$$typeof===d||M.$$typeof===g||M.$$typeof===v||M.$$typeof===_||M.$$typeof===R||M.$$typeof===A||M.$$typeof===T)},b=N},18459:function(Ie,Z,b){"use strict";Ie.exports=b(26819)},16651:function(Ie,Z){"use strict";var b;var B=Symbol.for("react.element"),Y=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),d=Symbol.for("react.context"),g=Symbol.for("react.server_context"),y=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),x;x=Symbol.for("react.module.reference");function T(_){if(typeof _=="object"&&_!==null){var R=_.$$typeof;switch(R){case B:switch(_=_.type,_){case s:case I:case E:case S:case v:return _;default:switch(_=_&&_.$$typeof,_){case g:case d:case y:case h:case c:case u:return _;default:return R}}case Y:return R}}}b=d,b=u,b=B,b=y,b=s,b=h,b=c,b=Y,b=I,b=E,b=S,b=v,b=function(){return!1},b=function(){return!1},b=function(_){return T(_)===d},b=function(_){return T(_)===u},b=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===B},b=function(_){return T(_)===y},b=function(_){return T(_)===s},b=function(_){return T(_)===h},b=function(_){return T(_)===c},b=function(_){return T(_)===Y},b=function(_){return T(_)===I},b=function(_){return T(_)===E},b=function(_){return T(_)===S},b=function(_){return T(_)===v},b=function(_){return typeof _=="string"||typeof _=="function"||_===s||_===I||_===E||_===S||_===v||_===m||typeof _=="object"&&_!==null&&(_.$$typeof===h||_.$$typeof===c||_.$$typeof===u||_.$$typeof===d||_.$$typeof===y||_.$$typeof===x||_.getModuleId!==void 0)},b=T},33993:function(Ie,Z,b){"use strict";b(16651)},64909:function(Ie,Z,b){"use strict";b.d(Z,{Z:function(){return _i}});var B=b(87462),Y=b(1413),s=b(4942),E=b(97685),I=b(71002),u=b(45987),d=b(94184),g=b.n(d),y=/margin|padding|width|height|max|min|offset/,S={left:!0,top:!0},v={cssFloat:1,styleFloat:1,float:1};function c(ut){return ut.nodeType===1?ut.ownerDocument.defaultView.getComputedStyle(ut,null):{}}function h(ut,Ge,an){if(Ge=Ge.toLowerCase(),an==="auto"){if(Ge==="height")return ut.offsetHeight;if(Ge==="width")return ut.offsetWidth}return Ge in S||(S[Ge]=y.test(Ge)),S[Ge]?parseFloat(an)||0:an}function m(ut,Ge){var an=arguments.length,it=c(ut);return Ge=v[Ge]?"cssFloat"in ut.style?"cssFloat":"styleFloat":Ge,an===1?it:h(ut,Ge,it[Ge]||ut.style[Ge])}function x(ut,Ge,an){var it=arguments.length;if(Ge=v[Ge]?"cssFloat"in ut.style?"cssFloat":"styleFloat":Ge,it===3)return typeof an=="number"&&y.test(Ge)&&(an="".concat(an,"px")),ut.style[Ge]=an,an;for(var dt in Ge)Ge.hasOwnProperty(dt)&&x(ut,dt,Ge[dt]);return c(ut)}function T(ut){return ut===document.body?document.documentElement.clientWidth:ut.offsetWidth}function _(ut){return ut===document.body?window.innerHeight||document.documentElement.clientHeight:ut.offsetHeight}function R(){var ut=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),Ge=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:ut,height:Ge}}function A(){var ut=document.documentElement.clientWidth,Ge=window.innerHeight||document.documentElement.clientHeight;return{width:ut,height:Ge}}function N(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function L(ut){var Ge=ut.getBoundingClientRect(),an=document.documentElement;return{left:Ge.left+(window.pageXOffset||an.scrollLeft)-(an.clientLeft||document.body.clientLeft||0),top:Ge.top+(window.pageYOffset||an.scrollTop)-(an.clientTop||document.body.clientTop||0)}}var M=b(67294),F=b.t(M,2);function H(ut){var Ge=M.useRef();Ge.current=ut;var an=M.useCallback(function(){for(var it,dt=arguments.length,Et=new Array(dt),Dt=0;Dt<dt;Dt++)Et[Dt]=arguments[Dt];return(it=Ge.current)===null||it===void 0?void 0:it.call.apply(it,[Ge].concat(Et))},[]);return an}function P(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var V=P()?M.useLayoutEffect:M.useEffect,G=function(Ge,an){var it=M.useRef(!0);V(function(){return Ge(it.current)},an),V(function(){return it.current=!1,function(){it.current=!0}},[])},Q=function(Ge,an){G(function(it){if(!it)return Ge()},an)},ne=null;function ue(ut){var Ge=M.useRef(!1),an=M.useState(ut),it=(0,E.Z)(an,2),dt=it[0],Et=it[1];M.useEffect(function(){return Ge.current=!1,function(){Ge.current=!0}},[]);function Dt(gn,Mn){Mn&&Ge.current||Et(gn)}return[dt,Dt]}function ae(ut){return ut!==void 0}function he(ut,Ge){var an=Ge||{},it=an.defaultValue,dt=an.value,Et=an.onChange,Dt=an.postState,gn=ue(function(){return ae(dt)?dt:ae(it)?typeof it=="function"?it():it:typeof ut=="function"?ut():ut}),Mn=(0,E.Z)(gn,2),In=Mn[0],nn=Mn[1],Ue=dt!==void 0?dt:In,kr=Dt?Dt(Ue):Ue,Br=H(Et),ei=ue([Ue]),ti=(0,E.Z)(ei,2),Jr=ti[0],Wr=ti[1];Q(function(){var ri=Jr[0];In!==ri&&Br(In,ri)},[Jr]),Q(function(){ae(dt)||nn(dt)},[dt]);var Ri=H(function(ri,wr){nn(ri,wr),Wr([Ue],wr)});return[kr,Ri]}var ce=b(2788),we=M.createContext({});function me(ut,Ge){if(!ut)return!1;if(ut.contains)return ut.contains(Ge);for(var an=Ge;an;){if(an===ut)return!0;an=an.parentNode}return!1}function Le(){var ut=(0,Y.Z)({},F);return ut.useId}var ee=0;function se(){}function le(ut){var Ge=M.useState("ssr-id"),an=(0,E.Z)(Ge,2),it=an[0],dt=an[1],Et=Le(),Dt=Et==null?void 0:Et();return M.useEffect(function(){if(!Et){var gn=ee;ee+=1,dt("rc_unique_".concat(gn))}},[]),ut||Dt||it}var ke={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Ge){var an=Ge.keyCode;if(Ge.altKey&&!Ge.ctrlKey||Ge.metaKey||an>=ke.F1&&an<=ke.F12)return!1;switch(an){case ke.ALT:case ke.CAPS_LOCK:case ke.CONTEXT_MENU:case ke.CTRL:case ke.DOWN:case ke.END:case ke.ESC:case ke.HOME:case ke.INSERT:case ke.LEFT:case ke.MAC_FF_META:case ke.META:case ke.NUMLOCK:case ke.NUM_CENTER:case ke.PAGE_DOWN:case ke.PAGE_UP:case ke.PAUSE:case ke.PRINT_SCREEN:case ke.RIGHT:case ke.SHIFT:case ke.UP:case ke.WIN_KEY:case ke.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Ge){if(Ge>=ke.ZERO&&Ge<=ke.NINE||Ge>=ke.NUM_ZERO&&Ge<=ke.NUM_MULTIPLY||Ge>=ke.A&&Ge<=ke.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Ge===0)return!0;switch(Ge){case ke.SPACE:case ke.QUESTION_MARK:case ke.NUM_PLUS:case ke.NUM_MINUS:case ke.NUM_PERIOD:case ke.NUM_DIVISION:case ke.SEMICOLON:case ke.DASH:case ke.EQUALS:case ke.COMMA:case ke.PERIOD:case ke.SLASH:case ke.APOSTROPHE:case ke.SINGLE_QUOTE:case ke.OPEN_SQUARE_BRACKET:case ke.BACKSLASH:case ke.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},De=ke,Be=`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`,He=`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`,Fe="".concat(Be," ").concat(He).split(/[\s\n]+/),Je="aria-",Me="data-";function lt(ut,Ge){return ut.indexOf(Ge)===0}function Re(ut){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,an;Ge===!1?an={aria:!0,data:!0,attr:!0}:Ge===!0?an={aria:!0}:an=(0,Y.Z)({},Ge);var it={};return Object.keys(ut).forEach(function(dt){(an.aria&&(dt==="role"||lt(dt,Je))||an.data&&lt(dt,Me)||an.attr&&Fe.includes(dt))&&(it[dt]=ut[dt])}),it}function Oe(ut,Ge,an){var it=Ge;return!it&&an&&(it="".concat(ut,"-").concat(an)),it}function pe(ut,Ge){var an=ut["page".concat(Ge?"Y":"X","Offset")],it="scroll".concat(Ge?"Top":"Left");if(typeof an!="number"){var dt=ut.document;an=dt.documentElement[it],typeof an!="number"&&(an=dt.body[it])}return an}function fe(ut){var Ge=ut.getBoundingClientRect(),an={left:Ge.left,top:Ge.top},it=ut.ownerDocument,dt=it.defaultView||it.parentWindow;return an.left+=pe(dt),an.top+=pe(dt,!0),an}var z=b(62874),J=b(59864);function be(ut,Ge,an){var it=M.useRef({});return(!("value"in it.current)||an(it.current.condition,Ge))&&(it.current.value=ut(),it.current.condition=Ge),it.current.value}function _e(ut,Ge){typeof ut=="function"?ut(Ge):(0,I.Z)(ut)==="object"&&ut&&"current"in ut&&(ut.current=Ge)}function oe(){for(var ut=arguments.length,Ge=new Array(ut),an=0;an<ut;an++)Ge[an]=arguments[an];var it=Ge.filter(function(dt){return dt});return it.length<=1?it[0]:function(dt){Ge.forEach(function(Et){_e(Et,dt)})}}function ie(){for(var ut=arguments.length,Ge=new Array(ut),an=0;an<ut;an++)Ge[an]=arguments[an];return be(function(){return oe.apply(void 0,Ge)},Ge,function(it,dt){return it.length===dt.length&&it.every(function(Et,Dt){return Et===dt[Dt]})})}function ve(ut){var Ge,an,it=isMemo(ut)?ut.type.type:ut.type;return!(typeof it=="function"&&!((Ge=it.prototype)!==null&&Ge!==void 0&&Ge.render)||typeof ut=="function"&&!((an=ut.prototype)!==null&&an!==void 0&&an.render))}var Ne=M.memo(function(ut){var Ge=ut.children;return Ge},function(ut,Ge){var an=Ge.shouldUpdate;return!an}),ze={width:0,height:0,overflow:"hidden",outline:"none"},Ve={outline:"none"},yt=M.forwardRef(function(ut,Ge){var an=ut.prefixCls,it=ut.className,dt=ut.style,Et=ut.title,Dt=ut.ariaId,gn=ut.footer,Mn=ut.closable,In=ut.closeIcon,nn=ut.onClose,Ue=ut.children,kr=ut.bodyStyle,Br=ut.bodyProps,ei=ut.modalRender,ti=ut.onMouseDown,Jr=ut.onMouseUp,Wr=ut.holderRef,Ri=ut.visible,ri=ut.forceRender,wr=ut.width,rr=ut.height,Ir=ut.classNames,Nr=ut.styles,$r=M.useContext(we),Yt=$r.panel,Sr=ie(Wr,Yt),fr=(0,M.useRef)(),pi=(0,M.useRef)();M.useImperativeHandle(Ge,function(){return{focus:function(){var Fo;(Fo=fr.current)===null||Fo===void 0||Fo.focus({preventScroll:!0})},changeActive:function(Fo){var Xo=document,ho=Xo.activeElement;Fo&&ho===pi.current?fr.current.focus({preventScroll:!0}):!Fo&&ho===fr.current&&pi.current.focus({preventScroll:!0})}}});var Pi={};wr!==void 0&&(Pi.width=wr),rr!==void 0&&(Pi.height=rr);var Ai=gn?M.createElement("div",{className:g()("".concat(an,"-footer"),Ir==null?void 0:Ir.footer),style:(0,Y.Z)({},Nr==null?void 0:Nr.footer)},gn):null,Ji=Et?M.createElement("div",{className:g()("".concat(an,"-header"),Ir==null?void 0:Ir.header),style:(0,Y.Z)({},Nr==null?void 0:Nr.header)},M.createElement("div",{className:"".concat(an,"-title"),id:Dt},Et)):null,To=(0,M.useMemo)(function(){return(0,I.Z)(Mn)==="object"&&Mn!==null?Mn:Mn?{closeIcon:In!=null?In:M.createElement("span",{className:"".concat(an,"-close-x")})}:{}},[Mn,In,an]),_o=Re(To,!0),bo=(0,I.Z)(Mn)==="object"&&Mn.disabled,Vo=Mn?M.createElement("button",(0,B.Z)({type:"button",onClick:nn,"aria-label":"Close"},_o,{className:"".concat(an,"-close"),disabled:bo}),To.closeIcon):null,Nt=M.createElement("div",{className:g()("".concat(an,"-content"),Ir==null?void 0:Ir.content),style:Nr==null?void 0:Nr.content},Vo,Ji,M.createElement("div",(0,B.Z)({className:g()("".concat(an,"-body"),Ir==null?void 0:Ir.body),style:(0,Y.Z)((0,Y.Z)({},kr),Nr==null?void 0:Nr.body)},Br),Ue),Ai);return M.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":Et?Dt:null,"aria-modal":"true",ref:Sr,style:(0,Y.Z)((0,Y.Z)({},dt),Pi),className:g()(an,it),onMouseDown:ti,onMouseUp:Jr},M.createElement("div",{ref:fr,tabIndex:0,style:Ve},M.createElement(Ne,{shouldUpdate:Ri||ri},ei?ei(Nt):Nt)),M.createElement("div",{tabIndex:0,ref:pi,style:ze}))}),ct=yt,St=M.forwardRef(function(ut,Ge){var an=ut.prefixCls,it=ut.title,dt=ut.style,Et=ut.className,Dt=ut.visible,gn=ut.forceRender,Mn=ut.destroyOnClose,In=ut.motionName,nn=ut.ariaId,Ue=ut.onVisibleChanged,kr=ut.mousePosition,Br=(0,M.useRef)(),ei=M.useState(),ti=(0,E.Z)(ei,2),Jr=ti[0],Wr=ti[1],Ri={};Jr&&(Ri.transformOrigin=Jr);function ri(){var wr=fe(Br.current);Wr(kr&&(kr.x||kr.y)?"".concat(kr.x-wr.left,"px ").concat(kr.y-wr.top,"px"):"")}return M.createElement(z.Z,{visible:Dt,onVisibleChanged:Ue,onAppearPrepare:ri,onEnterPrepare:ri,forceRender:gn,motionName:In,removeOnLeave:Mn,ref:Br},function(wr,rr){var Ir=wr.className,Nr=wr.style;return M.createElement(ct,(0,B.Z)({},ut,{ref:Ge,title:it,ariaId:nn,prefixCls:an,holderRef:rr,style:(0,Y.Z)((0,Y.Z)((0,Y.Z)({},Nr),dt),Ri),className:g()(Et,Ir)}))})});St.displayName="Content";var _t=St,At=function(Ge){var an=Ge.prefixCls,it=Ge.style,dt=Ge.visible,Et=Ge.maskProps,Dt=Ge.motionName,gn=Ge.className;return M.createElement(z.Z,{key:"mask",visible:dt,motionName:Dt,leavedClassName:"".concat(an,"-mask-hidden")},function(Mn,In){var nn=Mn.className,Ue=Mn.style;return M.createElement("div",(0,B.Z)({ref:In,style:(0,Y.Z)((0,Y.Z)({},Ue),it),className:g()("".concat(an,"-mask"),nn,gn)},Et))})},ht=At,wt={};function jt(ut,Ge){}function st(ut,Ge){}function ge(){wt={}}function on(ut,Ge,an){!Ge&&!wt[an]&&(ut(!1,an),wt[an]=!0)}function mn(ut,Ge){on(jt,ut,Ge)}function Mt(ut,Ge){on(st,ut,Ge)}var On=null,Vn=function(Ge){var an=Ge.prefixCls,it=an===void 0?"rc-dialog":an,dt=Ge.zIndex,Et=Ge.visible,Dt=Et===void 0?!1:Et,gn=Ge.keyboard,Mn=gn===void 0?!0:gn,In=Ge.focusTriggerAfterClose,nn=In===void 0?!0:In,Ue=Ge.wrapStyle,kr=Ge.wrapClassName,Br=Ge.wrapProps,ei=Ge.onClose,ti=Ge.afterOpenChange,Jr=Ge.afterClose,Wr=Ge.transitionName,Ri=Ge.animation,ri=Ge.closable,wr=ri===void 0?!0:ri,rr=Ge.mask,Ir=rr===void 0?!0:rr,Nr=Ge.maskTransitionName,$r=Ge.maskAnimation,Yt=Ge.maskClosable,Sr=Yt===void 0?!0:Yt,fr=Ge.maskStyle,pi=Ge.maskProps,Pi=Ge.rootClassName,Ai=Ge.classNames,Ji=Ge.styles,To=(0,M.useRef)(),_o=(0,M.useRef)(),bo=(0,M.useRef)(),Vo=M.useState(Dt),Nt=(0,E.Z)(Vo,2),no=Nt[0],Fo=Nt[1],Xo=le();function ho(){me(_o.current,document.activeElement)||(To.current=document.activeElement)}function Zo(){if(!me(_o.current,document.activeElement)){var mo;(mo=bo.current)===null||mo===void 0||mo.focus()}}function ko(mo){if(mo)Zo();else{if(Fo(!1),Ir&&To.current&&nn){try{To.current.focus({preventScroll:!0})}catch(ao){}To.current=null}no&&(Jr==null||Jr())}ti==null||ti(mo)}function hs(mo){ei==null||ei(mo)}var fi=(0,M.useRef)(!1),$i=(0,M.useRef)(),Rr=function(){clearTimeout($i.current),fi.current=!0},Yr=function(){$i.current=setTimeout(function(){fi.current=!1})},ui=null;Sr&&(ui=function(ao){fi.current?fi.current=!1:_o.current===ao.target&&hs(ao)});function ji(mo){if(Mn&&mo.keyCode===De.ESC){mo.stopPropagation(),hs(mo);return}Dt&&mo.keyCode===De.TAB&&bo.current.changeActive(!mo.shiftKey)}(0,M.useEffect)(function(){Dt&&(Fo(!0),ho())},[Dt]),(0,M.useEffect)(function(){return function(){clearTimeout($i.current)}},[]);var Wn=(0,Y.Z)((0,Y.Z)((0,Y.Z)({zIndex:dt},Ue),Ji==null?void 0:Ji.wrapper),{},{display:no?null:"none"});return M.createElement("div",(0,B.Z)({className:g()("".concat(it,"-root"),Pi)},Re(Ge,{data:!0})),M.createElement(ht,{prefixCls:it,visible:Ir&&Dt,motionName:Oe(it,Nr,$r),style:(0,Y.Z)((0,Y.Z)({zIndex:dt},fr),Ji==null?void 0:Ji.mask),maskProps:pi,className:Ai==null?void 0:Ai.mask}),M.createElement("div",(0,B.Z)({tabIndex:-1,onKeyDown:ji,className:g()("".concat(it,"-wrap"),kr,Ai==null?void 0:Ai.wrapper),ref:_o,onClick:ui,style:Wn},Br),M.createElement(_t,(0,B.Z)({},Ge,{onMouseDown:Rr,onMouseUp:Yr,ref:bo,closable:wr,ariaId:Xo,prefixCls:it,visible:Dt&&no,onClose:hs,onVisibleChanged:ko,motionName:Oe(it,Wr,Ri)}))))},Fn=Vn,Gn=function(Ge){var an=Ge.visible,it=Ge.getContainer,dt=Ge.forceRender,Et=Ge.destroyOnClose,Dt=Et===void 0?!1:Et,gn=Ge.afterClose,Mn=Ge.panelRef,In=M.useState(an),nn=(0,E.Z)(In,2),Ue=nn[0],kr=nn[1],Br=M.useMemo(function(){return{panel:Mn}},[Mn]);return M.useEffect(function(){an&&kr(!0)},[an]),!dt&&Dt&&!Ue?null:M.createElement(we.Provider,{value:Br},M.createElement(ce.Z,{open:an||dt||Ue,autoDestroy:!1,getContainer:it,autoLock:an||Ue},M.createElement(Fn,(0,B.Z)({},Ge,{destroyOnClose:Dt,afterClose:function(){gn==null||gn(),kr(!1)}}))))};Gn.displayName="Dialog";var sn=Gn,xt=sn,gr=b(73935);function Pr(ut,Ge,an,it){var dt=gr.unstable_batchedUpdates?function(Dt){gr.unstable_batchedUpdates(an,Dt)}:an;return ut!=null&&ut.addEventListener&&ut.addEventListener(Ge,dt,it),{remove:function(){ut!=null&&ut.removeEventListener&&ut.removeEventListener(Ge,dt,it)}}}var tr={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Ge){var an=Ge.keyCode;if(Ge.altKey&&!Ge.ctrlKey||Ge.metaKey||an>=tr.F1&&an<=tr.F12)return!1;switch(an){case tr.ALT:case tr.CAPS_LOCK:case tr.CONTEXT_MENU:case tr.CTRL:case tr.DOWN:case tr.END:case tr.ESC:case tr.HOME:case tr.INSERT:case tr.LEFT:case tr.MAC_FF_META:case tr.META:case tr.NUMLOCK:case tr.NUM_CENTER:case tr.PAGE_DOWN:case tr.PAGE_UP:case tr.PAUSE:case tr.PRINT_SCREEN:case tr.RIGHT:case tr.SHIFT:case tr.UP:case tr.WIN_KEY:case tr.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Ge){if(Ge>=tr.ZERO&&Ge<=tr.NINE||Ge>=tr.NUM_ZERO&&Ge<=tr.NUM_MULTIPLY||Ge>=tr.A&&Ge<=tr.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Ge===0)return!0;switch(Ge){case tr.SPACE:case tr.QUESTION_MARK:case tr.NUM_PLUS:case tr.NUM_MINUS:case tr.NUM_PERIOD:case tr.NUM_DIVISION:case tr.SEMICOLON:case tr.DASH:case tr.EQUALS:case tr.COMMA:case tr.PERIOD:case tr.SLASH:case tr.APOSTROPHE:case tr.SINGLE_QUOTE:case tr.OPEN_SQUARE_BRACKET:case tr.BACKSLASH:case tr.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ii=tr,Ar=M.createContext(null),Kt=function(Ge){var an=Ge.visible,it=Ge.maskTransitionName,dt=Ge.getContainer,Et=Ge.prefixCls,Dt=Ge.rootClassName,gn=Ge.icons,Mn=Ge.countRender,In=Ge.showSwitch,nn=Ge.showProgress,Ue=Ge.current,kr=Ge.transform,Br=Ge.count,ei=Ge.scale,ti=Ge.minScale,Jr=Ge.maxScale,Wr=Ge.closeIcon,Ri=Ge.onActive,ri=Ge.onClose,wr=Ge.onZoomIn,rr=Ge.onZoomOut,Ir=Ge.onRotateRight,Nr=Ge.onRotateLeft,$r=Ge.onFlipX,Yt=Ge.onFlipY,Sr=Ge.onReset,fr=Ge.toolbarRender,pi=Ge.zIndex,Pi=Ge.image,Ai=(0,M.useContext)(Ar),Ji=gn.rotateLeft,To=gn.rotateRight,_o=gn.zoomIn,bo=gn.zoomOut,Vo=gn.close,Nt=gn.left,no=gn.right,Fo=gn.flipX,Xo=gn.flipY,ho="".concat(Et,"-operations-operation");M.useEffect(function(){var ao=function(ns){ns.keyCode===ii.ESC&&ri()};return an&&window.addEventListener("keydown",ao),function(){window.removeEventListener("keydown",ao)}},[an]);var Zo=function(fo,ns){fo.preventDefault(),fo.stopPropagation(),Ri(ns)},ko=M.useCallback(function(ao){var fo=ao.type,ns=ao.disabled,fs=ao.onClick,Nn=ao.icon;return M.createElement("div",{key:fo,className:g()(ho,"".concat(Et,"-operations-operation-").concat(fo),(0,s.Z)({},"".concat(Et,"-operations-operation-disabled"),!!ns)),onClick:fs},Nn)},[ho,Et]),hs=In?ko({icon:Nt,onClick:function(fo){return Zo(fo,-1)},type:"prev",disabled:Ue===0}):void 0,fi=In?ko({icon:no,onClick:function(fo){return Zo(fo,1)},type:"next",disabled:Ue===Br-1}):void 0,$i=ko({icon:Xo,onClick:Yt,type:"flipY"}),Rr=ko({icon:Fo,onClick:$r,type:"flipX"}),Yr=ko({icon:Ji,onClick:Nr,type:"rotateLeft"}),ui=ko({icon:To,onClick:Ir,type:"rotateRight"}),ji=ko({icon:bo,onClick:rr,type:"zoomOut",disabled:ei<=ti}),Wn=ko({icon:_o,onClick:wr,type:"zoomIn",disabled:ei===Jr}),mo=M.createElement("div",{className:"".concat(Et,"-operations")},$i,Rr,Yr,ui,ji,Wn);return M.createElement(z.Z,{visible:an,motionName:it},function(ao){var fo=ao.className,ns=ao.style;return M.createElement(ce.Z,{open:!0,getContainer:dt!=null?dt:document.body},M.createElement("div",{className:g()("".concat(Et,"-operations-wrapper"),fo,Dt),style:(0,Y.Z)((0,Y.Z)({},ns),{},{zIndex:pi})},Wr===null?null:M.createElement("button",{className:"".concat(Et,"-close"),onClick:ri},Wr||Vo),In&&M.createElement(M.Fragment,null,M.createElement("div",{className:g()("".concat(Et,"-switch-left"),(0,s.Z)({},"".concat(Et,"-switch-left-disabled"),Ue===0)),onClick:function(Nn){return Zo(Nn,-1)}},Nt),M.createElement("div",{className:g()("".concat(Et,"-switch-right"),(0,s.Z)({},"".concat(Et,"-switch-right-disabled"),Ue===Br-1)),onClick:function(Nn){return Zo(Nn,1)}},no)),M.createElement("div",{className:"".concat(Et,"-footer")},nn&&M.createElement("div",{className:"".concat(Et,"-progress")},Mn?Mn(Ue+1,Br):"".concat(Ue+1," / ").concat(Br)),fr?fr(mo,(0,Y.Z)((0,Y.Z)({icons:{prevIcon:hs,nextIcon:fi,flipYIcon:$i,flipXIcon:Rr,rotateLeftIcon:Yr,rotateRightIcon:ui,zoomOutIcon:ji,zoomInIcon:Wn},actions:{onActive:Ri,onFlipY:Yt,onFlipX:$r,onRotateLeft:Nr,onRotateRight:Ir,onZoomOut:rr,onZoomIn:wr,onReset:Sr,onClose:ri},transform:kr},Ai?{current:Ue,total:Br}:{}),{},{image:Pi})):mo)))})},ye=Kt,Vt={},rn=[],Xn=function(Ge){rn.push(Ge)};function Zn(ut,Ge){if(0)var an}function ir(ut,Ge){if(0)var an}function Dr(){Vt={}}function ai(ut,Ge,an){!Ge&&!Vt[an]&&(ut(!1,an),Vt[an]=!0)}function li(ut,Ge){ai(Zn,ut,Ge)}function Zr(ut,Ge){ai(ir,ut,Ge)}li.preMessage=Xn,li.resetWarned=Dr,li.noteOnce=Zr;var Tn=li;function kn(ut,Ge){var an=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,it=new Set;function dt(Et,Dt){var gn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Mn=it.has(Et);if(Tn(!Mn,"Warning: There may be circular references"),Mn)return!1;if(Et===Dt)return!0;if(an&&gn>1)return!1;it.add(Et);var In=gn+1;if(Array.isArray(Et)){if(!Array.isArray(Dt)||Et.length!==Dt.length)return!1;for(var nn=0;nn<Et.length;nn++)if(!dt(Et[nn],Dt[nn],In))return!1;return!0}if(Et&&Dt&&(0,I.Z)(Et)==="object"&&(0,I.Z)(Dt)==="object"){var Ue=Object.keys(Et);return Ue.length!==Object.keys(Dt).length?!1:Ue.every(function(kr){return dt(Et[kr],Dt[kr],In)})}return!1}return dt(ut,Ge)}var Vr=kn,di=function(Ge){return+setTimeout(Ge,16)},nr=function(Ge){return clearTimeout(Ge)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(di=function(Ge){return window.requestAnimationFrame(Ge)},nr=function(Ge){return window.cancelAnimationFrame(Ge)});var vn=0,Jn=new Map;function bi(ut){Jn.delete(ut)}var gi=function(Ge){var an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;vn+=1;var it=vn;function dt(Et){if(Et===0)bi(it),Ge();else{var Dt=di(function(){dt(Et-1)});Jn.set(it,Dt)}}return dt(an),it};gi.cancel=function(ut){var Ge=Jn.get(ut);return bi(Ge),nr(Ge)};var mi=gi,Lt={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Yn(ut,Ge,an,it){var dt=(0,M.useRef)(null),Et=(0,M.useRef)([]),Dt=(0,M.useState)(Lt),gn=(0,E.Z)(Dt,2),Mn=gn[0],In=gn[1],nn=function(ei){In(Lt),Vr(Lt,Mn)||it==null||it({transform:Lt,action:ei})},Ue=function(ei,ti){dt.current===null&&(Et.current=[],dt.current=mi(function(){In(function(Jr){var Wr=Jr;return Et.current.forEach(function(Ri){Wr=(0,Y.Z)((0,Y.Z)({},Wr),Ri)}),dt.current=null,it==null||it({transform:Wr,action:ti}),Wr})})),Et.current.push((0,Y.Z)((0,Y.Z)({},Mn),ei))},kr=function(ei,ti,Jr,Wr,Ri){var ri=ut.current,wr=ri.width,rr=ri.height,Ir=ri.offsetWidth,Nr=ri.offsetHeight,$r=ri.offsetLeft,Yt=ri.offsetTop,Sr=ei,fr=Mn.scale*ei;fr>an?(fr=an,Sr=an/Mn.scale):fr<Ge&&(fr=Ri?fr:Ge,Sr=fr/Mn.scale);var pi=Jr!=null?Jr:innerWidth/2,Pi=Wr!=null?Wr:innerHeight/2,Ai=Sr-1,Ji=Ai*wr*.5,To=Ai*rr*.5,_o=Ai*(pi-Mn.x-$r),bo=Ai*(Pi-Mn.y-Yt),Vo=Mn.x-(_o-Ji),Nt=Mn.y-(bo-To);if(ei<1&&fr===1){var no=Ir*fr,Fo=Nr*fr,Xo=A(),ho=Xo.width,Zo=Xo.height;no<=ho&&Fo<=Zo&&(Vo=0,Nt=0)}Ue({x:Vo,y:Nt,scale:fr},ti)};return{transform:Mn,resetTransform:nn,updateTransform:Ue,dispatchZoomChange:kr}}function hr(ut,Ge,an,it){var dt=Ge+an,Et=(an-it)/2;if(an>it){if(Ge>0)return(0,s.Z)({},ut,Et);if(Ge<0&&dt<it)return(0,s.Z)({},ut,-Et)}else if(Ge<0||dt>it)return(0,s.Z)({},ut,Ge<0?Et:-Et);return{}}function zi(ut,Ge,an,it){var dt=A(),Et=dt.width,Dt=dt.height,gn=null;return ut<=Et&&Ge<=Dt?gn={x:0,y:0}:(ut>Et||Ge>Dt)&&(gn=(0,Y.Z)((0,Y.Z)({},hr("x",an,ut,Et)),hr("y",it,Ge,Dt))),gn}var bn=1,or=1;function Ei(ut,Ge,an,it,dt,Et,Dt){var gn=dt.rotate,Mn=dt.scale,In=dt.x,nn=dt.y,Ue=(0,M.useState)(!1),kr=(0,E.Z)(Ue,2),Br=kr[0],ei=kr[1],ti=(0,M.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),Jr=function(rr){!Ge||rr.button!==0||(rr.preventDefault(),rr.stopPropagation(),ti.current={diffX:rr.pageX-In,diffY:rr.pageY-nn,transformX:In,transformY:nn},ei(!0))},Wr=function(rr){an&&Br&&Et({x:rr.pageX-ti.current.diffX,y:rr.pageY-ti.current.diffY},"move")},Ri=function(){if(an&&Br){ei(!1);var rr=ti.current,Ir=rr.transformX,Nr=rr.transformY,$r=In!==Ir&&nn!==Nr;if(!$r)return;var Yt=ut.current.offsetWidth*Mn,Sr=ut.current.offsetHeight*Mn,fr=ut.current.getBoundingClientRect(),pi=fr.left,Pi=fr.top,Ai=gn%180!==0,Ji=zi(Ai?Sr:Yt,Ai?Yt:Sr,pi,Pi);Ji&&Et((0,Y.Z)({},Ji),"dragRebound")}},ri=function(rr){if(!(!an||rr.deltaY==0)){var Ir=Math.abs(rr.deltaY/100),Nr=Math.min(Ir,or),$r=bn+Nr*it;rr.deltaY>0&&($r=bn/$r),Dt($r,"wheel",rr.clientX,rr.clientY)}};return(0,M.useEffect)(function(){var wr,rr,Ir,Nr;if(Ge){Ir=Pr(window,"mouseup",Ri,!1),Nr=Pr(window,"mousemove",Wr,!1);try{window.top!==window.self&&(wr=Pr(window.top,"mouseup",Ri,!1),rr=Pr(window.top,"mousemove",Wr,!1))}catch($r){Zn(!1,"[rc-image] ".concat($r))}}return function(){var $r,Yt,Sr,fr;($r=Ir)===null||$r===void 0||$r.remove(),(Yt=Nr)===null||Yt===void 0||Yt.remove(),(Sr=wr)===null||Sr===void 0||Sr.remove(),(fr=rr)===null||fr===void 0||fr.remove()}},[an,Br,In,nn,gn,Ge]),{isMoving:Br,onMouseDown:Jr,onMouseMove:Wr,onMouseUp:Ri,onWheel:ri}}function Co(ut){return new Promise(function(Ge){if(!ut){Ge(!1);return}var an=document.createElement("img");an.onerror=function(){return Ge(!1)},an.onload=function(){return Ge(!0)},an.src=ut})}function ki(ut){var Ge=ut.src,an=ut.isCustomPlaceholder,it=ut.fallback,dt=(0,M.useState)(an?"loading":"normal"),Et=(0,E.Z)(dt,2),Dt=Et[0],gn=Et[1],Mn=(0,M.useRef)(!1),In=Dt==="error";(0,M.useEffect)(function(){var Br=!0;return Co(Ge).then(function(ei){!ei&&Br&&gn("error")}),function(){Br=!1}},[Ge]),(0,M.useEffect)(function(){an&&!Mn.current?gn("loading"):In&&gn("normal")},[Ge]);var nn=function(){gn("normal")},Ue=function(ei){Mn.current=!1,Dt==="loading"&&ei!==null&&ei!==void 0&&ei.complete&&(ei.naturalWidth||ei.naturalHeight)&&(Mn.current=!0,nn())},kr=In&&it?{src:it}:{onLoad:nn,src:Ge};return[Ue,kr,Dt]}function yr(ut,Ge){var an=ut.x-Ge.x,it=ut.y-Ge.y;return Math.hypot(an,it)}function Mr(ut,Ge,an,it){var dt=yr(ut,an),Et=yr(Ge,it);if(dt===0&&Et===0)return[ut.x,ut.y];var Dt=dt/(dt+Et),gn=ut.x+Dt*(Ge.x-ut.x),Mn=ut.y+Dt*(Ge.y-ut.y);return[gn,Mn]}function Fr(ut,Ge,an,it,dt,Et,Dt){var gn=dt.rotate,Mn=dt.scale,In=dt.x,nn=dt.y,Ue=(0,M.useState)(!1),kr=(0,E.Z)(Ue,2),Br=kr[0],ei=kr[1],ti=(0,M.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),Jr=function(rr){ti.current=(0,Y.Z)((0,Y.Z)({},ti.current),rr)},Wr=function(rr){if(Ge){rr.stopPropagation(),ei(!0);var Ir=rr.touches,Nr=Ir===void 0?[]:Ir;Nr.length>1?Jr({point1:{x:Nr[0].clientX,y:Nr[0].clientY},point2:{x:Nr[1].clientX,y:Nr[1].clientY},eventType:"touchZoom"}):Jr({point1:{x:Nr[0].clientX-In,y:Nr[0].clientY-nn},eventType:"move"})}},Ri=function(rr){var Ir=rr.touches,Nr=Ir===void 0?[]:Ir,$r=ti.current,Yt=$r.point1,Sr=$r.point2,fr=$r.eventType;if(Nr.length>1&&fr==="touchZoom"){var pi={x:Nr[0].clientX,y:Nr[0].clientY},Pi={x:Nr[1].clientX,y:Nr[1].clientY},Ai=Mr(Yt,Sr,pi,Pi),Ji=(0,E.Z)(Ai,2),To=Ji[0],_o=Ji[1],bo=yr(pi,Pi)/yr(Yt,Sr);Dt(bo,"touchZoom",To,_o,!0),Jr({point1:pi,point2:Pi,eventType:"touchZoom"})}else fr==="move"&&(Et({x:Nr[0].clientX-Yt.x,y:Nr[0].clientY-Yt.y},"move"),Jr({eventType:"move"}))},ri=function(){if(an){if(Br&&ei(!1),Jr({eventType:"none"}),it>Mn)return Et({x:0,y:0,scale:it},"touchZoom");var rr=ut.current.offsetWidth*Mn,Ir=ut.current.offsetHeight*Mn,Nr=ut.current.getBoundingClientRect(),$r=Nr.left,Yt=Nr.top,Sr=gn%180!==0,fr=zi(Sr?Ir:rr,Sr?rr:Ir,$r,Yt);fr&&Et((0,Y.Z)({},fr),"dragRebound")}};return(0,M.useEffect)(function(){var wr;return an&&Ge&&(wr=Pr(window,"touchmove",function(rr){return rr.preventDefault()},{passive:!1})),function(){var rr;(rr=wr)===null||rr===void 0||rr.remove()}},[an,Ge]),{isTouching:Br,onTouchStart:Wr,onTouchMove:Ri,onTouchEnd:ri}}var Di=["fallback","src","imgRef"],so=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],Gi=function(Ge){var an=Ge.fallback,it=Ge.src,dt=Ge.imgRef,Et=(0,u.Z)(Ge,Di),Dt=ki({src:it,fallback:an}),gn=(0,E.Z)(Dt,2),Mn=gn[0],In=gn[1];return M.createElement("img",(0,B.Z)({ref:function(Ue){dt.current=Ue,Mn(Ue)}},Et,In))},sr=function(Ge){var an=Ge.prefixCls,it=Ge.src,dt=Ge.alt,Et=Ge.imageInfo,Dt=Ge.fallback,gn=Ge.movable,Mn=gn===void 0?!0:gn,In=Ge.onClose,nn=Ge.visible,Ue=Ge.icons,kr=Ue===void 0?{}:Ue,Br=Ge.rootClassName,ei=Ge.closeIcon,ti=Ge.getContainer,Jr=Ge.current,Wr=Jr===void 0?0:Jr,Ri=Ge.count,ri=Ri===void 0?1:Ri,wr=Ge.countRender,rr=Ge.scaleStep,Ir=rr===void 0?.5:rr,Nr=Ge.minScale,$r=Nr===void 0?1:Nr,Yt=Ge.maxScale,Sr=Yt===void 0?50:Yt,fr=Ge.transitionName,pi=fr===void 0?"zoom":fr,Pi=Ge.maskTransitionName,Ai=Pi===void 0?"fade":Pi,Ji=Ge.imageRender,To=Ge.imgCommonProps,_o=Ge.toolbarRender,bo=Ge.onTransform,Vo=Ge.onChange,Nt=(0,u.Z)(Ge,so),no=(0,M.useRef)(),Fo=(0,M.useContext)(Ar),Xo=Fo&&ri>1,ho=Fo&&ri>=1,Zo=(0,M.useState)(!0),ko=(0,E.Z)(Zo,2),hs=ko[0],fi=ko[1],$i=Yn(no,$r,Sr,bo),Rr=$i.transform,Yr=$i.resetTransform,ui=$i.updateTransform,ji=$i.dispatchZoomChange,Wn=Ei(no,Mn,nn,Ir,Rr,ui,ji),mo=Wn.isMoving,ao=Wn.onMouseDown,fo=Wn.onWheel,ns=Fr(no,Mn,nn,$r,Rr,ui,ji),fs=ns.isTouching,Nn=ns.onTouchStart,So=ns.onTouchMove,No=ns.onTouchEnd,Es=Rr.rotate,go=Rr.scale,bs=g()((0,s.Z)({},"".concat(an,"-moving"),mo));(0,M.useEffect)(function(){hs||fi(!0)},[hs]);var jr=function(){Yr("close")},Zs=function(){ji(bn+Ir,"zoomIn")},Jo=function(){ji(bn/(bn+Ir),"zoomOut")},Qo=function(){ui({rotate:Es+90},"rotateRight")},ks=function(){ui({rotate:Es-90},"rotateLeft")},Ma=function(){ui({flipX:!Rr.flipX},"flipX")},tl=function(){ui({flipY:!Rr.flipY},"flipY")},rs=function(){Yr("reset")},Bo=function(Ns){var Da=Wr+Ns;!Number.isInteger(Da)||Da<0||Da>ri-1||(fi(!1),Yr(Ns<0?"prev":"next"),Vo==null||Vo(Da,Wr))},ou=function(Ns){!nn||!Xo||(Ns.keyCode===ii.LEFT?Bo(-1):Ns.keyCode===ii.RIGHT&&Bo(1))},Eu=function(Ns){nn&&(go!==1?ui({x:0,y:0,scale:1},"doubleClick"):ji(bn+Ir,"doubleClick",Ns.clientX,Ns.clientY))};(0,M.useEffect)(function(){var Js=Pr(window,"keydown",ou,!1);return function(){Js.remove()}},[nn,Xo,Wr]);var su=M.createElement(Gi,(0,B.Z)({},To,{width:Ge.width,height:Ge.height,imgRef:no,className:"".concat(an,"-img"),alt:dt,style:{transform:"translate3d(".concat(Rr.x,"px, ").concat(Rr.y,"px, 0) scale3d(").concat(Rr.flipX?"-":"").concat(go,", ").concat(Rr.flipY?"-":"").concat(go,", 1) rotate(").concat(Es,"deg)"),transitionDuration:(!hs||fs)&&"0s"},fallback:Dt,src:it,onWheel:fo,onMouseDown:ao,onDoubleClick:Eu,onTouchStart:Nn,onTouchMove:So,onTouchEnd:No,onTouchCancel:No})),Al=(0,Y.Z)({url:it,alt:dt},Et);return M.createElement(M.Fragment,null,M.createElement(xt,(0,B.Z)({transitionName:pi,maskTransitionName:Ai,closable:!1,keyboard:!0,prefixCls:an,onClose:In,visible:nn,classNames:{wrapper:bs},rootClassName:Br,getContainer:ti},Nt,{afterClose:jr}),M.createElement("div",{className:"".concat(an,"-img-wrapper")},Ji?Ji(su,(0,Y.Z)({transform:Rr,image:Al},Fo?{current:Wr}:{})):su)),M.createElement(ye,{visible:nn,transform:Rr,maskTransitionName:Ai,closeIcon:ei,getContainer:ti,prefixCls:an,rootClassName:Br,icons:kr,countRender:wr,showSwitch:Xo,showProgress:ho,current:Wr,count:ri,scale:go,minScale:$r,maxScale:Sr,toolbarRender:_o,onActive:Bo,onZoomIn:Zs,onZoomOut:Jo,onRotateRight:Qo,onRotateLeft:ks,onFlipX:Ma,onFlipY:tl,onClose:In,onReset:rs,zIndex:Nt.zIndex!==void 0?Nt.zIndex+1:void 0,image:Al}))},ys=sr,Wo=b(74902),Ro=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function hn(ut){var Ge=M.useState({}),an=(0,E.Z)(Ge,2),it=an[0],dt=an[1],Et=M.useCallback(function(gn,Mn){return dt(function(In){return(0,Y.Z)((0,Y.Z)({},In),{},(0,s.Z)({},gn,Mn))}),function(){dt(function(In){var nn=(0,Y.Z)({},In);return delete nn[gn],nn})}},[]),Dt=M.useMemo(function(){return ut?ut.map(function(gn){if(typeof gn=="string")return{data:{src:gn}};var Mn={};return Object.keys(gn).forEach(function(In){["src"].concat((0,Wo.Z)(Ro)).includes(In)&&(Mn[In]=gn[In])}),{data:Mn}}):Object.keys(it).reduce(function(gn,Mn){var In=it[Mn],nn=In.canPreview,Ue=In.data;return nn&&gn.push({data:Ue,id:Mn}),gn},[])},[ut,it]);return[Dt,Et,!!ut]}var us=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],cs=["src"],yo=function(Ge){var an,it=Ge.previewPrefixCls,dt=it===void 0?"rc-image-preview":it,Et=Ge.children,Dt=Ge.icons,gn=Dt===void 0?{}:Dt,Mn=Ge.items,In=Ge.preview,nn=Ge.fallback,Ue=(0,I.Z)(In)==="object"?In:{},kr=Ue.visible,Br=Ue.onVisibleChange,ei=Ue.getContainer,ti=Ue.current,Jr=Ue.movable,Wr=Ue.minScale,Ri=Ue.maxScale,ri=Ue.countRender,wr=Ue.closeIcon,rr=Ue.onChange,Ir=Ue.onTransform,Nr=Ue.toolbarRender,$r=Ue.imageRender,Yt=(0,u.Z)(Ue,us),Sr=hn(Mn),fr=(0,E.Z)(Sr,3),pi=fr[0],Pi=fr[1],Ai=fr[2],Ji=he(0,{value:ti}),To=(0,E.Z)(Ji,2),_o=To[0],bo=To[1],Vo=(0,M.useState)(!1),Nt=(0,E.Z)(Vo,2),no=Nt[0],Fo=Nt[1],Xo=((an=pi[_o])===null||an===void 0?void 0:an.data)||{},ho=Xo.src,Zo=(0,u.Z)(Xo,cs),ko=he(!!kr,{value:kr,onChange:function(fs,Nn){Br==null||Br(fs,Nn,_o)}}),hs=(0,E.Z)(ko,2),fi=hs[0],$i=hs[1],Rr=(0,M.useState)(null),Yr=(0,E.Z)(Rr,2),ui=Yr[0],ji=Yr[1],Wn=M.useCallback(function(ns,fs,Nn,So){var No=Ai?pi.findIndex(function(Es){return Es.data.src===fs}):pi.findIndex(function(Es){return Es.id===ns});bo(No<0?0:No),$i(!0),ji({x:Nn,y:So}),Fo(!0)},[pi,Ai]);M.useEffect(function(){fi?no||bo(0):Fo(!1)},[fi]);var mo=function(fs,Nn){bo(fs),rr==null||rr(fs,Nn)},ao=function(){$i(!1),ji(null)},fo=M.useMemo(function(){return{register:Pi,onPreview:Wn}},[Pi,Wn]);return M.createElement(Ar.Provider,{value:fo},Et,M.createElement(ys,(0,B.Z)({"aria-hidden":!fi,movable:Jr,visible:fi,prefixCls:dt,closeIcon:wr,onClose:ao,mousePosition:ui,imgCommonProps:Zo,src:ho,fallback:nn,icons:gn,minScale:Wr,maxScale:Ri,getContainer:ei,current:_o,count:pi.length,countRender:ri,onTransform:Ir,toolbarRender:Nr,imageRender:$r,onChange:mo},Yt)))},Bs=yo,Yi=0;function eo(ut,Ge){var an=M.useState(function(){return Yi+=1,String(Yi)}),it=(0,E.Z)(an,1),dt=it[0],Et=M.useContext(Ar),Dt={data:Ge,canPreview:ut};return M.useEffect(function(){if(Et)return Et.register(dt,Dt)},[]),M.useEffect(function(){Et&&Et.register(dt,Dt)},[ut,Ge]),dt}var Oi=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],hi=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],Ni=function(Ge){var an=Ge.src,it=Ge.alt,dt=Ge.onPreviewClose,Et=Ge.prefixCls,Dt=Et===void 0?"rc-image":Et,gn=Ge.previewPrefixCls,Mn=gn===void 0?"".concat(Dt,"-preview"):gn,In=Ge.placeholder,nn=Ge.fallback,Ue=Ge.width,kr=Ge.height,Br=Ge.style,ei=Ge.preview,ti=ei===void 0?!0:ei,Jr=Ge.className,Wr=Ge.onClick,Ri=Ge.onError,ri=Ge.wrapperClassName,wr=Ge.wrapperStyle,rr=Ge.rootClassName,Ir=(0,u.Z)(Ge,Oi),Nr=In&&In!==!0,$r=(0,I.Z)(ti)==="object"?ti:{},Yt=$r.src,Sr=$r.visible,fr=Sr===void 0?void 0:Sr,pi=$r.onVisibleChange,Pi=pi===void 0?dt:pi,Ai=$r.getContainer,Ji=Ai===void 0?void 0:Ai,To=$r.mask,_o=$r.maskClassName,bo=$r.movable,Vo=$r.icons,Nt=$r.scaleStep,no=$r.minScale,Fo=$r.maxScale,Xo=$r.imageRender,ho=$r.toolbarRender,Zo=(0,u.Z)($r,hi),ko=Yt!=null?Yt:an,hs=he(!!fr,{value:fr,onChange:Pi}),fi=(0,E.Z)(hs,2),$i=fi[0],Rr=fi[1],Yr=ki({src:an,isCustomPlaceholder:Nr,fallback:nn}),ui=(0,E.Z)(Yr,3),ji=ui[0],Wn=ui[1],mo=ui[2],ao=(0,M.useState)(null),fo=(0,E.Z)(ao,2),ns=fo[0],fs=fo[1],Nn=(0,M.useContext)(Ar),So=!!ti,No=function(){Rr(!1),fs(null)},Es=g()(Dt,ri,rr,(0,s.Z)({},"".concat(Dt,"-error"),mo==="error")),go=(0,M.useMemo)(function(){var Jo={};return Ro.forEach(function(Qo){Ge[Qo]!==void 0&&(Jo[Qo]=Ge[Qo])}),Jo},Ro.map(function(Jo){return Ge[Jo]})),bs=(0,M.useMemo)(function(){return(0,Y.Z)((0,Y.Z)({},go),{},{src:ko})},[ko,go]),jr=eo(So,bs),Zs=function(Qo){var ks=L(Qo.target),Ma=ks.left,tl=ks.top;Nn?Nn.onPreview(jr,ko,Ma,tl):(fs({x:Ma,y:tl}),Rr(!0)),Wr==null||Wr(Qo)};return M.createElement(M.Fragment,null,M.createElement("div",(0,B.Z)({},Ir,{className:Es,onClick:So?Zs:Wr,style:(0,Y.Z)({width:Ue,height:kr},wr)}),M.createElement("img",(0,B.Z)({},go,{className:g()("".concat(Dt,"-img"),(0,s.Z)({},"".concat(Dt,"-img-placeholder"),In===!0),Jr),style:(0,Y.Z)({height:kr},Br),ref:ji},Wn,{width:Ue,height:kr,onError:Ri})),mo==="loading"&&M.createElement("div",{"aria-hidden":"true",className:"".concat(Dt,"-placeholder")},In),To&&So&&M.createElement("div",{className:g()("".concat(Dt,"-mask"),_o),style:{display:(Br==null?void 0:Br.display)==="none"?"none":void 0}},To)),!Nn&&So&&M.createElement(ys,(0,B.Z)({"aria-hidden":!$i,visible:$i,prefixCls:Mn,onClose:No,mousePosition:ns,src:ko,alt:it,imageInfo:{width:Ue,height:kr},fallback:nn,getContainer:Ji,icons:Vo,movable:bo,scaleStep:Nt,minScale:no,maxScale:Fo,rootClassName:rr,imageRender:Xo,imgCommonProps:go,toolbarRender:ho},Zo)))};Ni.PreviewGroup=Bs;var tn=Ni,_i=tn},31457:function(Ie,Z,b){"use strict";b.d(Z,{Z:function(){return Re}});var B=b(4942),Y=b(87462),s=b(71002),E=b(1413),I=b(97685),u=b(94184),d=b.n(u),g=b(67294);function y(Oe){var pe=g.useRef();pe.current=Oe;var fe=g.useCallback(function(){for(var z,J=arguments.length,be=new Array(J),_e=0;_e<J;_e++)be[_e]=arguments[_e];return(z=pe.current)===null||z===void 0?void 0:z.call.apply(z,[pe].concat(be))},[]);return fe}function S(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var v=S()?g.useLayoutEffect:g.useEffect,c=function(pe,fe){var z=g.useRef(!0);v(function(){return pe(z.current)},fe),v(function(){return z.current=!1,function(){z.current=!0}},[])},h=function(pe,fe){c(function(z){if(!z)return pe()},fe)},m=null;function x(Oe){var pe=g.useRef(!1),fe=g.useState(Oe),z=(0,I.Z)(fe,2),J=z[0],be=z[1];g.useEffect(function(){return pe.current=!1,function(){pe.current=!0}},[]);function _e(oe,ie){ie&&pe.current||be(oe)}return[J,_e]}function T(Oe){return Oe!==void 0}function _(Oe,pe){var fe=pe||{},z=fe.defaultValue,J=fe.value,be=fe.onChange,_e=fe.postState,oe=x(function(){return T(J)?J:T(z)?typeof z=="function"?z():z:typeof Oe=="function"?Oe():Oe}),ie=(0,I.Z)(oe,2),ve=ie[0],Ne=ie[1],ze=J!==void 0?J:ve,Ve=_e?_e(ze):ze,yt=y(be),ct=x([ze]),St=(0,I.Z)(ct,2),_t=St[0],At=St[1];h(function(){var wt=_t[0];ve!==wt&&yt(ve,wt)},[_t]),h(function(){T(J)||Ne(J)},[J]);var ht=y(function(wt,jt){Ne(wt,jt),At([ze],jt)});return[Ve,ht]}var R={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(pe){var fe=pe.keyCode;if(pe.altKey&&!pe.ctrlKey||pe.metaKey||fe>=R.F1&&fe<=R.F12)return!1;switch(fe){case R.ALT:case R.CAPS_LOCK:case R.CONTEXT_MENU:case R.CTRL:case R.DOWN:case R.END:case R.ESC:case R.HOME:case R.INSERT:case R.LEFT:case R.MAC_FF_META:case R.META:case R.NUMLOCK:case R.NUM_CENTER:case R.PAGE_DOWN:case R.PAGE_UP:case R.PAUSE:case R.PRINT_SCREEN:case R.RIGHT:case R.SHIFT:case R.UP:case R.WIN_KEY:case R.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(pe){if(pe>=R.ZERO&&pe<=R.NINE||pe>=R.NUM_ZERO&&pe<=R.NUM_MULTIPLY||pe>=R.A&&pe<=R.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&pe===0)return!0;switch(pe){case R.SPACE:case R.QUESTION_MARK:case R.NUM_PLUS:case R.NUM_MINUS:case R.NUM_PERIOD:case R.NUM_DIVISION:case R.SEMICOLON:case R.DASH:case R.EQUALS:case R.COMMA:case R.PERIOD:case R.SLASH:case R.APOSTROPHE:case R.SINGLE_QUOTE:case R.OPEN_SQUARE_BRACKET:case R.BACKSLASH:case R.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},A=R,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`,M="".concat(N," ").concat(L).split(/[\s\n]+/),F="aria-",H="data-";function P(Oe,pe){return Oe.indexOf(pe)===0}function V(Oe){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,fe;pe===!1?fe={aria:!0,data:!0,attr:!0}:pe===!0?fe={aria:!0}:fe=(0,E.Z)({},pe);var z={};return Object.keys(Oe).forEach(function(J){(fe.aria&&(J==="role"||P(J,F))||fe.data&&P(J,H)||fe.attr&&M.includes(J))&&(z[J]=Oe[J])}),z}var G={},Q=[],ne=function(pe){Q.push(pe)};function ue(Oe,pe){if(0)var fe}function ae(Oe,pe){if(0)var fe}function he(){G={}}function ce(Oe,pe,fe){!pe&&!G[fe]&&(Oe(!1,fe),G[fe]=!0)}function we(Oe,pe){ce(ue,Oe,pe)}function me(Oe,pe){ce(ae,Oe,pe)}we.preMessage=ne,we.resetWarned=he,we.noteOnce=me;var Le=null,ee=b(81626),se=[10,20,50,100],le=function(pe){var fe=pe.pageSizeOptions,z=fe===void 0?se:fe,J=pe.locale,be=pe.changeSize,_e=pe.pageSize,oe=pe.goButton,ie=pe.quickGo,ve=pe.rootPrefixCls,Ne=pe.disabled,ze=pe.buildOptionText,Ve=pe.showSizeChanger,yt=pe.sizeChangerRender,ct=g.useState(""),St=(0,I.Z)(ct,2),_t=St[0],At=St[1],ht=function(){return!_t||Number.isNaN(_t)?void 0:Number(_t)},wt=typeof ze=="function"?ze:function(Fn){return"".concat(Fn," ").concat(J.items_per_page)},jt=function(Gn){At(Gn.target.value)},st=function(Gn){oe||_t===""||(At(""),!(Gn.relatedTarget&&(Gn.relatedTarget.className.indexOf("".concat(ve,"-item-link"))>=0||Gn.relatedTarget.className.indexOf("".concat(ve,"-item"))>=0))&&(ie==null||ie(ht())))},ge=function(Gn){_t!==""&&(Gn.keyCode===A.ENTER||Gn.type==="click")&&(At(""),ie==null||ie(ht()))},on=function(){return z.some(function(Gn){return Gn.toString()===_e.toString()})?z:z.concat([_e]).sort(function(Gn,sn){var xt=Number.isNaN(Number(Gn))?0:Number(Gn),gr=Number.isNaN(Number(sn))?0:Number(sn);return xt-gr})},mn="".concat(ve,"-options");if(!Ve&&!ie)return null;var Mt=null,On=null,Vn=null;return Ve&&yt&&(Mt=yt({disabled:Ne,size:_e,onSizeChange:function(Gn){be==null||be(Number(Gn))},"aria-label":J.page_size,className:"".concat(mn,"-size-changer"),options:on().map(function(Fn){return{label:wt(Fn),value:Fn}})})),ie&&(oe&&(Vn=typeof oe=="boolean"?g.createElement("button",{type:"button",onClick:ge,onKeyUp:ge,disabled:Ne,className:"".concat(mn,"-quick-jumper-button")},J.jump_to_confirm):g.createElement("span",{onClick:ge,onKeyUp:ge},oe)),On=g.createElement("div",{className:"".concat(mn,"-quick-jumper")},J.jump_to,g.createElement("input",{disabled:Ne,type:"text",value:_t,onChange:jt,onKeyUp:ge,onBlur:st,"aria-label":J.page}),J.page,Vn)),g.createElement("li",{className:mn},Mt,On)},ke=le,De=function(pe){var fe=pe.rootPrefixCls,z=pe.page,J=pe.active,be=pe.className,_e=pe.showTitle,oe=pe.onClick,ie=pe.onKeyPress,ve=pe.itemRender,Ne="".concat(fe,"-item"),ze=d()(Ne,"".concat(Ne,"-").concat(z),(0,B.Z)((0,B.Z)({},"".concat(Ne,"-active"),J),"".concat(Ne,"-disabled"),!z),be),Ve=function(){oe(z)},yt=function(_t){ie(_t,oe,z)},ct=ve(z,"page",g.createElement("a",{rel:"nofollow"},z));return ct?g.createElement("li",{title:_e?String(z):null,className:ze,onClick:Ve,onKeyDown:yt,tabIndex:0},ct):null},Be=De,He=function(pe,fe,z){return z};function Fe(){}function Je(Oe){var pe=Number(Oe);return typeof pe=="number"&&!Number.isNaN(pe)&&isFinite(pe)&&Math.floor(pe)===pe}function Me(Oe,pe,fe){var z=typeof Oe=="undefined"?pe:Oe;return Math.floor((fe-1)/z)+1}var lt=function(pe){var fe=pe.prefixCls,z=fe===void 0?"rc-pagination":fe,J=pe.selectPrefixCls,be=J===void 0?"rc-select":J,_e=pe.className,oe=pe.current,ie=pe.defaultCurrent,ve=ie===void 0?1:ie,Ne=pe.total,ze=Ne===void 0?0:Ne,Ve=pe.pageSize,yt=pe.defaultPageSize,ct=yt===void 0?10:yt,St=pe.onChange,_t=St===void 0?Fe:St,At=pe.hideOnSinglePage,ht=pe.align,wt=pe.showPrevNextJumpers,jt=wt===void 0?!0:wt,st=pe.showQuickJumper,ge=pe.showLessItems,on=pe.showTitle,mn=on===void 0?!0:on,Mt=pe.onShowSizeChange,On=Mt===void 0?Fe:Mt,Vn=pe.locale,Fn=Vn===void 0?ee.Z:Vn,Gn=pe.style,sn=pe.totalBoundaryShowSizeChanger,xt=sn===void 0?50:sn,gr=pe.disabled,Pr=pe.simple,tr=pe.showTotal,ii=pe.showSizeChanger,Ar=ii===void 0?ze>xt:ii,Kt=pe.sizeChangerRender,ye=pe.pageSizeOptions,Vt=pe.itemRender,rn=Vt===void 0?He:Vt,Xn=pe.jumpPrevIcon,Zn=pe.jumpNextIcon,ir=pe.prevIcon,Dr=pe.nextIcon,ai=g.useRef(null),li=_(10,{value:Ve,defaultValue:ct}),Zr=(0,I.Z)(li,2),Tn=Zr[0],kn=Zr[1],Vr=_(1,{value:oe,defaultValue:ve,postState:function(Sr){return Math.max(1,Math.min(Sr,Me(void 0,Tn,ze)))}}),di=(0,I.Z)(Vr,2),nr=di[0],vn=di[1],Jn=g.useState(nr),bi=(0,I.Z)(Jn,2),gi=bi[0],mi=bi[1];(0,g.useEffect)(function(){mi(nr)},[nr]);var Lt=_t!==Fe,Yn="current"in pe,hr=Math.max(1,nr-(ge?3:5)),zi=Math.min(Me(void 0,Tn,ze),nr+(ge?3:5));function bn(Yt,Sr){var fr=Yt||g.createElement("button",{type:"button","aria-label":Sr,className:"".concat(z,"-item-link")});return typeof Yt=="function"&&(fr=g.createElement(Yt,(0,E.Z)({},pe))),fr}function or(Yt){var Sr=Yt.target.value,fr=Me(void 0,Tn,ze),pi;return Sr===""?pi=Sr:Number.isNaN(Number(Sr))?pi=gi:Sr>=fr?pi=fr:pi=Number(Sr),pi}function Ei(Yt){return Je(Yt)&&Yt!==nr&&Je(ze)&&ze>0}var Co=ze>Tn?st:!1;function ki(Yt){(Yt.keyCode===A.UP||Yt.keyCode===A.DOWN)&&Yt.preventDefault()}function yr(Yt){var Sr=or(Yt);switch(Sr!==gi&&mi(Sr),Yt.keyCode){case A.ENTER:Di(Sr);break;case A.UP:Di(Sr-1);break;case A.DOWN:Di(Sr+1);break;default:break}}function Mr(Yt){Di(or(Yt))}function Fr(Yt){var Sr=Me(Yt,Tn,ze),fr=nr>Sr&&Sr!==0?Sr:nr;kn(Yt),mi(fr),On==null||On(nr,Yt),vn(fr),_t==null||_t(fr,Yt)}function Di(Yt){if(Ei(Yt)&&!gr){var Sr=Me(void 0,Tn,ze),fr=Yt;return Yt>Sr?fr=Sr:Yt<1&&(fr=1),fr!==gi&&mi(fr),vn(fr),_t==null||_t(fr,Tn),fr}return nr}var so=nr>1,Gi=nr<Me(void 0,Tn,ze);function sr(){so&&Di(nr-1)}function ys(){Gi&&Di(nr+1)}function Wo(){Di(hr)}function Ro(){Di(zi)}function hn(Yt,Sr){if(Yt.key==="Enter"||Yt.charCode===A.ENTER||Yt.keyCode===A.ENTER){for(var fr=arguments.length,pi=new Array(fr>2?fr-2:0),Pi=2;Pi<fr;Pi++)pi[Pi-2]=arguments[Pi];Sr.apply(void 0,pi)}}function us(Yt){hn(Yt,sr)}function cs(Yt){hn(Yt,ys)}function yo(Yt){hn(Yt,Wo)}function Bs(Yt){hn(Yt,Ro)}function Yi(Yt){var Sr=rn(Yt,"prev",bn(ir,"prev page"));return g.isValidElement(Sr)?g.cloneElement(Sr,{disabled:!so}):Sr}function eo(Yt){var Sr=rn(Yt,"next",bn(Dr,"next page"));return g.isValidElement(Sr)?g.cloneElement(Sr,{disabled:!Gi}):Sr}function Oi(Yt){(Yt.type==="click"||Yt.keyCode===A.ENTER)&&Di(gi)}var hi=null,Ni=V(pe,{aria:!0,data:!0}),tn=tr&&g.createElement("li",{className:"".concat(z,"-total-text")},tr(ze,[ze===0?0:(nr-1)*Tn+1,nr*Tn>ze?ze:nr*Tn])),_i=null,ut=Me(void 0,Tn,ze);if(At&&ze<=Tn)return null;var Ge=[],an={rootPrefixCls:z,onClick:Di,onKeyPress:hn,showTitle:mn,itemRender:rn,page:-1},it=nr-1>0?nr-1:0,dt=nr+1<ut?nr+1:ut,Et=st&&st.goButton,Dt=(0,s.Z)(Pr)==="object"?Pr.readOnly:!Pr,gn=Et,Mn=null;Pr&&(Et&&(typeof Et=="boolean"?gn=g.createElement("button",{type:"button",onClick:Oi,onKeyUp:Oi},Fn.jump_to_confirm):gn=g.createElement("span",{onClick:Oi,onKeyUp:Oi},Et),gn=g.createElement("li",{title:mn?"".concat(Fn.jump_to).concat(nr,"/").concat(ut):null,className:"".concat(z,"-simple-pager")},gn)),Mn=g.createElement("li",{title:mn?"".concat(nr,"/").concat(ut):null,className:"".concat(z,"-simple-pager")},Dt?gi:g.createElement("input",{type:"text","aria-label":Fn.jump_to,value:gi,disabled:gr,onKeyDown:ki,onKeyUp:yr,onChange:yr,onBlur:Mr,size:3}),g.createElement("span",{className:"".concat(z,"-slash")},"/"),ut));var In=ge?1:2;if(ut<=3+In*2){ut||Ge.push(g.createElement(Be,(0,Y.Z)({},an,{key:"noPager",page:1,className:"".concat(z,"-item-disabled")})));for(var nn=1;nn<=ut;nn+=1)Ge.push(g.createElement(Be,(0,Y.Z)({},an,{key:nn,page:nn,active:nr===nn})))}else{var Ue=ge?Fn.prev_3:Fn.prev_5,kr=ge?Fn.next_3:Fn.next_5,Br=rn(hr,"jump-prev",bn(Xn,"prev page")),ei=rn(zi,"jump-next",bn(Zn,"next page"));jt&&(hi=Br?g.createElement("li",{title:mn?Ue:null,key:"prev",onClick:Wo,tabIndex:0,onKeyDown:yo,className:d()("".concat(z,"-jump-prev"),(0,B.Z)({},"".concat(z,"-jump-prev-custom-icon"),!!Xn))},Br):null,_i=ei?g.createElement("li",{title:mn?kr:null,key:"next",onClick:Ro,tabIndex:0,onKeyDown:Bs,className:d()("".concat(z,"-jump-next"),(0,B.Z)({},"".concat(z,"-jump-next-custom-icon"),!!Zn))},ei):null);var ti=Math.max(1,nr-In),Jr=Math.min(nr+In,ut);nr-1<=In&&(Jr=1+In*2),ut-nr<=In&&(ti=ut-In*2);for(var Wr=ti;Wr<=Jr;Wr+=1)Ge.push(g.createElement(Be,(0,Y.Z)({},an,{key:Wr,page:Wr,active:nr===Wr})));if(nr-1>=In*2&&nr!==3&&(Ge[0]=g.cloneElement(Ge[0],{className:d()("".concat(z,"-item-after-jump-prev"),Ge[0].props.className)}),Ge.unshift(hi)),ut-nr>=In*2&&nr!==ut-2){var Ri=Ge[Ge.length-1];Ge[Ge.length-1]=g.cloneElement(Ri,{className:d()("".concat(z,"-item-before-jump-next"),Ri.props.className)}),Ge.push(_i)}ti!==1&&Ge.unshift(g.createElement(Be,(0,Y.Z)({},an,{key:1,page:1}))),Jr!==ut&&Ge.push(g.createElement(Be,(0,Y.Z)({},an,{key:ut,page:ut})))}var ri=Yi(it);if(ri){var wr=!so||!ut;ri=g.createElement("li",{title:mn?Fn.prev_page:null,onClick:sr,tabIndex:wr?null:0,onKeyDown:us,className:d()("".concat(z,"-prev"),(0,B.Z)({},"".concat(z,"-disabled"),wr)),"aria-disabled":wr},ri)}var rr=eo(dt);if(rr){var Ir,Nr;Pr?(Ir=!Gi,Nr=so?0:null):(Ir=!Gi||!ut,Nr=Ir?null:0),rr=g.createElement("li",{title:mn?Fn.next_page:null,onClick:ys,tabIndex:Nr,onKeyDown:cs,className:d()("".concat(z,"-next"),(0,B.Z)({},"".concat(z,"-disabled"),Ir)),"aria-disabled":Ir},rr)}var $r=d()(z,_e,(0,B.Z)((0,B.Z)((0,B.Z)((0,B.Z)((0,B.Z)({},"".concat(z,"-start"),ht==="start"),"".concat(z,"-center"),ht==="center"),"".concat(z,"-end"),ht==="end"),"".concat(z,"-simple"),Pr),"".concat(z,"-disabled"),gr));return g.createElement("ul",(0,Y.Z)({className:$r,style:Gn,ref:ai},Ni),tn,ri,Pr?Mn:Ge,rr,g.createElement(ke,{locale:Fn,rootPrefixCls:z,disabled:gr,selectPrefixCls:be,changeSize:Fr,pageSize:Tn,pageSizeOptions:ye,quickGo:Co?Di:null,goButton:gn,showSizeChanger:Ar,sizeChangerRender:Kt}))},Re=lt},43579:function(Ie,Z,b){"use strict";b.d(Z,{Cd:function(){return Q}});var B=b(87462),Y=b(1413),s=b(45987),E=b(67294),I=b(94184),u=b.n(I),d={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},g=function(){var ae=(0,E.useRef)([]),he=(0,E.useRef)(null);return(0,E.useEffect)(function(){var ce=Date.now(),we=!1;ae.current.forEach(function(me){if(me){we=!0;var Le=me.style;Le.transitionDuration=".3s, .3s, .3s, .06s",he.current&&ce-he.current<100&&(Le.transitionDuration="0s, 0s")}}),we&&(he.current=Date.now())}),ae.current},y=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],S=function(ae){var he=(0,Y.Z)((0,Y.Z)({},d),ae),ce=he.className,we=he.percent,me=he.prefixCls,Le=he.strokeColor,ee=he.strokeLinecap,se=he.strokeWidth,le=he.style,ke=he.trailColor,De=he.trailWidth,Be=he.transition,He=(0,s.Z)(he,y);delete He.gapPosition;var Fe=Array.isArray(we)?we:[we],Je=Array.isArray(Le)?Le:[Le],Me=g(),lt=se/2,Re=100-se/2,Oe="M ".concat(ee==="round"?lt:0,",").concat(lt,`
L `).concat(ee==="round"?Re:100,",").concat(lt),pe="0 0 100 ".concat(se),fe=0;return E.createElement("svg",(0,B.Z)({className:u()("".concat(me,"-line"),ce),viewBox:pe,preserveAspectRatio:"none",style:le},He),E.createElement("path",{className:"".concat(me,"-line-trail"),d:Oe,strokeLinecap:ee,stroke:ke,strokeWidth:De||se,fillOpacity:"0"}),Fe.map(function(z,J){var be=1;switch(ee){case"round":be=1-se/100;break;case"square":be=1-se/2/100;break;default:be=1;break}var _e={strokeDasharray:"".concat(z*be,"px, 100px"),strokeDashoffset:"-".concat(fe,"px"),transition:Be||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},oe=Je[J]||Je[Je.length-1];return fe+=z,E.createElement("path",{key:J,className:"".concat(me,"-line-path"),d:Oe,strokeLinecap:ee,stroke:oe,strokeWidth:se,fillOpacity:"0",ref:function(ve){Me[J]=ve},style:_e})}))},v=S,c=b(71002),h=b(97685),m=b(98924),x=0,T=(0,m.Z)();function _(){var ue;return T?(ue=x,x+=1):ue="TEST_OR_SSR",ue}var R=function(ue){var ae=E.useState(),he=(0,h.Z)(ae,2),ce=he[0],we=he[1];return E.useEffect(function(){we("rc_progress_".concat(_()))},[]),ue||ce},A=function(ae){var he=ae.bg,ce=ae.children;return E.createElement("div",{style:{width:"100%",height:"100%",background:he}},ce)};function N(ue,ae){return Object.keys(ue).map(function(he){var ce=parseFloat(he),we="".concat(Math.floor(ce*ae),"%");return"".concat(ue[he]," ").concat(we)})}var L=E.forwardRef(function(ue,ae){var he=ue.prefixCls,ce=ue.color,we=ue.gradientId,me=ue.radius,Le=ue.style,ee=ue.ptg,se=ue.strokeLinecap,le=ue.strokeWidth,ke=ue.size,De=ue.gapDegree,Be=ce&&(0,c.Z)(ce)==="object",He=Be?"#FFF":void 0,Fe=ke/2,Je=E.createElement("circle",{className:"".concat(he,"-circle-path"),r:me,cx:Fe,cy:Fe,stroke:He,strokeLinecap:se,strokeWidth:le,opacity:ee===0?0:1,style:Le,ref:ae});if(!Be)return Je;var Me="".concat(we,"-conic"),lt=De?"".concat(180+De/2,"deg"):"0deg",Re=N(ce,(360-De)/360),Oe=N(ce,1),pe="conic-gradient(from ".concat(lt,", ").concat(Re.join(", "),")"),fe="linear-gradient(to ".concat(De?"bottom":"top",", ").concat(Oe.join(", "),")");return E.createElement(E.Fragment,null,E.createElement("mask",{id:Me},Je),E.createElement("foreignObject",{x:0,y:0,width:ke,height:ke,mask:"url(#".concat(Me,")")},E.createElement(A,{bg:fe},E.createElement(A,{bg:pe}))))}),M=L,F=100,H=function(ae,he,ce,we,me,Le,ee,se,le,ke){var De=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Be=ce/100*360*((360-Le)/360),He=Le===0?0:{bottom:0,top:180,left:90,right:-90}[ee],Fe=(100-we)/100*he;le==="round"&&we!==100&&(Fe+=ke/2,Fe>=he&&(Fe=he-.01));var Je=F/2;return{stroke:typeof se=="string"?se:void 0,strokeDasharray:"".concat(he,"px ").concat(ae),strokeDashoffset:Fe+De,transform:"rotate(".concat(me+Be+He,"deg)"),transformOrigin:"".concat(Je,"px ").concat(Je,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},P=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function V(ue){var ae=ue!=null?ue:[];return Array.isArray(ae)?ae:[ae]}var G=function(ae){var he=(0,Y.Z)((0,Y.Z)({},d),ae),ce=he.id,we=he.prefixCls,me=he.steps,Le=he.strokeWidth,ee=he.trailWidth,se=he.gapDegree,le=se===void 0?0:se,ke=he.gapPosition,De=he.trailColor,Be=he.strokeLinecap,He=he.style,Fe=he.className,Je=he.strokeColor,Me=he.percent,lt=(0,s.Z)(he,P),Re=F/2,Oe=R(ce),pe="".concat(Oe,"-gradient"),fe=Re-Le/2,z=Math.PI*2*fe,J=le>0?90+le/2:-90,be=z*((360-le)/360),_e=(0,c.Z)(me)==="object"?me:{count:me,gap:2},oe=_e.count,ie=_e.gap,ve=V(Me),Ne=V(Je),ze=Ne.find(function(ht){return ht&&(0,c.Z)(ht)==="object"}),Ve=ze&&(0,c.Z)(ze)==="object",yt=Ve?"butt":Be,ct=H(z,be,0,100,J,le,ke,De,yt,Le),St=g(),_t=function(){var wt=0;return ve.map(function(jt,st){var ge=Ne[st]||Ne[Ne.length-1],on=H(z,be,wt,jt,J,le,ke,ge,yt,Le);return wt+=jt,E.createElement(M,{key:st,color:ge,ptg:jt,radius:fe,prefixCls:we,gradientId:pe,style:on,strokeLinecap:yt,strokeWidth:Le,gapDegree:le,ref:function(Mt){St[st]=Mt},size:F})}).reverse()},At=function(){var wt=Math.round(oe*(ve[0]/100)),jt=100/oe,st=0;return new Array(oe).fill(null).map(function(ge,on){var mn=on<=wt-1?Ne[0]:De,Mt=mn&&(0,c.Z)(mn)==="object"?"url(#".concat(pe,")"):void 0,On=H(z,be,st,jt,J,le,ke,mn,"butt",Le,ie);return st+=(be-On.strokeDashoffset+ie)*100/be,E.createElement("circle",{key:on,className:"".concat(we,"-circle-path"),r:fe,cx:Re,cy:Re,stroke:Mt,strokeWidth:Le,opacity:1,style:On,ref:function(Fn){St[on]=Fn}})})};return E.createElement("svg",(0,B.Z)({className:u()("".concat(we,"-circle"),Fe),viewBox:"0 0 ".concat(F," ").concat(F),style:He,id:ce,role:"presentation"},lt),!oe&&E.createElement("circle",{className:"".concat(we,"-circle-trail"),r:fe,cx:Re,cy:Re,stroke:De,strokeLinecap:yt,strokeWidth:ee||Le,style:ct}),oe?At():_t())},Q=G,ne={Line:v,Circle:Q}},71032:function(Ie,Z,b){"use strict";b.d(Z,{Z:function(){return N}});var B=b(87462),Y=b(4942),s=b(97685),E=b(45987),I=b(94184),u=b.n(I),d=b(21770),g=b(15105),y=b(64217),S=b(67294);function v(L,M){var F=L.disabled,H=L.prefixCls,P=L.character,V=L.characterRender,G=L.index,Q=L.count,ne=L.value,ue=L.allowHalf,ae=L.focused,he=L.onHover,ce=L.onClick,we=function(Be){he(Be,G)},me=function(Be){ce(Be,G)},Le=function(Be){Be.keyCode===g.Z.ENTER&&ce(Be,G)},ee=G+1,se=new Set([H]);ne===0&&G===0&&ae?se.add("".concat(H,"-focused")):ue&&ne+.5>=ee&&ne<ee?(se.add("".concat(H,"-half")),se.add("".concat(H,"-active")),ae&&se.add("".concat(H,"-focused"))):(ee<=ne?se.add("".concat(H,"-full")):se.add("".concat(H,"-zero")),ee===ne&&ae&&se.add("".concat(H,"-focused")));var le=typeof P=="function"?P(L):P,ke=S.createElement("li",{className:u()(Array.from(se)),ref:M},S.createElement("div",{onClick:F?null:me,onKeyDown:F?null:Le,onMouseMove:F?null:we,role:"radio","aria-checked":ne>G?"true":"false","aria-posinset":G+1,"aria-setsize":Q,tabIndex:F?-1:0},S.createElement("div",{className:"".concat(H,"-first")},le),S.createElement("div",{className:"".concat(H,"-second")},le)));return V&&(ke=V(ke,L)),ke}var c=S.forwardRef(v);function h(){var L=S.useRef({});function M(H){return L.current[H]}function F(H){return function(P){L.current[H]=P}}return[M,F]}function m(L){var M=L.pageXOffset,F="scrollLeft";if(typeof M!="number"){var H=L.document;M=H.documentElement[F],typeof M!="number"&&(M=H.body[F])}return M}function x(L){var M,F,H=L.ownerDocument,P=H.body,V=H&&H.documentElement,G=L.getBoundingClientRect();return M=G.left,F=G.top,M-=V.clientLeft||P.clientLeft||0,F-=V.clientTop||P.clientTop||0,{left:M,top:F}}function T(L){var M=x(L),F=L.ownerDocument,H=F.defaultView||F.parentWindow;return M.left+=m(H),M.left}var _=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function R(L,M){var F=L.prefixCls,H=F===void 0?"rc-rate":F,P=L.className,V=L.defaultValue,G=L.value,Q=L.count,ne=Q===void 0?5:Q,ue=L.allowHalf,ae=ue===void 0?!1:ue,he=L.allowClear,ce=he===void 0?!0:he,we=L.keyboard,me=we===void 0?!0:we,Le=L.character,ee=Le===void 0?"\u2605":Le,se=L.characterRender,le=L.disabled,ke=L.direction,De=ke===void 0?"ltr":ke,Be=L.tabIndex,He=Be===void 0?0:Be,Fe=L.autoFocus,Je=L.onHoverChange,Me=L.onChange,lt=L.onFocus,Re=L.onBlur,Oe=L.onKeyDown,pe=L.onMouseLeave,fe=(0,E.Z)(L,_),z=h(),J=(0,s.Z)(z,2),be=J[0],_e=J[1],oe=S.useRef(null),ie=function(){if(!le){var Ar;(Ar=oe.current)===null||Ar===void 0||Ar.focus()}};S.useImperativeHandle(M,function(){return{focus:ie,blur:function(){if(!le){var Ar;(Ar=oe.current)===null||Ar===void 0||Ar.blur()}}}});var ve=(0,d.Z)(V||0,{value:G}),Ne=(0,s.Z)(ve,2),ze=Ne[0],Ve=Ne[1],yt=(0,d.Z)(null),ct=(0,s.Z)(yt,2),St=ct[0],_t=ct[1],At=function(Ar,Kt){var ye=De==="rtl",Vt=Ar+1;if(ae){var rn=be(Ar),Xn=T(rn),Zn=rn.clientWidth;(ye&&Kt-Xn>Zn/2||!ye&&Kt-Xn<Zn/2)&&(Vt-=.5)}return Vt},ht=function(Ar){Ve(Ar),Me==null||Me(Ar)},wt=S.useState(!1),jt=(0,s.Z)(wt,2),st=jt[0],ge=jt[1],on=function(){ge(!0),lt==null||lt()},mn=function(){ge(!1),Re==null||Re()},Mt=S.useState(null),On=(0,s.Z)(Mt,2),Vn=On[0],Fn=On[1],Gn=function(Ar,Kt){var ye=At(Kt,Ar.pageX);ye!==St&&(Fn(ye),_t(null)),Je==null||Je(ye)},sn=function(Ar){le||(Fn(null),_t(null),Je==null||Je(void 0)),Ar&&(pe==null||pe(Ar))},xt=function(Ar,Kt){var ye=At(Kt,Ar.pageX),Vt=!1;ce&&(Vt=ye===ze),sn(),ht(Vt?0:ye),_t(Vt?ye:null)},gr=function(Ar){var Kt=Ar.keyCode,ye=De==="rtl",Vt=ae?.5:1;me&&(Kt===g.Z.RIGHT&&ze<ne&&!ye?(ht(ze+Vt),Ar.preventDefault()):Kt===g.Z.LEFT&&ze>0&&!ye||Kt===g.Z.RIGHT&&ze>0&&ye?(ht(ze-Vt),Ar.preventDefault()):Kt===g.Z.LEFT&&ze<ne&&ye&&(ht(ze+Vt),Ar.preventDefault())),Oe==null||Oe(Ar)};S.useEffect(function(){Fe&&!le&&ie()},[]);var Pr=new Array(ne).fill(0).map(function(ii,Ar){return S.createElement(c,{ref:_e(Ar),index:Ar,count:ne,disabled:le,prefixCls:"".concat(H,"-star"),allowHalf:ae,value:Vn===null?ze:Vn,onClick:xt,onHover:Gn,key:ii||Ar,character:ee,characterRender:se,focused:st})}),tr=u()(H,P,(0,Y.Z)((0,Y.Z)({},"".concat(H,"-disabled"),le),"".concat(H,"-rtl"),De==="rtl"));return S.createElement("ul",(0,B.Z)({className:tr,onMouseLeave:sn,tabIndex:le?-1:He,onFocus:le?null:on,onBlur:le?null:mn,onKeyDown:le?null:gr,ref:oe},(0,y.Z)(fe,{aria:!0,data:!0,attr:!0})),Pr)}var A=S.forwardRef(R),N=A},58212:function(Ie,Z,b){"use strict";b.d(Z,{Z:function(){return Le}});function B(){return B=Object.assign?Object.assign.bind():function(ee){for(var se=1;se<arguments.length;se++){var le=arguments[se];for(var ke in le)Object.prototype.hasOwnProperty.call(le,ke)&&(ee[ke]=le[ke])}return ee},B.apply(this,arguments)}function Y(ee){"@babel/helpers - typeof";return Y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(se){return typeof se}:function(se){return se&&typeof Symbol=="function"&&se.constructor===Symbol&&se!==Symbol.prototype?"symbol":typeof se},Y(ee)}function s(ee,se){if(Y(ee)!=="object"||ee===null)return ee;var le=ee[Symbol.toPrimitive];if(le!==void 0){var ke=le.call(ee,se||"default");if(Y(ke)!=="object")return ke;throw new TypeError("@@toPrimitive must return a primitive value.")}return(se==="string"?String:Number)(ee)}function E(ee){var se=s(ee,"string");return Y(se)==="symbol"?se:String(se)}function I(ee,se,le){return se=E(se),se in ee?Object.defineProperty(ee,se,{value:le,enumerable:!0,configurable:!0,writable:!0}):ee[se]=le,ee}function u(ee){if(Array.isArray(ee))return ee}function d(ee,se){var le=ee==null?null:typeof Symbol!="undefined"&&ee[Symbol.iterator]||ee["@@iterator"];if(le!=null){var ke,De,Be,He,Fe=[],Je=!0,Me=!1;try{if(Be=(le=le.call(ee)).next,se===0){if(Object(le)!==le)return;Je=!1}else for(;!(Je=(ke=Be.call(le)).done)&&(Fe.push(ke.value),Fe.length!==se);Je=!0);}catch(lt){Me=!0,De=lt}finally{try{if(!Je&&le.return!=null&&(He=le.return(),Object(He)!==He))return}finally{if(Me)throw De}}return Fe}}function g(ee,se){(se==null||se>ee.length)&&(se=ee.length);for(var le=0,ke=new Array(se);le<se;le++)ke[le]=ee[le];return ke}function y(ee,se){if(ee){if(typeof ee=="string")return g(ee,se);var le=Object.prototype.toString.call(ee).slice(8,-1);if(le==="Object"&&ee.constructor&&(le=ee.constructor.name),le==="Map"||le==="Set")return Array.from(ee);if(le==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(le))return g(ee,se)}}function S(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v(ee,se){return u(ee)||d(ee,se)||y(ee,se)||S()}function c(ee,se){if(ee==null)return{};var le={},ke=Object.keys(ee),De,Be;for(Be=0;Be<ke.length;Be++)De=ke[Be],!(se.indexOf(De)>=0)&&(le[De]=ee[De]);return le}function h(ee,se){if(ee==null)return{};var le=c(ee,se),ke,De;if(Object.getOwnPropertySymbols){var Be=Object.getOwnPropertySymbols(ee);for(De=0;De<Be.length;De++)ke=Be[De],!(se.indexOf(ke)>=0)&&Object.prototype.propertyIsEnumerable.call(ee,ke)&&(le[ke]=ee[ke])}return le}var m=b(67294),x=b(94184),T=b.n(x);function _(ee){if(Array.isArray(ee))return ee}function R(ee,se){var le=ee==null?null:typeof Symbol!="undefined"&&ee[Symbol.iterator]||ee["@@iterator"];if(le!=null){var ke,De,Be,He,Fe=[],Je=!0,Me=!1;try{if(Be=(le=le.call(ee)).next,se===0){if(Object(le)!==le)return;Je=!1}else for(;!(Je=(ke=Be.call(le)).done)&&(Fe.push(ke.value),Fe.length!==se);Je=!0);}catch(lt){Me=!0,De=lt}finally{try{if(!Je&&le.return!=null&&(He=le.return(),Object(He)!==He))return}finally{if(Me)throw De}}return Fe}}function A(ee,se){(se==null||se>ee.length)&&(se=ee.length);for(var le=0,ke=new Array(se);le<se;le++)ke[le]=ee[le];return ke}function N(ee,se){if(ee){if(typeof ee=="string")return A(ee,se);var le=Object.prototype.toString.call(ee).slice(8,-1);if(le==="Object"&&ee.constructor&&(le=ee.constructor.name),le==="Map"||le==="Set")return Array.from(ee);if(le==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(le))return A(ee,se)}}function L(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function M(ee,se){return _(ee)||R(ee,se)||N(ee,se)||L()}function F(ee){var se=m.useRef();se.current=ee;var le=m.useCallback(function(){for(var ke,De=arguments.length,Be=new Array(De),He=0;He<De;He++)Be[He]=arguments[He];return(ke=se.current)===null||ke===void 0?void 0:ke.call.apply(ke,[se].concat(Be))},[]);return le}function H(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var P=H()?m.useLayoutEffect:m.useEffect,V=function(se,le){var ke=m.useRef(!0);P(function(){return se(ke.current)},le),P(function(){return ke.current=!1,function(){ke.current=!0}},[])},G=function(se,le){V(function(ke){if(!ke)return se()},le)},Q=null;function ne(ee){var se=m.useRef(!1),le=m.useState(ee),ke=M(le,2),De=ke[0],Be=ke[1];m.useEffect(function(){return se.current=!1,function(){se.current=!0}},[]);function He(Fe,Je){Je&&se.current||Be(Fe)}return[De,He]}function ue(ee){return ee!==void 0}function ae(ee,se){var le=se||{},ke=le.defaultValue,De=le.value,Be=le.onChange,He=le.postState,Fe=ne(function(){return ue(De)?De:ue(ke)?typeof ke=="function"?ke():ke:typeof ee=="function"?ee():ee}),Je=M(Fe,2),Me=Je[0],lt=Je[1],Re=De!==void 0?De:Me,Oe=He?He(Re):Re,pe=F(Be),fe=ne([Re]),z=M(fe,2),J=z[0],be=z[1];G(function(){var oe=J[0];Me!==oe&&pe(Me,oe)},[J]),G(function(){ue(De)||lt(De)},[De]);var _e=F(function(oe,ie){lt(oe,ie),be([Re],ie)});return[Oe,_e]}var he={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(se){var le=se.keyCode;if(se.altKey&&!se.ctrlKey||se.metaKey||le>=he.F1&&le<=he.F12)return!1;switch(le){case he.ALT:case he.CAPS_LOCK:case he.CONTEXT_MENU:case he.CTRL:case he.DOWN:case he.END:case he.ESC:case he.HOME:case he.INSERT:case he.LEFT:case he.MAC_FF_META:case he.META:case he.NUMLOCK:case he.NUM_CENTER:case he.PAGE_DOWN:case he.PAGE_UP:case he.PAUSE:case he.PRINT_SCREEN:case he.RIGHT:case he.SHIFT:case he.UP:case he.WIN_KEY:case he.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(se){if(se>=he.ZERO&&se<=he.NINE||se>=he.NUM_ZERO&&se<=he.NUM_MULTIPLY||se>=he.A&&se<=he.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&se===0)return!0;switch(se){case he.SPACE:case he.QUESTION_MARK:case he.NUM_PLUS:case he.NUM_MINUS:case he.NUM_PERIOD:case he.NUM_DIVISION:case he.SEMICOLON:case he.DASH:case he.EQUALS:case he.COMMA:case he.PERIOD:case he.SLASH:case he.APOSTROPHE:case he.SINGLE_QUOTE:case he.OPEN_SQUARE_BRACKET:case he.BACKSLASH:case he.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ce=he,we=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],me=m.forwardRef(function(ee,se){var le,ke=ee.prefixCls,De=ke===void 0?"rc-switch":ke,Be=ee.className,He=ee.checked,Fe=ee.defaultChecked,Je=ee.disabled,Me=ee.loadingIcon,lt=ee.checkedChildren,Re=ee.unCheckedChildren,Oe=ee.onClick,pe=ee.onChange,fe=ee.onKeyDown,z=h(ee,we),J=ae(!1,{value:He,defaultValue:Fe}),be=v(J,2),_e=be[0],oe=be[1];function ie(Ve,yt){var ct=_e;return Je||(ct=Ve,oe(ct),pe==null||pe(ct,yt)),ct}function ve(Ve){Ve.which===ce.LEFT?ie(!1,Ve):Ve.which===ce.RIGHT&&ie(!0,Ve),fe==null||fe(Ve)}function Ne(Ve){var yt=ie(!_e,Ve);Oe==null||Oe(yt,Ve)}var ze=T()(De,Be,(le={},I(le,"".concat(De,"-checked"),_e),I(le,"".concat(De,"-disabled"),Je),le));return m.createElement("button",B({},z,{type:"button",role:"switch","aria-checked":_e,disabled:Je,className:ze,ref:se,onKeyDown:ve,onClick:Ne}),Me,m.createElement("span",{className:"".concat(De,"-inner")},m.createElement("span",{className:"".concat(De,"-inner-checked")},lt),m.createElement("span",{className:"".concat(De,"-inner-unchecked")},Re)))});me.displayName="Switch";var Le=me},45233:function(Ie,Z,b){"use strict";b.d(Z,{R:function(){return Y},w:function(){return B}});var B={},Y="rc-table-internal-hook"},54768:function(Ie,Z,b){"use strict";b.d(Z,{L:function(){return _},Z:function(){return M}});var B=b(97685),Y=b(4942),s=b(74902),E=b(71002),I=b(1413),u=b(45987),d=b(63295),g=b(67294);function y(F){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},P=[];return g.Children.forEach(F,function(V){V==null&&!H.keepEmpty||(Array.isArray(V)?P=P.concat(y(V)):(0,d.Z)(V)&&V.props?P=P.concat(y(V.props.children,H)):P.push(V))}),P}var S=b(40830),v=b(45233),c=b(62978);function h(F){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof H=="number"?H:H.endsWith("%")?F*parseFloat(H)/100:null}function m(F,H,P){return g.useMemo(function(){if(H&&H>0){var V=0,G=0;F.forEach(function(me){var Le=h(H,me.width);Le?V+=Le:G+=1});var Q=Math.max(H,P),ne=Math.max(Q-V,G),ue=G,ae=ne/G,he=0,ce=F.map(function(me){var Le=(0,I.Z)({},me),ee=h(H,Le.width);if(ee)Le.width=ee;else{var se=Math.floor(ae);Le.width=ue===1?ne:se,ne-=se,ue-=1}return he+=Le.width,Le});if(he<Q){var we=Q/he;ne=Q,ce.forEach(function(me,Le){var ee=Math.floor(me.width*we);me.width=Le===ce.length-1?ne:ee,ne-=ee})}return[ce,Math.max(he,Q)]}return[F,H]},[F,H,P])}var x=["children"],T=["fixed"];function _(F){return y(F).filter(function(H){return g.isValidElement(H)}).map(function(H){var P=H.key,V=H.props,G=V.children,Q=(0,u.Z)(V,x),ne=(0,I.Z)({key:P},Q);return G&&(ne.children=_(G)),ne})}function R(F){return F.filter(function(H){return H&&(0,E.Z)(H)==="object"&&!H.hidden}).map(function(H){var P=H.children;return P&&P.length>0?(0,I.Z)((0,I.Z)({},H),{},{children:R(P)}):H})}function A(F){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return F.filter(function(P){return P&&(0,E.Z)(P)==="object"}).reduce(function(P,V,G){var Q=V.fixed,ne=Q===!0?"left":Q,ue="".concat(H,"-").concat(G),ae=V.children;return ae&&ae.length>0?[].concat((0,s.Z)(P),(0,s.Z)(A(ae,ue).map(function(he){return(0,I.Z)({fixed:ne},he)}))):[].concat((0,s.Z)(P),[(0,I.Z)((0,I.Z)({key:ue},V),{},{fixed:ne})])},[])}function N(F){return F.map(function(H){var P=H.fixed,V=(0,u.Z)(H,T),G=P;return P==="left"?G="right":P==="right"&&(G="left"),(0,I.Z)({fixed:G},V)})}function L(F,H){var P=F.prefixCls,V=F.columns,G=F.children,Q=F.expandable,ne=F.expandedKeys,ue=F.columnTitle,ae=F.getRowKey,he=F.onTriggerExpand,ce=F.expandIcon,we=F.rowExpandable,me=F.expandIconColumnIndex,Le=F.direction,ee=F.expandRowByClick,se=F.columnWidth,le=F.fixed,ke=F.scrollWidth,De=F.clientWidth,Be=g.useMemo(function(){var fe=V||_(G)||[];return R(fe.slice())},[V,G]),He=g.useMemo(function(){if(Q){var fe=Be.slice();if(!fe.includes(v.w)){var z=me||0;z>=0&&(z||le==="left"||!le)&&fe.splice(z,0,v.w),le==="right"&&fe.splice(Be.length,0,v.w)}var J=fe.indexOf(v.w);fe=fe.filter(function(ie,ve){return ie!==v.w||ve===J});var be=Be[J],_e;le?_e=le:_e=be?be.fixed:null;var oe=(0,Y.Z)((0,Y.Z)((0,Y.Z)((0,Y.Z)((0,Y.Z)((0,Y.Z)({},c.v,{className:"".concat(P,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",ue),"fixed",_e),"className","".concat(P,"-row-expand-icon-cell")),"width",se),"render",function(ve,Ne,ze){var Ve=ae(Ne,ze),yt=ne.has(Ve),ct=we?we(Ne):!0,St=ce({prefixCls:P,expanded:yt,expandable:ct,record:Ne,onExpand:he});return ee?g.createElement("span",{onClick:function(At){return At.stopPropagation()}},St):St});return fe.map(function(ie){return ie===v.w?oe:ie})}return Be.filter(function(ie){return ie!==v.w})},[Q,Be,ae,ne,ce,Le]),Fe=g.useMemo(function(){var fe=He;return H&&(fe=H(fe)),fe.length||(fe=[{render:function(){return null}}]),fe},[H,He,Le]),Je=g.useMemo(function(){return Le==="rtl"?N(A(Fe)):A(Fe)},[Fe,Le,ke]),Me=g.useMemo(function(){for(var fe=-1,z=Je.length-1;z>=0;z-=1){var J=Je[z].fixed;if(J==="left"||J===!0){fe=z;break}}if(fe>=0)for(var be=0;be<=fe;be+=1){var _e=Je[be].fixed;if(_e!=="left"&&_e!==!0)return!0}var oe=Je.findIndex(function(Ne){var ze=Ne.fixed;return ze==="right"});if(oe>=0)for(var ie=oe;ie<Je.length;ie+=1){var ve=Je[ie].fixed;if(ve!=="right")return!0}return!1},[Je]),lt=m(Je,ke,De),Re=(0,B.Z)(lt,2),Oe=Re[0],pe=Re[1];return[Fe,Oe,pe,Me]}var M=L},29104:function(Ie,Z,b){"use strict";b.d(Z,{w2:function(){return B.w},vP:function(){return Oi.v},RQ:function(){return B.R},ER:function(){return Kt},Q$:function(){return $i},TN:function(){return Kl}});var B=b(45233),Y=b(97685),s=b(66680),E=b(8410),I=b(91881),u=b(67294),d=b(73935);function g(Ke){var at=u.createContext(void 0),pt=function(kt){var Pt=kt.value,Ht=kt.children,Qt=u.useRef(Pt);Qt.current=Pt;var xn=u.useState(function(){return{getValue:function(){return Qt.current},listeners:new Set}}),dn=(0,Y.Z)(xn,1),Ln=dn[0];return(0,E.Z)(function(){(0,d.unstable_batchedUpdates)(function(){Ln.listeners.forEach(function(yn){yn(Pt)})})},[Pt]),u.createElement(at.Provider,{value:Ln},Ht)};return{Context:at,Provider:pt,defaultValue:Ke}}function y(Ke,at){var pt=(0,s.Z)(typeof at=="function"?at:function(yn){if(at===void 0)return yn;if(!Array.isArray(at))return yn[at];var An={};return at.forEach(function(Cn){An[Cn]=yn[Cn]}),An}),mt=u.useContext(Ke==null?void 0:Ke.Context),kt=mt||{},Pt=kt.listeners,Ht=kt.getValue,Qt=u.useRef();Qt.current=pt(mt?Ht():Ke==null?void 0:Ke.defaultValue);var xn=u.useState({}),dn=(0,Y.Z)(xn,2),Ln=dn[1];return(0,E.Z)(function(){if(!mt)return;function yn(An){var Cn=pt(An);(0,I.Z)(Qt.current,Cn,!0)||Ln({})}return Pt.add(yn),function(){Pt.delete(yn)}},[mt]),Qt.current}var S=b(87462),v=b(42550);function c(){var Ke=u.createContext(null);function at(){return u.useContext(Ke)}function pt(kt,Pt){var Ht=(0,v.Yr)(kt),Qt=function(dn,Ln){var yn=Ht?{ref:Ln}:{},An=u.useRef(0),Cn=u.useRef(dn),jn=at();return jn!==null?u.createElement(kt,(0,S.Z)({},dn,yn)):((!Pt||Pt(Cn.current,dn))&&(An.current+=1),Cn.current=dn,u.createElement(Ke.Provider,{value:An.current},u.createElement(kt,(0,S.Z)({},dn,yn))))};return Ht?u.forwardRef(Qt):Qt}function mt(kt,Pt){var Ht=(0,v.Yr)(kt),Qt=function(dn,Ln){var yn=Ht?{ref:Ln}:{};return at(),u.createElement(kt,(0,S.Z)({},dn,yn))};return Ht?u.memo(u.forwardRef(Qt),Pt):u.memo(Qt,Pt)}return{makeImmutable:pt,responseImmutable:mt,useImmutableMark:at}}var h=c(),m=h.makeImmutable,x=h.responseImmutable,T=h.useImmutableMark,_=c(),R=_.makeImmutable,A=_.responseImmutable,N=_.useImmutableMark,L=g(),M=L;function F(Ke,at){var pt=React.useRef(0);pt.current+=1;var mt=React.useRef(Ke),kt=[];Object.keys(Ke||{}).map(function(Ht){var Qt;(Ke==null?void 0:Ke[Ht])!==((Qt=mt.current)===null||Qt===void 0?void 0:Qt[Ht])&&kt.push(Ht)}),mt.current=Ke;var Pt=React.useRef([]);return kt.length&&(Pt.current=kt),React.useDebugValue(pt.current),React.useDebugValue(Pt.current.join(", ")),at&&console.log("".concat(at,":"),pt.current,Pt.current),pt.current}var H=null,P=null,V=b(71002),G=b(1413),Q=b(4942),ne=b(94184),ue=b.n(ne);function ae(Ke,at,pt){var mt=u.useRef({});return(!("value"in mt.current)||pt(mt.current.condition,at))&&(mt.current.value=Ke(),mt.current.condition=at),mt.current.value}var he=b(40830);function ce(Ke,at){var pt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,mt=new Set;function kt(Pt,Ht){var Qt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,xn=mt.has(Pt);if((0,he.ZP)(!xn,"Warning: There may be circular references"),xn)return!1;if(Pt===Ht)return!0;if(pt&&Qt>1)return!1;mt.add(Pt);var dn=Qt+1;if(Array.isArray(Pt)){if(!Array.isArray(Ht)||Pt.length!==Ht.length)return!1;for(var Ln=0;Ln<Pt.length;Ln++)if(!kt(Pt[Ln],Ht[Ln],dn))return!1;return!0}if(Pt&&Ht&&(0,V.Z)(Pt)==="object"&&(0,V.Z)(Ht)==="object"){var yn=Object.keys(Pt);return yn.length!==Object.keys(Ht).length?!1:yn.every(function(An){return kt(Pt[An],Ht[An],dn)})}return!1}return kt(Ke,at)}var we=ce;function me(Ke,at){for(var pt=Ke,mt=0;mt<at.length;mt+=1){if(pt==null)return;pt=pt[at[mt]]}return pt}var Le=u.createContext({renderWithProps:!1}),ee=Le,se="RC_TABLE_KEY";function le(Ke){return Ke==null?[]:Array.isArray(Ke)?Ke:[Ke]}function ke(Ke){var at=[],pt={};return Ke.forEach(function(mt){for(var kt=mt||{},Pt=kt.key,Ht=kt.dataIndex,Qt=Pt||le(Ht).join("-")||se;pt[Qt];)Qt="".concat(Qt,"_next");pt[Qt]=!0,at.push(Qt)}),at}function De(Ke){return Ke!=null}function Be(Ke){return typeof Ke=="number"&&!Number.isNaN(Ke)}function He(Ke){return Ke&&(0,V.Z)(Ke)==="object"&&!Array.isArray(Ke)&&!u.isValidElement(Ke)}function Fe(Ke,at,pt,mt,kt,Pt){var Ht=u.useContext(ee),Qt=N(),xn=ae(function(){if(De(mt))return[mt];var dn=at==null||at===""?[]:Array.isArray(at)?at:[at],Ln=me(Ke,dn),yn=Ln,An=void 0;if(kt){var Cn=kt(Ln,Ke,pt);He(Cn)?(yn=Cn.children,An=Cn.props,Ht.renderWithProps=!0):yn=Cn}return[yn,An]},[Qt,Ke,mt,at,kt,pt],function(dn,Ln){if(Pt){var yn=(0,Y.Z)(dn,2),An=yn[1],Cn=(0,Y.Z)(Ln,2),jn=Cn[1];return Pt(jn,An)}return Ht.renderWithProps?!0:!we(dn,Ln,!0)});return xn}function Je(Ke,at,pt,mt){var kt=Ke+at-1;return Ke<=mt&&kt>=pt}function Me(Ke,at){return y(M,function(pt){var mt=Je(Ke,at||1,pt.hoverStartRow,pt.hoverEndRow);return[mt,pt.onHover]})}function lt(Ke){var at=u.useRef();at.current=Ke;var pt=u.useCallback(function(){for(var mt,kt=arguments.length,Pt=new Array(kt),Ht=0;Ht<kt;Ht++)Pt[Ht]=arguments[Ht];return(mt=at.current)===null||mt===void 0?void 0:mt.call.apply(mt,[at].concat(Pt))},[]);return pt}function Re(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Oe=Re()?u.useLayoutEffect:u.useEffect,pe=function(at,pt){var mt=React.useRef(!0);Oe(function(){return at(mt.current)},pt),Oe(function(){return mt.current=!1,function(){mt.current=!0}},[])},fe=function(at,pt){pe(function(mt){if(!mt)return at()},pt)},z=null;function J(Ke){var at=React.useRef(!1),pt=React.useState(Ke),mt=_slicedToArray(pt,2),kt=mt[0],Pt=mt[1];React.useEffect(function(){return at.current=!1,function(){at.current=!0}},[]);function Ht(Qt,xn){xn&&at.current||Pt(Qt)}return[kt,Ht]}function be(Ke){return Ke!==void 0}function _e(Ke,at){var pt=at||{},mt=pt.defaultValue,kt=pt.value,Pt=pt.onChange,Ht=pt.postState,Qt=useState(function(){return be(kt)?kt:be(mt)?typeof mt=="function"?mt():mt:typeof Ke=="function"?Ke():Ke}),xn=_slicedToArray(Qt,2),dn=xn[0],Ln=xn[1],yn=kt!==void 0?kt:dn,An=Ht?Ht(yn):yn,Cn=useEvent(Pt),jn=useState([yn]),qn=_slicedToArray(jn,2),mr=qn[0],Or=qn[1];useLayoutUpdateEffect(function(){var ur=mr[0];dn!==ur&&Cn(dn,ur)},[mr]),useLayoutUpdateEffect(function(){be(kt)||Ln(kt)},[kt]);var Hn=useEvent(function(ur,Qn){Ln(ur,Qn),Or([yn],Qn)});return[An,Hn]}var oe=b(35110),ie=b(63295),ve=Number(u.version.split(".")[0]),Ne=function(at,pt){typeof at=="function"?at(pt):(0,V.Z)(at)==="object"&&at&&"current"in at&&(at.current=pt)},ze=function(){for(var at=arguments.length,pt=new Array(at),mt=0;mt<at;mt++)pt[mt]=arguments[mt];var kt=pt.filter(Boolean);return kt.length<=1?kt[0]:function(Pt){pt.forEach(function(Ht){Ne(Ht,Pt)})}},Ve=function(){for(var at=arguments.length,pt=new Array(at),mt=0;mt<at;mt++)pt[mt]=arguments[mt];return useMemo(function(){return ze.apply(void 0,pt)},pt,function(kt,Pt){return kt.length!==Pt.length||kt.every(function(Ht,Qt){return Ht!==Pt[Qt]})})},yt=function(at){var pt,mt;if(!at)return!1;if(ct(at)&&ve>=19)return!0;var kt=isMemo(at)?at.type.type:at.type;return!(typeof kt=="function"&&!((pt=kt.prototype)!==null&&pt!==void 0&&pt.render)&&kt.$$typeof!==ForwardRef||typeof at=="function"&&!((mt=at.prototype)!==null&&mt!==void 0&&mt.render)&&at.$$typeof!==ForwardRef)};function ct(Ke){return isValidElement(Ke)&&!isFragment(Ke)}var St=function(at){return ct(at)&&yt(at)},_t=function(at){if(at&&ct(at)){var pt=at;return pt.props.propertyIsEnumerable("ref")?pt.props.ref:pt.ref}return null};function At(Ke,at,pt,mt){if(!at.length)return pt;var kt=_toArray(at),Pt=kt[0],Ht=kt.slice(1),Qt;return!Ke&&typeof Pt=="number"?Qt=[]:Array.isArray(Ke)?Qt=_toConsumableArray(Ke):Qt=_objectSpread({},Ke),mt&&pt===void 0&&Ht.length===1?delete Qt[Pt][Ht[0]]:Qt[Pt]=At(Qt[Pt],Ht,pt,mt),Qt}function ht(Ke,at,pt){var mt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return at.length&&mt&&pt===void 0&&!get(Ke,at.slice(0,-1))?Ke:At(Ke,at,pt,mt)}function wt(Ke){return _typeof(Ke)==="object"&&Ke!==null&&Object.getPrototypeOf(Ke)===Object.prototype}function jt(Ke){return Array.isArray(Ke)?[]:{}}var st=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function ge(){for(var Ke=arguments.length,at=new Array(Ke),pt=0;pt<Ke;pt++)at[pt]=arguments[pt];var mt=jt(at[0]);return at.forEach(function(kt){function Pt(Ht,Qt){var xn=new Set(Qt),dn=get(kt,Ht),Ln=Array.isArray(dn);if(Ln||wt(dn)){if(!xn.has(dn)){xn.add(dn);var yn=get(mt,Ht);Ln?mt=ht(mt,Ht,[]):(!yn||_typeof(yn)!=="object")&&(mt=ht(mt,Ht,jt(dn))),st(dn).forEach(function(An){Pt([].concat(_toConsumableArray(Ht),[An]),xn)})}}else mt=ht(mt,Ht,dn)}Pt([])}),mt}var on=function(at){var pt=at.ellipsis,mt=at.rowType,kt=at.children,Pt,Ht=pt===!0?{showTitle:!0}:pt;return Ht&&(Ht.showTitle||mt==="header")&&(typeof kt=="string"||typeof kt=="number"?Pt=kt.toString():u.isValidElement(kt)&&typeof kt.props.children=="string"&&(Pt=kt.props.children)),Pt};function mn(Ke){var at,pt,mt,kt,Pt,Ht,Qt,xn,dn=Ke.component,Ln=Ke.children,yn=Ke.ellipsis,An=Ke.scope,Cn=Ke.prefixCls,jn=Ke.className,qn=Ke.align,mr=Ke.record,Or=Ke.render,Hn=Ke.dataIndex,ur=Ke.renderIndex,Qn=Ke.shouldCellUpdate,_r=Ke.index,Xr=Ke.rowType,Cr=Ke.colSpan,wi=Ke.rowSpan,ni=Ke.fixLeft,Bi=Ke.fixRight,te=Ke.firstFixLeft,Ee=Ke.lastFixLeft,Ae=Ke.firstFixRight,Pe=Ke.lastFixRight,Ye=Ke.appendNode,Qe=Ke.additionalProps,nt=Qe===void 0?{}:Qe,bt=Ke.isSticky,Ft="".concat(Cn,"-cell"),Bt=y(M,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Rt=Bt.supportSticky,Zt=Bt.allColumnsFixedLeft,Jt=Bt.rowHoverable,zt=Fe(mr,Hn,ur,Ln,Or,Qn),k=(0,Y.Z)(zt,2),U=k[0],Ce=k[1],et={},It=typeof ni=="number"&&Rt,Ut=typeof Bi=="number"&&Rt;It&&(et.position="sticky",et.left=ni),Ut&&(et.position="sticky",et.right=Bi);var pn=(at=(pt=(mt=Ce==null?void 0:Ce.colSpan)!==null&&mt!==void 0?mt:nt.colSpan)!==null&&pt!==void 0?pt:Cr)!==null&&at!==void 0?at:1,wn=(kt=(Pt=(Ht=Ce==null?void 0:Ce.rowSpan)!==null&&Ht!==void 0?Ht:nt.rowSpan)!==null&&Pt!==void 0?Pt:wi)!==null&&kt!==void 0?kt:1,fn=Me(_r,wn),Tr=(0,Y.Z)(fn,2),Li=Tr[0],ci=Tr[1],qi=lt(function(Eo){var Mo;mr&&ci(_r,_r+wn-1),nt==null||(Mo=nt.onMouseEnter)===null||Mo===void 0||Mo.call(nt,Eo)}),Uo=lt(function(Eo){var Mo;mr&&ci(-1,-1),nt==null||(Mo=nt.onMouseLeave)===null||Mo===void 0||Mo.call(nt,Eo)});if(pn===0||wn===0)return null;var lo=(Qt=nt.title)!==null&&Qt!==void 0?Qt:on({rowType:Xr,ellipsis:yn,children:U}),$n=ue()(Ft,jn,(xn={},(0,Q.Z)((0,Q.Z)((0,Q.Z)((0,Q.Z)((0,Q.Z)((0,Q.Z)((0,Q.Z)((0,Q.Z)((0,Q.Z)((0,Q.Z)(xn,"".concat(Ft,"-fix-left"),It&&Rt),"".concat(Ft,"-fix-left-first"),te&&Rt),"".concat(Ft,"-fix-left-last"),Ee&&Rt),"".concat(Ft,"-fix-left-all"),Ee&&Zt&&Rt),"".concat(Ft,"-fix-right"),Ut&&Rt),"".concat(Ft,"-fix-right-first"),Ae&&Rt),"".concat(Ft,"-fix-right-last"),Pe&&Rt),"".concat(Ft,"-ellipsis"),yn),"".concat(Ft,"-with-append"),Ye),"".concat(Ft,"-fix-sticky"),(It||Ut)&&bt&&Rt),(0,Q.Z)(xn,"".concat(Ft,"-row-hover"),!Ce&&Li)),nt.className,Ce==null?void 0:Ce.className),Mi={};qn&&(Mi.textAlign=qn);var Ur=(0,G.Z)((0,G.Z)((0,G.Z)((0,G.Z)({},Ce==null?void 0:Ce.style),et),Mi),nt.style),uo=U;return(0,V.Z)(uo)==="object"&&!Array.isArray(uo)&&!u.isValidElement(uo)&&(uo=null),yn&&(Ee||Ae)&&(uo=u.createElement("span",{className:"".concat(Ft,"-content")},uo)),u.createElement(dn,(0,S.Z)({},Ce,nt,{className:$n,style:Ur,title:lo,scope:An,onMouseEnter:Jt?qi:void 0,onMouseLeave:Jt?Uo:void 0,colSpan:pn!==1?pn:null,rowSpan:wn!==1?wn:null}),Ye,uo)}var Mt=u.memo(mn);function On(Ke,at,pt,mt,kt){var Pt=pt[Ke]||{},Ht=pt[at]||{},Qt,xn;Pt.fixed==="left"?Qt=mt.left[kt==="rtl"?at:Ke]:Ht.fixed==="right"&&(xn=mt.right[kt==="rtl"?Ke:at]);var dn=!1,Ln=!1,yn=!1,An=!1,Cn=pt[at+1],jn=pt[Ke-1],qn=Cn&&!Cn.fixed||jn&&!jn.fixed||pt.every(function(Qn){return Qn.fixed==="left"});if(kt==="rtl"){if(Qt!==void 0){var mr=jn&&jn.fixed==="left";An=!mr&&qn}else if(xn!==void 0){var Or=Cn&&Cn.fixed==="right";yn=!Or&&qn}}else if(Qt!==void 0){var Hn=Cn&&Cn.fixed==="left";dn=!Hn&&qn}else if(xn!==void 0){var ur=jn&&jn.fixed==="right";Ln=!ur&&qn}return{fixLeft:Qt,fixRight:xn,lastFixLeft:dn,firstFixRight:Ln,lastFixRight:yn,firstFixLeft:An,isSticky:mt.isSticky}}var Vn=u.createContext({}),Fn=Vn;function Gn(Ke){var at=Ke.className,pt=Ke.index,mt=Ke.children,kt=Ke.colSpan,Pt=kt===void 0?1:kt,Ht=Ke.rowSpan,Qt=Ke.align,xn=y(M,["prefixCls","direction"]),dn=xn.prefixCls,Ln=xn.direction,yn=u.useContext(Fn),An=yn.scrollColumnIndex,Cn=yn.stickyOffsets,jn=yn.flattenColumns,qn=pt+Pt-1,mr=qn+1===An?Pt+1:Pt,Or=On(pt,pt+mr-1,jn,Cn,Ln);return u.createElement(Mt,(0,S.Z)({className:at,index:pt,component:"td",prefixCls:dn,record:null,dataIndex:null,align:Qt,colSpan:mr,rowSpan:Ht,render:function(){return mt}},Or))}var sn=b(45987),xt=["children"];function gr(Ke){var at=Ke.children,pt=(0,sn.Z)(Ke,xt);return u.createElement("tr",pt,at)}function Pr(Ke){var at=Ke.children;return at}Pr.Row=gr,Pr.Cell=Gn;var tr=Pr;function ii(Ke){var at=Ke.children,pt=Ke.stickyOffsets,mt=Ke.flattenColumns,kt=y(M,"prefixCls"),Pt=mt.length-1,Ht=mt[Pt],Qt=u.useMemo(function(){return{stickyOffsets:pt,flattenColumns:mt,scrollColumnIndex:Ht!=null&&Ht.scrollbar?Pt:null}},[Ht,mt,Pt,pt]);return u.createElement(Fn.Provider,{value:Qt},u.createElement("tfoot",{className:"".concat(kt,"-summary")},at))}var Ar=A(ii),Kt=tr,ye=b(48555),Vt=function(Ke){if(!Ke)return!1;if(Ke instanceof Element){if(Ke.offsetParent)return!0;if(Ke.getBBox){var at=Ke.getBBox(),pt=at.width,mt=at.height;if(pt||mt)return!0}if(Ke.getBoundingClientRect){var kt=Ke.getBoundingClientRect(),Pt=kt.width,Ht=kt.height;if(Pt||Ht)return!0}}return!1},rn=function(at){if(Re()&&window.document.documentElement){var pt=Array.isArray(at)?at:[at],mt=window.document.documentElement;return pt.some(function(kt){return kt in mt.style})}return!1},Xn=function(at,pt){if(!rn(at))return!1;var mt=document.createElement("div"),kt=mt.style[at];return mt.style[at]=pt,mt.style[at]!==kt};function Zn(Ke,at){return!Array.isArray(Ke)&&at!==void 0?Xn(Ke,at):rn(Ke)}function ir(Ke,at){if(!Ke)return!1;if(Ke.contains)return Ke.contains(at);for(var pt=at;pt;){if(pt===Ke)return!0;pt=pt.parentNode}return!1}var Dr="data-rc-order",ai="data-rc-priority",li="rc-util-key",Zr=new Map;function Tn(){var Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},at=Ke.mark;return at?at.startsWith("data-")?at:"data-".concat(at):li}function kn(Ke){if(Ke.attachTo)return Ke.attachTo;var at=document.querySelector("head");return at||document.body}function Vr(Ke){return Ke==="queue"?"prependQueue":Ke?"prepend":"append"}function di(Ke){return Array.from((Zr.get(Ke)||Ke).children).filter(function(at){return at.tagName==="STYLE"})}function nr(Ke){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Re())return null;var pt=at.csp,mt=at.prepend,kt=at.priority,Pt=kt===void 0?0:kt,Ht=Vr(mt),Qt=Ht==="prependQueue",xn=document.createElement("style");xn.setAttribute(Dr,Ht),Qt&&Pt&&xn.setAttribute(ai,"".concat(Pt)),pt!=null&&pt.nonce&&(xn.nonce=pt==null?void 0:pt.nonce),xn.innerHTML=Ke;var dn=kn(at),Ln=dn.firstChild;if(mt){if(Qt){var yn=(at.styles||di(dn)).filter(function(An){if(!["prepend","prependQueue"].includes(An.getAttribute(Dr)))return!1;var Cn=Number(An.getAttribute(ai)||0);return Pt>=Cn});if(yn.length)return dn.insertBefore(xn,yn[yn.length-1].nextSibling),xn}dn.insertBefore(xn,Ln)}else dn.appendChild(xn);return xn}function vn(Ke){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pt=kn(at);return(at.styles||di(pt)).find(function(mt){return mt.getAttribute(Tn(at))===Ke})}function Jn(Ke){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pt=vn(Ke,at);if(pt){var mt=kn(at);mt.removeChild(pt)}}function bi(Ke,at){var pt=Zr.get(Ke);if(!pt||!ir(document,pt)){var mt=nr("",at),kt=mt.parentNode;Zr.set(Ke,kt),Ke.removeChild(mt)}}function gi(){Zr.clear()}function mi(Ke,at){var pt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},mt=kn(pt),kt=di(mt),Pt=(0,G.Z)((0,G.Z)({},pt),{},{styles:kt});bi(mt,Pt);var Ht=vn(at,Pt);if(Ht){var Qt,xn;if((Qt=Pt.csp)!==null&&Qt!==void 0&&Qt.nonce&&Ht.nonce!==((xn=Pt.csp)===null||xn===void 0?void 0:xn.nonce)){var dn;Ht.nonce=(dn=Pt.csp)===null||dn===void 0?void 0:dn.nonce}return Ht.innerHTML!==Ke&&(Ht.innerHTML=Ke),Ht}var Ln=nr(Ke,Pt);return Ln.setAttribute(Tn(Pt),at),Ln}var Lt;function Yn(Ke){var at="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),pt=document.createElement("div");pt.id=at;var mt=pt.style;mt.position="absolute",mt.left="0",mt.top="0",mt.width="100px",mt.height="100px",mt.overflow="scroll";var kt,Pt;if(Ke){var Ht=getComputedStyle(Ke);mt.scrollbarColor=Ht.scrollbarColor,mt.scrollbarWidth=Ht.scrollbarWidth;var Qt=getComputedStyle(Ke,"::-webkit-scrollbar"),xn=parseInt(Qt.width,10),dn=parseInt(Qt.height,10);try{var Ln=xn?"width: ".concat(Qt.width,";"):"",yn=dn?"height: ".concat(Qt.height,";"):"";mi(`
#`.concat(at,`::-webkit-scrollbar {
`).concat(Ln,`
`).concat(yn,`
}`),at)}catch(jn){console.error(jn),kt=xn,Pt=dn}}document.body.appendChild(pt);var An=Ke&&kt&&!isNaN(kt)?kt:pt.offsetWidth-pt.clientWidth,Cn=Ke&&Pt&&!isNaN(Pt)?Pt:pt.offsetHeight-pt.clientHeight;return document.body.removeChild(pt),Jn(at),{width:An,height:Cn}}function hr(Ke){return typeof document=="undefined"?0:((Ke||Lt===void 0)&&(Lt=Yn()),Lt.width)}function zi(Ke){return typeof document=="undefined"||!Ke||!(Ke instanceof Element)?{width:0,height:0}:Yn(Ke)}var bn=`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`,or=`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`,Ei="".concat(bn," ").concat(or).split(/[\s\n]+/),Co="aria-",ki="data-";function yr(Ke,at){return Ke.indexOf(at)===0}function Mr(Ke){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,pt;at===!1?pt={aria:!0,data:!0,attr:!0}:at===!0?pt={aria:!0}:pt=(0,G.Z)({},at);var mt={};return Object.keys(Ke).forEach(function(kt){(pt.aria&&(kt==="role"||yr(kt,Co))||pt.data&&yr(kt,ki)||pt.attr&&Ei.includes(kt))&&(mt[kt]=Ke[kt])}),mt}function Fr(Ke,at,pt,mt,kt,Pt,Ht){Ke.push({record:at,indent:pt,index:Ht});var Qt=Pt(at),xn=kt==null?void 0:kt.has(Qt);if(at&&Array.isArray(at[mt])&&xn)for(var dn=0;dn<at[mt].length;dn+=1)Fr(Ke,at[mt][dn],pt+1,mt,kt,Pt,dn)}function Di(Ke,at,pt,mt){var kt=u.useMemo(function(){if(pt!=null&&pt.size){for(var Pt=[],Ht=0;Ht<(Ke==null?void 0:Ke.length);Ht+=1){var Qt=Ke[Ht];Fr(Pt,Qt,0,at,pt,mt,Ht)}return Pt}return Ke==null?void 0:Ke.map(function(xn,dn){return{record:xn,indent:0,index:dn}})},[Ke,at,pt,mt]);return kt}function so(Ke,at,pt,mt){var kt=y(M,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Pt=kt.flattenColumns,Ht=kt.expandableType,Qt=kt.expandedKeys,xn=kt.childrenColumnName,dn=kt.onTriggerExpand,Ln=kt.rowExpandable,yn=kt.onRow,An=kt.expandRowByClick,Cn=kt.rowClassName,jn=Ht==="nest",qn=Ht==="row"&&(!Ln||Ln(Ke)),mr=qn||jn,Or=Qt&&Qt.has(at),Hn=xn&&Ke&&Ke[xn],ur=lt(dn),Qn=yn==null?void 0:yn(Ke,pt),_r=Qn==null?void 0:Qn.onClick,Xr=function(Bi){An&&mr&&dn(Ke,Bi);for(var te=arguments.length,Ee=new Array(te>1?te-1:0),Ae=1;Ae<te;Ae++)Ee[Ae-1]=arguments[Ae];_r==null||_r.apply(void 0,[Bi].concat(Ee))},Cr;typeof Cn=="string"?Cr=Cn:typeof Cn=="function"&&(Cr=Cn(Ke,pt,mt));var wi=ke(Pt);return(0,G.Z)((0,G.Z)({},kt),{},{columnsKey:wi,nestExpandable:jn,expanded:Or,hasNestChildren:Hn,record:Ke,onTriggerExpand:ur,rowSupportExpand:qn,expandable:mr,rowProps:(0,G.Z)((0,G.Z)({},Qn),{},{className:ue()(Cr,Qn==null?void 0:Qn.className),onClick:Xr})})}function Gi(Ke){var at=Ke.prefixCls,pt=Ke.children,mt=Ke.component,kt=Ke.cellComponent,Pt=Ke.className,Ht=Ke.expanded,Qt=Ke.colSpan,xn=Ke.isEmpty,dn=y(M,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Ln=dn.scrollbarSize,yn=dn.fixHeader,An=dn.fixColumn,Cn=dn.componentWidth,jn=dn.horizonScroll,qn=pt;return(xn?jn&&Cn:An)&&(qn=u.createElement("div",{style:{width:Cn-(yn&&!xn?Ln:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(at,"-expanded-row-fixed")},qn)),u.createElement(mt,{className:Pt,style:{display:Ht?null:"none"}},u.createElement(Mt,{component:kt,prefixCls:at,colSpan:Qt},qn))}var sr=Gi;function ys(Ke){var at=Ke.prefixCls,pt=Ke.record,mt=Ke.onExpand,kt=Ke.expanded,Pt=Ke.expandable,Ht="".concat(at,"-row-expand-icon");if(!Pt)return u.createElement("span",{className:ue()(Ht,"".concat(at,"-row-spaced"))});var Qt=function(dn){mt(pt,dn),dn.stopPropagation()};return u.createElement("span",{className:ue()(Ht,(0,Q.Z)((0,Q.Z)({},"".concat(at,"-row-expanded"),kt),"".concat(at,"-row-collapsed"),!kt)),onClick:Qt})}function Wo(Ke,at,pt){var mt=[];function kt(Pt){(Pt||[]).forEach(function(Ht,Qt){mt.push(at(Ht,Qt)),kt(Ht[pt])})}return kt(Ke),mt}function Ro(Ke,at,pt,mt){return typeof Ke=="string"?Ke:typeof Ke=="function"?Ke(at,pt,mt):""}function hn(Ke,at,pt,mt,kt){var Pt=Ke.record,Ht=Ke.prefixCls,Qt=Ke.columnsKey,xn=Ke.fixedInfoList,dn=Ke.expandIconColumnIndex,Ln=Ke.nestExpandable,yn=Ke.indentSize,An=Ke.expandIcon,Cn=Ke.expanded,jn=Ke.hasNestChildren,qn=Ke.onTriggerExpand,mr=Qt[pt],Or=xn[pt],Hn;pt===(dn||0)&&Ln&&(Hn=u.createElement(u.Fragment,null,u.createElement("span",{style:{paddingLeft:"".concat(yn*mt,"px")},className:"".concat(Ht,"-row-indent indent-level-").concat(mt)}),An({prefixCls:Ht,expanded:Cn,expandable:jn,record:Pt,onExpand:qn})));var ur;return at.onCell&&(ur=at.onCell(Pt,kt)),{key:mr,fixedInfo:Or,appendCellNode:Hn,additionalCellProps:ur||{}}}function us(Ke){var at=Ke.className,pt=Ke.style,mt=Ke.record,kt=Ke.index,Pt=Ke.renderIndex,Ht=Ke.rowKey,Qt=Ke.indent,xn=Qt===void 0?0:Qt,dn=Ke.rowComponent,Ln=Ke.cellComponent,yn=Ke.scopeCellComponent,An=so(mt,Ht,kt,xn),Cn=An.prefixCls,jn=An.flattenColumns,qn=An.expandedRowClassName,mr=An.expandedRowRender,Or=An.rowProps,Hn=An.expanded,ur=An.rowSupportExpand,Qn=u.useRef(!1);Qn.current||(Qn.current=Hn);var _r=Ro(qn,mt,kt,xn),Xr=u.createElement(dn,(0,S.Z)({},Or,{"data-row-key":Ht,className:ue()(at,"".concat(Cn,"-row"),"".concat(Cn,"-row-level-").concat(xn),Or==null?void 0:Or.className,(0,Q.Z)({},_r,xn>=1)),style:(0,G.Z)((0,G.Z)({},pt),Or==null?void 0:Or.style)}),jn.map(function(ni,Bi){var te=ni.render,Ee=ni.dataIndex,Ae=ni.className,Pe=hn(An,ni,Bi,xn,kt),Ye=Pe.key,Qe=Pe.fixedInfo,nt=Pe.appendCellNode,bt=Pe.additionalCellProps;return u.createElement(Mt,(0,S.Z)({className:Ae,ellipsis:ni.ellipsis,align:ni.align,scope:ni.rowScope,component:ni.rowScope?yn:Ln,prefixCls:Cn,key:Ye,record:mt,index:kt,renderIndex:Pt,dataIndex:Ee,render:te,shouldCellUpdate:ni.shouldCellUpdate},Qe,{appendNode:nt,additionalProps:bt}))})),Cr;if(ur&&(Qn.current||Hn)){var wi=mr(mt,kt,xn+1,Hn);Cr=u.createElement(sr,{expanded:Hn,className:ue()("".concat(Cn,"-expanded-row"),"".concat(Cn,"-expanded-row-level-").concat(xn+1),_r),prefixCls:Cn,component:dn,cellComponent:Ln,colSpan:jn.length,isEmpty:!1},wi)}return u.createElement(u.Fragment,null,Xr,Cr)}var cs=A(us);function yo(Ke){var at=Ke.columnKey,pt=Ke.onColumnResize,mt=u.useRef();return u.useEffect(function(){mt.current&&pt(at,mt.current.offsetWidth)},[]),u.createElement(ye.Z,{data:at},u.createElement("td",{ref:mt,style:{padding:0,border:0,height:0}},u.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Bs(Ke){var at=Ke.prefixCls,pt=Ke.columnsKey,mt=Ke.onColumnResize;return u.createElement("tr",{"aria-hidden":"true",className:"".concat(at,"-measure-row"),style:{height:0,fontSize:0}},u.createElement(ye.Z.Collection,{onBatchResize:function(Pt){Pt.forEach(function(Ht){var Qt=Ht.data,xn=Ht.size;mt(Qt,xn.offsetWidth)})}},pt.map(function(kt){return u.createElement(yo,{key:kt,columnKey:kt,onColumnResize:mt})})))}function Yi(Ke){var at=Ke.data,pt=Ke.measureColumnWidth,mt=y(M,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),kt=mt.prefixCls,Pt=mt.getComponent,Ht=mt.onColumnResize,Qt=mt.flattenColumns,xn=mt.getRowKey,dn=mt.expandedKeys,Ln=mt.childrenColumnName,yn=mt.emptyNode,An=Di(at,Ln,dn,xn),Cn=u.useRef({renderWithProps:!1}),jn=Pt(["body","wrapper"],"tbody"),qn=Pt(["body","row"],"tr"),mr=Pt(["body","cell"],"td"),Or=Pt(["body","cell"],"th"),Hn;at.length?Hn=An.map(function(Qn,_r){var Xr=Qn.record,Cr=Qn.indent,wi=Qn.index,ni=xn(Xr,_r);return u.createElement(cs,{key:ni,rowKey:ni,record:Xr,index:_r,renderIndex:wi,rowComponent:qn,cellComponent:mr,scopeCellComponent:Or,indent:Cr})}):Hn=u.createElement(sr,{expanded:!0,className:"".concat(kt,"-placeholder"),prefixCls:kt,component:qn,cellComponent:mr,colSpan:Qt.length,isEmpty:!0},yn);var ur=ke(Qt);return u.createElement(ee.Provider,{value:Cn.current},u.createElement(jn,{className:"".concat(kt,"-tbody")},pt&&u.createElement(Bs,{prefixCls:kt,columnsKey:ur,onColumnResize:Ht}),Hn))}var eo=A(Yi),Oi=b(62978),hi=["columnType"];function Ni(Ke){for(var at=Ke.colWidths,pt=Ke.columns,mt=Ke.columCount,kt=y(M,["tableLayout"]),Pt=kt.tableLayout,Ht=[],Qt=mt||pt.length,xn=!1,dn=Qt-1;dn>=0;dn-=1){var Ln=at[dn],yn=pt&&pt[dn],An=void 0,Cn=void 0;if(yn&&(An=yn[Oi.v],Pt==="auto"&&(Cn=yn.minWidth)),Ln||Cn||An||xn){var jn=An||{},qn=jn.columnType,mr=(0,sn.Z)(jn,hi);Ht.unshift(u.createElement("col",(0,S.Z)({key:dn,style:{width:Ln,minWidth:Cn}},mr))),xn=!0}}return u.createElement("colgroup",null,Ht)}var tn=Ni,_i=b(74902),ut=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Ge(Ke,at){return(0,u.useMemo)(function(){for(var pt=[],mt=0;mt<at;mt+=1){var kt=Ke[mt];if(kt!==void 0)pt[mt]=kt;else return null}return pt},[Ke.join("_"),at])}var an=u.forwardRef(function(Ke,at){var pt=Ke.className,mt=Ke.noData,kt=Ke.columns,Pt=Ke.flattenColumns,Ht=Ke.colWidths,Qt=Ke.columCount,xn=Ke.stickyOffsets,dn=Ke.direction,Ln=Ke.fixHeader,yn=Ke.stickyTopOffset,An=Ke.stickyBottomOffset,Cn=Ke.stickyClassName,jn=Ke.onScroll,qn=Ke.maxContentScroll,mr=Ke.children,Or=(0,sn.Z)(Ke,ut),Hn=y(M,["prefixCls","scrollbarSize","isSticky","getComponent"]),ur=Hn.prefixCls,Qn=Hn.scrollbarSize,_r=Hn.isSticky,Xr=Hn.getComponent,Cr=Xr(["header","table"],"table"),wi=_r&&!Ln?0:Qn,ni=u.useRef(null),Bi=u.useCallback(function(bt){Ne(at,bt),Ne(ni,bt)},[]);u.useEffect(function(){var bt;function Ft(Bt){var Rt=Bt,Zt=Rt.currentTarget,Jt=Rt.deltaX;Jt&&(jn({currentTarget:Zt,scrollLeft:Zt.scrollLeft+Jt}),Bt.preventDefault())}return(bt=ni.current)===null||bt===void 0||bt.addEventListener("wheel",Ft,{passive:!1}),function(){var Bt;(Bt=ni.current)===null||Bt===void 0||Bt.removeEventListener("wheel",Ft)}},[]);var te=u.useMemo(function(){return Pt.every(function(bt){return bt.width})},[Pt]),Ee=Pt[Pt.length-1],Ae={fixed:Ee?Ee.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(ur,"-cell-scrollbar")}}},Pe=(0,u.useMemo)(function(){return wi?[].concat((0,_i.Z)(kt),[Ae]):kt},[wi,kt]),Ye=(0,u.useMemo)(function(){return wi?[].concat((0,_i.Z)(Pt),[Ae]):Pt},[wi,Pt]),Qe=(0,u.useMemo)(function(){var bt=xn.right,Ft=xn.left;return(0,G.Z)((0,G.Z)({},xn),{},{left:dn==="rtl"?[].concat((0,_i.Z)(Ft.map(function(Bt){return Bt+wi})),[0]):Ft,right:dn==="rtl"?bt:[].concat((0,_i.Z)(bt.map(function(Bt){return Bt+wi})),[0]),isSticky:_r})},[wi,xn,_r]),nt=Ge(Ht,Qt);return u.createElement("div",{style:(0,G.Z)({overflow:"hidden"},_r?{top:yn,bottom:An}:{}),ref:Bi,className:ue()(pt,(0,Q.Z)({},Cn,!!Cn))},u.createElement(Cr,{style:{tableLayout:"fixed",visibility:mt||nt?null:"hidden"}},(!mt||!qn||te)&&u.createElement(tn,{colWidths:nt?[].concat((0,_i.Z)(nt),[wi]):[],columCount:Qt+1,columns:Ye}),mr((0,G.Z)((0,G.Z)({},Or),{},{stickyOffsets:Qe,columns:Pe,flattenColumns:Ye}))))}),it=u.memo(an),dt=function(at){var pt=at.cells,mt=at.stickyOffsets,kt=at.flattenColumns,Pt=at.rowComponent,Ht=at.cellComponent,Qt=at.onHeaderRow,xn=at.index,dn=y(M,["prefixCls","direction"]),Ln=dn.prefixCls,yn=dn.direction,An;Qt&&(An=Qt(pt.map(function(jn){return jn.column}),xn));var Cn=ke(pt.map(function(jn){return jn.column}));return u.createElement(Pt,An,pt.map(function(jn,qn){var mr=jn.column,Or=On(jn.colStart,jn.colEnd,kt,mt,yn),Hn;return mr&&mr.onHeaderCell&&(Hn=jn.column.onHeaderCell(mr)),u.createElement(Mt,(0,S.Z)({},jn,{scope:mr.title?jn.colSpan>1?"colgroup":"col":null,ellipsis:mr.ellipsis,align:mr.align,component:Ht,prefixCls:Ln,key:Cn[qn]},Or,{additionalProps:Hn,rowType:"header"}))}))},Et=dt;function Dt(Ke){var at=[];function pt(Ht,Qt){var xn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;at[xn]=at[xn]||[];var dn=Qt,Ln=Ht.filter(Boolean).map(function(yn){var An={key:yn.key,className:yn.className||"",children:yn.title,column:yn,colStart:dn},Cn=1,jn=yn.children;return jn&&jn.length>0&&(Cn=pt(jn,dn,xn+1).reduce(function(qn,mr){return qn+mr},0),An.hasSubColumns=!0),"colSpan"in yn&&(Cn=yn.colSpan),"rowSpan"in yn&&(An.rowSpan=yn.rowSpan),An.colSpan=Cn,An.colEnd=An.colStart+Cn-1,at[xn].push(An),dn+=Cn,Cn});return Ln}pt(Ke,0);for(var mt=at.length,kt=function(Qt){at[Qt].forEach(function(xn){!("rowSpan"in xn)&&!xn.hasSubColumns&&(xn.rowSpan=mt-Qt)})},Pt=0;Pt<mt;Pt+=1)kt(Pt);return at}var gn=function(at){var pt=at.stickyOffsets,mt=at.columns,kt=at.flattenColumns,Pt=at.onHeaderRow,Ht=y(M,["prefixCls","getComponent"]),Qt=Ht.prefixCls,xn=Ht.getComponent,dn=u.useMemo(function(){return Dt(mt)},[mt]),Ln=xn(["header","wrapper"],"thead"),yn=xn(["header","row"],"tr"),An=xn(["header","cell"],"th");return u.createElement(Ln,{className:"".concat(Qt,"-thead")},dn.map(function(Cn,jn){var qn=u.createElement(Et,{key:jn,flattenColumns:kt,cells:Cn,stickyOffsets:pt,rowComponent:yn,cellComponent:An,onHeaderRow:Pt,index:jn});return qn}))},Mn=A(gn),In=b(54768);function nn(Ke,at,pt){var mt=(0,Oi.g)(Ke),kt=mt.expandIcon,Pt=mt.expandedRowKeys,Ht=mt.defaultExpandedRowKeys,Qt=mt.defaultExpandAllRows,xn=mt.expandedRowRender,dn=mt.onExpand,Ln=mt.onExpandedRowsChange,yn=mt.childrenColumnName,An=kt||ys,Cn=yn||"children",jn=u.useMemo(function(){return xn?"row":Ke.expandable&&Ke.internalHooks===B.R&&Ke.expandable.__PARENT_RENDER_ICON__||at.some(function(_r){return _r&&(0,V.Z)(_r)==="object"&&_r[Cn]})?"nest":!1},[!!xn,at]),qn=u.useState(function(){return Ht||(Qt?Wo(at,pt,Cn):[])}),mr=(0,Y.Z)(qn,2),Or=mr[0],Hn=mr[1],ur=u.useMemo(function(){return new Set(Pt||Or||[])},[Pt,Or]),Qn=u.useCallback(function(_r){var Xr=pt(_r,at.indexOf(_r)),Cr,wi=ur.has(Xr);wi?(ur.delete(Xr),Cr=(0,_i.Z)(ur)):Cr=[].concat((0,_i.Z)(ur),[Xr]),Hn(Cr),dn&&dn(!wi,_r),Ln&&Ln(Cr)},[pt,ur,at,dn,Ln]);return[mt,jn,ur,An,Cn,Qn]}function Ue(Ke,at,pt){var mt=Ke.map(function(kt,Pt){return On(Pt,Pt,Ke,at,pt)});return ae(function(){return mt},[mt],function(kt,Pt){return!we(kt,Pt)})}function kr(Ke){var at=(0,u.useRef)(Ke),pt=(0,u.useState)({}),mt=(0,Y.Z)(pt,2),kt=mt[1],Pt=(0,u.useRef)(null),Ht=(0,u.useRef)([]);function Qt(xn){Ht.current.push(xn);var dn=Promise.resolve();Pt.current=dn,dn.then(function(){if(Pt.current===dn){var Ln=Ht.current,yn=at.current;Ht.current=[],Ln.forEach(function(An){at.current=An(at.current)}),Pt.current=null,yn!==at.current&&kt({})}})}return(0,u.useEffect)(function(){return function(){Pt.current=null}},[]),[at.current,Qt]}function Br(Ke){var at=(0,u.useRef)(Ke||null),pt=(0,u.useRef)();function mt(){window.clearTimeout(pt.current)}function kt(Ht){at.current=Ht,mt(),pt.current=window.setTimeout(function(){at.current=null,pt.current=void 0},100)}function Pt(){return at.current}return(0,u.useEffect)(function(){return mt},[]),[kt,Pt]}function ei(){var Ke=u.useState(-1),at=(0,Y.Z)(Ke,2),pt=at[0],mt=at[1],kt=u.useState(-1),Pt=(0,Y.Z)(kt,2),Ht=Pt[0],Qt=Pt[1],xn=u.useCallback(function(dn,Ln){mt(dn),Qt(Ln)},[]);return[pt,Ht,xn]}var ti=Re()?window:null;function Jr(Ke,at){var pt=(0,V.Z)(Ke)==="object"?Ke:{},mt=pt.offsetHeader,kt=mt===void 0?0:mt,Pt=pt.offsetSummary,Ht=Pt===void 0?0:Pt,Qt=pt.offsetScroll,xn=Qt===void 0?0:Qt,dn=pt.getContainer,Ln=dn===void 0?function(){return ti}:dn,yn=Ln()||ti,An=!!Ke;return u.useMemo(function(){return{isSticky:An,stickyClassName:An?"".concat(at,"-sticky-holder"):"",offsetHeader:kt,offsetSummary:Ht,offsetScroll:xn,container:yn}},[An,xn,kt,Ht,at,yn])}function Wr(Ke,at,pt){var mt=(0,u.useMemo)(function(){var kt=at.length,Pt=function(dn,Ln,yn){for(var An=[],Cn=0,jn=dn;jn!==Ln;jn+=yn)An.push(Cn),at[jn].fixed&&(Cn+=Ke[jn]||0);return An},Ht=Pt(0,kt,1),Qt=Pt(kt-1,-1,-1).reverse();return pt==="rtl"?{left:Qt,right:Ht}:{left:Ht,right:Qt}},[Ke,at,pt]);return mt}var Ri=Wr;function ri(Ke){var at=Ke.className,pt=Ke.children;return u.createElement("div",{className:at},pt)}var wr=ri;function rr(Ke,at,pt,mt){var kt=d.unstable_batchedUpdates?function(Ht){d.unstable_batchedUpdates(pt,Ht)}:pt;return Ke!=null&&Ke.addEventListener&&Ke.addEventListener(at,kt,mt),{remove:function(){Ke!=null&&Ke.removeEventListener&&Ke.removeEventListener(at,kt,mt)}}}var Ir=function(at){return+setTimeout(at,16)},Nr=function(at){return clearTimeout(at)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Ir=function(at){return window.requestAnimationFrame(at)},Nr=function(at){return window.cancelAnimationFrame(at)});var $r=0,Yt=new Map;function Sr(Ke){Yt.delete(Ke)}var fr=function(at){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;$r+=1;var mt=$r;function kt(Pt){if(Pt===0)Sr(mt),at();else{var Ht=Ir(function(){kt(Pt-1)});Yt.set(mt,Ht)}}return kt(pt),mt};fr.cancel=function(Ke){var at=Yt.get(Ke);return Sr(Ke),Nr(at)};var pi=fr;function Pi(Ke){return Ke instanceof HTMLElement||Ke instanceof SVGElement}function Ai(Ke){return Ke&&(0,V.Z)(Ke)==="object"&&Pi(Ke.nativeElement)?Ke.nativeElement:Pi(Ke)?Ke:null}function Ji(Ke){var at=Ai(Ke);if(at)return at;if(Ke instanceof React.Component){var pt;return(pt=ReactDOM.findDOMNode)===null||pt===void 0?void 0:pt.call(ReactDOM,Ke)}return null}function To(Ke){var at=Ai(Ke),pt=at.getBoundingClientRect(),mt=document.documentElement;return{left:pt.left+(window.pageXOffset||mt.scrollLeft)-(mt.clientLeft||document.body.clientLeft||0),top:pt.top+(window.pageYOffset||mt.scrollTop)-(mt.clientTop||document.body.clientTop||0)}}var _o=function(at,pt){var mt,kt,Pt=at.scrollBodyRef,Ht=at.onScroll,Qt=at.offsetScroll,xn=at.container,dn=at.direction,Ln=y(M,"prefixCls"),yn=((mt=Pt.current)===null||mt===void 0?void 0:mt.scrollWidth)||0,An=((kt=Pt.current)===null||kt===void 0?void 0:kt.clientWidth)||0,Cn=yn&&An*(An/yn),jn=u.useRef(),qn=kr({scrollLeft:0,isHiddenScrollBar:!0}),mr=(0,Y.Z)(qn,2),Or=mr[0],Hn=mr[1],ur=u.useRef({delta:0,x:0}),Qn=u.useState(!1),_r=(0,Y.Z)(Qn,2),Xr=_r[0],Cr=_r[1],wi=u.useRef(null);u.useEffect(function(){return function(){pi.cancel(wi.current)}},[]);var ni=function(){Cr(!1)},Bi=function(Ye){Ye.persist(),ur.current.delta=Ye.pageX-Or.scrollLeft,ur.current.x=0,Cr(!0),Ye.preventDefault()},te=function(Ye){var Qe,nt=Ye||((Qe=window)===null||Qe===void 0?void 0:Qe.event),bt=nt.buttons;if(!Xr||bt===0){Xr&&Cr(!1);return}var Ft=ur.current.x+Ye.pageX-ur.current.x-ur.current.delta,Bt=dn==="rtl";Ft=Math.max(Bt?Cn-An:0,Math.min(Bt?0:An-Cn,Ft));var Rt=!Bt||Math.abs(Ft)+Math.abs(Cn)<An;Rt&&(Ht({scrollLeft:Ft/An*(yn+2)}),ur.current.x=Ye.pageX)},Ee=function(){pi.cancel(wi.current),wi.current=pi(function(){if(Pt.current){var Ye=To(Pt.current).top,Qe=Ye+Pt.current.offsetHeight,nt=xn===window?document.documentElement.scrollTop+window.innerHeight:To(xn).top+xn.clientHeight;Qe-hr()<=nt||Ye>=nt-Qt?Hn(function(bt){return(0,G.Z)((0,G.Z)({},bt),{},{isHiddenScrollBar:!0})}):Hn(function(bt){return(0,G.Z)((0,G.Z)({},bt),{},{isHiddenScrollBar:!1})})}})},Ae=function(Ye){Hn(function(Qe){return(0,G.Z)((0,G.Z)({},Qe),{},{scrollLeft:Ye/yn*An||0})})};return u.useImperativeHandle(pt,function(){return{setScrollLeft:Ae,checkScrollBarVisible:Ee}}),u.useEffect(function(){var Pe=rr(document.body,"mouseup",ni,!1),Ye=rr(document.body,"mousemove",te,!1);return Ee(),function(){Pe.remove(),Ye.remove()}},[Cn,Xr]),u.useEffect(function(){if(Pt.current){for(var Pe=[],Ye=Ai(Pt.current);Ye;)Pe.push(Ye),Ye=Ye.parentElement;return Pe.forEach(function(Qe){return Qe.addEventListener("scroll",Ee,!1)}),window.addEventListener("resize",Ee,!1),window.addEventListener("scroll",Ee,!1),xn.addEventListener("scroll",Ee,!1),function(){Pe.forEach(function(Qe){return Qe.removeEventListener("scroll",Ee)}),window.removeEventListener("resize",Ee),window.removeEventListener("scroll",Ee),xn.removeEventListener("scroll",Ee)}}},[xn]),u.useEffect(function(){Or.isHiddenScrollBar||Hn(function(Pe){var Ye=Pt.current;return Ye?(0,G.Z)((0,G.Z)({},Pe),{},{scrollLeft:Ye.scrollLeft/Ye.scrollWidth*Ye.clientWidth}):Pe})},[Or.isHiddenScrollBar]),yn<=An||!Cn||Or.isHiddenScrollBar?null:u.createElement("div",{style:{height:hr(),width:An,bottom:Qt},className:"".concat(Ln,"-sticky-scroll")},u.createElement("div",{onMouseDown:Bi,ref:jn,className:ue()("".concat(Ln,"-sticky-scroll-bar"),(0,Q.Z)({},"".concat(Ln,"-sticky-scroll-bar-active"),Xr)),style:{width:"".concat(Cn,"px"),transform:"translate3d(".concat(Or.scrollLeft,"px, 0, 0)")}}))},bo=u.forwardRef(_o);function Vo(Ke){return null}var Nt=Vo;function no(Ke){return null}var Fo=no,Xo="rc-table",ho=[],Zo={};function ko(){return"No Data"}function hs(Ke,at){var pt=(0,G.Z)({rowKey:"key",prefixCls:Xo,emptyText:ko},Ke),mt=pt.prefixCls,kt=pt.className,Pt=pt.rowClassName,Ht=pt.style,Qt=pt.data,xn=pt.rowKey,dn=pt.scroll,Ln=pt.tableLayout,yn=pt.direction,An=pt.title,Cn=pt.footer,jn=pt.summary,qn=pt.caption,mr=pt.id,Or=pt.showHeader,Hn=pt.components,ur=pt.emptyText,Qn=pt.onRow,_r=pt.onHeaderRow,Xr=pt.onScroll,Cr=pt.internalHooks,wi=pt.transformColumns,ni=pt.internalRefs,Bi=pt.tailor,te=pt.getContainerWidth,Ee=pt.sticky,Ae=pt.rowHoverable,Pe=Ae===void 0?!0:Ae,Ye=Qt||ho,Qe=!!Ye.length,nt=Cr===B.R,bt=u.useCallback(function(vo,Xi){return me(Hn,vo)||Xi},[Hn]),Ft=u.useMemo(function(){return typeof xn=="function"?xn:function(vo){var Xi=vo&&vo[xn];return Xi}},[xn]),Bt=bt(["body"]),Rt=ei(),Zt=(0,Y.Z)(Rt,3),Jt=Zt[0],zt=Zt[1],k=Zt[2],U=nn(pt,Ye,Ft),Ce=(0,Y.Z)(U,6),et=Ce[0],It=Ce[1],Ut=Ce[2],pn=Ce[3],wn=Ce[4],fn=Ce[5],Tr=dn==null?void 0:dn.x,Li=u.useState(0),ci=(0,Y.Z)(Li,2),qi=ci[0],Uo=ci[1],lo=(0,In.Z)((0,G.Z)((0,G.Z)((0,G.Z)({},pt),et),{},{expandable:!!et.expandedRowRender,columnTitle:et.columnTitle,expandedKeys:Ut,getRowKey:Ft,onTriggerExpand:fn,expandIcon:pn,expandIconColumnIndex:et.expandIconColumnIndex,direction:yn,scrollWidth:nt&&Bi&&typeof Tr=="number"?Tr:null,clientWidth:qi}),nt?wi:null),$n=(0,Y.Z)(lo,4),Mi=$n[0],Ur=$n[1],uo=$n[2],Eo=$n[3],Mo=uo!=null?uo:Tr,Qs=u.useMemo(function(){return{columns:Mi,flattenColumns:Ur}},[Mi,Ur]),$t=u.useRef(),Rs=u.useRef(),Ao=u.useRef(),en=u.useRef();u.useImperativeHandle(at,function(){return{nativeElement:$t.current,scrollTo:function(Xi){var $s;if(Ao.current instanceof HTMLElement){var bl=Xi.index,Ea=Xi.top,Zl=Xi.key;if(Be(Ea)){var ta;(ta=Ao.current)===null||ta===void 0||ta.scrollTo({top:Ea})}else{var Vu,Cs=Zl!=null?Zl:Ft(Ye[bl]);(Vu=Ao.current.querySelector('[data-row-key="'.concat(Cs,'"]')))===null||Vu===void 0||Vu.scrollIntoView()}}else($s=Ao.current)!==null&&$s!==void 0&&$s.scrollTo&&Ao.current.scrollTo(Xi)}}});var Is=u.useRef(),Wa=u.useState(!1),wu=(0,Y.Z)(Wa,2),Ol=wu[0],Do=wu[1],Va=u.useState(!1),ss=(0,Y.Z)(Va,2),ra=ss[0],Pa=ss[1],rl=kr(new Map),Cu=(0,Y.Z)(rl,2),uu=Cu[0],zu=Cu[1],$l=ke(Ur),Ka=$l.map(function(vo){return uu.get(vo)}),cu=u.useMemo(function(){return Ka},[Ka.join("_")]),Xl=Ri(cu,Ur,yn),Ko=dn&&De(dn.y),ia=dn&&De(Mo)||!!et.fixed,vl=ia&&Ur.some(function(vo){var Xi=vo.fixed;return Xi}),Ll=u.useRef(),Un=Jr(Ee,mt),pr=Un.isSticky,Ui=Un.offsetHeader,po=Un.offsetSummary,Ii=Un.offsetScroll,ha=Un.stickyClassName,fa=Un.container,as=u.useMemo(function(){return jn==null?void 0:jn(Ye)},[jn,Ye]),xa=(Ko||pr)&&u.isValidElement(as)&&as.type===tr&&as.props.fixed,yl,Os,Ml;Ko&&(Os={overflowY:Qe?"scroll":"auto",maxHeight:dn.y}),ia&&(yl={overflowX:"auto"},Ko||(Os={overflowY:"hidden"}),Ml={width:Mo===!0?"auto":Mo,minWidth:"100%"});var oa=u.useCallback(function(vo,Xi){Vt($t.current)&&zu(function($s){if($s.get(vo)!==Xi){var bl=new Map($s);return bl.set(vo,Xi),bl}return $s})},[]),il=Br(null),Gu=(0,Y.Z)(il,2),Gc=Gu[0],vi=Gu[1];function oi(vo,Xi){Xi&&(typeof Xi=="function"?Xi(vo):Xi.scrollLeft!==vo&&(Xi.scrollLeft=vo,Xi.scrollLeft!==vo&&setTimeout(function(){Xi.scrollLeft=vo},0)))}var Qr=lt(function(vo){var Xi=vo.currentTarget,$s=vo.scrollLeft,bl=yn==="rtl",Ea=typeof $s=="number"?$s:Xi.scrollLeft,Zl=Xi||Zo;if(!vi()||vi()===Zl){var ta;Gc(Zl),oi(Ea,Rs.current),oi(Ea,Ao.current),oi(Ea,Is.current),oi(Ea,(ta=Ll.current)===null||ta===void 0?void 0:ta.setScrollLeft)}var Vu=Xi||Rs.current;if(Vu){var Cs=nt&&Bi&&typeof Mo=="number"?Mo:Vu.scrollWidth,_c=Vu.clientWidth;if(Cs===_c){Do(!1),Pa(!1);return}bl?(Do(-Ea<Cs-_c),Pa(-Ea>0)):(Do(Ea>0),Pa(Ea<Cs-_c))}}),Yo=lt(function(vo){Qr(vo),Xr==null||Xr(vo)}),ea=function(){if(ia&&Ao.current){var Xi;Qr({currentTarget:Ai(Ao.current),scrollLeft:(Xi=Ao.current)===null||Xi===void 0?void 0:Xi.scrollLeft})}else Do(!1),Pa(!1)},Wu=function(Xi){var $s,bl=Xi.width;($s=Ll.current)===null||$s===void 0||$s.checkScrollBarVisible();var Ea=$t.current?$t.current.offsetWidth:bl;nt&&te&&$t.current&&(Ea=te($t.current,Ea)||Ea),Ea!==qi&&(ea(),Uo(Ea))},hu=u.useRef(!1);u.useEffect(function(){hu.current&&ea()},[ia,Qt,Mi.length]),u.useEffect(function(){hu.current=!0},[]);var Ct=u.useState(0),Tu=(0,Y.Z)(Ct,2),Ya=Tu[0],Ec=Tu[1],Cf=u.useState(!0),Tf=(0,Y.Z)(Cf,2),Kh=Tf[0],ep=Tf[1];u.useEffect(function(){(!Bi||!nt)&&(Ao.current instanceof Element?Ec(zi(Ao.current).width):Ec(zi(en.current).width)),ep(Zn("position","sticky"))},[]),u.useEffect(function(){nt&&ni&&(ni.body.current=Ao.current)});var da=u.useCallback(function(vo){return u.createElement(u.Fragment,null,u.createElement(Mn,vo),xa==="top"&&u.createElement(Ar,vo,as))},[xa,as]),gh=u.useCallback(function(vo){return u.createElement(Ar,vo,as)},[as]),Yh=bt(["table"],"table"),mh=u.useMemo(function(){return Ln||(vl?Mo==="max-content"?"auto":"fixed":Ko||pr||Ur.some(function(vo){var Xi=vo.ellipsis;return Xi})?"fixed":"auto")},[Ko,vl,Ur,Ln,pr]),$h,Xh={colWidths:cu,columCount:Ur.length,stickyOffsets:Xl,onHeaderRow:_r,fixHeader:Ko,scroll:dn},_f=u.useMemo(function(){return Qe?null:typeof ur=="function"?ur():ur},[Qe,ur]),Zh=u.createElement(eo,{data:Ye,measureColumnWidth:Ko||ia||pr}),ol=u.createElement(tn,{colWidths:Ur.map(function(vo){var Xi=vo.width;return Xi}),columns:Ur}),wc=qn!=null?u.createElement("caption",{className:"".concat(mt,"-caption")},qn):void 0,Af=Mr(pt,{data:!0}),fu=Mr(pt,{aria:!0});if(Ko||pr){var Cc;typeof Bt=="function"?(Cc=Bt(Ye,{scrollbarSize:Ya,ref:Ao,onScroll:Qr}),Xh.colWidths=Ur.map(function(vo,Xi){var $s=vo.width,bl=Xi===Ur.length-1?$s-Ya:$s;return typeof bl=="number"&&!Number.isNaN(bl)?bl:0})):Cc=u.createElement("div",{style:(0,G.Z)((0,G.Z)({},yl),Os),onScroll:Yo,ref:Ao,className:ue()("".concat(mt,"-body"))},u.createElement(Yh,(0,S.Z)({style:(0,G.Z)((0,G.Z)({},Ml),{},{tableLayout:mh})},fu),wc,ol,Zh,!xa&&as&&u.createElement(Ar,{stickyOffsets:Xl,flattenColumns:Ur},as)));var vh=(0,G.Z)((0,G.Z)((0,G.Z)({noData:!Ye.length,maxContentScroll:ia&&Mo==="max-content"},Xh),Qs),{},{direction:yn,stickyClassName:ha,onScroll:Qr});$h=u.createElement(u.Fragment,null,Or!==!1&&u.createElement(it,(0,S.Z)({},vh,{stickyTopOffset:Ui,className:"".concat(mt,"-header"),ref:Rs}),da),Cc,xa&&xa!=="top"&&u.createElement(it,(0,S.Z)({},vh,{stickyBottomOffset:po,className:"".concat(mt,"-summary"),ref:Is}),gh),pr&&Ao.current&&Ao.current instanceof Element&&u.createElement(bo,{ref:Ll,offsetScroll:Ii,scrollBodyRef:Ao,onScroll:Qr,container:fa,direction:yn}))}else $h=u.createElement("div",{style:(0,G.Z)((0,G.Z)({},yl),Os),className:ue()("".concat(mt,"-content")),onScroll:Qr,ref:Ao},u.createElement(Yh,(0,S.Z)({style:(0,G.Z)((0,G.Z)({},Ml),{},{tableLayout:mh})},fu),wc,ol,Or!==!1&&u.createElement(Mn,(0,S.Z)({},Xh,Qs)),Zh,as&&u.createElement(Ar,{stickyOffsets:Xl,flattenColumns:Ur},as)));var Tc=u.createElement("div",(0,S.Z)({className:ue()(mt,kt,(0,Q.Z)((0,Q.Z)((0,Q.Z)((0,Q.Z)((0,Q.Z)((0,Q.Z)((0,Q.Z)((0,Q.Z)((0,Q.Z)((0,Q.Z)({},"".concat(mt,"-rtl"),yn==="rtl"),"".concat(mt,"-ping-left"),Ol),"".concat(mt,"-ping-right"),ra),"".concat(mt,"-layout-fixed"),Ln==="fixed"),"".concat(mt,"-fixed-header"),Ko),"".concat(mt,"-fixed-column"),vl),"".concat(mt,"-fixed-column-gapped"),vl&&Eo),"".concat(mt,"-scroll-horizontal"),ia),"".concat(mt,"-has-fix-left"),Ur[0]&&Ur[0].fixed),"".concat(mt,"-has-fix-right"),Ur[Ur.length-1]&&Ur[Ur.length-1].fixed==="right")),style:Ht,id:mr,ref:$t},Af),An&&u.createElement(wr,{className:"".concat(mt,"-title")},An(Ye)),u.createElement("div",{ref:en,className:"".concat(mt,"-container")},$h),Cn&&u.createElement(wr,{className:"".concat(mt,"-footer")},Cn(Ye)));ia&&(Tc=u.createElement(ye.Z,{onResize:Wu},Tc));var $a=Ue(Ur,Xl,yn),kf=u.useMemo(function(){return{scrollX:Mo,prefixCls:mt,getComponent:bt,scrollbarSize:Ya,direction:yn,fixedInfoList:$a,isSticky:pr,supportSticky:Kh,componentWidth:qi,fixHeader:Ko,fixColumn:vl,horizonScroll:ia,tableLayout:mh,rowClassName:Pt,expandedRowClassName:et.expandedRowClassName,expandIcon:pn,expandableType:It,expandRowByClick:et.expandRowByClick,expandedRowRender:et.expandedRowRender,onTriggerExpand:fn,expandIconColumnIndex:et.expandIconColumnIndex,indentSize:et.indentSize,allColumnsFixedLeft:Ur.every(function(vo){return vo.fixed==="left"}),emptyNode:_f,columns:Mi,flattenColumns:Ur,onColumnResize:oa,hoverStartRow:Jt,hoverEndRow:zt,onHover:k,rowExpandable:et.rowExpandable,onRow:Qn,getRowKey:Ft,expandedKeys:Ut,childrenColumnName:wn,rowHoverable:Pe}},[Mo,mt,bt,Ya,yn,$a,pr,Kh,qi,Ko,vl,ia,mh,Pt,et.expandedRowClassName,pn,It,et.expandRowByClick,et.expandedRowRender,fn,et.expandIconColumnIndex,et.indentSize,_f,Mi,Ur,oa,Jt,zt,k,et.rowExpandable,Qn,Ft,Ut,wn,Pe]);return u.createElement(M.Provider,{value:kf},Tc)}var fi=u.forwardRef(hs);function $i(Ke){return R(fi,Ke)}var Rr=$i();Rr.EXPAND_COLUMN=B.w,Rr.INTERNAL_HOOKS=B.R,Rr.Column=Nt,Rr.ColumnGroup=Fo,Rr.Summary=Kt;var Yr=Rr;function ui(Ke){var at=u.useRef();at.current=Ke;var pt=u.useCallback(function(){for(var mt,kt=arguments.length,Pt=new Array(kt),Ht=0;Ht<kt;Ht++)Pt[Ht]=arguments[Ht];return(mt=at.current)===null||mt===void 0?void 0:mt.call.apply(mt,[at].concat(Pt))},[]);return pt}function ji(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Wn=ji()?u.useLayoutEffect:u.useEffect,mo=function(at,pt){var mt=u.useRef(!0);Wn(function(){return at(mt.current)},pt),Wn(function(){return mt.current=!1,function(){mt.current=!0}},[])},ao=function(at,pt){mo(function(mt){if(!mt)return at()},pt)},fo=mo;function ns(Ke){var at=React.useRef(!1),pt=React.useState(Ke),mt=_slicedToArray(pt,2),kt=mt[0],Pt=mt[1];React.useEffect(function(){return at.current=!1,function(){at.current=!0}},[]);function Ht(Qt,xn){xn&&at.current||Pt(Qt)}return[kt,Ht]}function fs(Ke){return Ke!==void 0}function Nn(Ke,at){var pt=at||{},mt=pt.defaultValue,kt=pt.value,Pt=pt.onChange,Ht=pt.postState,Qt=useState(function(){return fs(kt)?kt:fs(mt)?typeof mt=="function"?mt():mt:typeof Ke=="function"?Ke():Ke}),xn=_slicedToArray(Qt,2),dn=xn[0],Ln=xn[1],yn=kt!==void 0?kt:dn,An=Ht?Ht(yn):yn,Cn=useEvent(Pt),jn=useState([yn]),qn=_slicedToArray(jn,2),mr=qn[0],Or=qn[1];useLayoutUpdateEffect(function(){var ur=mr[0];dn!==ur&&Cn(dn,ur)},[mr]),useLayoutUpdateEffect(function(){fs(kt)||Ln(kt)},[kt]);var Hn=useEvent(function(ur,Qn){Ln(ur,Qn),Or([yn],Qn)});return[An,Hn]}function So(Ke,at,pt){var mt=React.useRef({});return(!("value"in mt.current)||pt(mt.current.condition,at))&&(mt.current.value=Ke(),mt.current.condition=at),mt.current.value}function No(Ke,at){typeof Ke=="function"?Ke(at):_typeof(Ke)==="object"&&Ke&&"current"in Ke&&(Ke.current=at)}function Es(){for(var Ke=arguments.length,at=new Array(Ke),pt=0;pt<Ke;pt++)at[pt]=arguments[pt];var mt=at.filter(function(kt){return kt});return mt.length<=1?mt[0]:function(kt){at.forEach(function(Pt){No(Pt,kt)})}}function go(){for(var Ke=arguments.length,at=new Array(Ke),pt=0;pt<Ke;pt++)at[pt]=arguments[pt];return useMemo(function(){return Es.apply(void 0,at)},at,function(mt,kt){return mt.length!==kt.length||mt.every(function(Pt,Ht){return Pt!==kt[Ht]})})}function bs(Ke){var at,pt,mt=isMemo(Ke)?Ke.type.type:Ke.type;return!(typeof mt=="function"&&!((at=mt.prototype)!==null&&at!==void 0&&at.render)||typeof Ke=="function"&&!((pt=Ke.prototype)!==null&&pt!==void 0&&pt.render))}function jr(Ke){return!isValidElement(Ke)||isFragment(Ke)?!1:bs(Ke)}function Zs(Ke,at,pt,mt){if(!at.length)return pt;var kt=_toArray(at),Pt=kt[0],Ht=kt.slice(1),Qt;return!Ke&&typeof Pt=="number"?Qt=[]:Array.isArray(Ke)?Qt=_toConsumableArray(Ke):Qt=_objectSpread({},Ke),mt&&pt===void 0&&Ht.length===1?delete Qt[Pt][Ht[0]]:Qt[Pt]=Zs(Qt[Pt],Ht,pt,mt),Qt}function Jo(Ke,at,pt){var mt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return at.length&&mt&&pt===void 0&&!get(Ke,at.slice(0,-1))?Ke:Zs(Ke,at,pt,mt)}function Qo(Ke){return _typeof(Ke)==="object"&&Ke!==null&&Object.getPrototypeOf(Ke)===Object.prototype}function ks(Ke){return Array.isArray(Ke)?[]:{}}var Ma=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function tl(){for(var Ke=arguments.length,at=new Array(Ke),pt=0;pt<Ke;pt++)at[pt]=arguments[pt];var mt=ks(at[0]);return at.forEach(function(kt){function Pt(Ht,Qt){var xn=new Set(Qt),dn=get(kt,Ht),Ln=Array.isArray(dn);if(Ln||Qo(dn)){if(!xn.has(dn)){xn.add(dn);var yn=get(mt,Ht);Ln?mt=Jo(mt,Ht,[]):(!yn||_typeof(yn)!=="object")&&(mt=Jo(mt,Ht,ks(dn))),Ma(dn).forEach(function(An){Pt([].concat(_toConsumableArray(Ht),[An]),xn)})}}else mt=Jo(mt,Ht,dn)}Pt([])}),mt}var rs={},Bo=[],ou=function(at){Bo.push(at)};function Eu(Ke,at){if(0)var pt}function su(Ke,at){if(0)var pt}function Al(){rs={}}function Js(Ke,at,pt){!at&&!rs[pt]&&(Ke(!1,pt),rs[pt]=!0)}function Ns(Ke,at){Js(Eu,Ke,at)}function Da(Ke,at){Js(su,Ke,at)}Ns.preMessage=ou,Ns.resetWarned=Al,Ns.noteOnce=Da;var nl=null,Pu=u.forwardRef(function(Ke,at){var pt=Ke.height,mt=Ke.offsetY,kt=Ke.offsetX,Pt=Ke.children,Ht=Ke.prefixCls,Qt=Ke.onInnerResize,xn=Ke.innerProps,dn=Ke.rtl,Ln=Ke.extra,yn={},An={display:"flex",flexDirection:"column"};return mt!==void 0&&(yn={height:pt,position:"relative",overflow:"hidden"},An=(0,G.Z)((0,G.Z)({},An),{},(0,Q.Z)((0,Q.Z)((0,Q.Z)((0,Q.Z)((0,Q.Z)({transform:"translateY(".concat(mt,"px)")},dn?"marginRight":"marginLeft",-kt),"position","absolute"),"left",0),"right",0),"top",0))),u.createElement("div",{style:yn},u.createElement(ye.Z,{onResize:function(jn){var qn=jn.offsetHeight;qn&&Qt&&Qt()}},u.createElement("div",(0,S.Z)({style:An,className:ue()((0,Q.Z)({},"".concat(Ht,"-holder-inner"),Ht)),ref:at},xn),Pt,Ln)))});Pu.displayName="Filler";var Fu=Pu;function tc(Ke){var at=Ke.children,pt=Ke.setRef,mt=u.useCallback(function(kt){pt(kt)},[]);return u.cloneElement(at,{ref:mt})}function is(Ke,at,pt,mt,kt,Pt,Ht,Qt){var xn=Qt.getKey;return Ke.slice(at,pt+1).map(function(dn,Ln){var yn=at+Ln,An=Ht(dn,yn,{style:{width:mt},offsetX:kt}),Cn=xn(dn);return u.createElement(tc,{key:Cn,setRef:function(qn){return Pt(dn,qn)}},An)})}function Uc(Ke,at,pt,mt){var kt=pt-Ke,Pt=at-pt,Ht=Math.min(kt,Pt)*2;if(mt<=Ht){var Qt=Math.floor(mt/2);return mt%2?pt+Qt+1:pt-Qt}return kt>Pt?pt-(mt-Pt):pt+(mt-kt)}function yc(Ke,at,pt){var mt=Ke.length,kt=at.length,Pt,Ht;if(mt===0&&kt===0)return null;mt<kt?(Pt=Ke,Ht=at):(Pt=at,Ht=Ke);var Qt={__EMPTY_ITEM__:!0};function xn(jn){return jn!==void 0?pt(jn):Qt}for(var dn=null,Ln=Math.abs(mt-kt)!==1,yn=0;yn<Ht.length;yn+=1){var An=xn(Pt[yn]),Cn=xn(Ht[yn]);if(An!==Cn){dn=yn,Ln=Ln||An!==xn(Ht[yn+1]);break}}return dn===null?null:{index:dn,multiple:Ln}}function Bu(Ke,at,pt){var mt=u.useState(Ke),kt=(0,Y.Z)(mt,2),Pt=kt[0],Ht=kt[1],Qt=u.useState(null),xn=(0,Y.Z)(Qt,2),dn=xn[0],Ln=xn[1];return u.useEffect(function(){var yn=yc(Pt||[],Ke||[],at);(yn==null?void 0:yn.index)!==void 0&&(pt==null||pt(yn.index),Ln(Ke[yn.index])),Ht(Ke)},[Ke]),[dn]}var kl=function(at){return+setTimeout(at,16)},Vs=function(at){return clearTimeout(at)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(kl=function(at){return window.requestAnimationFrame(at)},Vs=function(at){return window.cancelAnimationFrame(at)});var Ks=0,ws=new Map;function js(Ke){ws.delete(Ke)}var ju=function(at){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Ks+=1;var mt=Ks;function kt(Pt){if(Pt===0)js(mt),at();else{var Ht=kl(function(){kt(Pt-1)});ws.set(mt,Ht)}}return kt(pt),mt};ju.cancel=function(Ke){var at=ws.get(Ke);return js(at),Vs(at)};var ba=ju,os=(typeof navigator=="undefined"?"undefined":(0,V.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Uu=os,dl=function(Ke,at,pt,mt){var kt=(0,u.useRef)(!1),Pt=(0,u.useRef)(null);function Ht(){clearTimeout(Pt.current),kt.current=!0,Pt.current=setTimeout(function(){kt.current=!1},50)}var Qt=(0,u.useRef)({top:Ke,bottom:at,left:pt,right:mt});return Qt.current.top=Ke,Qt.current.bottom=at,Qt.current.left=pt,Qt.current.right=mt,function(xn,dn){var Ln=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,yn=xn?dn<0&&Qt.current.left||dn>0&&Qt.current.right:dn<0&&Qt.current.top||dn>0&&Qt.current.bottom;return Ln&&yn?(clearTimeout(Pt.current),kt.current=!1):(!yn||kt.current)&&Ht(),!kt.current&&yn}};function Wl(Ke,at,pt,mt,kt,Pt,Ht){var Qt=(0,u.useRef)(0),xn=(0,u.useRef)(null),dn=(0,u.useRef)(null),Ln=(0,u.useRef)(!1),yn=dl(at,pt,mt,kt);function An(Hn,ur){if(ba.cancel(xn.current),!yn(!1,ur)){var Qn=Hn;if(!Qn._virtualHandled)Qn._virtualHandled=!0;else return;Qt.current+=ur,dn.current=ur,Uu||Qn.preventDefault(),xn.current=ba(function(){var _r=Ln.current?10:1;Ht(Qt.current*_r,!1),Qt.current=0})}}function Cn(Hn,ur){Ht(ur,!0),Uu||Hn.preventDefault()}var jn=(0,u.useRef)(null),qn=(0,u.useRef)(null);function mr(Hn){if(Ke){ba.cancel(qn.current),qn.current=ba(function(){jn.current=null},2);var ur=Hn.deltaX,Qn=Hn.deltaY,_r=Hn.shiftKey,Xr=ur,Cr=Qn;(jn.current==="sx"||!jn.current&&_r&&Qn&&!ur)&&(Xr=Qn,Cr=0,jn.current="sx");var wi=Math.abs(Xr),ni=Math.abs(Cr);jn.current===null&&(jn.current=Pt&&wi>ni?"x":"y"),jn.current==="y"?An(Hn,Cr):Cn(Hn,Xr)}}function Or(Hn){Ke&&(Ln.current=Hn.detail===dn.current)}return[mr,Or]}function dr(Ke,at,pt,mt){var kt=u.useMemo(function(){return[new Map,[]]},[Ke,pt.id,mt]),Pt=(0,Y.Z)(kt,2),Ht=Pt[0],Qt=Pt[1],xn=function(Ln){var yn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ln,An=Ht.get(Ln),Cn=Ht.get(yn);if(An===void 0||Cn===void 0)for(var jn=Ke.length,qn=Qt.length;qn<jn;qn+=1){var mr,Or=Ke[qn],Hn=at(Or);Ht.set(Hn,qn);var ur=(mr=pt.get(Hn))!==null&&mr!==void 0?mr:mt;if(Qt[qn]=(Qt[qn-1]||0)+ur,Hn===Ln&&(An=qn),Hn===yn&&(Cn=qn),An!==void 0&&Cn!==void 0)break}return{top:Qt[An-1]||0,bottom:Qt[Cn]}};return xn}var nc=b(15671),vt=b(43144),un=function(){function Ke(){(0,nc.Z)(this,Ke),(0,Q.Z)(this,"maps",void 0),(0,Q.Z)(this,"id",0),(0,Q.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,vt.Z)(Ke,[{key:"set",value:function(pt,mt){this.maps[pt]=mt,this.id+=1,this.diffKeys.add(pt)}},{key:"get",value:function(pt){return this.maps[pt]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),Ke}(),bc=un;function Sc(Ke){var at=parseFloat(Ke);return isNaN(at)?0:at}function Nl(Ke,at,pt){var mt=u.useState(0),kt=(0,Y.Z)(mt,2),Pt=kt[0],Ht=kt[1],Qt=(0,u.useRef)(new Map),xn=(0,u.useRef)(new bc),dn=(0,u.useRef)(0);function Ln(){dn.current+=1}function yn(){var Cn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ln();var jn=function(){var Or=!1;Qt.current.forEach(function(Hn,ur){if(Hn&&Hn.offsetParent){var Qn=Hn.offsetHeight,_r=getComputedStyle(Hn),Xr=_r.marginTop,Cr=_r.marginBottom,wi=Sc(Xr),ni=Sc(Cr),Bi=Qn+wi+ni;xn.current.get(ur)!==Bi&&(xn.current.set(ur,Bi),Or=!0)}}),Or&&Ht(function(Hn){return Hn+1})};if(Cn)jn();else{dn.current+=1;var qn=dn.current;Promise.resolve().then(function(){qn===dn.current&&jn()})}}function An(Cn,jn){var qn=Ke(Cn),mr=Qt.current.get(qn);jn?(Qt.current.set(qn,jn),yn()):Qt.current.delete(qn),!mr!=!jn&&(jn?at==null||at(Cn):pt==null||pt(Cn))}return(0,u.useEffect)(function(){return Ln},[]),[An,yn,xn.current,Pt]}var Ga=14/15;function Vl(Ke,at,pt){var mt=(0,u.useRef)(!1),kt=(0,u.useRef)(0),Pt=(0,u.useRef)(0),Ht=(0,u.useRef)(null),Qt=(0,u.useRef)(null),xn,dn=function(Cn){if(mt.current){var jn=Math.ceil(Cn.touches[0].pageX),qn=Math.ceil(Cn.touches[0].pageY),mr=kt.current-jn,Or=Pt.current-qn,Hn=Math.abs(mr)>Math.abs(Or);Hn?kt.current=jn:Pt.current=qn;var ur=pt(Hn,Hn?mr:Or,!1,Cn);ur&&Cn.preventDefault(),clearInterval(Qt.current),ur&&(Qt.current=setInterval(function(){Hn?mr*=Ga:Or*=Ga;var Qn=Math.floor(Hn?mr:Or);(!pt(Hn,Qn,!0)||Math.abs(Qn)<=.1)&&clearInterval(Qt.current)},16))}},Ln=function(){mt.current=!1,xn()},yn=function(Cn){xn(),Cn.touches.length===1&&!mt.current&&(mt.current=!0,kt.current=Math.ceil(Cn.touches[0].pageX),Pt.current=Math.ceil(Cn.touches[0].pageY),Ht.current=Cn.target,Ht.current.addEventListener("touchmove",dn,{passive:!1}),Ht.current.addEventListener("touchend",Ln,{passive:!0}))};xn=function(){Ht.current&&(Ht.current.removeEventListener("touchmove",dn),Ht.current.removeEventListener("touchend",Ln))},fo(function(){return Ke&&at.current.addEventListener("touchstart",yn,{passive:!0}),function(){var An;(An=at.current)===null||An===void 0||An.removeEventListener("touchstart",yn),xn(),clearInterval(Qt.current)}},[Ke])}function Rl(Ke){return Math.floor(Math.pow(Ke,.5))}function pl(Ke,at){var pt="touches"in Ke?Ke.touches[0]:Ke;return pt[at?"pageX":"pageY"]-window[at?"scrollX":"scrollY"]}function jo(Ke,at,pt){u.useEffect(function(){var mt=at.current;if(Ke&&mt){var kt=!1,Pt,Ht,Qt=function(){ba.cancel(Pt)},xn=function An(){Qt(),Pt=ba(function(){pt(Ht),An()})},dn=function(Cn){if(!(Cn.target.draggable||Cn.button!==0)){var jn=Cn;jn._virtualHandled||(jn._virtualHandled=!0,kt=!0)}},Ln=function(){kt=!1,Qt()},yn=function(Cn){if(kt){var jn=pl(Cn,!1),qn=mt.getBoundingClientRect(),mr=qn.top,Or=qn.bottom;if(jn<=mr){var Hn=mr-jn;Ht=-Rl(Hn),xn()}else if(jn>=Or){var ur=jn-Or;Ht=Rl(ur),xn()}else Qt()}};return mt.addEventListener("mousedown",dn),mt.ownerDocument.addEventListener("mouseup",Ln),mt.ownerDocument.addEventListener("mousemove",yn),function(){mt.removeEventListener("mousedown",dn),mt.ownerDocument.removeEventListener("mouseup",Ln),mt.ownerDocument.removeEventListener("mousemove",yn),Qt()}}},[Ke])}var zr=10;function Ys(Ke,at,pt,mt,kt,Pt,Ht,Qt){var xn=u.useRef(),dn=u.useState(null),Ln=(0,Y.Z)(dn,2),yn=Ln[0],An=Ln[1];return fo(function(){if(yn&&yn.times<zr){if(!Ke.current){An(function(Ft){return(0,G.Z)({},Ft)});return}Pt();var Cn=yn.targetAlign,jn=yn.originAlign,qn=yn.index,mr=yn.offset,Or=Ke.current.clientHeight,Hn=!1,ur=Cn,Qn=null;if(Or){for(var _r=Cn||jn,Xr=0,Cr=0,wi=0,ni=Math.min(at.length-1,qn),Bi=0;Bi<=ni;Bi+=1){var te=kt(at[Bi]);Cr=Xr;var Ee=pt.get(te);wi=Cr+(Ee===void 0?mt:Ee),Xr=wi}for(var Ae=_r==="top"?mr:Or-mr,Pe=ni;Pe>=0;Pe-=1){var Ye=kt(at[Pe]),Qe=pt.get(Ye);if(Qe===void 0){Hn=!0;break}if(Ae-=Qe,Ae<=0)break}switch(_r){case"top":Qn=Cr-mr;break;case"bottom":Qn=wi-Or+mr;break;default:{var nt=Ke.current.scrollTop,bt=nt+Or;Cr<nt?ur="top":wi>bt&&(ur="bottom")}}Qn!==null&&Ht(Qn),Qn!==yn.lastTop&&(Hn=!0)}Hn&&An((0,G.Z)((0,G.Z)({},yn),{},{times:yn.times+1,targetAlign:ur,lastTop:Qn}))}},[yn,Ke.current]),function(Cn){if(Cn==null){Qt();return}if(ba.cancel(xn.current),typeof Cn=="number")Ht(Cn);else if(Cn&&(0,V.Z)(Cn)==="object"){var jn,qn=Cn.align;"index"in Cn?jn=Cn.index:jn=at.findIndex(function(Hn){return kt(Hn)===Cn.key});var mr=Cn.offset,Or=mr===void 0?0:mr;An({times:0,index:jn,offset:Or,originAlign:qn})}}}var Sa=u.forwardRef(function(Ke,at){var pt=Ke.prefixCls,mt=Ke.rtl,kt=Ke.scrollOffset,Pt=Ke.scrollRange,Ht=Ke.onStartMove,Qt=Ke.onStopMove,xn=Ke.onScroll,dn=Ke.horizontal,Ln=Ke.spinSize,yn=Ke.containerSize,An=Ke.style,Cn=Ke.thumbStyle,jn=Ke.showScrollBar,qn=u.useState(!1),mr=(0,Y.Z)(qn,2),Or=mr[0],Hn=mr[1],ur=u.useState(null),Qn=(0,Y.Z)(ur,2),_r=Qn[0],Xr=Qn[1],Cr=u.useState(null),wi=(0,Y.Z)(Cr,2),ni=wi[0],Bi=wi[1],te=!mt,Ee=u.useRef(),Ae=u.useRef(),Pe=u.useState(jn),Ye=(0,Y.Z)(Pe,2),Qe=Ye[0],nt=Ye[1],bt=u.useRef(),Ft=function(){jn===!0||jn===!1||(clearTimeout(bt.current),nt(!0),bt.current=setTimeout(function(){nt(!1)},3e3))},Bt=Pt-yn||0,Rt=yn-Ln||0,Zt=u.useMemo(function(){if(kt===0||Bt===0)return 0;var pn=kt/Bt;return pn*Rt},[kt,Bt,Rt]),Jt=function(wn){wn.stopPropagation(),wn.preventDefault()},zt=u.useRef({top:Zt,dragging:Or,pageY:_r,startTop:ni});zt.current={top:Zt,dragging:Or,pageY:_r,startTop:ni};var k=function(wn){Hn(!0),Xr(pl(wn,dn)),Bi(zt.current.top),Ht(),wn.stopPropagation(),wn.preventDefault()};u.useEffect(function(){var pn=function(Li){Li.preventDefault()},wn=Ee.current,fn=Ae.current;return wn.addEventListener("touchstart",pn,{passive:!1}),fn.addEventListener("touchstart",k,{passive:!1}),function(){wn.removeEventListener("touchstart",pn),fn.removeEventListener("touchstart",k)}},[]);var U=u.useRef();U.current=Bt;var Ce=u.useRef();Ce.current=Rt,u.useEffect(function(){if(Or){var pn,wn=function(Li){var ci=zt.current,qi=ci.dragging,Uo=ci.pageY,lo=ci.startTop;ba.cancel(pn);var $n=Ee.current.getBoundingClientRect(),Mi=yn/(dn?$n.width:$n.height);if(qi){var Ur=(pl(Li,dn)-Uo)*Mi,uo=lo;!te&&dn?uo-=Ur:uo+=Ur;var Eo=U.current,Mo=Ce.current,Qs=Mo?uo/Mo:0,$t=Math.ceil(Qs*Eo);$t=Math.max($t,0),$t=Math.min($t,Eo),pn=ba(function(){xn($t,dn)})}},fn=function(){Hn(!1),Qt()};return window.addEventListener("mousemove",wn,{passive:!0}),window.addEventListener("touchmove",wn,{passive:!0}),window.addEventListener("mouseup",fn,{passive:!0}),window.addEventListener("touchend",fn,{passive:!0}),function(){window.removeEventListener("mousemove",wn),window.removeEventListener("touchmove",wn),window.removeEventListener("mouseup",fn),window.removeEventListener("touchend",fn),ba.cancel(pn)}}},[Or]),u.useEffect(function(){return Ft(),function(){clearTimeout(bt.current)}},[kt]),u.useImperativeHandle(at,function(){return{delayHidden:Ft}});var et="".concat(pt,"-scrollbar"),It={position:"absolute",visibility:Qe?null:"hidden"},Ut={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return dn?(It.height=8,It.left=0,It.right=0,It.bottom=0,Ut.height="100%",Ut.width=Ln,te?Ut.left=Zt:Ut.right=Zt):(It.width=8,It.top=0,It.bottom=0,te?It.right=0:It.left=0,Ut.width="100%",Ut.height=Ln,Ut.top=Zt),u.createElement("div",{ref:Ee,className:ue()(et,(0,Q.Z)((0,Q.Z)((0,Q.Z)({},"".concat(et,"-horizontal"),dn),"".concat(et,"-vertical"),!dn),"".concat(et,"-visible"),Qe)),style:(0,G.Z)((0,G.Z)({},It),An),onMouseDown:Jt,onMouseMove:Ft},u.createElement("div",{ref:Ae,className:ue()("".concat(et,"-thumb"),(0,Q.Z)({},"".concat(et,"-thumb-moving"),Or)),style:(0,G.Z)((0,G.Z)({},Ut),Cn),onMouseDown:k}))}),Io=Sa,Ci=20;function ds(){var Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,pt=Ke/at*Ke;return isNaN(pt)&&(pt=0),pt=Math.max(pt,Ci),Math.floor(pt)}var na=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Oo=[],ca={overflowY:"auto",overflowAnchor:"none"};function Ds(Ke,at){var pt=Ke.prefixCls,mt=pt===void 0?"rc-virtual-list":pt,kt=Ke.className,Pt=Ke.height,Ht=Ke.itemHeight,Qt=Ke.fullHeight,xn=Qt===void 0?!0:Qt,dn=Ke.style,Ln=Ke.data,yn=Ke.children,An=Ke.itemKey,Cn=Ke.virtual,jn=Ke.direction,qn=Ke.scrollWidth,mr=Ke.component,Or=mr===void 0?"div":mr,Hn=Ke.onScroll,ur=Ke.onVirtualScroll,Qn=Ke.onVisibleChange,_r=Ke.innerProps,Xr=Ke.extraRender,Cr=Ke.styles,wi=Ke.showScrollBar,ni=wi===void 0?"optional":wi,Bi=(0,sn.Z)(Ke,na),te=u.useCallback(function(vi){return typeof An=="function"?An(vi):vi==null?void 0:vi[An]},[An]),Ee=Nl(te,null,null),Ae=(0,Y.Z)(Ee,4),Pe=Ae[0],Ye=Ae[1],Qe=Ae[2],nt=Ae[3],bt=!!(Cn!==!1&&Pt&&Ht),Ft=u.useMemo(function(){return Object.values(Qe.maps).reduce(function(vi,oi){return vi+oi},0)},[Qe.id,Qe.maps]),Bt=bt&&Ln&&(Math.max(Ht*Ln.length,Ft)>Pt||!!qn),Rt=jn==="rtl",Zt=ue()(mt,(0,Q.Z)({},"".concat(mt,"-rtl"),Rt),kt),Jt=Ln||Oo,zt=(0,u.useRef)(),k=(0,u.useRef)(),U=(0,u.useRef)(),Ce=(0,u.useState)(0),et=(0,Y.Z)(Ce,2),It=et[0],Ut=et[1],pn=(0,u.useState)(0),wn=(0,Y.Z)(pn,2),fn=wn[0],Tr=wn[1],Li=(0,u.useState)(!1),ci=(0,Y.Z)(Li,2),qi=ci[0],Uo=ci[1],lo=function(){Uo(!0)},$n=function(){Uo(!1)},Mi={getKey:te};function Ur(vi){Ut(function(oi){var Qr;typeof vi=="function"?Qr=vi(oi):Qr=vi;var Yo=$l(Qr);return zt.current.scrollTop=Yo,Yo})}var uo=(0,u.useRef)({start:0,end:Jt.length}),Eo=(0,u.useRef)(),Mo=Bu(Jt,te),Qs=(0,Y.Z)(Mo,1),$t=Qs[0];Eo.current=$t;var Rs=u.useMemo(function(){if(!bt)return{scrollHeight:void 0,start:0,end:Jt.length-1,offset:void 0};if(!Bt){var vi;return{scrollHeight:((vi=k.current)===null||vi===void 0?void 0:vi.offsetHeight)||0,start:0,end:Jt.length-1,offset:void 0}}for(var oi=0,Qr,Yo,ea,Wu=Jt.length,hu=0;hu<Wu;hu+=1){var Ct=Jt[hu],Tu=te(Ct),Ya=Qe.get(Tu),Ec=oi+(Ya===void 0?Ht:Ya);Ec>=It&&Qr===void 0&&(Qr=hu,Yo=oi),Ec>It+Pt&&ea===void 0&&(ea=hu),oi=Ec}return Qr===void 0&&(Qr=0,Yo=0,ea=Math.ceil(Pt/Ht)),ea===void 0&&(ea=Jt.length-1),ea=Math.min(ea+1,Jt.length-1),{scrollHeight:oi,start:Qr,end:ea,offset:Yo}},[Bt,bt,It,Jt,nt,Pt]),Ao=Rs.scrollHeight,en=Rs.start,Is=Rs.end,Wa=Rs.offset;uo.current.start=en,uo.current.end=Is,u.useLayoutEffect(function(){var vi=Qe.getRecord();if(vi.size===1){var oi=Array.from(vi)[0],Qr=Jt[en];if(Qr){var Yo=te(Qr);if(Yo===oi){var ea=Qe.get(oi),Wu=ea-Ht;Ur(function(hu){return hu+Wu})}}}Qe.resetRecord()},[Ao]);var wu=u.useState({width:0,height:Pt}),Ol=(0,Y.Z)(wu,2),Do=Ol[0],Va=Ol[1],ss=function(oi){Va({width:oi.offsetWidth,height:oi.offsetHeight})},ra=(0,u.useRef)(),Pa=(0,u.useRef)(),rl=u.useMemo(function(){return ds(Do.width,qn)},[Do.width,qn]),Cu=u.useMemo(function(){return ds(Do.height,Ao)},[Do.height,Ao]),uu=Ao-Pt,zu=(0,u.useRef)(uu);zu.current=uu;function $l(vi){var oi=vi;return Number.isNaN(zu.current)||(oi=Math.min(oi,zu.current)),oi=Math.max(oi,0),oi}var Ka=It<=0,cu=It>=uu,Xl=fn<=0,Ko=fn>=qn,ia=dl(Ka,cu,Xl,Ko),vl=function(){return{x:Rt?-fn:fn,y:It}},Ll=(0,u.useRef)(vl()),Un=ui(function(vi){if(ur){var oi=(0,G.Z)((0,G.Z)({},vl()),vi);(Ll.current.x!==oi.x||Ll.current.y!==oi.y)&&(ur(oi),Ll.current=oi)}});function pr(vi,oi){var Qr=vi;oi?((0,d.flushSync)(function(){Tr(Qr)}),Un()):Ur(Qr)}function Ui(vi){var oi=vi.currentTarget.scrollTop;oi!==It&&Ur(oi),Hn==null||Hn(vi),Un()}var po=function(oi){var Qr=oi,Yo=qn?qn-Do.width:0;return Qr=Math.max(Qr,0),Qr=Math.min(Qr,Yo),Qr},Ii=ui(function(vi,oi){oi?((0,d.flushSync)(function(){Tr(function(Qr){var Yo=Qr+(Rt?-vi:vi);return po(Yo)})}),Un()):Ur(function(Qr){var Yo=Qr+vi;return Yo})}),ha=Wl(bt,Ka,cu,Xl,Ko,!!qn,Ii),fa=(0,Y.Z)(ha,2),as=fa[0],xa=fa[1];Vl(bt,zt,function(vi,oi,Qr,Yo){var ea=Yo;return ia(vi,oi,Qr)?!1:!ea||!ea._virtualHandled?(ea&&(ea._virtualHandled=!0),as({preventDefault:function(){},deltaX:vi?oi:0,deltaY:vi?0:oi}),!0):!1}),jo(Bt,zt,function(vi){Ur(function(oi){return oi+vi})}),fo(function(){function vi(Qr){var Yo=Ka&&Qr.detail<0,ea=cu&&Qr.detail>0;bt&&!Yo&&!ea&&Qr.preventDefault()}var oi=zt.current;return oi.addEventListener("wheel",as,{passive:!1}),oi.addEventListener("DOMMouseScroll",xa,{passive:!0}),oi.addEventListener("MozMousePixelScroll",vi,{passive:!1}),function(){oi.removeEventListener("wheel",as),oi.removeEventListener("DOMMouseScroll",xa),oi.removeEventListener("MozMousePixelScroll",vi)}},[bt,Ka,cu]),fo(function(){if(qn){var vi=po(fn);Tr(vi),Un({x:vi})}},[Do.width,qn]);var yl=function(){var oi,Qr;(oi=ra.current)===null||oi===void 0||oi.delayHidden(),(Qr=Pa.current)===null||Qr===void 0||Qr.delayHidden()},Os=Ys(zt,Jt,Qe,Ht,te,function(){return Ye(!0)},Ur,yl);u.useImperativeHandle(at,function(){return{nativeElement:U.current,getScrollInfo:vl,scrollTo:function(oi){function Qr(Yo){return Yo&&(0,V.Z)(Yo)==="object"&&("left"in Yo||"top"in Yo)}Qr(oi)?(oi.left!==void 0&&Tr(po(oi.left)),Os(oi.top)):Os(oi)}}}),fo(function(){if(Qn){var vi=Jt.slice(en,Is+1);Qn(vi,Jt)}},[en,Is,Jt]);var Ml=dr(Jt,te,Qe,Ht),oa=Xr==null?void 0:Xr({start:en,end:Is,virtual:Bt,offsetX:fn,offsetY:Wa,rtl:Rt,getSize:Ml}),il=is(Jt,en,Is,qn,fn,Pe,yn,Mi),Gu=null;Pt&&(Gu=(0,G.Z)((0,Q.Z)({},xn?"height":"maxHeight",Pt),ca),bt&&(Gu.overflowY="hidden",qn&&(Gu.overflowX="hidden"),qi&&(Gu.pointerEvents="none")));var Gc={};return Rt&&(Gc.dir="rtl"),u.createElement("div",(0,S.Z)({ref:U,style:(0,G.Z)((0,G.Z)({},dn),{},{position:"relative"}),className:Zt},Gc,Bi),u.createElement(ye.Z,{onResize:ss},u.createElement(Or,{className:"".concat(mt,"-holder"),style:Gu,ref:zt,onScroll:Ui,onMouseEnter:yl},u.createElement(Fu,{prefixCls:mt,height:Ao,offsetX:fn,offsetY:Wa,scrollWidth:qn,onInnerResize:Ye,ref:k,innerProps:_r,rtl:Rt,extra:oa},il))),Bt&&Ao>Pt&&u.createElement(Io,{ref:ra,prefixCls:mt,scrollOffset:It,scrollRange:Ao,rtl:Rt,onScroll:pr,onStartMove:lo,onStopMove:$n,spinSize:Cu,containerSize:Do.height,style:Cr==null?void 0:Cr.verticalScrollBar,thumbStyle:Cr==null?void 0:Cr.verticalScrollBarThumb,showScrollBar:ni}),Bt&&qn>Do.width&&u.createElement(Io,{ref:Pa,prefixCls:mt,scrollOffset:fn,scrollRange:qn,rtl:Rt,onScroll:pr,onStartMove:lo,onStopMove:$n,spinSize:rl,containerSize:Do.width,horizontal:!0,style:Cr==null?void 0:Cr.horizontalScrollBar,thumbStyle:Cr==null?void 0:Cr.horizontalScrollBarThumb,showScrollBar:ni}))}var gl=u.forwardRef(Ds);gl.displayName="List";var Qi=gl,Gs=Qi,Fi=g(null),xo=g(null);function Lo(Ke,at,pt){var mt=at||1;return pt[Ke+mt]-(pt[Ke]||0)}function Go(Ke){var at=Ke.rowInfo,pt=Ke.column,mt=Ke.colIndex,kt=Ke.indent,Pt=Ke.index,Ht=Ke.component,Qt=Ke.renderIndex,xn=Ke.record,dn=Ke.style,Ln=Ke.className,yn=Ke.inverse,An=Ke.getHeight,Cn=pt.render,jn=pt.dataIndex,qn=pt.className,mr=pt.width,Or=y(xo,["columnsOffset"]),Hn=Or.columnsOffset,ur=hn(at,pt,mt,kt,Pt),Qn=ur.key,_r=ur.fixedInfo,Xr=ur.appendCellNode,Cr=ur.additionalCellProps,wi=Cr.style,ni=Cr.colSpan,Bi=ni===void 0?1:ni,te=Cr.rowSpan,Ee=te===void 0?1:te,Ae=mt-1,Pe=Lo(Ae,Bi,Hn),Ye=Bi>1?mr-Pe:0,Qe=(0,G.Z)((0,G.Z)((0,G.Z)({},wi),dn),{},{flex:"0 0 ".concat(Pe,"px"),width:"".concat(Pe,"px"),marginRight:Ye,pointerEvents:"auto"}),nt=u.useMemo(function(){return yn?Ee<=1:Bi===0||Ee===0||Ee>1},[Ee,Bi,yn]);nt?Qe.visibility="hidden":yn&&(Qe.height=An==null?void 0:An(Ee));var bt=nt?function(){return null}:Cn,Ft={};return(Ee===0||Bi===0)&&(Ft.rowSpan=1,Ft.colSpan=1),u.createElement(Mt,(0,S.Z)({className:ue()(qn,Ln),ellipsis:pt.ellipsis,align:pt.align,scope:pt.rowScope,component:Ht,prefixCls:at.prefixCls,key:Qn,record:xn,index:Pt,renderIndex:Qt,dataIndex:jn,render:bt,shouldCellUpdate:pt.shouldCellUpdate},_r,{appendNode:Xr,additionalProps:(0,G.Z)((0,G.Z)({},Cr),{},{style:Qe},Ft)}))}var ro=Go,au=["data","index","className","rowKey","style","extra","getHeight"],xr=u.forwardRef(function(Ke,at){var pt=Ke.data,mt=Ke.index,kt=Ke.className,Pt=Ke.rowKey,Ht=Ke.style,Qt=Ke.extra,xn=Ke.getHeight,dn=(0,sn.Z)(Ke,au),Ln=pt.record,yn=pt.indent,An=pt.index,Cn=y(M,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),jn=Cn.scrollX,qn=Cn.flattenColumns,mr=Cn.prefixCls,Or=Cn.fixColumn,Hn=Cn.componentWidth,ur=y(Fi,["getComponent"]),Qn=ur.getComponent,_r=so(Ln,Pt,mt,yn),Xr=Qn(["body","row"],"div"),Cr=Qn(["body","cell"],"div"),wi=_r.rowSupportExpand,ni=_r.expanded,Bi=_r.rowProps,te=_r.expandedRowRender,Ee=_r.expandedRowClassName,Ae;if(wi&&ni){var Pe=te(Ln,mt,yn+1,ni),Ye=Ro(Ee,Ln,mt,yn),Qe={};Or&&(Qe={style:(0,Q.Z)({},"--virtual-width","".concat(Hn,"px"))});var nt="".concat(mr,"-expanded-row-cell");Ae=u.createElement(Xr,{className:ue()("".concat(mr,"-expanded-row"),"".concat(mr,"-expanded-row-level-").concat(yn+1),Ye)},u.createElement(Mt,{component:Cr,prefixCls:mr,className:ue()(nt,(0,Q.Z)({},"".concat(nt,"-fixed"),Or)),additionalProps:Qe},Pe))}var bt=(0,G.Z)((0,G.Z)({},Ht),{},{width:jn});Qt&&(bt.position="absolute",bt.pointerEvents="none");var Ft=u.createElement(Xr,(0,S.Z)({},Bi,dn,{"data-row-key":Pt,ref:wi?null:at,className:ue()(kt,"".concat(mr,"-row"),Bi==null?void 0:Bi.className,(0,Q.Z)({},"".concat(mr,"-row-extra"),Qt)),style:(0,G.Z)((0,G.Z)({},bt),Bi==null?void 0:Bi.style)}),qn.map(function(Bt,Rt){return u.createElement(ro,{key:Rt,component:Cr,rowInfo:_r,column:Bt,colIndex:Rt,indent:yn,index:mt,renderIndex:An,record:Ln,inverse:Qt,getHeight:xn})}));return wi?u.createElement("div",{ref:at},Ft,Ae):Ft}),Hc=A(xr),Wi=Hc,zc=u.forwardRef(function(Ke,at){var pt=Ke.data,mt=Ke.onScroll,kt=y(M,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),Pt=kt.flattenColumns,Ht=kt.onColumnResize,Qt=kt.getRowKey,xn=kt.expandedKeys,dn=kt.prefixCls,Ln=kt.childrenColumnName,yn=kt.scrollX,An=kt.direction,Cn=y(Fi),jn=Cn.sticky,qn=Cn.scrollY,mr=Cn.listItemHeight,Or=Cn.getComponent,Hn=Cn.onScroll,ur=u.useRef(),Qn=Di(pt,Ln,xn,Qt),_r=u.useMemo(function(){var Ae=0;return Pt.map(function(Pe){var Ye=Pe.width,Qe=Pe.key;return Ae+=Ye,[Qe,Ye,Ae]})},[Pt]),Xr=u.useMemo(function(){return _r.map(function(Ae){return Ae[2]})},[_r]);u.useEffect(function(){_r.forEach(function(Ae){var Pe=(0,Y.Z)(Ae,2),Ye=Pe[0],Qe=Pe[1];Ht(Ye,Qe)})},[_r]),u.useImperativeHandle(at,function(){var Ae,Pe={scrollTo:function(Qe){var nt;(nt=ur.current)===null||nt===void 0||nt.scrollTo(Qe)},nativeElement:(Ae=ur.current)===null||Ae===void 0?void 0:Ae.nativeElement};return Object.defineProperty(Pe,"scrollLeft",{get:function(){var Qe;return((Qe=ur.current)===null||Qe===void 0?void 0:Qe.getScrollInfo().x)||0},set:function(Qe){var nt;(nt=ur.current)===null||nt===void 0||nt.scrollTo({left:Qe})}}),Pe});var Cr=function(Pe,Ye){var Qe,nt=(Qe=Qn[Ye])===null||Qe===void 0?void 0:Qe.record,bt=Pe.onCell;if(bt){var Ft,Bt=bt(nt,Ye);return(Ft=Bt==null?void 0:Bt.rowSpan)!==null&&Ft!==void 0?Ft:1}return 1},wi=function(Pe){var Ye=Pe.start,Qe=Pe.end,nt=Pe.getSize,bt=Pe.offsetY;if(Qe<0)return null;for(var Ft=Pt.filter(function(pn){return Cr(pn,Ye)===0}),Bt=Ye,Rt=function(wn){if(Ft=Ft.filter(function(fn){return Cr(fn,wn)===0}),!Ft.length)return Bt=wn,1},Zt=Ye;Zt>=0&&!Rt(Zt);Zt-=1);for(var Jt=Pt.filter(function(pn){return Cr(pn,Qe)!==1}),zt=Qe,k=function(wn){if(Jt=Jt.filter(function(fn){return Cr(fn,wn)!==1}),!Jt.length)return zt=Math.max(wn-1,Qe),1},U=Qe;U<Qn.length&&!k(U);U+=1);for(var Ce=[],et=function(wn){var fn=Qn[wn];if(!fn)return 1;Pt.some(function(Tr){return Cr(Tr,wn)>1})&&Ce.push(wn)},It=Bt;It<=zt;It+=1)et(It);var Ut=Ce.map(function(pn){var wn=Qn[pn],fn=Qt(wn.record,pn),Tr=function(qi){var Uo=pn+qi-1,lo=Qt(Qn[Uo].record,Uo),$n=nt(fn,lo);return $n.bottom-$n.top},Li=nt(fn);return u.createElement(Wi,{key:pn,data:wn,rowKey:fn,index:pn,style:{top:-bt+Li.top},extra:!0,getHeight:Tr})});return Ut},ni=u.useMemo(function(){return{columnsOffset:Xr}},[Xr]),Bi="".concat(dn,"-tbody"),te=Or(["body","wrapper"]),Ee={};return jn&&(Ee.position="sticky",Ee.bottom=0,(0,V.Z)(jn)==="object"&&jn.offsetScroll&&(Ee.bottom=jn.offsetScroll)),u.createElement(xo.Provider,{value:ni},u.createElement(Gs,{fullHeight:!1,ref:ur,prefixCls:"".concat(Bi,"-virtual"),styles:{horizontalScrollBar:Ee},className:Bi,height:qn,itemHeight:mr||24,data:Qn,itemKey:function(Pe){return Qt(Pe.record)},component:te,scrollWidth:yn,direction:An,onVirtualScroll:function(Pe){var Ye,Qe=Pe.x;mt({currentTarget:(Ye=ur.current)===null||Ye===void 0?void 0:Ye.nativeElement,scrollLeft:Qe})},onScroll:Hn,extraRender:wi},function(Ae,Pe,Ye){var Qe=Qt(Ae.record,Pe);return u.createElement(Wi,{data:Ae,rowKey:Qe,index:Pe,style:Ye.style})}))}),lu=A(zc),Hu=lu,xc=function(at,pt){var mt=pt.ref,kt=pt.onScroll;return u.createElement(Hu,{ref:mt,data:at,onScroll:kt})};function Il(Ke,at){var pt=Ke.data,mt=Ke.columns,kt=Ke.scroll,Pt=Ke.sticky,Ht=Ke.prefixCls,Qt=Ht===void 0?Xo:Ht,xn=Ke.className,dn=Ke.listItemHeight,Ln=Ke.components,yn=Ke.onScroll,An=kt||{},Cn=An.x,jn=An.y;typeof Cn!="number"&&(Cn=1),typeof jn!="number"&&(jn=500);var qn=lt(function(Hn,ur){return me(Ln,Hn)||ur}),mr=lt(yn),Or=u.useMemo(function(){return{sticky:Pt,scrollY:jn,listItemHeight:dn,getComponent:qn,onScroll:mr}},[Pt,jn,dn,qn,mr]);return u.createElement(Fi.Provider,{value:Or},u.createElement(Yr,(0,S.Z)({},Ke,{className:ue()(xn,"".concat(Qt,"-virtual")),scroll:(0,G.Z)((0,G.Z)({},kt),{},{x:Cn}),components:(0,G.Z)((0,G.Z)({},Ln),{},{body:pt!=null&&pt.length?xc:void 0}),columns:mt,internalHooks:B.R,tailor:!0,ref:at})))}var ml=u.forwardRef(Il);function Kl(Ke){return R(ml,Ke)}var io=Kl(),Yl=null},62978:function(Ie,Z,b){"use strict";b.d(Z,{g:function(){return u},v:function(){return I}});var B=b(1413),Y=b(45987),s=b(40830),E=["expandable"],I="RC_TABLE_INTERNAL_COL_DEFINE";function u(d){var g=d.expandable,y=(0,Y.Z)(d,E),S;return"expandable"in d?S=(0,B.Z)((0,B.Z)({},y),g):S=y,S.showExpandColumn===!1&&(S.expandIconColumnIndex=-1),S}},63295:function(Ie,Z,b){"use strict";b.d(Z,{Z:function(){return I}});var B=b(71002),Y=Symbol.for("react.element"),s=Symbol.for("react.transitional.element"),E=Symbol.for("react.fragment");function I(u){return u&&(0,B.Z)(u)==="object"&&(u.$$typeof===Y||u.$$typeof===s)&&u.type===E}},40830:function(Ie,Z,b){"use strict";var B={},Y=[],s=function(v){Y.push(v)};function E(S,v){if(0)var c}function I(S,v){if(0)var c}function u(){B={}}function d(S,v,c){!v&&!B[c]&&(S(!1,c),B[c]=!0)}function g(S,v){d(E,S,v)}function y(S,v){d(I,S,v)}g.preMessage=s,g.resetWarned=u,g.noteOnce=y,Z.ZP=g},46762:function(Ie,Z){"use strict";var b;var B=Symbol.for("react.element"),Y=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),d=Symbol.for("react.context"),g=Symbol.for("react.server_context"),y=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),x;x=Symbol.for("react.module.reference");function T(_){if(typeof _=="object"&&_!==null){var R=_.$$typeof;switch(R){case B:switch(_=_.type,_){case s:case I:case E:case S:case v:return _;default:switch(_=_&&_.$$typeof,_){case g:case d:case y:case h:case c:case u:return _;default:return R}}case Y:return R}}}b=d,b=u,b=B,b=y,b=s,b=h,b=c,b=Y,b=I,b=E,b=S,b=v,b=function(){return!1},b=function(){return!1},b=function(_){return T(_)===d},b=function(_){return T(_)===u},b=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===B},b=function(_){return T(_)===y},b=function(_){return T(_)===s},b=function(_){return T(_)===h},b=function(_){return T(_)===c},b=function(_){return T(_)===Y},b=function(_){return T(_)===I},b=function(_){return T(_)===E},b=function(_){return T(_)===S},b=function(_){return T(_)===v},b=function(_){return typeof _=="string"||typeof _=="function"||_===s||_===I||_===E||_===S||_===v||_===m||typeof _=="object"&&_!==null&&(_.$$typeof===h||_.$$typeof===c||_.$$typeof===u||_.$$typeof===d||_.$$typeof===y||_.$$typeof===x||_.getModuleId!==void 0)},b=T},35110:function(Ie,Z,b){"use strict";b(46762)},86128:function(Ie,Z,b){"use strict";b.d(Z,{Z:function(){return N}});var B=b(87462),Y=b(4942),s=b(1413),E=b(97685),I=b(45987),u=b(67294),d=b(94184),g=b.n(d),y=b(64217),S=b(27822),v=function(M){for(var F=M.prefixCls,H=M.level,P=M.isStart,V=M.isEnd,G="".concat(F,"-indent-unit"),Q=[],ne=0;ne<H;ne+=1)Q.push(u.createElement("span",{key:ne,className:g()(G,(0,Y.Z)((0,Y.Z)({},"".concat(G,"-start"),P[ne]),"".concat(G,"-end"),V[ne]))}));return u.createElement("span",{"aria-hidden":"true",className:"".concat(F,"-indent")},Q)},c=u.memo(v),h=b(35381),m=b(1089),x=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],T="open",_="close",R="---",A=function(M){var F,H,P,V=M.eventKey,G=M.className,Q=M.style,ne=M.dragOver,ue=M.dragOverGapTop,ae=M.dragOverGapBottom,he=M.isLeaf,ce=M.isStart,we=M.isEnd,me=M.expanded,Le=M.selected,ee=M.checked,se=M.halfChecked,le=M.loading,ke=M.domRef,De=M.active,Be=M.data,He=M.onMouseMove,Fe=M.selectable,Je=(0,I.Z)(M,x),Me=u.useContext(S.k),lt=u.useContext(S.y),Re=u.useRef(null),Oe=u.useState(!1),pe=(0,E.Z)(Oe,2),fe=pe[0],z=pe[1],J=!!(Me.disabled||M.disabled||(F=lt.nodeDisabled)!==null&&F!==void 0&&F.call(lt,Be)),be=u.useMemo(function(){return!Me.checkable||M.checkable===!1?!1:Me.checkable},[Me.checkable,M.checkable]),_e=function(rn){J||Me.onNodeSelect(rn,(0,m.F)(M))},oe=function(rn){J||!be||M.disableCheckbox||Me.onNodeCheck(rn,(0,m.F)(M),!ee)},ie=u.useMemo(function(){return typeof Fe=="boolean"?Fe:Me.selectable},[Fe,Me.selectable]),ve=function(rn){Me.onNodeClick(rn,(0,m.F)(M)),ie?_e(rn):oe(rn)},Ne=function(rn){Me.onNodeDoubleClick(rn,(0,m.F)(M))},ze=function(rn){Me.onNodeMouseEnter(rn,(0,m.F)(M))},Ve=function(rn){Me.onNodeMouseLeave(rn,(0,m.F)(M))},yt=function(rn){Me.onNodeContextMenu(rn,(0,m.F)(M))},ct=u.useMemo(function(){return!!(Me.draggable&&(!Me.draggable.nodeDraggable||Me.draggable.nodeDraggable(Be)))},[Me.draggable,Be]),St=function(rn){rn.stopPropagation(),z(!0),Me.onNodeDragStart(rn,M);try{rn.dataTransfer.setData("text/plain","")}catch(Xn){}},_t=function(rn){rn.preventDefault(),rn.stopPropagation(),Me.onNodeDragEnter(rn,M)},At=function(rn){rn.preventDefault(),rn.stopPropagation(),Me.onNodeDragOver(rn,M)},ht=function(rn){rn.stopPropagation(),Me.onNodeDragLeave(rn,M)},wt=function(rn){rn.stopPropagation(),z(!1),Me.onNodeDragEnd(rn,M)},jt=function(rn){rn.preventDefault(),rn.stopPropagation(),z(!1),Me.onNodeDrop(rn,M)},st=function(rn){le||Me.onNodeExpand(rn,(0,m.F)(M))},ge=u.useMemo(function(){var Vt=(0,h.Z)(Me.keyEntities,V)||{},rn=Vt.children;return!!(rn||[]).length},[Me.keyEntities,V]),on=u.useMemo(function(){return he===!1?!1:he||!Me.loadData&&!ge||Me.loadData&&M.loaded&&!ge},[he,Me.loadData,ge,M.loaded]);u.useEffect(function(){le||typeof Me.loadData=="function"&&me&&!on&&!M.loaded&&Me.onNodeLoad((0,m.F)(M))},[le,Me.loadData,Me.onNodeLoad,me,on,M]);var mn=u.useMemo(function(){var Vt;return(Vt=Me.draggable)!==null&&Vt!==void 0&&Vt.icon?u.createElement("span",{className:"".concat(Me.prefixCls,"-draggable-icon")},Me.draggable.icon):null},[Me.draggable]),Mt=function(rn){var Xn=M.switcherIcon||Me.switcherIcon;return typeof Xn=="function"?Xn((0,s.Z)((0,s.Z)({},M),{},{isLeaf:rn})):Xn},On=function(){if(on){var rn=Mt(!0);return rn!==!1?u.createElement("span",{className:g()("".concat(Me.prefixCls,"-switcher"),"".concat(Me.prefixCls,"-switcher-noop"))},rn):null}var Xn=Mt(!1);return Xn!==!1?u.createElement("span",{onClick:st,className:g()("".concat(Me.prefixCls,"-switcher"),"".concat(Me.prefixCls,"-switcher_").concat(me?T:_))},Xn):null},Vn=u.useMemo(function(){if(!be)return null;var Vt=typeof be!="boolean"?be:null;return u.createElement("span",{className:g()("".concat(Me.prefixCls,"-checkbox"),(0,Y.Z)((0,Y.Z)((0,Y.Z)({},"".concat(Me.prefixCls,"-checkbox-checked"),ee),"".concat(Me.prefixCls,"-checkbox-indeterminate"),!ee&&se),"".concat(Me.prefixCls,"-checkbox-disabled"),J||M.disableCheckbox)),onClick:oe,role:"checkbox","aria-checked":se?"mixed":ee,"aria-disabled":J||M.disableCheckbox,"aria-label":"Select ".concat(typeof M.title=="string"?M.title:"tree node")},Vt)},[be,ee,se,J,M.disableCheckbox,M.title]),Fn=u.useMemo(function(){return on?null:me?T:_},[on,me]),Gn=u.useMemo(function(){return u.createElement("span",{className:g()("".concat(Me.prefixCls,"-iconEle"),"".concat(Me.prefixCls,"-icon__").concat(Fn||"docu"),(0,Y.Z)({},"".concat(Me.prefixCls,"-icon_loading"),le))})},[Me.prefixCls,Fn,le]),sn=u.useMemo(function(){var Vt=!!Me.draggable,rn=!M.disabled&&Vt&&Me.dragOverNodeKey===V;return rn?Me.dropIndicatorRender({dropPosition:Me.dropPosition,dropLevelOffset:Me.dropLevelOffset,indent:Me.indent,prefixCls:Me.prefixCls,direction:Me.direction}):null},[Me.dropPosition,Me.dropLevelOffset,Me.indent,Me.prefixCls,Me.direction,Me.draggable,Me.dragOverNodeKey,Me.dropIndicatorRender]),xt=u.useMemo(function(){var Vt=M.title,rn=Vt===void 0?R:Vt,Xn="".concat(Me.prefixCls,"-node-content-wrapper"),Zn;if(Me.showIcon){var ir=M.icon||Me.icon;Zn=ir?u.createElement("span",{className:g()("".concat(Me.prefixCls,"-iconEle"),"".concat(Me.prefixCls,"-icon__customize"))},typeof ir=="function"?ir(M):ir):Gn}else Me.loadData&&le&&(Zn=Gn);var Dr;return typeof rn=="function"?Dr=rn(Be):Me.titleRender?Dr=Me.titleRender(Be):Dr=rn,u.createElement("span",{ref:Re,title:typeof rn=="string"?rn:"",className:g()(Xn,"".concat(Xn,"-").concat(Fn||"normal"),(0,Y.Z)({},"".concat(Me.prefixCls,"-node-selected"),!J&&(Le||fe))),onMouseEnter:ze,onMouseLeave:Ve,onContextMenu:yt,onClick:ve,onDoubleClick:Ne},Zn,u.createElement("span",{className:"".concat(Me.prefixCls,"-title")},Dr),sn)},[Me.prefixCls,Me.showIcon,M,Me.icon,Gn,Me.titleRender,Be,Fn,ze,Ve,yt,ve,Ne]),gr=(0,y.Z)(Je,{aria:!0,data:!0}),Pr=(0,h.Z)(Me.keyEntities,V)||{},tr=Pr.level,ii=we[we.length-1],Ar=!J&&ct,Kt=Me.draggingNodeKey===V,ye=Fe!==void 0?{"aria-selected":!!Fe}:void 0;return u.createElement("div",(0,B.Z)({ref:ke,role:"treeitem","aria-expanded":he?void 0:me,className:g()(G,"".concat(Me.prefixCls,"-treenode"),(P={},(0,Y.Z)((0,Y.Z)((0,Y.Z)((0,Y.Z)((0,Y.Z)((0,Y.Z)((0,Y.Z)((0,Y.Z)((0,Y.Z)((0,Y.Z)(P,"".concat(Me.prefixCls,"-treenode-disabled"),J),"".concat(Me.prefixCls,"-treenode-switcher-").concat(me?"open":"close"),!he),"".concat(Me.prefixCls,"-treenode-checkbox-checked"),ee),"".concat(Me.prefixCls,"-treenode-checkbox-indeterminate"),se),"".concat(Me.prefixCls,"-treenode-selected"),Le),"".concat(Me.prefixCls,"-treenode-loading"),le),"".concat(Me.prefixCls,"-treenode-active"),De),"".concat(Me.prefixCls,"-treenode-leaf-last"),ii),"".concat(Me.prefixCls,"-treenode-draggable"),ct),"dragging",Kt),(0,Y.Z)((0,Y.Z)((0,Y.Z)((0,Y.Z)((0,Y.Z)((0,Y.Z)((0,Y.Z)(P,"drop-target",Me.dropTargetKey===V),"drop-container",Me.dropContainerKey===V),"drag-over",!J&&ne),"drag-over-gap-top",!J&&ue),"drag-over-gap-bottom",!J&&ae),"filter-node",(H=Me.filterTreeNode)===null||H===void 0?void 0:H.call(Me,(0,m.F)(M))),"".concat(Me.prefixCls,"-treenode-leaf"),on))),style:Q,draggable:Ar,onDragStart:Ar?St:void 0,onDragEnter:ct?_t:void 0,onDragOver:ct?At:void 0,onDragLeave:ct?ht:void 0,onDrop:ct?jt:void 0,onDragEnd:ct?wt:void 0,onMouseMove:He},ye,gr),u.createElement(c,{prefixCls:Me.prefixCls,level:tr,isStart:ce,isEnd:we}),mn,On(),Vn,xt)};A.isTreeNode=1;var N=A},27822:function(Ie,Z,b){"use strict";b.d(Z,{k:function(){return Y},y:function(){return s}});var B=b(67294),Y=B.createContext(null),s=B.createContext({})},70593:function(Ie,Z,b){"use strict";b.d(Z,{OF:function(){return V.Z},y6:function(){return _.y},ZP:function(){return J}});var B=b(87462),Y=b(71002),s=b(1413),E=b(74902),I=b(15671),u=b(43144),d=b(97326),g=b(60136),y=b(29388),S=b(4942),v=b(94184),c=b.n(v),h=b(15105),m=b(64217),x=b(80334),T=b(67294),_=b(27822),R=function(_e){var oe=_e.dropPosition,ie=_e.dropLevelOffset,ve=_e.indent,Ne={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(oe){case-1:Ne.top=0,Ne.left=-ie*ve;break;case 1:Ne.bottom=0,Ne.left=-ie*ve;break;case 0:Ne.bottom=0,Ne.left=ve;break}return T.createElement("div",{style:Ne})},A=R;function N(be){if(be==null)throw new TypeError("Cannot destructure "+be)}var L=b(97685),M=b(45987),F=b(8410),H=b(73299),P=b(62874),V=b(86128);function G(be,_e){var oe=T.useState(!1),ie=(0,L.Z)(oe,2),ve=ie[0],Ne=ie[1];(0,F.Z)(function(){if(ve)return be(),function(){_e()}},[ve]),(0,F.Z)(function(){return Ne(!0),function(){Ne(!1)}},[])}var Q=G,ne=b(1089),ue=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],ae=T.forwardRef(function(be,_e){var oe=be.className,ie=be.style,ve=be.motion,Ne=be.motionNodes,ze=be.motionType,Ve=be.onMotionStart,yt=be.onMotionEnd,ct=be.active,St=be.treeNodeRequiredProps,_t=(0,M.Z)(be,ue),At=T.useState(!0),ht=(0,L.Z)(At,2),wt=ht[0],jt=ht[1],st=T.useContext(_.k),ge=st.prefixCls,on=Ne&&ze!=="hide";(0,F.Z)(function(){Ne&&on!==wt&&jt(on)},[Ne]);var mn=function(){Ne&&Ve()},Mt=T.useRef(!1),On=function(){Ne&&!Mt.current&&(Mt.current=!0,yt())};Q(mn,On);var Vn=function(Gn){on===Gn&&On()};return Ne?T.createElement(P.Z,(0,B.Z)({ref:_e,visible:wt},ve,{motionAppear:ze==="show",onVisibleChanged:Vn}),function(Fn,Gn){var sn=Fn.className,xt=Fn.style;return T.createElement("div",{ref:Gn,className:c()("".concat(ge,"-treenode-motion"),sn),style:xt},Ne.map(function(gr){var Pr=Object.assign({},(N(gr.data),gr.data)),tr=gr.title,ii=gr.key,Ar=gr.isStart,Kt=gr.isEnd;delete Pr.children;var ye=(0,ne.H8)(ii,St);return T.createElement(V.Z,(0,B.Z)({},Pr,ye,{title:tr,active:ct,data:gr.data,key:ii,isStart:Ar,isEnd:Kt}))}))}):T.createElement(V.Z,(0,B.Z)({domRef:_e,className:oe,style:ie},_t,{active:ct}))}),he=ae;function ce(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],_e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],oe=be.length,ie=_e.length;if(Math.abs(oe-ie)!==1)return{add:!1,key:null};function ve(Ne,ze){var Ve=new Map;Ne.forEach(function(ct){Ve.set(ct,!0)});var yt=ze.filter(function(ct){return!Ve.has(ct)});return yt.length===1?yt[0]:null}return oe<ie?{add:!0,key:ve(be,_e)}:{add:!1,key:ve(_e,be)}}function we(be,_e,oe){var ie=be.findIndex(function(Ve){return Ve.key===oe}),ve=be[ie+1],Ne=_e.findIndex(function(Ve){return Ve.key===oe});if(ve){var ze=_e.findIndex(function(Ve){return Ve.key===ve.key});return _e.slice(Ne+1,ze)}return _e.slice(Ne+1)}var me=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],Le={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ee=function(){},se="RC_TREE_MOTION_".concat(Math.random()),le={key:se},ke={key:se,level:0,index:0,pos:"0",node:le,nodes:[le]},De={parent:null,children:[],pos:ke.pos,data:le,title:null,key:se,isStart:[],isEnd:[]};function Be(be,_e,oe,ie){return _e===!1||!oe?be:be.slice(0,Math.ceil(oe/ie)+1)}function He(be){var _e=be.key,oe=be.pos;return(0,ne.km)(_e,oe)}function Fe(be){for(var _e=String(be.data.key),oe=be;oe.parent;)oe=oe.parent,_e="".concat(oe.data.key," > ").concat(_e);return _e}var Je=T.forwardRef(function(be,_e){var oe=be.prefixCls,ie=be.data,ve=be.selectable,Ne=be.checkable,ze=be.expandedKeys,Ve=be.selectedKeys,yt=be.checkedKeys,ct=be.loadedKeys,St=be.loadingKeys,_t=be.halfCheckedKeys,At=be.keyEntities,ht=be.disabled,wt=be.dragging,jt=be.dragOverNodeKey,st=be.dropPosition,ge=be.motion,on=be.height,mn=be.itemHeight,Mt=be.virtual,On=be.scrollWidth,Vn=be.focusable,Fn=be.activeItem,Gn=be.focused,sn=be.tabIndex,xt=be.onKeyDown,gr=be.onFocus,Pr=be.onBlur,tr=be.onActiveChange,ii=be.onListChangeStart,Ar=be.onListChangeEnd,Kt=(0,M.Z)(be,me),ye=T.useRef(null),Vt=T.useRef(null);T.useImperativeHandle(_e,function(){return{scrollTo:function(Co){ye.current.scrollTo(Co)},getIndentWidth:function(){return Vt.current.offsetWidth}}});var rn=T.useState(ze),Xn=(0,L.Z)(rn,2),Zn=Xn[0],ir=Xn[1],Dr=T.useState(ie),ai=(0,L.Z)(Dr,2),li=ai[0],Zr=ai[1],Tn=T.useState(ie),kn=(0,L.Z)(Tn,2),Vr=kn[0],di=kn[1],nr=T.useState([]),vn=(0,L.Z)(nr,2),Jn=vn[0],bi=vn[1],gi=T.useState(null),mi=(0,L.Z)(gi,2),Lt=mi[0],Yn=mi[1],hr=T.useRef(ie);hr.current=ie;function zi(){var Ei=hr.current;Zr(Ei),di(Ei),bi([]),Yn(null),Ar()}(0,F.Z)(function(){ir(ze);var Ei=ce(Zn,ze);if(Ei.key!==null)if(Ei.add){var Co=li.findIndex(function(so){var Gi=so.key;return Gi===Ei.key}),ki=Be(we(li,ie,Ei.key),Mt,on,mn),yr=li.slice();yr.splice(Co+1,0,De),di(yr),bi(ki),Yn("show")}else{var Mr=ie.findIndex(function(so){var Gi=so.key;return Gi===Ei.key}),Fr=Be(we(ie,li,Ei.key),Mt,on,mn),Di=ie.slice();Di.splice(Mr+1,0,De),di(Di),bi(Fr),Yn("hide")}else li!==ie&&(Zr(ie),di(ie))},[ze,ie]),T.useEffect(function(){wt||zi()},[wt]);var bn=ge?Vr:ie,or={expandedKeys:ze,selectedKeys:Ve,loadedKeys:ct,loadingKeys:St,checkedKeys:yt,halfCheckedKeys:_t,dragOverNodeKey:jt,dropPosition:st,keyEntities:At};return T.createElement(T.Fragment,null,Gn&&Fn&&T.createElement("span",{style:Le,"aria-live":"assertive"},Fe(Fn)),T.createElement("div",null,T.createElement("input",{style:Le,disabled:Vn===!1||ht,tabIndex:Vn!==!1?sn:null,onKeyDown:xt,onFocus:gr,onBlur:Pr,value:"",onChange:ee,"aria-label":"for screen reader"})),T.createElement("div",{className:"".concat(oe,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},T.createElement("div",{className:"".concat(oe,"-indent")},T.createElement("div",{ref:Vt,className:"".concat(oe,"-indent-unit")}))),T.createElement(H.Z,(0,B.Z)({},Kt,{data:bn,itemKey:He,height:on,fullHeight:!1,virtual:Mt,itemHeight:mn,scrollWidth:On,prefixCls:"".concat(oe,"-list"),ref:ye,role:"tree",onVisibleChange:function(Co){Co.every(function(ki){return He(ki)!==se})&&zi()}}),function(Ei){var Co=Ei.pos,ki=Object.assign({},(N(Ei.data),Ei.data)),yr=Ei.title,Mr=Ei.key,Fr=Ei.isStart,Di=Ei.isEnd,so=(0,ne.km)(Mr,Co);delete ki.key,delete ki.children;var Gi=(0,ne.H8)(so,or);return T.createElement(he,(0,B.Z)({},ki,Gi,{title:yr,active:!!Fn&&Mr===Fn.key,pos:Co,data:Ei.data,isStart:Fr,isEnd:Di,motion:ge,motionNodes:Mr===se?Jn:null,motionType:Lt,onMotionStart:ii,onMotionEnd:zi,treeNodeRequiredProps:or,onMouseMove:function(){tr(null)}}))}))}),Me=Je,lt=b(10225),Re=b(17341),Oe=b(35381),pe=10,fe=function(be){(0,g.Z)(oe,be);var _e=(0,y.Z)(oe);function oe(){var ie;(0,I.Z)(this,oe);for(var ve=arguments.length,Ne=new Array(ve),ze=0;ze<ve;ze++)Ne[ze]=arguments[ze];return ie=_e.call.apply(_e,[this].concat(Ne)),(0,S.Z)((0,d.Z)(ie),"destroyed",!1),(0,S.Z)((0,d.Z)(ie),"delayedDragEnterLogic",void 0),(0,S.Z)((0,d.Z)(ie),"loadingRetryTimes",{}),(0,S.Z)((0,d.Z)(ie),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,ne.w$)()}),(0,S.Z)((0,d.Z)(ie),"dragStartMousePosition",null),(0,S.Z)((0,d.Z)(ie),"dragNodeProps",null),(0,S.Z)((0,d.Z)(ie),"currentMouseOverDroppableNodeKey",null),(0,S.Z)((0,d.Z)(ie),"listRef",T.createRef()),(0,S.Z)((0,d.Z)(ie),"onNodeDragStart",function(Ve,yt){var ct=ie.state,St=ct.expandedKeys,_t=ct.keyEntities,At=ie.props.onDragStart,ht=yt.eventKey;ie.dragNodeProps=yt,ie.dragStartMousePosition={x:Ve.clientX,y:Ve.clientY};var wt=(0,lt._5)(St,ht);ie.setState({draggingNodeKey:ht,dragChildrenKeys:(0,lt.wA)(ht,_t),indent:ie.listRef.current.getIndentWidth()}),ie.setExpandedKeys(wt),window.addEventListener("dragend",ie.onWindowDragEnd),At==null||At({event:Ve,node:(0,ne.F)(yt)})}),(0,S.Z)((0,d.Z)(ie),"onNodeDragEnter",function(Ve,yt){var ct=ie.state,St=ct.expandedKeys,_t=ct.keyEntities,At=ct.dragChildrenKeys,ht=ct.flattenNodes,wt=ct.indent,jt=ie.props,st=jt.onDragEnter,ge=jt.onExpand,on=jt.allowDrop,mn=jt.direction,Mt=yt.pos,On=yt.eventKey;if(ie.currentMouseOverDroppableNodeKey!==On&&(ie.currentMouseOverDroppableNodeKey=On),!ie.dragNodeProps){ie.resetDragState();return}var Vn=(0,lt.OM)(Ve,ie.dragNodeProps,yt,wt,ie.dragStartMousePosition,on,ht,_t,St,mn),Fn=Vn.dropPosition,Gn=Vn.dropLevelOffset,sn=Vn.dropTargetKey,xt=Vn.dropContainerKey,gr=Vn.dropTargetPos,Pr=Vn.dropAllowed,tr=Vn.dragOverNodeKey;if(At.includes(sn)||!Pr){ie.resetDragState();return}if(ie.delayedDragEnterLogic||(ie.delayedDragEnterLogic={}),Object.keys(ie.delayedDragEnterLogic).forEach(function(ii){clearTimeout(ie.delayedDragEnterLogic[ii])}),ie.dragNodeProps.eventKey!==yt.eventKey&&(Ve.persist(),ie.delayedDragEnterLogic[Mt]=window.setTimeout(function(){if(ie.state.draggingNodeKey!==null){var ii=(0,E.Z)(St),Ar=(0,Oe.Z)(_t,yt.eventKey);Ar&&(Ar.children||[]).length&&(ii=(0,lt.L0)(St,yt.eventKey)),ie.props.hasOwnProperty("expandedKeys")||ie.setExpandedKeys(ii),ge==null||ge(ii,{node:(0,ne.F)(yt),expanded:!0,nativeEvent:Ve.nativeEvent})}},800)),ie.dragNodeProps.eventKey===sn&&Gn===0){ie.resetDragState();return}ie.setState({dragOverNodeKey:tr,dropPosition:Fn,dropLevelOffset:Gn,dropTargetKey:sn,dropContainerKey:xt,dropTargetPos:gr,dropAllowed:Pr}),st==null||st({event:Ve,node:(0,ne.F)(yt),expandedKeys:St})}),(0,S.Z)((0,d.Z)(ie),"onNodeDragOver",function(Ve,yt){var ct=ie.state,St=ct.dragChildrenKeys,_t=ct.flattenNodes,At=ct.keyEntities,ht=ct.expandedKeys,wt=ct.indent,jt=ie.props,st=jt.onDragOver,ge=jt.allowDrop,on=jt.direction;if(ie.dragNodeProps){var mn=(0,lt.OM)(Ve,ie.dragNodeProps,yt,wt,ie.dragStartMousePosition,ge,_t,At,ht,on),Mt=mn.dropPosition,On=mn.dropLevelOffset,Vn=mn.dropTargetKey,Fn=mn.dropContainerKey,Gn=mn.dropTargetPos,sn=mn.dropAllowed,xt=mn.dragOverNodeKey;St.includes(Vn)||!sn||(ie.dragNodeProps.eventKey===Vn&&On===0?ie.state.dropPosition===null&&ie.state.dropLevelOffset===null&&ie.state.dropTargetKey===null&&ie.state.dropContainerKey===null&&ie.state.dropTargetPos===null&&ie.state.dropAllowed===!1&&ie.state.dragOverNodeKey===null||ie.resetDragState():Mt===ie.state.dropPosition&&On===ie.state.dropLevelOffset&&Vn===ie.state.dropTargetKey&&Fn===ie.state.dropContainerKey&&Gn===ie.state.dropTargetPos&&sn===ie.state.dropAllowed&&xt===ie.state.dragOverNodeKey||ie.setState({dropPosition:Mt,dropLevelOffset:On,dropTargetKey:Vn,dropContainerKey:Fn,dropTargetPos:Gn,dropAllowed:sn,dragOverNodeKey:xt}),st==null||st({event:Ve,node:(0,ne.F)(yt)}))}}),(0,S.Z)((0,d.Z)(ie),"onNodeDragLeave",function(Ve,yt){ie.currentMouseOverDroppableNodeKey===yt.eventKey&&!Ve.currentTarget.contains(Ve.relatedTarget)&&(ie.resetDragState(),ie.currentMouseOverDroppableNodeKey=null);var ct=ie.props.onDragLeave;ct==null||ct({event:Ve,node:(0,ne.F)(yt)})}),(0,S.Z)((0,d.Z)(ie),"onWindowDragEnd",function(Ve){ie.onNodeDragEnd(Ve,null,!0),window.removeEventListener("dragend",ie.onWindowDragEnd)}),(0,S.Z)((0,d.Z)(ie),"onNodeDragEnd",function(Ve,yt){var ct=ie.props.onDragEnd;ie.setState({dragOverNodeKey:null}),ie.cleanDragState(),ct==null||ct({event:Ve,node:(0,ne.F)(yt)}),ie.dragNodeProps=null,window.removeEventListener("dragend",ie.onWindowDragEnd)}),(0,S.Z)((0,d.Z)(ie),"onNodeDrop",function(Ve,yt){var ct,St=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,_t=ie.state,At=_t.dragChildrenKeys,ht=_t.dropPosition,wt=_t.dropTargetKey,jt=_t.dropTargetPos,st=_t.dropAllowed;if(st){var ge=ie.props.onDrop;if(ie.setState({dragOverNodeKey:null}),ie.cleanDragState(),wt!==null){var on=(0,s.Z)((0,s.Z)({},(0,ne.H8)(wt,ie.getTreeNodeRequiredProps())),{},{active:((ct=ie.getActiveItem())===null||ct===void 0?void 0:ct.key)===wt,data:(0,Oe.Z)(ie.state.keyEntities,wt).node}),mn=At.includes(wt);(0,x.ZP)(!mn,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Mt=(0,lt.yx)(jt),On={event:Ve,node:(0,ne.F)(on),dragNode:ie.dragNodeProps?(0,ne.F)(ie.dragNodeProps):null,dragNodesKeys:[ie.dragNodeProps.eventKey].concat(At),dropToGap:ht!==0,dropPosition:ht+Number(Mt[Mt.length-1])};St||ge==null||ge(On),ie.dragNodeProps=null}}}),(0,S.Z)((0,d.Z)(ie),"cleanDragState",function(){var Ve=ie.state.draggingNodeKey;Ve!==null&&ie.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),ie.dragStartMousePosition=null,ie.currentMouseOverDroppableNodeKey=null}),(0,S.Z)((0,d.Z)(ie),"triggerExpandActionExpand",function(Ve,yt){var ct=ie.state,St=ct.expandedKeys,_t=ct.flattenNodes,At=yt.expanded,ht=yt.key,wt=yt.isLeaf;if(!(wt||Ve.shiftKey||Ve.metaKey||Ve.ctrlKey)){var jt=_t.filter(function(ge){return ge.key===ht})[0],st=(0,ne.F)((0,s.Z)((0,s.Z)({},(0,ne.H8)(ht,ie.getTreeNodeRequiredProps())),{},{data:jt.data}));ie.setExpandedKeys(At?(0,lt._5)(St,ht):(0,lt.L0)(St,ht)),ie.onNodeExpand(Ve,st)}}),(0,S.Z)((0,d.Z)(ie),"onNodeClick",function(Ve,yt){var ct=ie.props,St=ct.onClick,_t=ct.expandAction;_t==="click"&&ie.triggerExpandActionExpand(Ve,yt),St==null||St(Ve,yt)}),(0,S.Z)((0,d.Z)(ie),"onNodeDoubleClick",function(Ve,yt){var ct=ie.props,St=ct.onDoubleClick,_t=ct.expandAction;_t==="doubleClick"&&ie.triggerExpandActionExpand(Ve,yt),St==null||St(Ve,yt)}),(0,S.Z)((0,d.Z)(ie),"onNodeSelect",function(Ve,yt){var ct=ie.state.selectedKeys,St=ie.state,_t=St.keyEntities,At=St.fieldNames,ht=ie.props,wt=ht.onSelect,jt=ht.multiple,st=yt.selected,ge=yt[At.key],on=!st;on?jt?ct=(0,lt.L0)(ct,ge):ct=[ge]:ct=(0,lt._5)(ct,ge);var mn=ct.map(function(Mt){var On=(0,Oe.Z)(_t,Mt);return On?On.node:null}).filter(Boolean);ie.setUncontrolledState({selectedKeys:ct}),wt==null||wt(ct,{event:"select",selected:on,node:yt,selectedNodes:mn,nativeEvent:Ve.nativeEvent})}),(0,S.Z)((0,d.Z)(ie),"onNodeCheck",function(Ve,yt,ct){var St=ie.state,_t=St.keyEntities,At=St.checkedKeys,ht=St.halfCheckedKeys,wt=ie.props,jt=wt.checkStrictly,st=wt.onCheck,ge=yt.key,on,mn={event:"check",node:yt,checked:ct,nativeEvent:Ve.nativeEvent};if(jt){var Mt=ct?(0,lt.L0)(At,ge):(0,lt._5)(At,ge),On=(0,lt._5)(ht,ge);on={checked:Mt,halfChecked:On},mn.checkedNodes=Mt.map(function(gr){return(0,Oe.Z)(_t,gr)}).filter(Boolean).map(function(gr){return gr.node}),ie.setUncontrolledState({checkedKeys:Mt})}else{var Vn=(0,Re.S)([].concat((0,E.Z)(At),[ge]),!0,_t),Fn=Vn.checkedKeys,Gn=Vn.halfCheckedKeys;if(!ct){var sn=new Set(Fn);sn.delete(ge);var xt=(0,Re.S)(Array.from(sn),{checked:!1,halfCheckedKeys:Gn},_t);Fn=xt.checkedKeys,Gn=xt.halfCheckedKeys}on=Fn,mn.checkedNodes=[],mn.checkedNodesPositions=[],mn.halfCheckedKeys=Gn,Fn.forEach(function(gr){var Pr=(0,Oe.Z)(_t,gr);if(Pr){var tr=Pr.node,ii=Pr.pos;mn.checkedNodes.push(tr),mn.checkedNodesPositions.push({node:tr,pos:ii})}}),ie.setUncontrolledState({checkedKeys:Fn},!1,{halfCheckedKeys:Gn})}st==null||st(on,mn)}),(0,S.Z)((0,d.Z)(ie),"onNodeLoad",function(Ve){var yt,ct=Ve.key,St=ie.state.keyEntities,_t=(0,Oe.Z)(St,ct);if(!(_t!=null&&(yt=_t.children)!==null&&yt!==void 0&&yt.length)){var At=new Promise(function(ht,wt){ie.setState(function(jt){var st=jt.loadedKeys,ge=st===void 0?[]:st,on=jt.loadingKeys,mn=on===void 0?[]:on,Mt=ie.props,On=Mt.loadData,Vn=Mt.onLoad;if(!On||ge.includes(ct)||mn.includes(ct))return null;var Fn=On(Ve);return Fn.then(function(){var Gn=ie.state.loadedKeys,sn=(0,lt.L0)(Gn,ct);Vn==null||Vn(sn,{event:"load",node:Ve}),ie.setUncontrolledState({loadedKeys:sn}),ie.setState(function(xt){return{loadingKeys:(0,lt._5)(xt.loadingKeys,ct)}}),ht()}).catch(function(Gn){if(ie.setState(function(xt){return{loadingKeys:(0,lt._5)(xt.loadingKeys,ct)}}),ie.loadingRetryTimes[ct]=(ie.loadingRetryTimes[ct]||0)+1,ie.loadingRetryTimes[ct]>=pe){var sn=ie.state.loadedKeys;(0,x.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),ie.setUncontrolledState({loadedKeys:(0,lt.L0)(sn,ct)}),ht()}wt(Gn)}),{loadingKeys:(0,lt.L0)(mn,ct)}})});return At.catch(function(){}),At}}),(0,S.Z)((0,d.Z)(ie),"onNodeMouseEnter",function(Ve,yt){var ct=ie.props.onMouseEnter;ct==null||ct({event:Ve,node:yt})}),(0,S.Z)((0,d.Z)(ie),"onNodeMouseLeave",function(Ve,yt){var ct=ie.props.onMouseLeave;ct==null||ct({event:Ve,node:yt})}),(0,S.Z)((0,d.Z)(ie),"onNodeContextMenu",function(Ve,yt){var ct=ie.props.onRightClick;ct&&(Ve.preventDefault(),ct({event:Ve,node:yt}))}),(0,S.Z)((0,d.Z)(ie),"onFocus",function(){var Ve=ie.props.onFocus;ie.setState({focused:!0});for(var yt=arguments.length,ct=new Array(yt),St=0;St<yt;St++)ct[St]=arguments[St];Ve==null||Ve.apply(void 0,ct)}),(0,S.Z)((0,d.Z)(ie),"onBlur",function(){var Ve=ie.props.onBlur;ie.setState({focused:!1}),ie.onActiveChange(null);for(var yt=arguments.length,ct=new Array(yt),St=0;St<yt;St++)ct[St]=arguments[St];Ve==null||Ve.apply(void 0,ct)}),(0,S.Z)((0,d.Z)(ie),"getTreeNodeRequiredProps",function(){var Ve=ie.state,yt=Ve.expandedKeys,ct=Ve.selectedKeys,St=Ve.loadedKeys,_t=Ve.loadingKeys,At=Ve.checkedKeys,ht=Ve.halfCheckedKeys,wt=Ve.dragOverNodeKey,jt=Ve.dropPosition,st=Ve.keyEntities;return{expandedKeys:yt||[],selectedKeys:ct||[],loadedKeys:St||[],loadingKeys:_t||[],checkedKeys:At||[],halfCheckedKeys:ht||[],dragOverNodeKey:wt,dropPosition:jt,keyEntities:st}}),(0,S.Z)((0,d.Z)(ie),"setExpandedKeys",function(Ve){var yt=ie.state,ct=yt.treeData,St=yt.fieldNames,_t=(0,ne.oH)(ct,Ve,St);ie.setUncontrolledState({expandedKeys:Ve,flattenNodes:_t},!0)}),(0,S.Z)((0,d.Z)(ie),"onNodeExpand",function(Ve,yt){var ct=ie.state.expandedKeys,St=ie.state,_t=St.listChanging,At=St.fieldNames,ht=ie.props,wt=ht.onExpand,jt=ht.loadData,st=yt.expanded,ge=yt[At.key];if(!_t){var on=ct.includes(ge),mn=!st;if((0,x.ZP)(st&&on||!st&&!on,"Expand state not sync with index check"),ct=mn?(0,lt.L0)(ct,ge):(0,lt._5)(ct,ge),ie.setExpandedKeys(ct),wt==null||wt(ct,{node:yt,expanded:mn,nativeEvent:Ve.nativeEvent}),mn&&jt){var Mt=ie.onNodeLoad(yt);Mt&&Mt.then(function(){var On=(0,ne.oH)(ie.state.treeData,ct,At);ie.setUncontrolledState({flattenNodes:On})}).catch(function(){var On=ie.state.expandedKeys,Vn=(0,lt._5)(On,ge);ie.setExpandedKeys(Vn)})}}}),(0,S.Z)((0,d.Z)(ie),"onListChangeStart",function(){ie.setUncontrolledState({listChanging:!0})}),(0,S.Z)((0,d.Z)(ie),"onListChangeEnd",function(){setTimeout(function(){ie.setUncontrolledState({listChanging:!1})})}),(0,S.Z)((0,d.Z)(ie),"onActiveChange",function(Ve){var yt=ie.state.activeKey,ct=ie.props,St=ct.onActiveChange,_t=ct.itemScrollOffset,At=_t===void 0?0:_t;yt!==Ve&&(ie.setState({activeKey:Ve}),Ve!==null&&ie.scrollTo({key:Ve,offset:At}),St==null||St(Ve))}),(0,S.Z)((0,d.Z)(ie),"getActiveItem",function(){var Ve=ie.state,yt=Ve.activeKey,ct=Ve.flattenNodes;return yt===null?null:ct.find(function(St){var _t=St.key;return _t===yt})||null}),(0,S.Z)((0,d.Z)(ie),"offsetActiveKey",function(Ve){var yt=ie.state,ct=yt.flattenNodes,St=yt.activeKey,_t=ct.findIndex(function(wt){var jt=wt.key;return jt===St});_t===-1&&Ve<0&&(_t=ct.length),_t=(_t+Ve+ct.length)%ct.length;var At=ct[_t];if(At){var ht=At.key;ie.onActiveChange(ht)}else ie.onActiveChange(null)}),(0,S.Z)((0,d.Z)(ie),"onKeyDown",function(Ve){var yt=ie.state,ct=yt.activeKey,St=yt.expandedKeys,_t=yt.checkedKeys,At=yt.fieldNames,ht=ie.props,wt=ht.onKeyDown,jt=ht.checkable,st=ht.selectable;switch(Ve.which){case h.Z.UP:{ie.offsetActiveKey(-1),Ve.preventDefault();break}case h.Z.DOWN:{ie.offsetActiveKey(1),Ve.preventDefault();break}}var ge=ie.getActiveItem();if(ge&&ge.data){var on=ie.getTreeNodeRequiredProps(),mn=ge.data.isLeaf===!1||!!(ge.data[At.children]||[]).length,Mt=(0,ne.F)((0,s.Z)((0,s.Z)({},(0,ne.H8)(ct,on)),{},{data:ge.data,active:!0}));switch(Ve.which){case h.Z.LEFT:{mn&&St.includes(ct)?ie.onNodeExpand({},Mt):ge.parent&&ie.onActiveChange(ge.parent.key),Ve.preventDefault();break}case h.Z.RIGHT:{mn&&!St.includes(ct)?ie.onNodeExpand({},Mt):ge.children&&ge.children.length&&ie.onActiveChange(ge.children[0].key),Ve.preventDefault();break}case h.Z.ENTER:case h.Z.SPACE:{jt&&!Mt.disabled&&Mt.checkable!==!1&&!Mt.disableCheckbox?ie.onNodeCheck({},Mt,!_t.includes(ct)):!jt&&st&&!Mt.disabled&&Mt.selectable!==!1&&ie.onNodeSelect({},Mt);break}}}wt==null||wt(Ve)}),(0,S.Z)((0,d.Z)(ie),"setUncontrolledState",function(Ve){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ct=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!ie.destroyed){var St=!1,_t=!0,At={};Object.keys(Ve).forEach(function(ht){if(ie.props.hasOwnProperty(ht)){_t=!1;return}St=!0,At[ht]=Ve[ht]}),St&&(!yt||_t)&&ie.setState((0,s.Z)((0,s.Z)({},At),ct))}}),(0,S.Z)((0,d.Z)(ie),"scrollTo",function(Ve){ie.listRef.current.scrollTo(Ve)}),ie}return(0,u.Z)(oe,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var ve=this.props,Ne=ve.activeKey,ze=ve.itemScrollOffset,Ve=ze===void 0?0:ze;Ne!==void 0&&Ne!==this.state.activeKey&&(this.setState({activeKey:Ne}),Ne!==null&&this.scrollTo({key:Ne,offset:Ve}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var ve=this.state,Ne=ve.focused,ze=ve.flattenNodes,Ve=ve.keyEntities,yt=ve.draggingNodeKey,ct=ve.activeKey,St=ve.dropLevelOffset,_t=ve.dropContainerKey,At=ve.dropTargetKey,ht=ve.dropPosition,wt=ve.dragOverNodeKey,jt=ve.indent,st=this.props,ge=st.prefixCls,on=st.className,mn=st.style,Mt=st.showLine,On=st.focusable,Vn=st.tabIndex,Fn=Vn===void 0?0:Vn,Gn=st.selectable,sn=st.showIcon,xt=st.icon,gr=st.switcherIcon,Pr=st.draggable,tr=st.checkable,ii=st.checkStrictly,Ar=st.disabled,Kt=st.motion,ye=st.loadData,Vt=st.filterTreeNode,rn=st.height,Xn=st.itemHeight,Zn=st.scrollWidth,ir=st.virtual,Dr=st.titleRender,ai=st.dropIndicatorRender,li=st.onContextMenu,Zr=st.onScroll,Tn=st.direction,kn=st.rootClassName,Vr=st.rootStyle,di=(0,m.Z)(this.props,{aria:!0,data:!0}),nr;Pr&&((0,Y.Z)(Pr)==="object"?nr=Pr:typeof Pr=="function"?nr={nodeDraggable:Pr}:nr={});var vn={prefixCls:ge,selectable:Gn,showIcon:sn,icon:xt,switcherIcon:gr,draggable:nr,draggingNodeKey:yt,checkable:tr,checkStrictly:ii,disabled:Ar,keyEntities:Ve,dropLevelOffset:St,dropContainerKey:_t,dropTargetKey:At,dropPosition:ht,dragOverNodeKey:wt,indent:jt,direction:Tn,dropIndicatorRender:ai,loadData:ye,filterTreeNode:Vt,titleRender:Dr,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};return T.createElement(_.k.Provider,{value:vn},T.createElement("div",{className:c()(ge,on,kn,(0,S.Z)((0,S.Z)((0,S.Z)({},"".concat(ge,"-show-line"),Mt),"".concat(ge,"-focused"),Ne),"".concat(ge,"-active-focused"),ct!==null)),style:Vr},T.createElement(Me,(0,B.Z)({ref:this.listRef,prefixCls:ge,style:mn,data:ze,disabled:Ar,selectable:Gn,checkable:!!tr,motion:Kt,dragging:yt!==null,height:rn,itemHeight:Xn,virtual:ir,focusable:On,focused:Ne,tabIndex:Fn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:li,onScroll:Zr,scrollWidth:Zn},this.getTreeNodeRequiredProps(),di))))}}],[{key:"getDerivedStateFromProps",value:function(ve,Ne){var ze=Ne.prevProps,Ve={prevProps:ve};function yt(Fn){return!ze&&ve.hasOwnProperty(Fn)||ze&&ze[Fn]!==ve[Fn]}var ct,St=Ne.fieldNames;if(yt("fieldNames")&&(St=(0,ne.w$)(ve.fieldNames),Ve.fieldNames=St),yt("treeData")?ct=ve.treeData:yt("children")&&((0,x.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ct=(0,ne.zn)(ve.children)),ct){Ve.treeData=ct;var _t=(0,ne.I8)(ct,{fieldNames:St});Ve.keyEntities=(0,s.Z)((0,S.Z)({},se,ke),_t.keyEntities)}var At=Ve.keyEntities||Ne.keyEntities;if(yt("expandedKeys")||ze&&yt("autoExpandParent"))Ve.expandedKeys=ve.autoExpandParent||!ze&&ve.defaultExpandParent?(0,lt.r7)(ve.expandedKeys,At):ve.expandedKeys;else if(!ze&&ve.defaultExpandAll){var ht=(0,s.Z)({},At);delete ht[se];var wt=[];Object.keys(ht).forEach(function(Fn){var Gn=ht[Fn];Gn.children&&Gn.children.length&&wt.push(Gn.key)}),Ve.expandedKeys=wt}else!ze&&ve.defaultExpandedKeys&&(Ve.expandedKeys=ve.autoExpandParent||ve.defaultExpandParent?(0,lt.r7)(ve.defaultExpandedKeys,At):ve.defaultExpandedKeys);if(Ve.expandedKeys||delete Ve.expandedKeys,ct||Ve.expandedKeys){var jt=(0,ne.oH)(ct||Ne.treeData,Ve.expandedKeys||Ne.expandedKeys,St);Ve.flattenNodes=jt}if(ve.selectable&&(yt("selectedKeys")?Ve.selectedKeys=(0,lt.BT)(ve.selectedKeys,ve):!ze&&ve.defaultSelectedKeys&&(Ve.selectedKeys=(0,lt.BT)(ve.defaultSelectedKeys,ve))),ve.checkable){var st;if(yt("checkedKeys")?st=(0,lt.E6)(ve.checkedKeys)||{}:!ze&&ve.defaultCheckedKeys?st=(0,lt.E6)(ve.defaultCheckedKeys)||{}:ct&&(st=(0,lt.E6)(ve.checkedKeys)||{checkedKeys:Ne.checkedKeys,halfCheckedKeys:Ne.halfCheckedKeys}),st){var ge=st,on=ge.checkedKeys,mn=on===void 0?[]:on,Mt=ge.halfCheckedKeys,On=Mt===void 0?[]:Mt;if(!ve.checkStrictly){var Vn=(0,Re.S)(mn,!0,At);mn=Vn.checkedKeys,On=Vn.halfCheckedKeys}Ve.checkedKeys=mn,Ve.halfCheckedKeys=On}}return yt("loadedKeys")&&(Ve.loadedKeys=ve.loadedKeys),Ve}}]),oe}(T.Component);(0,S.Z)(fe,"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:[],dropIndicatorRender:A,allowDrop:function(){return!0},expandAction:!1}),(0,S.Z)(fe,"TreeNode",V.Z);var z=fe,J=z},10225:function(Ie,Z,b){"use strict";b.d(Z,{BT:function(){return T},E6:function(){return A},L0:function(){return S},OM:function(){return x},_5:function(){return y},r7:function(){return N},wA:function(){return c},yx:function(){return v}});var B=b(74902),Y=b(71002),s=b(80334),E=b(67294),I=b(86128),u=b(35381),d=b(1089),g=null;function y(L,M){if(!L)return[];var F=L.slice(),H=F.indexOf(M);return H>=0&&F.splice(H,1),F}function S(L,M){var F=(L||[]).slice();return F.indexOf(M)===-1&&F.push(M),F}function v(L){return L.split("-")}function c(L,M){var F=[],H=(0,u.Z)(M,L);function P(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];V.forEach(function(G){var Q=G.key,ne=G.children;F.push(Q),P(ne)})}return P(H.children),F}function h(L){if(L.parent){var M=v(L.pos);return Number(M[M.length-1])===L.parent.children.length-1}return!1}function m(L){var M=v(L.pos);return Number(M[M.length-1])===0}function x(L,M,F,H,P,V,G,Q,ne,ue){var ae,he=L.clientX,ce=L.clientY,we=L.target.getBoundingClientRect(),me=we.top,Le=we.height,ee=(ue==="rtl"?-1:1)*(((P==null?void 0:P.x)||0)-he),se=(ee-12)/H,le=ne.filter(function(J){var be;return(be=Q[J])===null||be===void 0||(be=be.children)===null||be===void 0?void 0:be.length}),ke=(0,u.Z)(Q,F.eventKey);if(ce<me+Le/2){var De=G.findIndex(function(J){return J.key===ke.key}),Be=De<=0?0:De-1,He=G[Be].key;ke=(0,u.Z)(Q,He)}var Fe=ke.key,Je=ke,Me=ke.key,lt=0,Re=0;if(!le.includes(Fe))for(var Oe=0;Oe<se&&h(ke);Oe+=1)ke=ke.parent,Re+=1;var pe=M.data,fe=ke.node,z=!0;return m(ke)&&ke.level===0&&ce<me+Le/2&&V({dragNode:pe,dropNode:fe,dropPosition:-1})&&ke.key===F.eventKey?lt=-1:(Je.children||[]).length&&le.includes(Me)?V({dragNode:pe,dropNode:fe,dropPosition:0})?lt=0:z=!1:Re===0?se>-1.5?V({dragNode:pe,dropNode:fe,dropPosition:1})?lt=1:z=!1:V({dragNode:pe,dropNode:fe,dropPosition:0})?lt=0:V({dragNode:pe,dropNode:fe,dropPosition:1})?lt=1:z=!1:V({dragNode:pe,dropNode:fe,dropPosition:1})?lt=1:z=!1,{dropPosition:lt,dropLevelOffset:Re,dropTargetKey:ke.key,dropTargetPos:ke.pos,dragOverNodeKey:Me,dropContainerKey:lt===0?null:((ae=ke.parent)===null||ae===void 0?void 0:ae.key)||null,dropAllowed:z}}function T(L,M){if(L){var F=M.multiple;return F?L.slice():L.length?[L[0]]:L}}var _=function(M){return M};function R(L,M){if(!L)return[];var F=M||{},H=F.processProps,P=H===void 0?_:H,V=Array.isArray(L)?L:[L];return V.map(function(G){var Q=G.children,ne=_objectWithoutProperties(G,g),ue=R(Q,M);return React.createElement(TreeNode,_extends({key:ne.key},P(ne)),ue)})}function A(L){if(!L)return null;var M;if(Array.isArray(L))M={checkedKeys:L,halfCheckedKeys:void 0};else if((0,Y.Z)(L)==="object")M={checkedKeys:L.checked||void 0,halfCheckedKeys:L.halfChecked||void 0};else return(0,s.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return M}function N(L,M){var F=new Set;function H(P){if(!F.has(P)){var V=(0,u.Z)(M,P);if(V){F.add(P);var G=V.parent,Q=V.node;Q.disabled||G&&H(G.key)}}}return(L||[]).forEach(function(P){H(P)}),(0,B.Z)(F)}},17341:function(Ie,Z,b){"use strict";b.d(Z,{S:function(){return d}});var B=b(80334),Y=b(35381);function s(g,y){var S=new Set;return g.forEach(function(v){y.has(v)||S.add(v)}),S}function E(g){var y=g||{},S=y.disabled,v=y.disableCheckbox,c=y.checkable;return!!(S||v)||c===!1}function I(g,y,S,v){for(var c=new Set(g),h=new Set,m=0;m<=S;m+=1){var x=y.get(m)||new Set;x.forEach(function(A){var N=A.key,L=A.node,M=A.children,F=M===void 0?[]:M;c.has(N)&&!v(L)&&F.filter(function(H){return!v(H.node)}).forEach(function(H){c.add(H.key)})})}for(var T=new Set,_=S;_>=0;_-=1){var R=y.get(_)||new Set;R.forEach(function(A){var N=A.parent,L=A.node;if(!(v(L)||!A.parent||T.has(A.parent.key))){if(v(A.parent.node)){T.add(N.key);return}var M=!0,F=!1;(N.children||[]).filter(function(H){return!v(H.node)}).forEach(function(H){var P=H.key,V=c.has(P);M&&!V&&(M=!1),!F&&(V||h.has(P))&&(F=!0)}),M&&c.add(N.key),F&&h.add(N.key),T.add(N.key)}})}return{checkedKeys:Array.from(c),halfCheckedKeys:Array.from(s(h,c))}}function u(g,y,S,v,c){for(var h=new Set(g),m=new Set(y),x=0;x<=v;x+=1){var T=S.get(x)||new Set;T.forEach(function(N){var L=N.key,M=N.node,F=N.children,H=F===void 0?[]:F;!h.has(L)&&!m.has(L)&&!c(M)&&H.filter(function(P){return!c(P.node)}).forEach(function(P){h.delete(P.key)})})}m=new Set;for(var _=new Set,R=v;R>=0;R-=1){var A=S.get(R)||new Set;A.forEach(function(N){var L=N.parent,M=N.node;if(!(c(M)||!N.parent||_.has(N.parent.key))){if(c(N.parent.node)){_.add(L.key);return}var F=!0,H=!1;(L.children||[]).filter(function(P){return!c(P.node)}).forEach(function(P){var V=P.key,G=h.has(V);F&&!G&&(F=!1),!H&&(G||m.has(V))&&(H=!0)}),F||h.delete(L.key),H&&m.add(L.key),_.add(L.key)}})}return{checkedKeys:Array.from(h),halfCheckedKeys:Array.from(s(m,h))}}function d(g,y,S,v){var c=[],h;v?h=v:h=E;var m=new Set(g.filter(function(R){var A=!!(0,Y.Z)(S,R);return A||c.push(R),A})),x=new Map,T=0;Object.keys(S).forEach(function(R){var A=S[R],N=A.level,L=x.get(N);L||(L=new Set,x.set(N,L)),L.add(A),T=Math.max(T,N)}),(0,B.ZP)(!c.length,"Tree missing follow keys: ".concat(c.slice(0,100).map(function(R){return"'".concat(R,"'")}).join(", ")));var _;return y===!0?_=I(m,x,T,h):_=u(m,y.halfCheckedKeys,x,T,h),_}},35381:function(Ie,Z,b){"use strict";b.d(Z,{Z:function(){return B}});function B(Y,s){return Y[s]}},1089:function(Ie,Z,b){"use strict";b.d(Z,{F:function(){return N},H8:function(){return A},I8:function(){return R},km:function(){return c},oH:function(){return T},w$:function(){return h},zn:function(){return x}});var B=b(71002),Y=b(74902),s=b(1413),E=b(45987),I=b(50344),u=b(98423),d=b(80334),g=b(35381),y=["children"];function S(L,M){return"".concat(L,"-").concat(M)}function v(L){return L&&L.type&&L.type.isTreeNode}function c(L,M){return L!=null?L:M}function h(L){var M=L||{},F=M.title,H=M._title,P=M.key,V=M.children,G=F||"title";return{title:G,_title:H||[G],key:P||"key",children:V||"children"}}function m(L,M){var F=new Map;function H(P){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(P||[]).forEach(function(G){var Q=G[M.key],ne=G[M.children];warning(Q!=null,"Tree node must have a certain key: [".concat(V).concat(Q,"]"));var ue=String(Q);warning(!F.has(ue)||Q===null||Q===void 0,"Same 'key' exist in the Tree: ".concat(ue)),F.set(ue,!0),H(ne,"".concat(V).concat(ue," > "))})}H(L)}function x(L){function M(F){var H=(0,I.Z)(F);return H.map(function(P){if(!v(P))return(0,d.ZP)(!P,"Tree/TreeNode can only accept TreeNode as children."),null;var V=P.key,G=P.props,Q=G.children,ne=(0,E.Z)(G,y),ue=(0,s.Z)({key:V},ne),ae=M(Q);return ae.length&&(ue.children=ae),ue}).filter(function(P){return P})}return M(L)}function T(L,M,F){var H=h(F),P=H._title,V=H.key,G=H.children,Q=new Set(M===!0?[]:M),ne=[];function ue(ae){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return ae.map(function(ce,we){for(var me=S(he?he.pos:"0",we),Le=c(ce[V],me),ee,se=0;se<P.length;se+=1){var le=P[se];if(ce[le]!==void 0){ee=ce[le];break}}var ke=Object.assign((0,u.Z)(ce,[].concat((0,Y.Z)(P),[V,G])),{title:ee,key:Le,parent:he,pos:me,children:null,data:ce,isStart:[].concat((0,Y.Z)(he?he.isStart:[]),[we===0]),isEnd:[].concat((0,Y.Z)(he?he.isEnd:[]),[we===ae.length-1])});return ne.push(ke),M===!0||Q.has(Le)?ke.children=ue(ce[G]||[],ke):ke.children=[],ke})}return ue(L),ne}function _(L,M,F){var H={};(0,B.Z)(F)==="object"?H=F:H={externalGetKey:F},H=H||{};var P=H,V=P.childrenPropName,G=P.externalGetKey,Q=P.fieldNames,ne=h(Q),ue=ne.key,ae=ne.children,he=V||ae,ce;G?typeof G=="string"?ce=function(Le){return Le[G]}:typeof G=="function"&&(ce=function(Le){return G(Le)}):ce=function(Le,ee){return c(Le[ue],ee)};function we(me,Le,ee,se){var le=me?me[he]:L,ke=me?S(ee.pos,Le):"0",De=me?[].concat((0,Y.Z)(se),[me]):[];if(me){var Be=ce(me,ke),He={node:me,index:Le,pos:ke,key:Be,parentPos:ee.node?ee.pos:null,level:ee.level+1,nodes:De};M(He)}le&&le.forEach(function(Fe,Je){we(Fe,Je,{node:me,pos:ke,level:ee?ee.level+1:-1},De)})}we(null)}function R(L){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},F=M.initWrapper,H=M.processEntity,P=M.onProcessFinished,V=M.externalGetKey,G=M.childrenPropName,Q=M.fieldNames,ne=arguments.length>2?arguments[2]:void 0,ue=V||ne,ae={},he={},ce={posEntities:ae,keyEntities:he};return F&&(ce=F(ce)||ce),_(L,function(we){var me=we.node,Le=we.index,ee=we.pos,se=we.key,le=we.parentPos,ke=we.level,De=we.nodes,Be={node:me,nodes:De,index:Le,key:se,pos:ee,level:ke},He=c(se,ee);ae[ee]=Be,he[He]=Be,Be.parent=ae[le],Be.parent&&(Be.parent.children=Be.parent.children||[],Be.parent.children.push(Be)),H&&H(Be,ce)},{externalGetKey:ue,childrenPropName:G,fieldNames:Q}),P&&P(ce),ce}function A(L,M){var F=M.expandedKeys,H=M.selectedKeys,P=M.loadedKeys,V=M.loadingKeys,G=M.checkedKeys,Q=M.halfCheckedKeys,ne=M.dragOverNodeKey,ue=M.dropPosition,ae=M.keyEntities,he=(0,g.Z)(ae,L),ce={eventKey:L,expanded:F.indexOf(L)!==-1,selected:H.indexOf(L)!==-1,loaded:P.indexOf(L)!==-1,loading:V.indexOf(L)!==-1,checked:G.indexOf(L)!==-1,halfChecked:Q.indexOf(L)!==-1,pos:String(he?he.pos:""),dragOver:ne===L&&ue===0,dragOverGapTop:ne===L&&ue===-1,dragOverGapBottom:ne===L&&ue===1};return ce}function N(L){var M=L.data,F=L.expanded,H=L.selected,P=L.checked,V=L.loaded,G=L.loading,Q=L.halfChecked,ne=L.dragOver,ue=L.dragOverGapTop,ae=L.dragOverGapBottom,he=L.pos,ce=L.active,we=L.eventKey,me=(0,s.Z)((0,s.Z)({},M),{},{expanded:F,selected:H,checked:P,loaded:V,loading:G,halfChecked:Q,dragOver:ne,dragOverGapTop:ue,dragOverGapBottom:ae,pos:he,active:ce,key:we});return"props"in me||Object.defineProperty(me,"props",{get:function(){return(0,d.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),L}}),me}},36356:function(Ie,Z,b){"use strict";b.d(Z,{Z:function(){return we}});var B=b(87462),Y=b(15671),s=b(43144),E=b(97326),I=b(60136),u=b(29388),d=b(4942),g=b(67294),y=b(1413),S=b(45987),v=b(71002),c=b(74165),h=b(15861),m=b(74902),x=b(94184),T=b.n(x),_=b(64217),R=b(80334),A=function(me,Le){if(me&&Le){var ee=Array.isArray(Le)?Le:Le.split(","),se=me.name||"",le=me.type||"",ke=le.replace(/\/.*$/,"");return ee.some(function(De){var Be=De.trim();if(/^\*(\/\*)?$/.test(De))return!0;if(Be.charAt(0)==="."){var He=se.toLowerCase(),Fe=Be.toLowerCase(),Je=[Fe];return(Fe===".jpg"||Fe===".jpeg")&&(Je=[".jpg",".jpeg"]),Je.some(function(Me){return He.endsWith(Me)})}return/\/\*$/.test(Be)?ke===Be.replace(/\/.*$/,""):le===Be?!0:/^\w+$/.test(Be)?((0,R.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Be,"'.Skip for check.")),!0):!1})}return!0};function N(me,Le){var ee="cannot ".concat(me.method," ").concat(me.action," ").concat(Le.status,"'"),se=new Error(ee);return se.status=Le.status,se.method=me.method,se.url=me.action,se}function L(me){var Le=me.responseText||me.response;if(!Le)return Le;try{return JSON.parse(Le)}catch(ee){return Le}}function M(me){var Le=new XMLHttpRequest;me.onProgress&&Le.upload&&(Le.upload.onprogress=function(ke){ke.total>0&&(ke.percent=ke.loaded/ke.total*100),me.onProgress(ke)});var ee=new FormData;me.data&&Object.keys(me.data).forEach(function(le){var ke=me.data[le];if(Array.isArray(ke)){ke.forEach(function(De){ee.append("".concat(le,"[]"),De)});return}ee.append(le,ke)}),me.file instanceof Blob?ee.append(me.filename,me.file,me.file.name):ee.append(me.filename,me.file),Le.onerror=function(ke){me.onError(ke)},Le.onload=function(){return Le.status<200||Le.status>=300?me.onError(N(me,Le),L(Le)):me.onSuccess(L(Le),Le)},Le.open(me.method,me.action,!0),me.withCredentials&&"withCredentials"in Le&&(Le.withCredentials=!0);var se=me.headers||{};return se["X-Requested-With"]!==null&&Le.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(se).forEach(function(le){se[le]!==null&&Le.setRequestHeader(le,se[le])}),Le.send(ee),{abort:function(){Le.abort()}}}var F=function(){var me=(0,h.Z)((0,c.Z)().mark(function Le(ee,se){var le,ke,De,Be,He,Fe,Je,Me;return(0,c.Z)().wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:Fe=function(){return Fe=(0,h.Z)((0,c.Z)().mark(function pe(fe){return(0,c.Z)().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return J.abrupt("return",new Promise(function(be){fe.file(function(_e){se(_e)?(fe.fullPath&&!_e.webkitRelativePath&&(Object.defineProperties(_e,{webkitRelativePath:{writable:!0}}),_e.webkitRelativePath=fe.fullPath.replace(/^\//,""),Object.defineProperties(_e,{webkitRelativePath:{writable:!1}})),be(_e)):be(null)})}));case 1:case"end":return J.stop()}},pe)})),Fe.apply(this,arguments)},He=function(pe){return Fe.apply(this,arguments)},Be=function(){return Be=(0,h.Z)((0,c.Z)().mark(function pe(fe){var z,J,be,_e,oe;return(0,c.Z)().wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:z=fe.createReader(),J=[];case 2:return ve.next=5,new Promise(function(Ne){z.readEntries(Ne,function(){return Ne([])})});case 5:if(be=ve.sent,_e=be.length,_e){ve.next=9;break}return ve.abrupt("break",12);case 9:for(oe=0;oe<_e;oe++)J.push(be[oe]);ve.next=2;break;case 12:return ve.abrupt("return",J);case 13:case"end":return ve.stop()}},pe)})),Be.apply(this,arguments)},De=function(pe){return Be.apply(this,arguments)},le=[],ke=[],ee.forEach(function(Oe){return ke.push(Oe.webkitGetAsEntry())}),Je=function(){var Oe=(0,h.Z)((0,c.Z)().mark(function pe(fe,z){var J,be;return(0,c.Z)().wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:if(fe){oe.next=2;break}return oe.abrupt("return");case 2:if(fe.path=z||"",!fe.isFile){oe.next=10;break}return oe.next=6,He(fe);case 6:J=oe.sent,J&&le.push(J),oe.next=15;break;case 10:if(!fe.isDirectory){oe.next=15;break}return oe.next=13,De(fe);case 13:be=oe.sent,ke.push.apply(ke,(0,m.Z)(be));case 15:case"end":return oe.stop()}},pe)}));return function(fe,z){return Oe.apply(this,arguments)}}(),Me=0;case 9:if(!(Me<ke.length)){Re.next=15;break}return Re.next=12,Je(ke[Me]);case 12:Me++,Re.next=9;break;case 15:return Re.abrupt("return",le);case 16:case"end":return Re.stop()}},Le)}));return function(ee,se){return me.apply(this,arguments)}}(),H=F,P=+new Date,V=0;function G(){return"rc-upload-".concat(P,"-").concat(++V)}var Q=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],ne=function(me){(0,I.Z)(ee,me);var Le=(0,u.Z)(ee);function ee(){var se;(0,Y.Z)(this,ee);for(var le=arguments.length,ke=new Array(le),De=0;De<le;De++)ke[De]=arguments[De];return se=Le.call.apply(Le,[this].concat(ke)),(0,d.Z)((0,E.Z)(se),"state",{uid:G()}),(0,d.Z)((0,E.Z)(se),"reqs",{}),(0,d.Z)((0,E.Z)(se),"fileInput",void 0),(0,d.Z)((0,E.Z)(se),"_isMounted",void 0),(0,d.Z)((0,E.Z)(se),"onChange",function(Be){var He=se.props,Fe=He.accept,Je=He.directory,Me=Be.target.files,lt=(0,m.Z)(Me).filter(function(Re){return!Je||A(Re,Fe)});se.uploadFiles(lt),se.reset()}),(0,d.Z)((0,E.Z)(se),"onClick",function(Be){var He=se.fileInput;if(He){var Fe=Be.target,Je=se.props.onClick;if(Fe&&Fe.tagName==="BUTTON"){var Me=He.parentNode;Me.focus(),Fe.blur()}He.click(),Je&&Je(Be)}}),(0,d.Z)((0,E.Z)(se),"onKeyDown",function(Be){Be.key==="Enter"&&se.onClick(Be)}),(0,d.Z)((0,E.Z)(se),"onFileDrop",function(){var Be=(0,h.Z)((0,c.Z)().mark(function He(Fe){var Je,Me,lt;return(0,c.Z)().wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(Je=se.props.multiple,Fe.preventDefault(),Fe.type!=="dragover"){Oe.next=4;break}return Oe.abrupt("return");case 4:if(!se.props.directory){Oe.next=11;break}return Oe.next=7,H(Array.prototype.slice.call(Fe.dataTransfer.items),function(pe){return A(pe,se.props.accept)});case 7:Me=Oe.sent,se.uploadFiles(Me),Oe.next=14;break;case 11:lt=(0,m.Z)(Fe.dataTransfer.files).filter(function(pe){return A(pe,se.props.accept)}),Je===!1&&(lt=lt.slice(0,1)),se.uploadFiles(lt);case 14:case"end":return Oe.stop()}},He)}));return function(He){return Be.apply(this,arguments)}}()),(0,d.Z)((0,E.Z)(se),"uploadFiles",function(Be){var He=(0,m.Z)(Be),Fe=He.map(function(Je){return Je.uid=G(),se.processFile(Je,He)});Promise.all(Fe).then(function(Je){var Me=se.props.onBatchStart;Me==null||Me(Je.map(function(lt){var Re=lt.origin,Oe=lt.parsedFile;return{file:Re,parsedFile:Oe}})),Je.filter(function(lt){return lt.parsedFile!==null}).forEach(function(lt){se.post(lt)})})}),(0,d.Z)((0,E.Z)(se),"processFile",function(){var Be=(0,h.Z)((0,c.Z)().mark(function He(Fe,Je){var Me,lt,Re,Oe,pe,fe,z,J,be;return(0,c.Z)().wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:if(Me=se.props.beforeUpload,lt=Fe,!Me){oe.next=14;break}return oe.prev=3,oe.next=6,Me(Fe,Je);case 6:lt=oe.sent,oe.next=12;break;case 9:oe.prev=9,oe.t0=oe.catch(3),lt=!1;case 12:if(lt!==!1){oe.next=14;break}return oe.abrupt("return",{origin:Fe,parsedFile:null,action:null,data:null});case 14:if(Re=se.props.action,typeof Re!="function"){oe.next=21;break}return oe.next=18,Re(Fe);case 18:Oe=oe.sent,oe.next=22;break;case 21:Oe=Re;case 22:if(pe=se.props.data,typeof pe!="function"){oe.next=29;break}return oe.next=26,pe(Fe);case 26:fe=oe.sent,oe.next=30;break;case 29:fe=pe;case 30:return z=((0,v.Z)(lt)==="object"||typeof lt=="string")&&lt?lt:Fe,z instanceof File?J=z:J=new File([z],Fe.name,{type:Fe.type}),be=J,be.uid=Fe.uid,oe.abrupt("return",{origin:Fe,data:fe,parsedFile:be,action:Oe});case 35:case"end":return oe.stop()}},He,null,[[3,9]])}));return function(He,Fe){return Be.apply(this,arguments)}}()),(0,d.Z)((0,E.Z)(se),"saveFileInput",function(Be){se.fileInput=Be}),se}return(0,s.Z)(ee,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(le){var ke=this,De=le.data,Be=le.origin,He=le.action,Fe=le.parsedFile;if(this._isMounted){var Je=this.props,Me=Je.onStart,lt=Je.customRequest,Re=Je.name,Oe=Je.headers,pe=Je.withCredentials,fe=Je.method,z=Be.uid,J=lt||M,be={action:He,filename:Re,data:De,file:Fe,headers:Oe,withCredentials:pe,method:fe||"post",onProgress:function(oe){var ie=ke.props.onProgress;ie==null||ie(oe,Fe)},onSuccess:function(oe,ie){var ve=ke.props.onSuccess;ve==null||ve(oe,Fe,ie),delete ke.reqs[z]},onError:function(oe,ie){var ve=ke.props.onError;ve==null||ve(oe,ie,Fe),delete ke.reqs[z]}};Me(Be),this.reqs[z]=J(be)}}},{key:"reset",value:function(){this.setState({uid:G()})}},{key:"abort",value:function(le){var ke=this.reqs;if(le){var De=le.uid?le.uid:le;ke[De]&&ke[De].abort&&ke[De].abort(),delete ke[De]}else Object.keys(ke).forEach(function(Be){ke[Be]&&ke[Be].abort&&ke[Be].abort(),delete ke[Be]})}},{key:"render",value:function(){var le=this.props,ke=le.component,De=le.prefixCls,Be=le.className,He=le.classNames,Fe=He===void 0?{}:He,Je=le.disabled,Me=le.id,lt=le.name,Re=le.style,Oe=le.styles,pe=Oe===void 0?{}:Oe,fe=le.multiple,z=le.accept,J=le.capture,be=le.children,_e=le.directory,oe=le.openFileDialogOnClick,ie=le.onMouseEnter,ve=le.onMouseLeave,Ne=le.hasControlInside,ze=(0,S.Z)(le,Q),Ve=T()((0,d.Z)((0,d.Z)((0,d.Z)({},De,!0),"".concat(De,"-disabled"),Je),Be,Be)),yt=_e?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},ct=Je?{}:{onClick:oe?this.onClick:function(){},onKeyDown:oe?this.onKeyDown:function(){},onMouseEnter:ie,onMouseLeave:ve,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:Ne?void 0:"0"};return g.createElement(ke,(0,B.Z)({},ct,{className:Ve,role:Ne?void 0:"button",style:Re}),g.createElement("input",(0,B.Z)({},(0,_.Z)(ze,{aria:!0,data:!0}),{id:Me,name:lt,disabled:Je,type:"file",ref:this.saveFileInput,onClick:function(_t){return _t.stopPropagation()},key:this.state.uid,style:(0,y.Z)({display:"none"},pe.input),className:Fe.input,accept:z},yt,{multiple:fe,onChange:this.onChange},J!=null?{capture:J}:{})),be)}}]),ee}(g.Component),ue=ne;function ae(){}var he=function(me){(0,I.Z)(ee,me);var Le=(0,u.Z)(ee);function ee(){var se;(0,Y.Z)(this,ee);for(var le=arguments.length,ke=new Array(le),De=0;De<le;De++)ke[De]=arguments[De];return se=Le.call.apply(Le,[this].concat(ke)),(0,d.Z)((0,E.Z)(se),"uploader",void 0),(0,d.Z)((0,E.Z)(se),"saveUploader",function(Be){se.uploader=Be}),se}return(0,s.Z)(ee,[{key:"abort",value:function(le){this.uploader.abort(le)}},{key:"render",value:function(){return g.createElement(ue,(0,B.Z)({},this.props,{ref:this.saveUploader}))}}]),ee}(g.Component);(0,d.Z)(he,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:ae,onError:ae,onSuccess:ae,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var ce=he,we=ce},73299:function(Ie,Z,b){"use strict";b.d(Z,{Z:function(){return Ar}});var B=b(87462),Y=b(1413),s=b(71002),E=b(97685),I=b(4942),u=b(45987),d=b(67294),g=b(73935),y=b(94184),S=b.n(y),v=b(48555),c=d.forwardRef(function(Kt,ye){var Vt=Kt.height,rn=Kt.offsetY,Xn=Kt.offsetX,Zn=Kt.children,ir=Kt.prefixCls,Dr=Kt.onInnerResize,ai=Kt.innerProps,li=Kt.rtl,Zr=Kt.extra,Tn={},kn={display:"flex",flexDirection:"column"};if(rn!==void 0){var Vr;Tn={height:Vt,position:"relative",overflow:"hidden"},kn=(0,Y.Z)((0,Y.Z)({},kn),{},(Vr={transform:"translateY(".concat(rn,"px)")},(0,I.Z)(Vr,li?"marginRight":"marginLeft",-Xn),(0,I.Z)(Vr,"position","absolute"),(0,I.Z)(Vr,"left",0),(0,I.Z)(Vr,"right",0),(0,I.Z)(Vr,"top",0),Vr))}return d.createElement("div",{style:Tn},d.createElement(v.Z,{onResize:function(nr){var vn=nr.offsetHeight;vn&&Dr&&Dr()}},d.createElement("div",(0,B.Z)({style:kn,className:S()((0,I.Z)({},"".concat(ir,"-holder-inner"),ir)),ref:ye},ai),Zn,Zr)))});c.displayName="Filler";var h=c,m=function(ye){return+setTimeout(ye,16)},x=function(ye){return clearTimeout(ye)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(m=function(ye){return window.requestAnimationFrame(ye)},x=function(ye){return window.cancelAnimationFrame(ye)});var T=0,_=new Map;function R(Kt){_.delete(Kt)}var A=function(ye){var Vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;T+=1;var rn=T;function Xn(Zn){if(Zn===0)R(rn),ye();else{var ir=m(function(){Xn(Zn-1)});_.set(rn,ir)}}return Xn(Vt),rn};A.cancel=function(Kt){var ye=_.get(Kt);return R(ye),x(ye)};var N=A;function L(Kt,ye){var Vt="touches"in Kt?Kt.touches[0]:Kt;return Vt[ye?"pageX":"pageY"]}var M=d.forwardRef(function(Kt,ye){var Vt,rn=Kt.prefixCls,Xn=Kt.rtl,Zn=Kt.scrollOffset,ir=Kt.scrollRange,Dr=Kt.onStartMove,ai=Kt.onStopMove,li=Kt.onScroll,Zr=Kt.horizontal,Tn=Kt.spinSize,kn=Kt.containerSize,Vr=Kt.style,di=Kt.thumbStyle,nr=d.useState(!1),vn=(0,E.Z)(nr,2),Jn=vn[0],bi=vn[1],gi=d.useState(null),mi=(0,E.Z)(gi,2),Lt=mi[0],Yn=mi[1],hr=d.useState(null),zi=(0,E.Z)(hr,2),bn=zi[0],or=zi[1],Ei=!Xn,Co=d.useRef(),ki=d.useRef(),yr=d.useState(!1),Mr=(0,E.Z)(yr,2),Fr=Mr[0],Di=Mr[1],so=d.useRef(),Gi=function(){clearTimeout(so.current),Di(!0),so.current=setTimeout(function(){Di(!1)},3e3)},sr=ir-kn||0,ys=kn-Tn||0,Wo=sr>0,Ro=d.useMemo(function(){if(Zn===0||sr===0)return 0;var hi=Zn/sr;return hi*ys},[Zn,sr,ys]),hn=function(Ni){Ni.stopPropagation(),Ni.preventDefault()},us=d.useRef({top:Ro,dragging:Jn,pageY:Lt,startTop:bn});us.current={top:Ro,dragging:Jn,pageY:Lt,startTop:bn};var cs=function(Ni){bi(!0),Yn(L(Ni,Zr)),or(us.current.top),Dr(),Ni.stopPropagation(),Ni.preventDefault()};d.useEffect(function(){var hi=function(ut){ut.preventDefault()},Ni=Co.current,tn=ki.current;return Ni.addEventListener("touchstart",hi),tn.addEventListener("touchstart",cs),function(){Ni.removeEventListener("touchstart",hi),tn.removeEventListener("touchstart",cs)}},[]);var yo=d.useRef();yo.current=sr;var Bs=d.useRef();Bs.current=ys,d.useEffect(function(){if(Jn){var hi,Ni=function(ut){var Ge=us.current,an=Ge.dragging,it=Ge.pageY,dt=Ge.startTop;if(N.cancel(hi),an){var Et=L(ut,Zr)-it,Dt=dt;!Ei&&Zr?Dt-=Et:Dt+=Et;var gn=yo.current,Mn=Bs.current,In=Mn?Dt/Mn:0,nn=Math.ceil(In*gn);nn=Math.max(nn,0),nn=Math.min(nn,gn),hi=N(function(){li(nn,Zr)})}},tn=function(){bi(!1),ai()};return window.addEventListener("mousemove",Ni),window.addEventListener("touchmove",Ni),window.addEventListener("mouseup",tn),window.addEventListener("touchend",tn),function(){window.removeEventListener("mousemove",Ni),window.removeEventListener("touchmove",Ni),window.removeEventListener("mouseup",tn),window.removeEventListener("touchend",tn),N.cancel(hi)}}},[Jn]),d.useEffect(function(){Gi()},[Zn]),d.useImperativeHandle(ye,function(){return{delayHidden:Gi}});var Yi="".concat(rn,"-scrollbar"),eo={position:"absolute",visibility:Fr&&Wo?null:"hidden"},Oi={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Zr?(eo.height=8,eo.left=0,eo.right=0,eo.bottom=0,Oi.height="100%",Oi.width=Tn,Ei?Oi.left=Ro:Oi.right=Ro):(eo.width=8,eo.top=0,eo.bottom=0,Ei?eo.right=0:eo.left=0,Oi.width="100%",Oi.height=Tn,Oi.top=Ro),d.createElement("div",{ref:Co,className:S()(Yi,(Vt={},(0,I.Z)(Vt,"".concat(Yi,"-horizontal"),Zr),(0,I.Z)(Vt,"".concat(Yi,"-vertical"),!Zr),(0,I.Z)(Vt,"".concat(Yi,"-visible"),Fr),Vt)),style:(0,Y.Z)((0,Y.Z)({},eo),Vr),onMouseDown:hn,onMouseMove:Gi},d.createElement("div",{ref:ki,className:S()("".concat(Yi,"-thumb"),(0,I.Z)({},"".concat(Yi,"-thumb-moving"),Jn)),style:(0,Y.Z)((0,Y.Z)({},Oi),di),onMouseDown:cs}))}),F=M;function H(Kt){var ye=Kt.children,Vt=Kt.setRef,rn=d.useCallback(function(Xn){Vt(Xn)},[]);return d.cloneElement(ye,{ref:rn})}function P(Kt,ye,Vt,rn,Xn,Zn,ir){var Dr=ir.getKey;return Kt.slice(ye,Vt+1).map(function(ai,li){var Zr=ye+li,Tn=Zn(ai,Zr,{style:{width:rn}}),kn=Dr(ai);return d.createElement(H,{key:kn,setRef:function(di){return Xn(ai,di)}},Tn)})}function V(Kt){return Kt instanceof HTMLElement||Kt instanceof SVGElement}function G(Kt){return V(Kt)?Kt:Kt instanceof d.Component?g.findDOMNode(Kt):null}var Q=b(15671),ne=b(43144),ue=function(){function Kt(){(0,Q.Z)(this,Kt),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,ne.Z)(Kt,[{key:"set",value:function(Vt,rn){this.maps[Vt]=rn,this.id+=1}},{key:"get",value:function(Vt){return this.maps[Vt]}}]),Kt}(),ae=ue;function he(Kt,ye,Vt){var rn=d.useState(0),Xn=(0,E.Z)(rn,2),Zn=Xn[0],ir=Xn[1],Dr=(0,d.useRef)(new Map),ai=(0,d.useRef)(new ae),li=(0,d.useRef)();function Zr(){N.cancel(li.current)}function Tn(){var Vr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Zr();var di=function(){Dr.current.forEach(function(vn,Jn){if(vn&&vn.offsetParent){var bi=G(vn),gi=bi.offsetHeight;ai.current.get(Jn)!==gi&&ai.current.set(Jn,bi.offsetHeight)}}),ir(function(vn){return vn+1})};Vr?di():li.current=N(di)}function kn(Vr,di){var nr=Kt(Vr),vn=Dr.current.get(nr);di?(Dr.current.set(nr,di),Tn()):Dr.current.delete(nr),!vn!=!di&&(di?ye==null||ye(Vr):Vt==null||Vt(Vr))}return(0,d.useEffect)(function(){return Zr},[]),[kn,Tn,ai.current,Zn]}function ce(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var we=ce()?d.useLayoutEffect:d.useEffect,me=function(ye,Vt){var rn=d.useRef(!0);we(function(){return ye(rn.current)},Vt),we(function(){return rn.current=!1,function(){rn.current=!0}},[])},Le=function(ye,Vt){me(function(rn){if(!rn)return ye()},Vt)},ee=me;function se(Kt){var ye=d.useRef();ye.current=Kt;var Vt=d.useCallback(function(){for(var rn,Xn=arguments.length,Zn=new Array(Xn),ir=0;ir<Xn;ir++)Zn[ir]=arguments[ir];return(rn=ye.current)===null||rn===void 0?void 0:rn.call.apply(rn,[ye].concat(Zn))},[]);return Vt}function le(Kt){var ye=React.useRef(!1),Vt=React.useState(Kt),rn=_slicedToArray(Vt,2),Xn=rn[0],Zn=rn[1];React.useEffect(function(){return ye.current=!1,function(){ye.current=!0}},[]);function ir(Dr,ai){ai&&ye.current||Zn(Dr)}return[Xn,ir]}function ke(Kt){return Kt!==void 0}function De(Kt,ye){var Vt=ye||{},rn=Vt.defaultValue,Xn=Vt.value,Zn=Vt.onChange,ir=Vt.postState,Dr=useState(function(){return ke(Xn)?Xn:ke(rn)?typeof rn=="function"?rn():rn:typeof Kt=="function"?Kt():Kt}),ai=_slicedToArray(Dr,2),li=ai[0],Zr=ai[1],Tn=Xn!==void 0?Xn:li,kn=ir?ir(Tn):Tn,Vr=useEvent(Zn),di=useState([Tn]),nr=_slicedToArray(di,2),vn=nr[0],Jn=nr[1];useLayoutUpdateEffect(function(){var gi=vn[0];li!==gi&&Vr(li,gi)},[vn]),useLayoutUpdateEffect(function(){ke(Xn)||Zr(Xn)},[Xn]);var bi=useEvent(function(gi,mi){Zr(gi,mi),Jn([Tn],mi)});return[kn,bi]}var Be=b(31461);function He(Kt,ye,Vt){var rn=React.useRef({});return(!("value"in rn.current)||Vt(rn.current.condition,ye))&&(rn.current.value=Kt(),rn.current.condition=ye),rn.current.value}function Fe(Kt,ye){typeof Kt=="function"?Kt(ye):_typeof(Kt)==="object"&&Kt&&"current"in Kt&&(Kt.current=ye)}function Je(){for(var Kt=arguments.length,ye=new Array(Kt),Vt=0;Vt<Kt;Vt++)ye[Vt]=arguments[Vt];var rn=ye.filter(function(Xn){return Xn});return rn.length<=1?rn[0]:function(Xn){ye.forEach(function(Zn){Fe(Zn,Xn)})}}function Me(){for(var Kt=arguments.length,ye=new Array(Kt),Vt=0;Vt<Kt;Vt++)ye[Vt]=arguments[Vt];return useMemo(function(){return Je.apply(void 0,ye)},ye,function(rn,Xn){return rn.length!==Xn.length||rn.every(function(Zn,ir){return Zn!==Xn[ir]})})}function lt(Kt){var ye,Vt,rn=isMemo(Kt)?Kt.type.type:Kt.type;return!(typeof rn=="function"&&!((ye=rn.prototype)!==null&&ye!==void 0&&ye.render)||typeof Kt=="function"&&!((Vt=Kt.prototype)!==null&&Vt!==void 0&&Vt.render))}function Re(Kt){return!isValidElement(Kt)||isFragment(Kt)?!1:lt(Kt)}function Oe(Kt,ye,Vt,rn){if(!ye.length)return Vt;var Xn=_toArray(ye),Zn=Xn[0],ir=Xn.slice(1),Dr;return!Kt&&typeof Zn=="number"?Dr=[]:Array.isArray(Kt)?Dr=_toConsumableArray(Kt):Dr=_objectSpread({},Kt),rn&&Vt===void 0&&ir.length===1?delete Dr[Zn][ir[0]]:Dr[Zn]=Oe(Dr[Zn],ir,Vt,rn),Dr}function pe(Kt,ye,Vt){var rn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return ye.length&&rn&&Vt===void 0&&!get(Kt,ye.slice(0,-1))?Kt:Oe(Kt,ye,Vt,rn)}function fe(Kt){return _typeof(Kt)==="object"&&Kt!==null&&Object.getPrototypeOf(Kt)===Object.prototype}function z(Kt){return Array.isArray(Kt)?[]:{}}var J=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function be(){for(var Kt=arguments.length,ye=new Array(Kt),Vt=0;Vt<Kt;Vt++)ye[Vt]=arguments[Vt];var rn=z(ye[0]);return ye.forEach(function(Xn){function Zn(ir,Dr){var ai=new Set(Dr),li=get(Xn,ir),Zr=Array.isArray(li);if(Zr||fe(li)){if(!ai.has(li)){ai.add(li);var Tn=get(rn,ir);Zr?rn=pe(rn,ir,[]):(!Tn||_typeof(Tn)!=="object")&&(rn=pe(rn,ir,z(li))),J(li).forEach(function(kn){Zn([].concat(_toConsumableArray(ir),[kn]),ai)})}}else rn=pe(rn,ir,li)}Zn([])}),rn}var _e={},oe=[],ie=function(ye){oe.push(ye)};function ve(Kt,ye){if(0)var Vt}function Ne(Kt,ye){if(0)var Vt}function ze(){_e={}}function Ve(Kt,ye,Vt){!ye&&!_e[Vt]&&(Kt(!1,Vt),_e[Vt]=!0)}function yt(Kt,ye){Ve(ve,Kt,ye)}function ct(Kt,ye){Ve(Ne,Kt,ye)}yt.preMessage=ie,yt.resetWarned=ze,yt.noteOnce=ct;var St=null,_t=10;function At(Kt,ye,Vt,rn,Xn,Zn,ir,Dr){var ai=d.useRef(),li=d.useState(null),Zr=(0,E.Z)(li,2),Tn=Zr[0],kn=Zr[1];return ee(function(){if(Tn&&Tn.times<_t){if(!Kt.current){kn(function(Gi){return(0,Y.Z)({},Gi)});return}Zn();var Vr=Tn.targetAlign,di=Tn.originAlign,nr=Tn.index,vn=Tn.offset,Jn=Kt.current.clientHeight,bi=!1,gi=Vr,mi=null;if(Jn){for(var Lt=Vr||di,Yn=0,hr=0,zi=0,bn=Math.min(ye.length-1,nr),or=0;or<=bn;or+=1){var Ei=Xn(ye[or]);hr=Yn;var Co=Vt.get(Ei);zi=hr+(Co===void 0?rn:Co),Yn=zi}for(var ki=Lt==="top"?vn:Jn-vn,yr=bn;yr>=0;yr-=1){var Mr=Xn(ye[yr]),Fr=Vt.get(Mr);if(Fr===void 0){bi=!0;break}if(ki-=Fr,ki<=0)break}switch(Lt){case"top":mi=hr-vn;break;case"bottom":mi=zi-Jn+vn;break;default:{var Di=Kt.current.scrollTop,so=Di+Jn;hr<Di?gi="top":zi>so&&(gi="bottom")}}mi!==null&&ir(mi),mi!==Tn.lastTop&&(bi=!0)}bi&&kn(function(Gi){return(0,Y.Z)((0,Y.Z)({},Gi),{},{times:Gi.times+1,targetAlign:gi,lastTop:mi})})}},[Tn,Kt.current]),function(Vr){if(Vr==null){Dr();return}if(N.cancel(ai.current),typeof Vr=="number")ir(Vr);else if(Vr&&(0,s.Z)(Vr)==="object"){var di,nr=Vr.align;"index"in Vr?di=Vr.index:di=ye.findIndex(function(bi){return Xn(bi)===Vr.key});var vn=Vr.offset,Jn=vn===void 0?0:vn;kn({times:0,index:di,offset:Jn,originAlign:nr})}}}function ht(Kt,ye,Vt,rn){var Xn=Vt-Kt,Zn=ye-Vt,ir=Math.min(Xn,Zn)*2;if(rn<=ir){var Dr=Math.floor(rn/2);return rn%2?Vt+Dr+1:Vt-Dr}return Xn>Zn?Vt-(rn-Zn):Vt+(rn-Xn)}function wt(Kt,ye,Vt){var rn=Kt.length,Xn=ye.length,Zn,ir;if(rn===0&&Xn===0)return null;rn<Xn?(Zn=Kt,ir=ye):(Zn=ye,ir=Kt);var Dr={__EMPTY_ITEM__:!0};function ai(di){return di!==void 0?Vt(di):Dr}for(var li=null,Zr=Math.abs(rn-Xn)!==1,Tn=0;Tn<ir.length;Tn+=1){var kn=ai(Zn[Tn]),Vr=ai(ir[Tn]);if(kn!==Vr){li=Tn,Zr=Zr||kn!==ai(ir[Tn+1]);break}}return li===null?null:{index:li,multiple:Zr}}function jt(Kt,ye,Vt){var rn=d.useState(Kt),Xn=(0,E.Z)(rn,2),Zn=Xn[0],ir=Xn[1],Dr=d.useState(null),ai=(0,E.Z)(Dr,2),li=ai[0],Zr=ai[1];return d.useEffect(function(){var Tn=wt(Zn||[],Kt||[],ye);(Tn==null?void 0:Tn.index)!==void 0&&(Vt==null||Vt(Tn.index),Zr(Kt[Tn.index])),ir(Kt)},[Kt]),[li]}var st=(typeof navigator=="undefined"?"undefined":(0,s.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),ge=st,on=function(Kt,ye){var Vt=(0,d.useRef)(!1),rn=(0,d.useRef)(null);function Xn(){clearTimeout(rn.current),Vt.current=!0,rn.current=setTimeout(function(){Vt.current=!1},50)}var Zn=(0,d.useRef)({top:Kt,bottom:ye});return Zn.current.top=Kt,Zn.current.bottom=ye,function(ir){var Dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ai=ir<0&&Zn.current.top||ir>0&&Zn.current.bottom;return Dr&&ai?(clearTimeout(rn.current),Vt.current=!1):(!ai||Vt.current)&&Xn(),!Vt.current&&ai}};function mn(Kt,ye,Vt,rn,Xn){var Zn=(0,d.useRef)(0),ir=(0,d.useRef)(null),Dr=(0,d.useRef)(null),ai=(0,d.useRef)(!1),li=on(ye,Vt);function Zr(vn,Jn){N.cancel(ir.current),Zn.current+=Jn,Dr.current=Jn,!li(Jn)&&(ge||vn.preventDefault(),ir.current=N(function(){var bi=ai.current?10:1;Xn(Zn.current*bi),Zn.current=0}))}function Tn(vn,Jn){Xn(Jn,!0),ge||vn.preventDefault()}var kn=(0,d.useRef)(null),Vr=(0,d.useRef)(null);function di(vn){if(Kt){N.cancel(Vr.current),Vr.current=N(function(){kn.current=null},2);var Jn=vn.deltaX,bi=vn.deltaY,gi=vn.shiftKey,mi=Jn,Lt=bi;(kn.current==="sx"||!kn.current&&gi&&bi&&!Jn)&&(mi=bi,Lt=0,kn.current="sx");var Yn=Math.abs(mi),hr=Math.abs(Lt);kn.current===null&&(kn.current=rn&&Yn>hr?"x":"y"),kn.current==="y"?Zr(vn,Lt):Tn(vn,mi)}}function nr(vn){Kt&&(ai.current=vn.detail===Dr.current)}return[di,nr]}var Mt=14/15;function On(Kt,ye,Vt){var rn=(0,d.useRef)(!1),Xn=(0,d.useRef)(0),Zn=(0,d.useRef)(null),ir=(0,d.useRef)(null),Dr,ai=function(kn){if(rn.current){var Vr=Math.ceil(kn.touches[0].pageY),di=Xn.current-Vr;Xn.current=Vr,Vt(di)&&kn.preventDefault(),clearInterval(ir.current),ir.current=setInterval(function(){di*=Mt,(!Vt(di,!0)||Math.abs(di)<=.1)&&clearInterval(ir.current)},16)}},li=function(){rn.current=!1,Dr()},Zr=function(kn){Dr(),kn.touches.length===1&&!rn.current&&(rn.current=!0,Xn.current=Math.ceil(kn.touches[0].pageY),Zn.current=kn.target,Zn.current.addEventListener("touchmove",ai),Zn.current.addEventListener("touchend",li))};Dr=function(){Zn.current&&(Zn.current.removeEventListener("touchmove",ai),Zn.current.removeEventListener("touchend",li))},ee(function(){return Kt&&ye.current.addEventListener("touchstart",Zr),function(){var Tn;(Tn=ye.current)===null||Tn===void 0||Tn.removeEventListener("touchstart",Zr),Dr(),clearInterval(ir.current)}},[Kt])}var Vn=20;function Fn(){var Kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Vt=Kt/ye*100;return isNaN(Vt)&&(Vt=0),Vt=Math.max(Vt,Vn),Vt=Math.min(Vt,Kt/2),Math.floor(Vt)}function Gn(Kt,ye,Vt,rn){var Xn=d.useMemo(function(){return[new Map,[]]},[Kt,Vt.id,rn]),Zn=(0,E.Z)(Xn,2),ir=Zn[0],Dr=Zn[1],ai=function(Zr){var Tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zr,kn=ir.get(Zr),Vr=ir.get(Tn);if(kn===void 0||Vr===void 0)for(var di=Kt.length,nr=Dr.length;nr<di;nr+=1){var vn,Jn=Kt[nr],bi=ye(Jn);ir.set(bi,nr);var gi=(vn=Vt.get(bi))!==null&&vn!==void 0?vn:rn;if(Dr[nr]=(Dr[nr-1]||0)+gi,bi===Zr&&(kn=nr),bi===Tn&&(Vr=nr),kn!==void 0&&Vr!==void 0)break}return{top:Dr[kn-1]||0,bottom:Dr[Vr]}};return ai}var sn=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],xt=[],gr={overflowY:"auto",overflowAnchor:"none"};function Pr(Kt,ye){var Vt=Kt.prefixCls,rn=Vt===void 0?"rc-virtual-list":Vt,Xn=Kt.className,Zn=Kt.height,ir=Kt.itemHeight,Dr=Kt.fullHeight,ai=Dr===void 0?!0:Dr,li=Kt.style,Zr=Kt.data,Tn=Kt.children,kn=Kt.itemKey,Vr=Kt.virtual,di=Kt.direction,nr=Kt.scrollWidth,vn=Kt.component,Jn=vn===void 0?"div":vn,bi=Kt.onScroll,gi=Kt.onVirtualScroll,mi=Kt.onVisibleChange,Lt=Kt.innerProps,Yn=Kt.extraRender,hr=Kt.styles,zi=(0,u.Z)(Kt,sn),bn=!!(Vr!==!1&&Zn&&ir),or=bn&&Zr&&(ir*Zr.length>Zn||!!nr),Ei=di==="rtl",Co=S()(rn,(0,I.Z)({},"".concat(rn,"-rtl"),Ei),Xn),ki=Zr||xt,yr=(0,d.useRef)(),Mr=(0,d.useRef)(),Fr=(0,d.useState)(0),Di=(0,E.Z)(Fr,2),so=Di[0],Gi=Di[1],sr=(0,d.useState)(0),ys=(0,E.Z)(sr,2),Wo=ys[0],Ro=ys[1],hn=(0,d.useState)(!1),us=(0,E.Z)(hn,2),cs=us[0],yo=us[1],Bs=function(){yo(!0)},Yi=function(){yo(!1)},eo=d.useCallback(function(Rr){return typeof kn=="function"?kn(Rr):Rr==null?void 0:Rr[kn]},[kn]),Oi={getKey:eo};function hi(Rr){Gi(function(Yr){var ui;typeof Rr=="function"?ui=Rr(Yr):ui=Rr;var ji=$r(ui);return yr.current.scrollTop=ji,ji})}var Ni=(0,d.useRef)({start:0,end:ki.length}),tn=(0,d.useRef)(),_i=jt(ki,eo),ut=(0,E.Z)(_i,1),Ge=ut[0];tn.current=Ge;var an=he(eo,null,null),it=(0,E.Z)(an,4),dt=it[0],Et=it[1],Dt=it[2],gn=it[3],Mn=d.useMemo(function(){if(!bn)return{scrollHeight:void 0,start:0,end:ki.length-1,offset:void 0};if(!or){var Rr;return{scrollHeight:((Rr=Mr.current)===null||Rr===void 0?void 0:Rr.offsetHeight)||0,start:0,end:ki.length-1,offset:void 0}}for(var Yr=0,ui,ji,Wn,mo=ki.length,ao=0;ao<mo;ao+=1){var fo=ki[ao],ns=eo(fo),fs=Dt.get(ns),Nn=Yr+(fs===void 0?ir:fs);Nn>=so&&ui===void 0&&(ui=ao,ji=Yr),Nn>so+Zn&&Wn===void 0&&(Wn=ao),Yr=Nn}return ui===void 0&&(ui=0,ji=0,Wn=Math.ceil(Zn/ir)),Wn===void 0&&(Wn=ki.length-1),Wn=Math.min(Wn+1,ki.length-1),{scrollHeight:Yr,start:ui,end:Wn,offset:ji}},[or,bn,so,ki,gn,Zn]),In=Mn.scrollHeight,nn=Mn.start,Ue=Mn.end,kr=Mn.offset;Ni.current.start=nn,Ni.current.end=Ue;var Br=d.useState({width:0,height:Zn}),ei=(0,E.Z)(Br,2),ti=ei[0],Jr=ei[1],Wr=function(Yr){Jr({width:Yr.width||Yr.offsetWidth,height:Yr.height||Yr.offsetHeight})},Ri=(0,d.useRef)(),ri=(0,d.useRef)(),wr=d.useMemo(function(){return Fn(ti.width,nr)},[ti.width,nr]),rr=d.useMemo(function(){return Fn(ti.height,In)},[ti.height,In]),Ir=In-Zn,Nr=(0,d.useRef)(Ir);Nr.current=Ir;function $r(Rr){var Yr=Rr;return Number.isNaN(Nr.current)||(Yr=Math.min(Yr,Nr.current)),Yr=Math.max(Yr,0),Yr}var Yt=so<=0,Sr=so>=Ir,fr=on(Yt,Sr),pi=function(){return{x:Ei?-Wo:Wo,y:so}},Pi=(0,d.useRef)(pi()),Ai=se(function(){if(gi){var Rr=pi();(Pi.current.x!==Rr.x||Pi.current.y!==Rr.y)&&(gi(Rr),Pi.current=Rr)}});function Ji(Rr,Yr){var ui=Rr;Yr?((0,g.flushSync)(function(){Ro(ui)}),Ai()):hi(ui)}function To(Rr){var Yr=Rr.currentTarget.scrollTop;Yr!==so&&hi(Yr),bi==null||bi(Rr),Ai()}var _o=function(Yr){var ui=Yr,ji=nr-ti.width;return ui=Math.max(ui,0),ui=Math.min(ui,ji),ui},bo=se(function(Rr,Yr){Yr?((0,g.flushSync)(function(){Ro(function(ui){var ji=ui+(Ei?-Rr:Rr);return _o(ji)})}),Ai()):hi(function(ui){var ji=ui+Rr;return ji})}),Vo=mn(bn,Yt,Sr,!!nr,bo),Nt=(0,E.Z)(Vo,2),no=Nt[0],Fo=Nt[1];On(bn,yr,function(Rr,Yr){return fr(Rr,Yr)?!1:(no({preventDefault:function(){},deltaY:Rr}),!0)}),ee(function(){function Rr(ui){bn&&ui.preventDefault()}var Yr=yr.current;return Yr.addEventListener("wheel",no),Yr.addEventListener("DOMMouseScroll",Fo),Yr.addEventListener("MozMousePixelScroll",Rr),function(){Yr.removeEventListener("wheel",no),Yr.removeEventListener("DOMMouseScroll",Fo),Yr.removeEventListener("MozMousePixelScroll",Rr)}},[bn]),ee(function(){nr&&Ro(function(Rr){return _o(Rr)})},[ti.width,nr]);var Xo=function(){var Yr,ui;(Yr=Ri.current)===null||Yr===void 0||Yr.delayHidden(),(ui=ri.current)===null||ui===void 0||ui.delayHidden()},ho=At(yr,ki,Dt,ir,eo,function(){return Et(!0)},hi,Xo);d.useImperativeHandle(ye,function(){return{getScrollInfo:pi,scrollTo:function(Yr){function ui(ji){return ji&&(0,s.Z)(ji)==="object"&&("left"in ji||"top"in ji)}ui(Yr)?(Yr.left!==void 0&&Ro(_o(Yr.left)),ho(Yr.top)):ho(Yr)}}}),ee(function(){if(mi){var Rr=ki.slice(nn,Ue+1);mi(Rr,ki)}},[nn,Ue,ki]);var Zo=Gn(ki,eo,Dt,ir),ko=Yn==null?void 0:Yn({start:nn,end:Ue,virtual:or,offsetX:Wo,offsetY:kr,rtl:Ei,getSize:Zo}),hs=P(ki,nn,Ue,nr,dt,Tn,Oi),fi=null;Zn&&(fi=(0,Y.Z)((0,I.Z)({},ai?"height":"maxHeight",Zn),gr),bn&&(fi.overflowY="hidden",nr&&(fi.overflowX="hidden"),cs&&(fi.pointerEvents="none")));var $i={};return Ei&&($i.dir="rtl"),d.createElement("div",(0,B.Z)({style:(0,Y.Z)((0,Y.Z)({},li),{},{position:"relative"}),className:Co},$i,zi),d.createElement(v.Z,{onResize:Wr},d.createElement(Jn,{className:"".concat(rn,"-holder"),style:fi,ref:yr,onScroll:To,onMouseEnter:Xo},d.createElement(h,{prefixCls:rn,height:In,offsetX:Wo,offsetY:kr,scrollWidth:nr,onInnerResize:Et,ref:Mr,innerProps:Lt,rtl:Ei,extra:ko},hs))),or&&In>Zn&&d.createElement(F,{ref:Ri,prefixCls:rn,scrollOffset:so,scrollRange:In,rtl:Ei,onScroll:Ji,onStartMove:Bs,onStopMove:Yi,spinSize:rr,containerSize:ti.height,style:hr==null?void 0:hr.verticalScrollBar,thumbStyle:hr==null?void 0:hr.verticalScrollBarThumb}),or&&nr&&d.createElement(F,{ref:ri,prefixCls:rn,scrollOffset:Wo,scrollRange:nr,rtl:Ei,onScroll:Ji,onStartMove:Bs,onStopMove:Yi,spinSize:wr,containerSize:ti.width,horizontal:!0,style:hr==null?void 0:hr.horizontalScrollBar,thumbStyle:hr==null?void 0:hr.horizontalScrollBarThumb}))}var tr=d.forwardRef(Pr);tr.displayName="List";var ii=tr,Ar=ii},66392:function(Ie,Z){"use strict";var b;var B=Symbol.for("react.element"),Y=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),d=Symbol.for("react.context"),g=Symbol.for("react.server_context"),y=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),x;x=Symbol.for("react.module.reference");function T(_){if(typeof _=="object"&&_!==null){var R=_.$$typeof;switch(R){case B:switch(_=_.type,_){case s:case I:case E:case S:case v:return _;default:switch(_=_&&_.$$typeof,_){case g:case d:case y:case h:case c:case u:return _;default:return R}}case Y:return R}}}b=d,b=u,b=B,b=y,b=s,b=h,b=c,b=Y,b=I,b=E,b=S,b=v,b=function(){return!1},b=function(){return!1},b=function(_){return T(_)===d},b=function(_){return T(_)===u},b=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===B},b=function(_){return T(_)===y},b=function(_){return T(_)===s},b=function(_){return T(_)===h},b=function(_){return T(_)===c},b=function(_){return T(_)===Y},b=function(_){return T(_)===I},b=function(_){return T(_)===E},b=function(_){return T(_)===S},b=function(_){return T(_)===v},b=function(_){return typeof _=="string"||typeof _=="function"||_===s||_===I||_===E||_===S||_===v||_===m||typeof _=="object"&&_!==null&&(_.$$typeof===h||_.$$typeof===c||_.$$typeof===u||_.$$typeof===d||_.$$typeof===y||_.$$typeof===x||_.getModuleId!==void 0)},b=T},31461:function(Ie,Z,b){"use strict";b(66392)},75668:function(Ie,Z,b){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Object.defineProperty(Z,"DraggableCore",{enumerable:!0,get:function(){return g.default}}),Z.default=void 0;var B=c(b(67294)),Y=S(b(45697)),s=S(b(73935)),E=S(b(86010)),I=b(81825),u=b(2849),d=b(9280),g=S(b(80783)),y=S(b(55904));function S(R){return R&&R.__esModule?R:{default:R}}function v(R){if(typeof WeakMap!="function")return null;var A=new WeakMap,N=new WeakMap;return(v=function(L){return L?N:A})(R)}function c(R,A){if(!A&&R&&R.__esModule)return R;if(R===null||typeof R!="object"&&typeof R!="function")return{default:R};var N=v(A);if(N&&N.has(R))return N.get(R);var L={},M=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var F in R)if(F!=="default"&&Object.prototype.hasOwnProperty.call(R,F)){var H=M?Object.getOwnPropertyDescriptor(R,F):null;H&&(H.get||H.set)?Object.defineProperty(L,F,H):L[F]=R[F]}return L.default=R,N&&N.set(R,L),L}function h(){return h=Object.assign?Object.assign.bind():function(R){for(var A=1;A<arguments.length;A++){var N=arguments[A];for(var L in N)Object.prototype.hasOwnProperty.call(N,L)&&(R[L]=N[L])}return R},h.apply(this,arguments)}function m(R,A,N){return A=x(A),A in R?Object.defineProperty(R,A,{value:N,enumerable:!0,configurable:!0,writable:!0}):R[A]=N,R}function x(R){var A=T(R,"string");return typeof A=="symbol"?A:String(A)}function T(R,A){if(typeof R!="object"||R===null)return R;var N=R[Symbol.toPrimitive];if(N!==void 0){var L=N.call(R,A||"default");if(typeof L!="object")return L;throw new TypeError("@@toPrimitive must return a primitive value.")}return(A==="string"?String:Number)(R)}class _ extends B.Component{static getDerivedStateFromProps(A,N){let{position:L}=A,{prevPropsPosition:M}=N;return L&&(!M||L.x!==M.x||L.y!==M.y)?((0,y.default)("Draggable: getDerivedStateFromProps %j",{position:L,prevPropsPosition:M}),{x:L.x,y:L.y,prevPropsPosition:ls({},L)}):null}constructor(A){super(A),m(this,"onDragStart",(N,L)=>{if((0,y.default)("Draggable: onDragStart: %j",L),this.props.onStart(N,(0,u.createDraggableData)(this,L))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),m(this,"onDrag",(N,L)=>{if(!this.state.dragging)return!1;(0,y.default)("Draggable: onDrag: %j",L);const M=(0,u.createDraggableData)(this,L),F={x:M.x,y:M.y,slackX:0,slackY:0};if(this.props.bounds){const{x:P,y:V}=F;F.x+=this.state.slackX,F.y+=this.state.slackY;const[G,Q]=(0,u.getBoundPosition)(this,F.x,F.y);F.x=G,F.y=Q,F.slackX=this.state.slackX+(P-F.x),F.slackY=this.state.slackY+(V-F.y),M.x=F.x,M.y=F.y,M.deltaX=F.x-this.state.x,M.deltaY=F.y-this.state.y}if(this.props.onDrag(N,M)===!1)return!1;this.setState(F)}),m(this,"onDragStop",(N,L)=>{if(!this.state.dragging||this.props.onStop(N,(0,u.createDraggableData)(this,L))===!1)return!1;(0,y.default)("Draggable: onDragStop: %j",L);const F={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:P,y:V}=this.props.position;F.x=P,F.y=V}this.setState(F)}),this.state={dragging:!1,dragged:!1,x:A.position?A.position.x:A.defaultPosition.x,y:A.position?A.position.y:A.defaultPosition.y,prevPropsPosition:ls({},A.position),slackX:0,slackY:0,isElementSVG:!1},A.position&&!(A.onDrag||A.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement!="undefined"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var A,N;return(A=(N=this.props)===null||N===void 0||(N=N.nodeRef)===null||N===void 0?void 0:N.current)!==null&&A!==void 0?A:s.default.findDOMNode(this)}render(){const ee=this.props,{axis:A,bounds:N,children:L,defaultPosition:M,defaultClassName:F,defaultClassNameDragging:H,defaultClassNameDragged:P,position:V,positionOffset:G,scale:Q}=ee,ne=o0(ee,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"]);let ue={},ae=null;const ce=!!!V||this.state.dragging,we=V||M,me={x:(0,u.canDragX)(this)&&ce?this.state.x:we.x,y:(0,u.canDragY)(this)&&ce?this.state.y:we.y};this.state.isElementSVG?ae=(0,I.createSVGTransform)(me,G):ue=(0,I.createCSSTransform)(me,G);const Le=(0,E.default)(L.props.className||"",F,{[H]:this.state.dragging,[P]:this.state.dragged});return B.createElement(g.default,h({},ne,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),B.cloneElement(B.Children.only(L),{className:Le,style:ls(ls({},L.props.style),ue),transform:ae}))}}Z.default=_,m(_,"displayName","Draggable"),m(_,"propTypes",Vh(ls({},g.default.propTypes),{axis:Y.default.oneOf(["both","x","y","none"]),bounds:Y.default.oneOfType([Y.default.shape({left:Y.default.number,right:Y.default.number,top:Y.default.number,bottom:Y.default.number}),Y.default.string,Y.default.oneOf([!1])]),defaultClassName:Y.default.string,defaultClassNameDragging:Y.default.string,defaultClassNameDragged:Y.default.string,defaultPosition:Y.default.shape({x:Y.default.number,y:Y.default.number}),positionOffset:Y.default.shape({x:Y.default.oneOfType([Y.default.number,Y.default.string]),y:Y.default.oneOfType([Y.default.number,Y.default.string])}),position:Y.default.shape({x:Y.default.number,y:Y.default.number}),className:d.dontSetMe,style:d.dontSetMe,transform:d.dontSetMe})),m(_,"defaultProps",Vh(ls({},g.default.defaultProps),{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},80783:function(Ie,Z,b){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var B=S(b(67294)),Y=g(b(45697)),s=g(b(73935)),E=b(81825),I=b(2849),u=b(9280),d=g(b(55904));function g(_){return _&&_.__esModule?_:{default:_}}function y(_){if(typeof WeakMap!="function")return null;var R=new WeakMap,A=new WeakMap;return(y=function(N){return N?A:R})(_)}function S(_,R){if(!R&&_&&_.__esModule)return _;if(_===null||typeof _!="object"&&typeof _!="function")return{default:_};var A=y(R);if(A&&A.has(_))return A.get(_);var N={},L=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in _)if(M!=="default"&&Object.prototype.hasOwnProperty.call(_,M)){var F=L?Object.getOwnPropertyDescriptor(_,M):null;F&&(F.get||F.set)?Object.defineProperty(N,M,F):N[M]=_[M]}return N.default=_,A&&A.set(_,N),N}function v(_,R,A){return R=c(R),R in _?Object.defineProperty(_,R,{value:A,enumerable:!0,configurable:!0,writable:!0}):_[R]=A,_}function c(_){var R=h(_,"string");return typeof R=="symbol"?R:String(R)}function h(_,R){if(typeof _!="object"||_===null)return _;var A=_[Symbol.toPrimitive];if(A!==void 0){var N=A.call(_,R||"default");if(typeof N!="object")return N;throw new TypeError("@@toPrimitive must return a primitive value.")}return(R==="string"?String:Number)(_)}const m={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let x=m.mouse;class T extends B.Component{constructor(){super(...arguments),v(this,"dragging",!1),v(this,"lastX",NaN),v(this,"lastY",NaN),v(this,"touchIdentifier",null),v(this,"mounted",!1),v(this,"handleDragStart",R=>{if(this.props.onMouseDown(R),!this.props.allowAnyClick&&typeof R.button=="number"&&R.button!==0)return!1;const A=this.findDOMNode();if(!A||!A.ownerDocument||!A.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:N}=A;if(this.props.disabled||!(R.target instanceof N.defaultView.Node)||this.props.handle&&!(0,E.matchesSelectorAndParentsTo)(R.target,this.props.handle,A)||this.props.cancel&&(0,E.matchesSelectorAndParentsTo)(R.target,this.props.cancel,A))return;R.type==="touchstart"&&R.preventDefault();const L=(0,E.getTouchIdentifier)(R);this.touchIdentifier=L;const M=(0,I.getControlPosition)(R,L,this);if(M==null)return;const{x:F,y:H}=M,P=(0,I.createCoreData)(this,F,H);(0,d.default)("DraggableCore: handleDragStart: %j",P),(0,d.default)("calling",this.props.onStart),!(this.props.onStart(R,P)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,E.addUserSelectStyles)(N),this.dragging=!0,this.lastX=F,this.lastY=H,(0,E.addEvent)(N,x.move,this.handleDrag),(0,E.addEvent)(N,x.stop,this.handleDragStop))}),v(this,"handleDrag",R=>{const A=(0,I.getControlPosition)(R,this.touchIdentifier,this);if(A==null)return;let{x:N,y:L}=A;if(Array.isArray(this.props.grid)){let H=N-this.lastX,P=L-this.lastY;if([H,P]=(0,I.snapToGrid)(this.props.grid,H,P),!H&&!P)return;N=this.lastX+H,L=this.lastY+P}const M=(0,I.createCoreData)(this,N,L);if((0,d.default)("DraggableCore: handleDrag: %j",M),this.props.onDrag(R,M)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch(H){const P=document.createEvent("MouseEvents");P.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(P)}return}this.lastX=N,this.lastY=L}),v(this,"handleDragStop",R=>{if(!this.dragging)return;const A=(0,I.getControlPosition)(R,this.touchIdentifier,this);if(A==null)return;let{x:N,y:L}=A;if(Array.isArray(this.props.grid)){let P=N-this.lastX||0,V=L-this.lastY||0;[P,V]=(0,I.snapToGrid)(this.props.grid,P,V),N=this.lastX+P,L=this.lastY+V}const M=(0,I.createCoreData)(this,N,L);if(this.props.onStop(R,M)===!1||this.mounted===!1)return!1;const H=this.findDOMNode();H&&this.props.enableUserSelectHack&&(0,E.removeUserSelectStyles)(H.ownerDocument),(0,d.default)("DraggableCore: handleDragStop: %j",M),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,H&&((0,d.default)("DraggableCore: Removing handlers"),(0,E.removeEvent)(H.ownerDocument,x.move,this.handleDrag),(0,E.removeEvent)(H.ownerDocument,x.stop,this.handleDragStop))}),v(this,"onMouseDown",R=>(x=m.mouse,this.handleDragStart(R))),v(this,"onMouseUp",R=>(x=m.mouse,this.handleDragStop(R))),v(this,"onTouchStart",R=>(x=m.touch,this.handleDragStart(R))),v(this,"onTouchEnd",R=>(x=m.touch,this.handleDragStop(R)))}componentDidMount(){this.mounted=!0;const R=this.findDOMNode();R&&(0,E.addEvent)(R,m.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const R=this.findDOMNode();if(R){const{ownerDocument:A}=R;(0,E.removeEvent)(A,m.mouse.move,this.handleDrag),(0,E.removeEvent)(A,m.touch.move,this.handleDrag),(0,E.removeEvent)(A,m.mouse.stop,this.handleDragStop),(0,E.removeEvent)(A,m.touch.stop,this.handleDragStop),(0,E.removeEvent)(R,m.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,E.removeUserSelectStyles)(A)}}findDOMNode(){var R,A;return(R=this.props)!==null&&R!==void 0&&R.nodeRef?(A=this.props)===null||A===void 0||(A=A.nodeRef)===null||A===void 0?void 0:A.current:s.default.findDOMNode(this)}render(){return B.cloneElement(B.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}Z.default=T,v(T,"displayName","DraggableCore"),v(T,"propTypes",{allowAnyClick:Y.default.bool,children:Y.default.node.isRequired,disabled:Y.default.bool,enableUserSelectHack:Y.default.bool,offsetParent:function(_,R){if(_[R]&&_[R].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Y.default.arrayOf(Y.default.number),handle:Y.default.string,cancel:Y.default.string,nodeRef:Y.default.object,onStart:Y.default.func,onDrag:Y.default.func,onStop:Y.default.func,onMouseDown:Y.default.func,scale:Y.default.number,className:u.dontSetMe,style:u.dontSetMe,transform:u.dontSetMe}),v(T,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},61193:function(Ie,Z,b){"use strict";const{default:B,DraggableCore:Y}=b(75668);Ie.exports=B,Ie.exports.default=B,Ie.exports.DraggableCore=Y},81825:function(Ie,Z,b){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.addClassName=M,Z.addEvent=g,Z.addUserSelectStyles=N,Z.createCSSTransform=x,Z.createSVGTransform=T,Z.getTouch=R,Z.getTouchIdentifier=A,Z.getTranslation=_,Z.innerHeight=c,Z.innerWidth=h,Z.matchesSelector=u,Z.matchesSelectorAndParentsTo=d,Z.offsetXYFromParent=m,Z.outerHeight=S,Z.outerWidth=v,Z.removeClassName=F,Z.removeEvent=y,Z.removeUserSelectStyles=L;var B=b(9280),Y=E(b(38650));function s(H){if(typeof WeakMap!="function")return null;var P=new WeakMap,V=new WeakMap;return(s=function(G){return G?V:P})(H)}function E(H,P){if(!P&&H&&H.__esModule)return H;if(H===null||typeof H!="object"&&typeof H!="function")return{default:H};var V=s(P);if(V&&V.has(H))return V.get(H);var G={},Q=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ne in H)if(ne!=="default"&&Object.prototype.hasOwnProperty.call(H,ne)){var ue=Q?Object.getOwnPropertyDescriptor(H,ne):null;ue&&(ue.get||ue.set)?Object.defineProperty(G,ne,ue):G[ne]=H[ne]}return G.default=H,V&&V.set(H,G),G}let I="";function u(H,P){return I||(I=(0,B.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(V){return(0,B.isFunction)(H[V])})),(0,B.isFunction)(H[I])?H[I](P):!1}function d(H,P,V){let G=H;do{if(u(G,P))return!0;if(G===V)return!1;G=G.parentNode}while(G);return!1}function g(H,P,V,G){if(!H)return;const Q=ls({capture:!0},G);H.addEventListener?H.addEventListener(P,V,Q):H.attachEvent?H.attachEvent("on"+P,V):H["on"+P]=V}function y(H,P,V,G){if(!H)return;const Q=ls({capture:!0},G);H.removeEventListener?H.removeEventListener(P,V,Q):H.detachEvent?H.detachEvent("on"+P,V):H["on"+P]=null}function S(H){let P=H.clientHeight;const V=H.ownerDocument.defaultView.getComputedStyle(H);return P+=(0,B.int)(V.borderTopWidth),P+=(0,B.int)(V.borderBottomWidth),P}function v(H){let P=H.clientWidth;const V=H.ownerDocument.defaultView.getComputedStyle(H);return P+=(0,B.int)(V.borderLeftWidth),P+=(0,B.int)(V.borderRightWidth),P}function c(H){let P=H.clientHeight;const V=H.ownerDocument.defaultView.getComputedStyle(H);return P-=(0,B.int)(V.paddingTop),P-=(0,B.int)(V.paddingBottom),P}function h(H){let P=H.clientWidth;const V=H.ownerDocument.defaultView.getComputedStyle(H);return P-=(0,B.int)(V.paddingLeft),P-=(0,B.int)(V.paddingRight),P}function m(H,P,V){const Q=P===P.ownerDocument.body?{left:0,top:0}:P.getBoundingClientRect(),ne=(H.clientX+P.scrollLeft-Q.left)/V,ue=(H.clientY+P.scrollTop-Q.top)/V;return{x:ne,y:ue}}function x(H,P){const V=_(H,P,"px");return{[(0,Y.browserPrefixToKey)("transform",Y.default)]:V}}function T(H,P){return _(H,P,"")}function _(H,P,V){let{x:G,y:Q}=H,ne="translate(".concat(G).concat(V,",").concat(Q).concat(V,")");if(P){const ue="".concat(typeof P.x=="string"?P.x:P.x+V),ae="".concat(typeof P.y=="string"?P.y:P.y+V);ne="translate(".concat(ue,", ").concat(ae,")")+ne}return ne}function R(H,P){return H.targetTouches&&(0,B.findInArray)(H.targetTouches,V=>P===V.identifier)||H.changedTouches&&(0,B.findInArray)(H.changedTouches,V=>P===V.identifier)}function A(H){if(H.targetTouches&&H.targetTouches[0])return H.targetTouches[0].identifier;if(H.changedTouches&&H.changedTouches[0])return H.changedTouches[0].identifier}function N(H){if(!H)return;let P=H.getElementById("react-draggable-style-el");P||(P=H.createElement("style"),P.type="text/css",P.id="react-draggable-style-el",P.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
`,P.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
`,H.getElementsByTagName("head")[0].appendChild(P)),H.body&&M(H.body,"react-draggable-transparent-selection")}function L(H){if(H)try{if(H.body&&F(H.body,"react-draggable-transparent-selection"),H.selection)H.selection.empty();else{const P=(H.defaultView||window).getSelection();P&&P.type!=="Caret"&&P.removeAllRanges()}}catch(P){}}function M(H,P){H.classList?H.classList.add(P):H.className.match(new RegExp("(?:^|\\s)".concat(P,"(?!\\S)")))||(H.className+=" ".concat(P))}function F(H,P){H.classList?H.classList.remove(P):H.className=H.className.replace(new RegExp("(?:^|\\s)".concat(P,"(?!\\S)"),"g"),"")}},38650:function(Ie,Z){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.browserPrefixToKey=Y,Z.browserPrefixToStyle=s,Z.default=void 0,Z.getPrefix=B;const b=["Moz","Webkit","O","ms"];function B(){var u;let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";const g=(u=window.document)===null||u===void 0||(u=u.documentElement)===null||u===void 0?void 0:u.style;if(!g||d in g)return"";for(let y=0;y<b.length;y++)if(Y(d,b[y])in g)return b[y];return""}function Y(u,d){return d?"".concat(d).concat(E(u)):u}function s(u,d){return d?"-".concat(d.toLowerCase(),"-").concat(u):u}function E(u){let d="",g=!0;for(let y=0;y<u.length;y++)g?(d+=u[y].toUpperCase(),g=!1):u[y]==="-"?g=!0:d+=u[y];return d}var I=Z.default=B()},55904:function(Ie,Z){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=b;function b(){}},2849:function(Ie,Z,b){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.canDragX=I,Z.canDragY=u,Z.createCoreData=g,Z.createDraggableData=y,Z.getBoundPosition=s,Z.getControlPosition=d,Z.snapToGrid=E;var B=b(9280),Y=b(81825);function s(c,h,m){if(!c.props.bounds)return[h,m];let{bounds:x}=c.props;x=typeof x=="string"?x:S(x);const T=v(c);if(typeof x=="string"){const{ownerDocument:_}=T,R=_.defaultView;let A;if(x==="parent"?A=T.parentNode:A=_.querySelector(x),!(A instanceof R.HTMLElement))throw new Error('Bounds selector "'+x+'" could not find an element.');const N=A,L=R.getComputedStyle(T),M=R.getComputedStyle(N);x={left:-T.offsetLeft+(0,B.int)(M.paddingLeft)+(0,B.int)(L.marginLeft),top:-T.offsetTop+(0,B.int)(M.paddingTop)+(0,B.int)(L.marginTop),right:(0,Y.innerWidth)(N)-(0,Y.outerWidth)(T)-T.offsetLeft+(0,B.int)(M.paddingRight)-(0,B.int)(L.marginRight),bottom:(0,Y.innerHeight)(N)-(0,Y.outerHeight)(T)-T.offsetTop+(0,B.int)(M.paddingBottom)-(0,B.int)(L.marginBottom)}}return(0,B.isNum)(x.right)&&(h=Math.min(h,x.right)),(0,B.isNum)(x.bottom)&&(m=Math.min(m,x.bottom)),(0,B.isNum)(x.left)&&(h=Math.max(h,x.left)),(0,B.isNum)(x.top)&&(m=Math.max(m,x.top)),[h,m]}function E(c,h,m){const x=Math.round(h/c[0])*c[0],T=Math.round(m/c[1])*c[1];return[x,T]}function I(c){return c.props.axis==="both"||c.props.axis==="x"}function u(c){return c.props.axis==="both"||c.props.axis==="y"}function d(c,h,m){const x=typeof h=="number"?(0,Y.getTouch)(c,h):null;if(typeof h=="number"&&!x)return null;const T=v(m),_=m.props.offsetParent||T.offsetParent||T.ownerDocument.body;return(0,Y.offsetXYFromParent)(x||c,_,m.props.scale)}function g(c,h,m){const x=!(0,B.isNum)(c.lastX),T=v(c);return x?{node:T,deltaX:0,deltaY:0,lastX:h,lastY:m,x:h,y:m}:{node:T,deltaX:h-c.lastX,deltaY:m-c.lastY,lastX:c.lastX,lastY:c.lastY,x:h,y:m}}function y(c,h){const m=c.props.scale;return{node:h.node,x:c.state.x+h.deltaX/m,y:c.state.y+h.deltaY/m,deltaX:h.deltaX/m,deltaY:h.deltaY/m,lastX:c.state.x,lastY:c.state.y}}function S(c){return{left:c.left,top:c.top,right:c.right,bottom:c.bottom}}function v(c){const h=c.findDOMNode();if(!h)throw new Error("<DraggableCore>: Unmounted during event!");return h}},9280:function(Ie,Z){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.dontSetMe=E,Z.findInArray=b,Z.int=s,Z.isFunction=B,Z.isNum=Y;function b(I,u){for(let d=0,g=I.length;d<g;d++)if(u.apply(u,[I[d],d,I]))return I[d]}function B(I){return typeof I=="function"||Object.prototype.toString.call(I)==="[object Function]"}function Y(I){return typeof I=="number"&&!isNaN(I)}function s(I){return parseInt(I,10)}function E(I,u,d){if(I[u])return new Error("Invalid prop ".concat(u," passed to ").concat(d," - do not set this, set it on the child."))}},42663:function(Ie,Z,b){"use strict";b.d(Z,{s:function(){return we}});var B=b(67294),Y=b(61193),s=b.n(Y),E=b(85893),I=b(73935),u=function(){return u=Object.assign||function(me){for(var Le,ee=1,se=arguments.length;ee<se;ee++){Le=arguments[ee];for(var le in Le)Object.prototype.hasOwnProperty.call(Le,le)&&(me[le]=Le[le])}return me},u.apply(this,arguments)},d={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},g={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},y={width:"20px",height:"20px",position:"absolute",zIndex:1},S={top:u(u({},d),{top:"-5px"}),right:u(u({},g),{left:void 0,right:"-5px"}),bottom:u(u({},d),{top:void 0,bottom:"-5px"}),left:u(u({},g),{left:"-5px"}),topRight:u(u({},y),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:u(u({},y),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:u(u({},y),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:u(u({},y),{left:"-10px",top:"-10px",cursor:"nw-resize"})},v=(0,B.memo)(function(me){var Le=me.onResizeStart,ee=me.direction,se=me.children,le=me.replaceStyles,ke=me.className,De=(0,B.useCallback)(function(Fe){Le(Fe,ee)},[Le,ee]),Be=(0,B.useCallback)(function(Fe){Le(Fe,ee)},[Le,ee]),He=(0,B.useMemo)(function(){return u(u({position:"absolute",userSelect:"none"},S[ee]),le!=null?le:{})},[le,ee]);return(0,E.jsx)("div",{className:ke||void 0,style:He,onMouseDown:De,onTouchStart:Be,children:se})}),c=function(){var me=function(Le,ee){return me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,le){se.__proto__=le}||function(se,le){for(var ke in le)Object.prototype.hasOwnProperty.call(le,ke)&&(se[ke]=le[ke])},me(Le,ee)};return function(Le,ee){if(typeof ee!="function"&&ee!==null)throw new TypeError("Class extends value "+String(ee)+" is not a constructor or null");me(Le,ee);function se(){this.constructor=Le}Le.prototype=ee===null?Object.create(ee):(se.prototype=ee.prototype,new se)}}(),h=function(){return h=Object.assign||function(me){for(var Le,ee=1,se=arguments.length;ee<se;ee++){Le=arguments[ee];for(var le in Le)Object.prototype.hasOwnProperty.call(Le,le)&&(me[le]=Le[le])}return me},h.apply(this,arguments)},m={width:"auto",height:"auto"},x=function(me,Le,ee){return Math.max(Math.min(me,ee),Le)},T=function(me,Le,ee){var se=Math.round(me/Le);return se*Le+ee*(se-1)},_=function(me,Le){return new RegExp(me,"i").test(Le)},R=function(me){return!!(me.touches&&me.touches.length)},A=function(me){return!!((me.clientX||me.clientX===0)&&(me.clientY||me.clientY===0))},N=function(me,Le,ee){ee===void 0&&(ee=0);var se=Le.reduce(function(ke,De,Be){return Math.abs(De-me)<Math.abs(Le[ke]-me)?Be:ke},0),le=Math.abs(Le[se]-me);return ee===0||le<ee?Le[se]:me},L=function(me){return me=me.toString(),me==="auto"||me.endsWith("px")||me.endsWith("%")||me.endsWith("vh")||me.endsWith("vw")||me.endsWith("vmax")||me.endsWith("vmin")?me:"".concat(me,"px")},M=function(me,Le,ee,se){if(me&&typeof me=="string"){if(me.endsWith("px"))return Number(me.replace("px",""));if(me.endsWith("%")){var le=Number(me.replace("%",""))/100;return Le*le}if(me.endsWith("vw")){var le=Number(me.replace("vw",""))/100;return ee*le}if(me.endsWith("vh")){var le=Number(me.replace("vh",""))/100;return se*le}}return me},F=function(me,Le,ee,se,le,ke,De){return se=M(se,me.width,Le,ee),le=M(le,me.height,Le,ee),ke=M(ke,me.width,Le,ee),De=M(De,me.height,Le,ee),{maxWidth:typeof se=="undefined"?void 0:Number(se),maxHeight:typeof le=="undefined"?void 0:Number(le),minWidth:typeof ke=="undefined"?void 0:Number(ke),minHeight:typeof De=="undefined"?void 0:Number(De)}},H=function(me){return Array.isArray(me)?me:[me,me]},P=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],V="__resizable_base__",G=function(me){c(Le,me);function Le(ee){var se,le,ke,De,Be=me.call(this,ee)||this;return Be.ratio=1,Be.resizable=null,Be.parentLeft=0,Be.parentTop=0,Be.resizableLeft=0,Be.resizableRight=0,Be.resizableTop=0,Be.resizableBottom=0,Be.targetLeft=0,Be.targetTop=0,Be.delta={width:0,height:0},Be.appendBase=function(){if(!Be.resizable||!Be.window)return null;var He=Be.parentNode;if(!He)return null;var Fe=Be.window.document.createElement("div");return Fe.style.width="100%",Fe.style.height="100%",Fe.style.position="absolute",Fe.style.transform="scale(0, 0)",Fe.style.left="0",Fe.style.flex="0 0 100%",Fe.classList?Fe.classList.add(V):Fe.className+=V,He.appendChild(Fe),Fe},Be.removeBase=function(He){var Fe=Be.parentNode;Fe&&Fe.removeChild(He)},Be.state={isResizing:!1,width:(le=(se=Be.propsSize)===null||se===void 0?void 0:se.width)!==null&&le!==void 0?le:"auto",height:(De=(ke=Be.propsSize)===null||ke===void 0?void 0:ke.height)!==null&&De!==void 0?De:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},Be.onResizeStart=Be.onResizeStart.bind(Be),Be.onMouseMove=Be.onMouseMove.bind(Be),Be.onMouseUp=Be.onMouseUp.bind(Be),Be}return Object.defineProperty(Le.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(Le.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(Le.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||m},enumerable:!1,configurable:!0}),Object.defineProperty(Le.prototype,"size",{get:function(){var ee=0,se=0;if(this.resizable&&this.window){var le=this.resizable.offsetWidth,ke=this.resizable.offsetHeight,De=this.resizable.style.position;De!=="relative"&&(this.resizable.style.position="relative"),ee=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:le,se=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:ke,this.resizable.style.position=De}return{width:ee,height:se}},enumerable:!1,configurable:!0}),Object.defineProperty(Le.prototype,"sizeStyle",{get:function(){var ee=this,se=this.props.size,le=function(Be){var He;if(typeof ee.state[Be]=="undefined"||ee.state[Be]==="auto")return"auto";if(ee.propsSize&&ee.propsSize[Be]&&(!((He=ee.propsSize[Be])===null||He===void 0)&&He.toString().endsWith("%"))){if(ee.state[Be].toString().endsWith("%"))return ee.state[Be].toString();var Fe=ee.getParentSize(),Je=Number(ee.state[Be].toString().replace("px","")),Me=Je/Fe[Be]*100;return"".concat(Me,"%")}return L(ee.state[Be])},ke=se&&typeof se.width!="undefined"&&!this.state.isResizing?L(se.width):le("width"),De=se&&typeof se.height!="undefined"&&!this.state.isResizing?L(se.height):le("height");return{width:ke,height:De}},enumerable:!1,configurable:!0}),Le.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var ee=this.appendBase();if(!ee)return{width:0,height:0};var se=!1,le=this.parentNode.style.flexWrap;le!=="wrap"&&(se=!0,this.parentNode.style.flexWrap="wrap"),ee.style.position="relative",ee.style.minWidth="100%",ee.style.minHeight="100%";var ke={width:ee.offsetWidth,height:ee.offsetHeight};return se&&(this.parentNode.style.flexWrap=le),this.removeBase(ee),ke},Le.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},Le.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},Le.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var ee=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:ee.flexBasis!=="auto"?ee.flexBasis:void 0})}},Le.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},Le.prototype.createSizeForCssProperty=function(ee,se){var le=this.propsSize&&this.propsSize[se];return this.state[se]==="auto"&&this.state.original[se]===ee&&(typeof le=="undefined"||le==="auto")?"auto":ee},Le.prototype.calculateNewMaxFromBoundary=function(ee,se){var le=this.props.boundsByDirection,ke=this.state.direction,De=le&&_("left",ke),Be=le&&_("top",ke),He,Fe;if(this.props.bounds==="parent"){var Je=this.parentNode;Je&&(He=De?this.resizableRight-this.parentLeft:Je.offsetWidth+(this.parentLeft-this.resizableLeft),Fe=Be?this.resizableBottom-this.parentTop:Je.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(He=De?this.resizableRight:this.window.innerWidth-this.resizableLeft,Fe=Be?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(He=De?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),Fe=Be?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return He&&Number.isFinite(He)&&(ee=ee&&ee<He?ee:He),Fe&&Number.isFinite(Fe)&&(se=se&&se<Fe?se:Fe),{maxWidth:ee,maxHeight:se}},Le.prototype.calculateNewSizeFromDirection=function(ee,se){var le=this.props.scale||1,ke=H(this.props.resizeRatio||1),De=ke[0],Be=ke[1],He=this.state,Fe=He.direction,Je=He.original,Me=this.props,lt=Me.lockAspectRatio,Re=Me.lockAspectRatioExtraHeight,Oe=Me.lockAspectRatioExtraWidth,pe=Je.width,fe=Je.height,z=Re||0,J=Oe||0;return _("right",Fe)&&(pe=Je.width+(ee-Je.x)*De/le,lt&&(fe=(pe-J)/this.ratio+z)),_("left",Fe)&&(pe=Je.width-(ee-Je.x)*De/le,lt&&(fe=(pe-J)/this.ratio+z)),_("bottom",Fe)&&(fe=Je.height+(se-Je.y)*Be/le,lt&&(pe=(fe-z)*this.ratio+J)),_("top",Fe)&&(fe=Je.height-(se-Je.y)*Be/le,lt&&(pe=(fe-z)*this.ratio+J)),{newWidth:pe,newHeight:fe}},Le.prototype.calculateNewSizeFromAspectRatio=function(ee,se,le,ke){var De=this.props,Be=De.lockAspectRatio,He=De.lockAspectRatioExtraHeight,Fe=De.lockAspectRatioExtraWidth,Je=typeof ke.width=="undefined"?10:ke.width,Me=typeof le.width=="undefined"||le.width<0?ee:le.width,lt=typeof ke.height=="undefined"?10:ke.height,Re=typeof le.height=="undefined"||le.height<0?se:le.height,Oe=He||0,pe=Fe||0;if(Be){var fe=(lt-Oe)*this.ratio+pe,z=(Re-Oe)*this.ratio+pe,J=(Je-pe)/this.ratio+Oe,be=(Me-pe)/this.ratio+Oe,_e=Math.max(Je,fe),oe=Math.min(Me,z),ie=Math.max(lt,J),ve=Math.min(Re,be);ee=x(ee,_e,oe),se=x(se,ie,ve)}else ee=x(ee,Je,Me),se=x(se,lt,Re);return{newWidth:ee,newHeight:se}},Le.prototype.setBoundingClientRect=function(){var ee=1/(this.props.scale||1);if(this.props.bounds==="parent"){var se=this.parentNode;if(se){var le=se.getBoundingClientRect();this.parentLeft=le.left*ee,this.parentTop=le.top*ee}}if(this.props.bounds&&typeof this.props.bounds!="string"){var ke=this.props.bounds.getBoundingClientRect();this.targetLeft=ke.left*ee,this.targetTop=ke.top*ee}if(this.resizable){var De=this.resizable.getBoundingClientRect(),Be=De.left,He=De.top,Fe=De.right,Je=De.bottom;this.resizableLeft=Be*ee,this.resizableRight=Fe*ee,this.resizableTop=He*ee,this.resizableBottom=Je*ee}},Le.prototype.onResizeStart=function(ee,se){if(!(!this.resizable||!this.window)){var le=0,ke=0;if(ee.nativeEvent&&A(ee.nativeEvent)?(le=ee.nativeEvent.clientX,ke=ee.nativeEvent.clientY):ee.nativeEvent&&R(ee.nativeEvent)&&(le=ee.nativeEvent.touches[0].clientX,ke=ee.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var De=this.props.onResizeStart(ee,se,this.resizable);if(De===!1)return}this.props.size&&(typeof this.props.size.height!="undefined"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width!="undefined"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var Be,He=this.window.getComputedStyle(this.resizable);if(He.flexBasis!=="auto"){var Fe=this.parentNode;if(Fe){var Je=this.window.getComputedStyle(Fe).flexDirection;this.flexDir=Je.startsWith("row")?"row":"column",Be=He.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var Me={original:{x:le,y:ke,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:h(h({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(ee.target).cursor||"auto"}),direction:se,flexBasis:Be};this.setState(Me)}},Le.prototype.onMouseMove=function(ee){var se=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&R(ee))try{ee.preventDefault(),ee.stopPropagation()}catch(on){}var le=this.props,ke=le.maxWidth,De=le.maxHeight,Be=le.minWidth,He=le.minHeight,Fe=R(ee)?ee.touches[0].clientX:ee.clientX,Je=R(ee)?ee.touches[0].clientY:ee.clientY,Me=this.state,lt=Me.direction,Re=Me.original,Oe=Me.width,pe=Me.height,fe=this.getParentSize(),z=F(fe,this.window.innerWidth,this.window.innerHeight,ke,De,Be,He);ke=z.maxWidth,De=z.maxHeight,Be=z.minWidth,He=z.minHeight;var J=this.calculateNewSizeFromDirection(Fe,Je),be=J.newHeight,_e=J.newWidth,oe=this.calculateNewMaxFromBoundary(ke,De);this.props.snap&&this.props.snap.x&&(_e=N(_e,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(be=N(be,this.props.snap.y,this.props.snapGap));var ie=this.calculateNewSizeFromAspectRatio(_e,be,{width:oe.maxWidth,height:oe.maxHeight},{width:Be,height:He});if(_e=ie.newWidth,be=ie.newHeight,this.props.grid){var ve=T(_e,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),Ne=T(be,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),ze=this.props.snapGap||0,Ve=ze===0||Math.abs(ve-_e)<=ze?ve:_e,yt=ze===0||Math.abs(Ne-be)<=ze?Ne:be;_e=Ve,be=yt}var ct={width:_e-Re.width,height:be-Re.height};if(this.delta=ct,Oe&&typeof Oe=="string"){if(Oe.endsWith("%")){var St=_e/fe.width*100;_e="".concat(St,"%")}else if(Oe.endsWith("vw")){var _t=_e/this.window.innerWidth*100;_e="".concat(_t,"vw")}else if(Oe.endsWith("vh")){var At=_e/this.window.innerHeight*100;_e="".concat(At,"vh")}}if(pe&&typeof pe=="string"){if(pe.endsWith("%")){var St=be/fe.height*100;be="".concat(St,"%")}else if(pe.endsWith("vw")){var _t=be/this.window.innerWidth*100;be="".concat(_t,"vw")}else if(pe.endsWith("vh")){var At=be/this.window.innerHeight*100;be="".concat(At,"vh")}}var ht={width:this.createSizeForCssProperty(_e,"width"),height:this.createSizeForCssProperty(be,"height")};this.flexDir==="row"?ht.flexBasis=ht.width:this.flexDir==="column"&&(ht.flexBasis=ht.height);var wt=this.state.width!==ht.width,jt=this.state.height!==ht.height,st=this.state.flexBasis!==ht.flexBasis,ge=wt||jt||st;ge&&(0,I.flushSync)(function(){se.setState(ht)}),this.props.onResize&&ge&&this.props.onResize(ee,lt,this.resizable,ct)}},Le.prototype.onMouseUp=function(ee){var se,le,ke=this.state,De=ke.isResizing,Be=ke.direction,He=ke.original;!De||!this.resizable||(this.props.onResizeStop&&this.props.onResizeStop(ee,Be,this.resizable,this.delta),this.props.size&&this.setState({width:(se=this.props.size.width)!==null&&se!==void 0?se:"auto",height:(le=this.props.size.height)!==null&&le!==void 0?le:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:h(h({},this.state.backgroundStyle),{cursor:"auto"})}))},Le.prototype.updateSize=function(ee){var se,le;this.setState({width:(se=ee.width)!==null&&se!==void 0?se:"auto",height:(le=ee.height)!==null&&le!==void 0?le:"auto"})},Le.prototype.renderResizer=function(){var ee=this,se=this.props,le=se.enable,ke=se.handleStyles,De=se.handleClasses,Be=se.handleWrapperStyle,He=se.handleWrapperClass,Fe=se.handleComponent;if(!le)return null;var Je=Object.keys(le).map(function(Me){return le[Me]!==!1?(0,E.jsx)(v,{direction:Me,onResizeStart:ee.onResizeStart,replaceStyles:ke&&ke[Me],className:De&&De[Me],children:Fe&&Fe[Me]?Fe[Me]:null},Me):null});return(0,E.jsx)("div",{className:He,style:Be,children:Je})},Le.prototype.render=function(){var ee=this,se=Object.keys(this.props).reduce(function(De,Be){return P.indexOf(Be)!==-1||(De[Be]=ee.props[Be]),De},{}),le=h(h(h({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(le.flexBasis=this.state.flexBasis);var ke=this.props.as||"div";return(0,E.jsxs)(ke,h({style:le,className:this.props.className},se,{ref:function(De){De&&(ee.resizable=De)},children:[this.state.isResizing&&(0,E.jsx)("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},Le.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},Le}(B.PureComponent);var Q=function(me,Le){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,se){ee.__proto__=se}||function(ee,se){for(var le in se)se.hasOwnProperty(le)&&(ee[le]=se[le])},Q(me,Le)};function ne(me,Le){Q(me,Le);function ee(){this.constructor=me}me.prototype=Le===null?Object.create(Le):(ee.prototype=Le.prototype,new ee)}var ue=function(){return ue=Object.assign||function(Le){for(var ee,se=1,le=arguments.length;se<le;se++){ee=arguments[se];for(var ke in ee)Object.prototype.hasOwnProperty.call(ee,ke)&&(Le[ke]=ee[ke])}return Le},ue.apply(this,arguments)};function ae(me,Le){var ee={};for(var se in me)Object.prototype.hasOwnProperty.call(me,se)&&Le.indexOf(se)<0&&(ee[se]=me[se]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,se=Object.getOwnPropertySymbols(me);le<se.length;le++)Le.indexOf(se[le])<0&&Object.prototype.propertyIsEnumerable.call(me,se[le])&&(ee[se[le]]=me[se[le]]);return ee}var he={width:"auto",height:"auto",display:"inline-block",position:"absolute",top:0,left:0},ce=function(me){return{bottom:me,bottomLeft:me,bottomRight:me,left:me,right:me,top:me,topLeft:me,topRight:me}},we=function(me){ne(Le,me);function Le(ee){var se=me.call(this,ee)||this;return se.resizingPosition={x:0,y:0},se.offsetFromParent={left:0,top:0},se.resizableElement={current:null},se.originalPosition={x:0,y:0},se.state={resizing:!1,bounds:{top:0,right:0,bottom:0,left:0},maxWidth:ee.maxWidth,maxHeight:ee.maxHeight},se.onResizeStart=se.onResizeStart.bind(se),se.onResize=se.onResize.bind(se),se.onResizeStop=se.onResizeStop.bind(se),se.onDragStart=se.onDragStart.bind(se),se.onDrag=se.onDrag.bind(se),se.onDragStop=se.onDragStop.bind(se),se.getMaxSizesFromProps=se.getMaxSizesFromProps.bind(se),se}return Le.prototype.componentDidMount=function(){this.updateOffsetFromParent();var ee=this.offsetFromParent,se=ee.left,le=ee.top,ke=this.getDraggablePosition(),De=ke.x,Be=ke.y;this.draggable.setState({x:De-se,y:Be-le}),this.forceUpdate()},Le.prototype.getDraggablePosition=function(){var ee=this.draggable.state,se=ee.x,le=ee.y;return{x:se,y:le}},Le.prototype.getParent=function(){return this.resizable&&this.resizable.parentNode},Le.prototype.getParentSize=function(){return this.resizable.getParentSize()},Le.prototype.getMaxSizesFromProps=function(){var ee=typeof this.props.maxWidth=="undefined"?Number.MAX_SAFE_INTEGER:this.props.maxWidth,se=typeof this.props.maxHeight=="undefined"?Number.MAX_SAFE_INTEGER:this.props.maxHeight;return{maxWidth:ee,maxHeight:se}},Le.prototype.getSelfElement=function(){return this.resizable&&this.resizable.resizable},Le.prototype.getOffsetHeight=function(ee){var se=this.props.scale;switch(this.props.bounds){case"window":return window.innerHeight/se;case"body":return document.body.offsetHeight/se;default:return ee.offsetHeight}},Le.prototype.getOffsetWidth=function(ee){var se=this.props.scale;switch(this.props.bounds){case"window":return window.innerWidth/se;case"body":return document.body.offsetWidth/se;default:return ee.offsetWidth}},Le.prototype.onDragStart=function(ee,se){this.props.onDragStart&&this.props.onDragStart(ee,se);var le=this.getDraggablePosition();if(this.originalPosition=le,!!this.props.bounds){var ke=this.getParent(),De=this.props.scale,Be;if(this.props.bounds==="parent")Be=ke;else if(this.props.bounds==="body"){var He=ke.getBoundingClientRect(),Fe=He.left,Je=He.top,Me=document.body.getBoundingClientRect(),lt=-(Fe-ke.offsetLeft*De-Me.left)/De,Re=-(Je-ke.offsetTop*De-Me.top)/De,Oe=(document.body.offsetWidth-this.resizable.size.width*De)/De+lt,pe=(document.body.offsetHeight-this.resizable.size.height*De)/De+Re;return this.setState({bounds:{top:Re,right:Oe,bottom:pe,left:lt}})}else if(this.props.bounds==="window"){if(!this.resizable)return;var fe=ke.getBoundingClientRect(),z=fe.left,J=fe.top,be=-(z-ke.offsetLeft*De)/De,_e=-(J-ke.offsetTop*De)/De,Oe=(window.innerWidth-this.resizable.size.width*De)/De+be,pe=(window.innerHeight-this.resizable.size.height*De)/De+_e;return this.setState({bounds:{top:_e,right:Oe,bottom:pe,left:be}})}else typeof this.props.bounds=="string"?Be=document.querySelector(this.props.bounds):this.props.bounds instanceof HTMLElement&&(Be=this.props.bounds);if(!(!(Be instanceof HTMLElement)||!(ke instanceof HTMLElement))){var oe=Be.getBoundingClientRect(),ie=oe.left,ve=oe.top,Ne=ke.getBoundingClientRect(),ze=Ne.left,Ve=Ne.top,yt=(ie-ze)/De,ct=ve-Ve;if(this.resizable){this.updateOffsetFromParent();var St=this.offsetFromParent;this.setState({bounds:{top:ct-St.top,right:yt+(Be.offsetWidth-this.resizable.size.width)-St.left/De,bottom:ct+(Be.offsetHeight-this.resizable.size.height)-St.top,left:yt-St.left/De}})}}}},Le.prototype.onDrag=function(ee,se){if(this.props.onDrag){var le=this.offsetFromParent,ke=le.left,De=le.top;if(!this.props.dragAxis||this.props.dragAxis==="both")return this.props.onDrag(ee,ue(ue({},se),{x:se.x+ke,y:se.y+De}));if(this.props.dragAxis==="x")return this.props.onDrag(ee,ue(ue({},se),{x:se.x+ke,y:this.originalPosition.y+De,deltaY:0}));if(this.props.dragAxis==="y")return this.props.onDrag(ee,ue(ue({},se),{x:this.originalPosition.x+ke,y:se.y+De,deltaX:0}))}},Le.prototype.onDragStop=function(ee,se){if(this.props.onDragStop){var le=this.offsetFromParent,ke=le.left,De=le.top;if(!this.props.dragAxis||this.props.dragAxis==="both")return this.props.onDragStop(ee,ue(ue({},se),{x:se.x+ke,y:se.y+De}));if(this.props.dragAxis==="x")return this.props.onDragStop(ee,ue(ue({},se),{x:se.x+ke,y:this.originalPosition.y+De,deltaY:0}));if(this.props.dragAxis==="y")return this.props.onDragStop(ee,ue(ue({},se),{x:this.originalPosition.x+ke,y:se.y+De,deltaX:0}))}},Le.prototype.onResizeStart=function(ee,se,le){ee.stopPropagation(),this.setState({resizing:!0});var ke=this.props.scale,De=this.offsetFromParent,Be=this.getDraggablePosition();if(this.resizingPosition={x:Be.x+De.left,y:Be.y+De.top},this.originalPosition=Be,this.props.bounds){var He=this.getParent(),Fe=void 0;this.props.bounds==="parent"?Fe=He:this.props.bounds==="body"?Fe=document.body:this.props.bounds==="window"?Fe=window:typeof this.props.bounds=="string"?Fe=document.querySelector(this.props.bounds):this.props.bounds instanceof HTMLElement&&(Fe=this.props.bounds);var Je=this.getSelfElement();if(Je instanceof Element&&(Fe instanceof HTMLElement||Fe===window)&&He instanceof HTMLElement){var Me=this.getMaxSizesFromProps(),lt=Me.maxWidth,Re=Me.maxHeight,Oe=this.getParentSize();if(lt&&typeof lt=="string")if(lt.endsWith("%")){var pe=Number(lt.replace("%",""))/100;lt=Oe.width*pe}else lt.endsWith("px")&&(lt=Number(lt.replace("px","")));if(Re&&typeof Re=="string")if(Re.endsWith("%")){var pe=Number(Re.replace("%",""))/100;Re=Oe.height*pe}else Re.endsWith("px")&&(Re=Number(Re.replace("px","")));var fe=Je.getBoundingClientRect(),z=fe.left,J=fe.top,be=this.props.bounds==="window"?{left:0,top:0}:Fe.getBoundingClientRect(),_e=be.left,oe=be.top,ie=this.getOffsetWidth(Fe),ve=this.getOffsetHeight(Fe),Ne=se.toLowerCase().endsWith("left"),ze=se.toLowerCase().endsWith("right"),Ve=se.startsWith("top"),yt=se.startsWith("bottom");if((Ne||Ve)&&this.resizable){var ct=(z-_e)/ke+this.resizable.size.width;this.setState({maxWidth:ct>Number(lt)?lt:ct})}if(ze||this.props.lockAspectRatio&&!Ne&&!Ve){var ct=ie+(_e-z)/ke;this.setState({maxWidth:ct>Number(lt)?lt:ct})}if((Ve||Ne)&&this.resizable){var ct=(J-oe)/ke+this.resizable.size.height;this.setState({maxHeight:ct>Number(Re)?Re:ct})}if(yt||this.props.lockAspectRatio&&!Ve&&!Ne){var ct=ve+(oe-J)/ke;this.setState({maxHeight:ct>Number(Re)?Re:ct})}}}else this.setState({maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight});this.props.onResizeStart&&this.props.onResizeStart(ee,se,le)},Le.prototype.onResize=function(ee,se,le,ke){var De=this,Be={x:this.originalPosition.x,y:this.originalPosition.y},He=-ke.width,Fe=-ke.height,Je=["top","left","topLeft","bottomLeft","topRight"];Je.includes(se)&&(se==="bottomLeft"?Be.x+=He:(se==="topRight"||(Be.x+=He),Be.y+=Fe));var Me=this.draggable.state;(Be.x!==Me.x||Be.y!==Me.y)&&(0,I.flushSync)(function(){De.draggable.setState(Be)}),this.updateOffsetFromParent();var lt=this.offsetFromParent,Re=this.getDraggablePosition().x+lt.left,Oe=this.getDraggablePosition().y+lt.top;this.resizingPosition={x:Re,y:Oe},this.props.onResize&&this.props.onResize(ee,se,le,ke,{x:Re,y:Oe})},Le.prototype.onResizeStop=function(ee,se,le,ke){this.setState({resizing:!1});var De=this.getMaxSizesFromProps(),Be=De.maxWidth,He=De.maxHeight;this.setState({maxWidth:Be,maxHeight:He}),this.props.onResizeStop&&this.props.onResizeStop(ee,se,le,ke,this.resizingPosition)},Le.prototype.updateSize=function(ee){this.resizable&&this.resizable.updateSize({width:ee.width,height:ee.height})},Le.prototype.updatePosition=function(ee){this.draggable.setState(ee)},Le.prototype.updateOffsetFromParent=function(){var ee=this.props.scale,se=this.getParent(),le=this.getSelfElement();if(!se||le===null)return{top:0,left:0};var ke=se.getBoundingClientRect(),De=ke.left,Be=ke.top,He=le.getBoundingClientRect(),Fe=this.getDraggablePosition(),Je=se.scrollLeft,Me=se.scrollTop;this.offsetFromParent={left:He.left-De+Je-Fe.x*ee,top:He.top-Be+Me-Fe.y*ee}},Le.prototype.render=function(){var ee=this,se=this.props,le=se.disableDragging,ke=se.style,De=se.dragHandleClassName,Be=se.position,He=se.onMouseDown,Fe=se.onMouseUp,Je=se.dragAxis,Me=se.dragGrid,lt=se.bounds,Re=se.enableUserSelectHack,Oe=se.cancel,pe=se.children,fe=se.onResizeStart,z=se.onResize,J=se.onResizeStop,be=se.onDragStart,_e=se.onDrag,oe=se.onDragStop,ie=se.resizeHandleStyles,ve=se.resizeHandleClasses,Ne=se.resizeHandleComponent,ze=se.enableResizing,Ve=se.resizeGrid,yt=se.resizeHandleWrapperClass,ct=se.resizeHandleWrapperStyle,St=se.scale,_t=se.allowAnyClick,At=se.dragPositionOffset,ht=ae(se,["disableDragging","style","dragHandleClassName","position","onMouseDown","onMouseUp","dragAxis","dragGrid","bounds","enableUserSelectHack","cancel","children","onResizeStart","onResize","onResizeStop","onDragStart","onDrag","onDragStop","resizeHandleStyles","resizeHandleClasses","resizeHandleComponent","enableResizing","resizeGrid","resizeHandleWrapperClass","resizeHandleWrapperStyle","scale","allowAnyClick","dragPositionOffset"]),wt=this.props.default?ue({},this.props.default):void 0;delete ht.default;var jt=le||De?{cursor:"auto"}:{cursor:"move"},st=ue(ue(ue({},he),jt),ke),ge=this.offsetFromParent,on=ge.left,mn=ge.top,Mt;Be&&(Mt={x:Be.x-on,y:Be.y-mn});var On=this.state.resizing?void 0:Mt,Vn=this.state.resizing?"both":Je;return(0,B.createElement)(s(),{ref:function(Fn){Fn&&(ee.draggable=Fn)},handle:De?".".concat(De):void 0,defaultPosition:wt,onMouseDown:He,onMouseUp:Fe,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,axis:Vn,disabled:le,grid:Me,bounds:lt?this.state.bounds:void 0,position:On,enableUserSelectHack:Re,cancel:Oe,scale:St,allowAnyClick:_t,nodeRef:this.resizableElement,positionOffset:At},(0,B.createElement)(G,ue({},ht,{ref:function(Fn){Fn&&(ee.resizable=Fn,ee.resizableElement.current=Fn.resizable)},defaultSize:wt,size:this.props.size,enable:typeof ze=="boolean"?ce(ze):ze,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,style:st,minWidth:this.props.minWidth,minHeight:this.props.minHeight,maxWidth:this.state.resizing?this.state.maxWidth:this.props.maxWidth,maxHeight:this.state.resizing?this.state.maxHeight:this.props.maxHeight,grid:Ve,handleWrapperClass:yt,handleWrapperStyle:ct,lockAspectRatio:this.props.lockAspectRatio,lockAspectRatioExtraWidth:this.props.lockAspectRatioExtraWidth,lockAspectRatioExtraHeight:this.props.lockAspectRatioExtraHeight,handleStyles:ie,handleClasses:ve,handleComponent:Ne,scale:this.props.scale}),pe))},Le.defaultProps={maxWidth:Number.MAX_SAFE_INTEGER,maxHeight:Number.MAX_SAFE_INTEGER,scale:1,onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},onDragStart:function(){},onDrag:function(){},onDragStop:function(){}},Le}(B.PureComponent)},91733:function(Ie,Z,b){"use strict";b.d(Z,{Z:function(){return lt}});function B(Re,Oe){if(Re==null)return{};var pe={};for(var fe in Re)if(Object.prototype.hasOwnProperty.call(Re,fe)){if(Oe.indexOf(fe)>=0)continue;pe[fe]=Re[fe]}return pe}function Y(Re,Oe){if(Re==null)return{};var pe=B(Re,Oe),fe,z;if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(Re);for(z=0;z<J.length;z++)fe=J[z],!(Oe.indexOf(fe)>=0)&&Object.prototype.propertyIsEnumerable.call(Re,fe)&&(pe[fe]=Re[fe])}return pe}function s(Re,Oe){(Oe==null||Oe>Re.length)&&(Oe=Re.length);for(var pe=0,fe=new Array(Oe);pe<Oe;pe++)fe[pe]=Re[pe];return fe}function E(Re){if(Array.isArray(Re))return s(Re)}function I(Re){if(typeof Symbol!="undefined"&&Re[Symbol.iterator]!=null||Re["@@iterator"]!=null)return Array.from(Re)}function u(Re,Oe){if(Re){if(typeof Re=="string")return s(Re,Oe);var pe=Object.prototype.toString.call(Re).slice(8,-1);if(pe==="Object"&&Re.constructor&&(pe=Re.constructor.name),pe==="Map"||pe==="Set")return Array.from(Re);if(pe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(pe))return s(Re,Oe)}}function d(){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 g(Re){return E(Re)||I(Re)||u(Re)||d()}function y(Re){"@babel/helpers - typeof";return y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Oe){return typeof Oe}:function(Oe){return Oe&&typeof Symbol=="function"&&Oe.constructor===Symbol&&Oe!==Symbol.prototype?"symbol":typeof Oe},y(Re)}function S(Re,Oe){if(y(Re)!="object"||!Re)return Re;var pe=Re[Symbol.toPrimitive];if(pe!==void 0){var fe=pe.call(Re,Oe||"default");if(y(fe)!="object")return fe;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Oe==="string"?String:Number)(Re)}function v(Re){var Oe=S(Re,"string");return y(Oe)=="symbol"?Oe:Oe+""}function c(Re,Oe,pe){return Oe=v(Oe),Oe in Re?Object.defineProperty(Re,Oe,{value:pe,enumerable:!0,configurable:!0,writable:!0}):Re[Oe]=pe,Re}var h=b(67294);function m(){return m=Object.assign?Object.assign.bind():function(Re){for(var Oe=1;Oe<arguments.length;Oe++){var pe=arguments[Oe];for(var fe in pe)Object.prototype.hasOwnProperty.call(pe,fe)&&(Re[fe]=pe[fe])}return Re},m.apply(this,arguments)}function x(Re,Oe){var pe=Object.keys(Re);if(Object.getOwnPropertySymbols){var fe=Object.getOwnPropertySymbols(Re);Oe&&(fe=fe.filter(function(z){return Object.getOwnPropertyDescriptor(Re,z).enumerable})),pe.push.apply(pe,fe)}return pe}function T(Re){for(var Oe=1;Oe<arguments.length;Oe++){var pe=arguments[Oe]!=null?arguments[Oe]:{};Oe%2?x(Object(pe),!0).forEach(function(fe){c(Re,fe,pe[fe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Re,Object.getOwnPropertyDescriptors(pe)):x(Object(pe)).forEach(function(fe){Object.defineProperty(Re,fe,Object.getOwnPropertyDescriptor(pe,fe))})}return Re}function _(Re){var Oe=Re.length;if(Oe===0||Oe===1)return Re;if(Oe===2)return[Re[0],Re[1],"".concat(Re[0],".").concat(Re[1]),"".concat(Re[1],".").concat(Re[0])];if(Oe===3)return[Re[0],Re[1],Re[2],"".concat(Re[0],".").concat(Re[1]),"".concat(Re[0],".").concat(Re[2]),"".concat(Re[1],".").concat(Re[0]),"".concat(Re[1],".").concat(Re[2]),"".concat(Re[2],".").concat(Re[0]),"".concat(Re[2],".").concat(Re[1]),"".concat(Re[0],".").concat(Re[1],".").concat(Re[2]),"".concat(Re[0],".").concat(Re[2],".").concat(Re[1]),"".concat(Re[1],".").concat(Re[0],".").concat(Re[2]),"".concat(Re[1],".").concat(Re[2],".").concat(Re[0]),"".concat(Re[2],".").concat(Re[0],".").concat(Re[1]),"".concat(Re[2],".").concat(Re[1],".").concat(Re[0])];if(Oe>=4)return[Re[0],Re[1],Re[2],Re[3],"".concat(Re[0],".").concat(Re[1]),"".concat(Re[0],".").concat(Re[2]),"".concat(Re[0],".").concat(Re[3]),"".concat(Re[1],".").concat(Re[0]),"".concat(Re[1],".").concat(Re[2]),"".concat(Re[1],".").concat(Re[3]),"".concat(Re[2],".").concat(Re[0]),"".concat(Re[2],".").concat(Re[1]),"".concat(Re[2],".").concat(Re[3]),"".concat(Re[3],".").concat(Re[0]),"".concat(Re[3],".").concat(Re[1]),"".concat(Re[3],".").concat(Re[2]),"".concat(Re[0],".").concat(Re[1],".").concat(Re[2]),"".concat(Re[0],".").concat(Re[1],".").concat(Re[3]),"".concat(Re[0],".").concat(Re[2],".").concat(Re[1]),"".concat(Re[0],".").concat(Re[2],".").concat(Re[3]),"".concat(Re[0],".").concat(Re[3],".").concat(Re[1]),"".concat(Re[0],".").concat(Re[3],".").concat(Re[2]),"".concat(Re[1],".").concat(Re[0],".").concat(Re[2]),"".concat(Re[1],".").concat(Re[0],".").concat(Re[3]),"".concat(Re[1],".").concat(Re[2],".").concat(Re[0]),"".concat(Re[1],".").concat(Re[2],".").concat(Re[3]),"".concat(Re[1],".").concat(Re[3],".").concat(Re[0]),"".concat(Re[1],".").concat(Re[3],".").concat(Re[2]),"".concat(Re[2],".").concat(Re[0],".").concat(Re[1]),"".concat(Re[2],".").concat(Re[0],".").concat(Re[3]),"".concat(Re[2],".").concat(Re[1],".").concat(Re[0]),"".concat(Re[2],".").concat(Re[1],".").concat(Re[3]),"".concat(Re[2],".").concat(Re[3],".").concat(Re[0]),"".concat(Re[2],".").concat(Re[3],".").concat(Re[1]),"".concat(Re[3],".").concat(Re[0],".").concat(Re[1]),"".concat(Re[3],".").concat(Re[0],".").concat(Re[2]),"".concat(Re[3],".").concat(Re[1],".").concat(Re[0]),"".concat(Re[3],".").concat(Re[1],".").concat(Re[2]),"".concat(Re[3],".").concat(Re[2],".").concat(Re[0]),"".concat(Re[3],".").concat(Re[2],".").concat(Re[1]),"".concat(Re[0],".").concat(Re[1],".").concat(Re[2],".").concat(Re[3]),"".concat(Re[0],".").concat(Re[1],".").concat(Re[3],".").concat(Re[2]),"".concat(Re[0],".").concat(Re[2],".").concat(Re[1],".").concat(Re[3]),"".concat(Re[0],".").concat(Re[2],".").concat(Re[3],".").concat(Re[1]),"".concat(Re[0],".").concat(Re[3],".").concat(Re[1],".").concat(Re[2]),"".concat(Re[0],".").concat(Re[3],".").concat(Re[2],".").concat(Re[1]),"".concat(Re[1],".").concat(Re[0],".").concat(Re[2],".").concat(Re[3]),"".concat(Re[1],".").concat(Re[0],".").concat(Re[3],".").concat(Re[2]),"".concat(Re[1],".").concat(Re[2],".").concat(Re[0],".").concat(Re[3]),"".concat(Re[1],".").concat(Re[2],".").concat(Re[3],".").concat(Re[0]),"".concat(Re[1],".").concat(Re[3],".").concat(Re[0],".").concat(Re[2]),"".concat(Re[1],".").concat(Re[3],".").concat(Re[2],".").concat(Re[0]),"".concat(Re[2],".").concat(Re[0],".").concat(Re[1],".").concat(Re[3]),"".concat(Re[2],".").concat(Re[0],".").concat(Re[3],".").concat(Re[1]),"".concat(Re[2],".").concat(Re[1],".").concat(Re[0],".").concat(Re[3]),"".concat(Re[2],".").concat(Re[1],".").concat(Re[3],".").concat(Re[0]),"".concat(Re[2],".").concat(Re[3],".").concat(Re[0],".").concat(Re[1]),"".concat(Re[2],".").concat(Re[3],".").concat(Re[1],".").concat(Re[0]),"".concat(Re[3],".").concat(Re[0],".").concat(Re[1],".").concat(Re[2]),"".concat(Re[3],".").concat(Re[0],".").concat(Re[2],".").concat(Re[1]),"".concat(Re[3],".").concat(Re[1],".").concat(Re[0],".").concat(Re[2]),"".concat(Re[3],".").concat(Re[1],".").concat(Re[2],".").concat(Re[0]),"".concat(Re[3],".").concat(Re[2],".").concat(Re[0],".").concat(Re[1]),"".concat(Re[3],".").concat(Re[2],".").concat(Re[1],".").concat(Re[0])]}var R={};function A(Re){if(Re.length===0||Re.length===1)return Re;var Oe=Re.join(".");return R[Oe]||(R[Oe]=_(Re)),R[Oe]}function N(Re){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pe=arguments.length>2?arguments[2]:void 0,fe=Re.filter(function(J){return J!=="token"}),z=A(fe);return z.reduce(function(J,be){return T(T({},J),pe[be])},Oe)}function L(Re){return Re.join(" ")}function M(Re,Oe){var pe=0;return function(fe){return pe+=1,fe.map(function(z,J){return F({node:z,stylesheet:Re,useInlineStyles:Oe,key:"code-segment-".concat(pe,"-").concat(J)})})}}function F(Re){var Oe=Re.node,pe=Re.stylesheet,fe=Re.style,z=fe===void 0?{}:fe,J=Re.useInlineStyles,be=Re.key,_e=Oe.properties,oe=Oe.type,ie=Oe.tagName,ve=Oe.value;if(oe==="text")return ve;if(ie){var Ne=M(pe,J),ze;if(!J)ze=T(T({},_e),{},{className:L(_e.className)});else{var Ve=Object.keys(pe).reduce(function(_t,At){return At.split(".").forEach(function(ht){_t.includes(ht)||_t.push(ht)}),_t},[]),yt=_e.className&&_e.className.includes("token")?["token"]:[],ct=_e.className&&yt.concat(_e.className.filter(function(_t){return!Ve.includes(_t)}));ze=T(T({},_e),{},{className:L(ct)||void 0,style:N(_e.className,Object.assign({},_e.style,z),pe)})}var St=Ne(Oe.children);return h.createElement(ie,m({key:be},ze),St)}}var H=function(Re,Oe){var pe=Re.listLanguages();return pe.indexOf(Oe)!==-1},P=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function V(Re,Oe){var pe=Object.keys(Re);if(Object.getOwnPropertySymbols){var fe=Object.getOwnPropertySymbols(Re);Oe&&(fe=fe.filter(function(z){return Object.getOwnPropertyDescriptor(Re,z).enumerable})),pe.push.apply(pe,fe)}return pe}function G(Re){for(var Oe=1;Oe<arguments.length;Oe++){var pe=arguments[Oe]!=null?arguments[Oe]:{};Oe%2?V(Object(pe),!0).forEach(function(fe){c(Re,fe,pe[fe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Re,Object.getOwnPropertyDescriptors(pe)):V(Object(pe)).forEach(function(fe){Object.defineProperty(Re,fe,Object.getOwnPropertyDescriptor(pe,fe))})}return Re}var Q=/\n/g;function ne(Re){return Re.match(Q)}function ue(Re){var Oe=Re.lines,pe=Re.startingLineNumber,fe=Re.style;return Oe.map(function(z,J){var be=J+pe;return h.createElement("span",{key:"line-".concat(J),className:"react-syntax-highlighter-line-number",style:typeof fe=="function"?fe(be):fe},"".concat(be,`
`))})}function ae(Re){var Oe=Re.codeString,pe=Re.codeStyle,fe=Re.containerStyle,z=fe===void 0?{float:"left",paddingRight:"10px"}:fe,J=Re.numberStyle,be=J===void 0?{}:J,_e=Re.startingLineNumber;return h.createElement("code",{style:Object.assign({},pe,z)},ue({lines:Oe.replace(/\n$/,"").split(`
`),style:be,startingLineNumber:_e}))}function he(Re){return"".concat(Re.toString().length,".25em")}function ce(Re,Oe){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(Re),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:Oe},children:[{type:"text",value:Re}]}}function we(Re,Oe,pe){var fe={display:"inline-block",minWidth:he(pe),paddingRight:"1em",textAlign:"right",userSelect:"none"},z=typeof Re=="function"?Re(Oe):Re,J=G(G({},fe),z);return J}function me(Re){var Oe=Re.children,pe=Re.lineNumber,fe=Re.lineNumberStyle,z=Re.largestLineNumber,J=Re.showInlineLineNumbers,be=Re.lineProps,_e=be===void 0?{}:be,oe=Re.className,ie=oe===void 0?[]:oe,ve=Re.showLineNumbers,Ne=Re.wrapLongLines,ze=typeof _e=="function"?_e(pe):_e;if(ze.className=ie,pe&&J){var Ve=we(fe,pe,z);Oe.unshift(ce(pe,Ve))}return Ne&ve&&(ze.style=G(G({},ze.style),{},{display:"flex"})),{type:"element",tagName:"span",properties:ze,children:Oe}}function Le(Re){for(var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],fe=0;fe<Re.length;fe++){var z=Re[fe];if(z.type==="text")pe.push(me({children:[z],className:g(new Set(Oe))}));else if(z.children){var J=Oe.concat(z.properties.className);Le(z.children,J).forEach(function(be){return pe.push(be)})}}return pe}function ee(Re,Oe,pe,fe,z,J,be,_e,oe){var ie,ve=Le(Re.value),Ne=[],ze=-1,Ve=0;function yt(jt,st){var ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return me({children:jt,lineNumber:st,lineNumberStyle:_e,largestLineNumber:be,showInlineLineNumbers:z,lineProps:pe,className:ge,showLineNumbers:fe,wrapLongLines:oe})}function ct(jt,st){if(fe&&st&&z){var ge=we(_e,st,be);jt.unshift(ce(st,ge))}return jt}function St(jt,st){var ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Oe||ge.length>0?yt(jt,st,ge):ct(jt,st)}for(var _t=function(){var st=ve[Ve],ge=st.children[0].value,on=ne(ge);if(on){var mn=ge.split(`
`);mn.forEach(function(Mt,On){var Vn=fe&&Ne.length+J,Fn={type:"text",value:"".concat(Mt,`
`)};if(On===0){var Gn=ve.slice(ze+1,Ve).concat(me({children:[Fn],className:st.properties.className})),sn=St(Gn,Vn);Ne.push(sn)}else if(On===mn.length-1){var xt=ve[Ve+1]&&ve[Ve+1].children&&ve[Ve+1].children[0],gr={type:"text",value:"".concat(Mt)};if(xt){var Pr=me({children:[gr],className:st.properties.className});ve.splice(Ve+1,0,Pr)}else{var tr=[gr],ii=St(tr,Vn,st.properties.className);Ne.push(ii)}}else{var Ar=[Fn],Kt=St(Ar,Vn,st.properties.className);Ne.push(Kt)}}),ze=Ve}Ve++};Ve<ve.length;)_t();if(ze!==ve.length-1){var At=ve.slice(ze+1,ve.length);if(At&&At.length){var ht=fe&&Ne.length+J,wt=St(At,ht);Ne.push(wt)}}return Oe?Ne:(ie=[]).concat.apply(ie,Ne)}function se(Re){var Oe=Re.rows,pe=Re.stylesheet,fe=Re.useInlineStyles;return Oe.map(function(z,J){return F({node:z,stylesheet:pe,useInlineStyles:fe,key:"code-segement".concat(J)})})}function le(Re){return Re&&typeof Re.highlightAuto!="undefined"}function ke(Re){var Oe=Re.astGenerator,pe=Re.language,fe=Re.code,z=Re.defaultCodeValue;if(le(Oe)){var J=H(Oe,pe);return pe==="text"?{value:z,language:"text"}:J?Oe.highlight(pe,fe):Oe.highlightAuto(fe)}try{return pe&&pe!=="text"?{value:Oe.highlight(fe,pe)}:{value:z}}catch(be){return{value:z}}}function De(Re,Oe){return function(fe){var z=fe.language,J=fe.children,be=fe.style,_e=be===void 0?Oe:be,oe=fe.customStyle,ie=oe===void 0?{}:oe,ve=fe.codeTagProps,Ne=ve===void 0?{className:z?"language-".concat(z):void 0,style:G(G({},_e['code[class*="language-"]']),_e['code[class*="language-'.concat(z,'"]')])}:ve,ze=fe.useInlineStyles,Ve=ze===void 0?!0:ze,yt=fe.showLineNumbers,ct=yt===void 0?!1:yt,St=fe.showInlineLineNumbers,_t=St===void 0?!0:St,At=fe.startingLineNumber,ht=At===void 0?1:At,wt=fe.lineNumberContainerStyle,jt=fe.lineNumberStyle,st=jt===void 0?{}:jt,ge=fe.wrapLines,on=fe.wrapLongLines,mn=on===void 0?!1:on,Mt=fe.lineProps,On=Mt===void 0?{}:Mt,Vn=fe.renderer,Fn=fe.PreTag,Gn=Fn===void 0?"pre":Fn,sn=fe.CodeTag,xt=sn===void 0?"code":sn,gr=fe.code,Pr=gr===void 0?(Array.isArray(J)?J[0]:J)||"":gr,tr=fe.astGenerator,ii=Y(fe,P);tr=tr||Re;var Ar=ct?h.createElement(ae,{containerStyle:wt,codeStyle:Ne.style||{},numberStyle:st,startingLineNumber:ht,codeString:Pr}):null,Kt=_e.hljs||_e['pre[class*="language-"]']||{backgroundColor:"#fff"},ye=le(tr)?"hljs":"prismjs",Vt=Ve?Object.assign({},ii,{style:Object.assign({},Kt,ie)}):Object.assign({},ii,{className:ii.className?"".concat(ye," ").concat(ii.className):ye,style:Object.assign({},ie)});if(mn?Ne.style=G(G({},Ne.style),{},{whiteSpace:"pre-wrap"}):Ne.style=G(G({},Ne.style),{},{whiteSpace:"pre"}),!tr)return h.createElement(Gn,Vt,Ar,h.createElement(xt,Ne,Pr));(ge===void 0&&Vn||mn)&&(ge=!0),Vn=Vn||se;var rn=[{type:"text",value:Pr}],Xn=ke({astGenerator:tr,language:z,code:Pr,defaultCodeValue:rn});Xn.language===null&&(Xn.value=rn);var Zn=Xn.value.length+ht,ir=ee(Xn,ge,On,ct,_t,ht,Zn,st,mn);return h.createElement(Gn,Vt,h.createElement(xt,Ne,!_t&&Ar,Vn({rows:ir,stylesheet:_e,useInlineStyles:Ve})))}}var Be={'code[class*="language-"]':{color:"black",background:"none",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"#f5f2f0",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}},He=b(98695),Fe=b.n(He),Je=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","bash","basic","batch","bbcode","bicep","birb","bison","bnf","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","clike","clojure","cmake","cobol","coffeescript","concurnas","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gherkin","git","glsl","gml","gn","go-module","go","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","matlab","maxscript","mel","mermaid","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","solidity","solution-file","soy","sparql","splunk-spl","sqf","sql","squirrel","stan","stylus","swift","systemd","t4-cs","t4-templating","t4-vb","tap","tcl","textile","toml","tremor","tsx","tt2","turtle","twig","typescript","typoscript","unrealscript","uorazor","uri","v","vala","vbnet","velocity","verilog","vhdl","vim","visual-basic","warpscript","wasm","web-idl","wiki","wolfram","wren","xeora","xml-doc","xojo","xquery","yaml","yang","zig"],Me=De(Fe(),Be);Me.supportedLanguages=Je;var lt=Me},86032:function(Ie,Z){"use strict";Z.Z={'pre[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",background:"#1e1e1e"},'code[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'pre[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},':not(pre) > code[class*="language-"]':{padding:".1em .3em",borderRadius:".3em",color:"#db4c69",background:"#1e1e1e"},".namespace":{Opacity:".7"},"doctype.doctype-tag":{color:"#569CD6"},"doctype.name":{color:"#9cdcfe"},comment:{color:"#6a9955"},prolog:{color:"#6a9955"},punctuation:{color:"#d4d4d4"},".language-html .language-css .token.punctuation":{color:"#d4d4d4"},".language-html .language-javascript .token.punctuation":{color:"#d4d4d4"},property:{color:"#9cdcfe"},tag:{color:"#569cd6"},boolean:{color:"#569cd6"},number:{color:"#b5cea8"},constant:{color:"#9cdcfe"},symbol:{color:"#b5cea8"},inserted:{color:"#b5cea8"},unit:{color:"#b5cea8"},selector:{color:"#d7ba7d"},"attr-name":{color:"#9cdcfe"},string:{color:"#ce9178"},char:{color:"#ce9178"},builtin:{color:"#ce9178"},deleted:{color:"#ce9178"},".language-css .token.string.url":{textDecoration:"underline"},operator:{color:"#d4d4d4"},entity:{color:"#569cd6"},"operator.arrow":{color:"#569CD6"},atrule:{color:"#ce9178"},"atrule.rule":{color:"#c586c0"},"atrule.url":{color:"#9cdcfe"},"atrule.url.function":{color:"#dcdcaa"},"atrule.url.punctuation":{color:"#d4d4d4"},keyword:{color:"#569CD6"},"keyword.module":{color:"#c586c0"},"keyword.control-flow":{color:"#c586c0"},function:{color:"#dcdcaa"},"function.maybe-class-name":{color:"#dcdcaa"},regex:{color:"#d16969"},important:{color:"#569cd6"},italic:{fontStyle:"italic"},"class-name":{color:"#4ec9b0"},"maybe-class-name":{color:"#4ec9b0"},console:{color:"#9cdcfe"},parameter:{color:"#9cdcfe"},interpolation:{color:"#9cdcfe"},"punctuation.interpolation-punctuation":{color:"#569cd6"},variable:{color:"#9cdcfe"},"imports.maybe-class-name":{color:"#9cdcfe"},"exports.maybe-class-name":{color:"#9cdcfe"},escape:{color:"#d7ba7d"},"tag.punctuation":{color:"#808080"},cdata:{color:"#808080"},"attr-value":{color:"#ce9178"},"attr-value.punctuation":{color:"#ce9178"},"attr-value.punctuation.attr-equals":{color:"#d4d4d4"},namespace:{color:"#4ec9b0"},'pre[class*="language-javascript"]':{color:"#9cdcfe"},'code[class*="language-javascript"]':{color:"#9cdcfe"},'pre[class*="language-jsx"]':{color:"#9cdcfe"},'code[class*="language-jsx"]':{color:"#9cdcfe"},'pre[class*="language-typescript"]':{color:"#9cdcfe"},'code[class*="language-typescript"]':{color:"#9cdcfe"},'pre[class*="language-tsx"]':{color:"#9cdcfe"},'code[class*="language-tsx"]':{color:"#9cdcfe"},'pre[class*="language-css"]':{color:"#ce9178"},'code[class*="language-css"]':{color:"#ce9178"},'pre[class*="language-html"]':{color:"#d4d4d4"},'code[class*="language-html"]':{color:"#d4d4d4"},".language-regex .token.anchor":{color:"#dcdcaa"},".language-html .token.punctuation":{color:"#808080"},'pre[class*="language-"] > code[class*="language-"]':{position:"relative",zIndex:"1"},".line-highlight.line-highlight":{background:"#f7ebc6",boxShadow:"inset 5px 0 0 #f7d87c",zIndex:"0"}}},75251:function(Ie,Z,b){"use strict";b(27418);var B=b(67294),Y=60103;if(Z.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var s=Symbol.for;Y=s("react.element"),Z.Fragment=s("react.fragment")}var E=B.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,I=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function d(g,y,S){var v,c={},h=null,m=null;S!==void 0&&(h=""+S),y.key!==void 0&&(h=""+y.key),y.ref!==void 0&&(m=y.ref);for(v in y)I.call(y,v)&&!u.hasOwnProperty(v)&&(c[v]=y[v]);if(g&&g.defaultProps)for(v in y=g.defaultProps,y)c[v]===void 0&&(c[v]=y[v]);return{$$typeof:Y,type:g,key:h,ref:m,props:c,_owner:E.current}}Z.jsx=d,Z.jsxs=d},85893:function(Ie,Z,b){"use strict";Ie.exports=b(75251)},11215:function(Ie,Z,b){"use strict";var B=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof b.g=="object"?b.g:{},Y=M();B.Prism={manual:!0,disableWorkerMessageHandler:!0};var s=b(90871),E=b(57574),I=b(59216),u=b(2717),d=b(12049),g=b(29726),y=b(36155);Y();var S={}.hasOwnProperty;function v(){}v.prototype=I;var c=new v;Ie.exports=c,c.highlight=x,c.register=h,c.alias=m,c.registered=T,c.listLanguages=_,h(u),h(d),h(g),h(y),c.util.encode=N,c.Token.stringify=R;function h(F){if(typeof F!="function"||!F.displayName)throw new Error("Expected `function` for `grammar`, got `"+F+"`");c.languages[F.displayName]===void 0&&F(c)}function m(F,H){var P=c.languages,V=F,G,Q,ne,ue;H&&(V={},V[F]=H);for(G in V)for(Q=V[G],Q=typeof Q=="string"?[Q]:Q,ne=Q.length,ue=-1;++ue<ne;)P[Q[ue]]=P[G]}function x(F,H){var P=I.highlight,V;if(typeof F!="string")throw new Error("Expected `string` for `value`, got `"+F+"`");if(c.util.type(H)==="Object")V=H,H=null;else{if(typeof H!="string")throw new Error("Expected `string` for `name`, got `"+H+"`");if(S.call(c.languages,H))V=c.languages[H];else throw new Error("Unknown language: `"+H+"` is not registered")}return P.call(this,F,V,H)}function T(F){if(typeof F!="string")throw new Error("Expected `string` for `language`, got `"+F+"`");return S.call(c.languages,F)}function _(){var F=c.languages,H=[],P;for(P in F)S.call(F,P)&&typeof F[P]=="object"&&H.push(P);return H}function R(F,H,P){var V;return typeof F=="string"?{type:"text",value:F}:c.util.type(F)==="Array"?A(F,H):(V={type:F.type,content:c.Token.stringify(F.content,H,P),tag:"span",classes:["token",F.type],attributes:{},language:H,parent:P},F.alias&&(V.classes=V.classes.concat(F.alias)),c.hooks.run("wrap",V),s(V.tag+"."+V.classes.join("."),L(V.attributes),V.content))}function A(F,H){for(var P=[],V=F.length,G=-1,Q;++G<V;)Q=F[G],Q!==""&&Q!==null&&Q!==void 0&&P.push(Q);for(G=-1,V=P.length;++G<V;)Q=P[G],P[G]=c.Token.stringify(Q,H,P);return P}function N(F){return F}function L(F){var H;for(H in F)F[H]=E(F[H]);return F}function M(){var F="Prism"in B,H=F?B.Prism:void 0;return P;function P(){F?B.Prism=H:delete B.Prism,F=void 0,H=void 0}}},98695:function(Ie,Z,b){"use strict";var B=b(11215);Ie.exports=B,B.register(b(36167)),B.register(b(68313)),B.register(b(5199)),B.register(b(89693)),B.register(b(24001)),B.register(b(18018)),B.register(b(36363)),B.register(b(35281)),B.register(b(10433)),B.register(b(84039)),B.register(b(71336)),B.register(b(4481)),B.register(b(2159)),B.register(b(60274)),B.register(b(18738)),B.register(b(58572)),B.register(b(28937)),B.register(b(78734)),B.register(b(6681)),B.register(b(53358)),B.register(b(81700)),B.register(b(37219)),B.register(b(6979)),B.register(b(46241)),B.register(b(94781)),B.register(b(62260)),B.register(b(36153)),B.register(b(59258)),B.register(b(62890)),B.register(b(15958)),B.register(b(61321)),B.register(b(77856)),B.register(b(90741)),B.register(b(83410)),B.register(b(65806)),B.register(b(33039)),B.register(b(85082)),B.register(b(79415)),B.register(b(62849)),B.register(b(55773)),B.register(b(32762)),B.register(b(43576)),B.register(b(71794)),B.register(b(1315)),B.register(b(80096)),B.register(b(99176)),B.register(b(61958)),B.register(b(90312)),B.register(b(65447)),B.register(b(4762)),B.register(b(78090)),B.register(b(40315)),B.register(b(7902)),B.register(b(28651)),B.register(b(55579)),B.register(b(93685)),B.register(b(13934)),B.register(b(93336)),B.register(b(13294)),B.register(b(38223)),B.register(b(97266)),B.register(b(77125)),B.register(b(36500)),B.register(b(30296)),B.register(b(50115)),B.register(b(20791)),B.register(b(11974)),B.register(b(8645)),B.register(b(84790)),B.register(b(4502)),B.register(b(66055)),B.register(b(34668)),B.register(b(95126)),B.register(b(90618)),B.register(b(63128)),B.register(b(37225)),B.register(b(16725)),B.register(b(95559)),B.register(b(82114)),B.register(b(6806)),B.register(b(12208)),B.register(b(62728)),B.register(b(81549)),B.register(b(6024)),B.register(b(13600)),B.register(b(3322)),B.register(b(53877)),B.register(b(60794)),B.register(b(20222)),B.register(b(51519)),B.register(b(94055)),B.register(b(43826)),B.register(b(29536)),B.register(b(82834)),B.register(b(58090)),B.register(b(95121)),B.register(b(59904)),B.register(b(9436)),B.register(b(60591)),B.register(b(76942)),B.register(b(60561)),B.register(b(49660)),B.register(b(30615)),B.register(b(93865)),B.register(b(51078)),B.register(b(91178)),B.register(b(40011)),B.register(b(12017)),B.register(b(65175)),B.register(b(14970)),B.register(b(30764)),B.register(b(87624)),B.register(b(15909)),B.register(b(36553)),B.register(b(9858)),B.register(b(11223)),B.register(b(57957)),B.register(b(66604)),B.register(b(77935)),B.register(b(46155)),B.register(b(47359)),B.register(b(25319)),B.register(b(45950)),B.register(b(50235)),B.register(b(80963)),B.register(b(79358)),B.register(b(96412)),B.register(b(39259)),B.register(b(32409)),B.register(b(35760)),B.register(b(19715)),B.register(b(27614)),B.register(b(82819)),B.register(b(42876)),B.register(b(2980)),B.register(b(41701)),B.register(b(42491)),B.register(b(34927)),B.register(b(3848)),B.register(b(41469)),B.register(b(73070)),B.register(b(35049)),B.register(b(8789)),B.register(b(59803)),B.register(b(86328)),B.register(b(33055)),B.register(b(90542)),B.register(b(93205)),B.register(b(27992)),B.register(b(91115)),B.register(b(606)),B.register(b(68582)),B.register(b(23388)),B.register(b(90596)),B.register(b(95721)),B.register(b(64262)),B.register(b(18190)),B.register(b(70896)),B.register(b(42242)),B.register(b(37943)),B.register(b(293)),B.register(b(83873)),B.register(b(75932)),B.register(b(60221)),B.register(b(44188)),B.register(b(74426)),B.register(b(88447)),B.register(b(16032)),B.register(b(33607)),B.register(b(22001)),B.register(b(22950)),B.register(b(23254)),B.register(b(70558)),B.register(b(43273)),B.register(b(60718)),B.register(b(39303)),B.register(b(77393)),B.register(b(19023)),B.register(b(74212)),B.register(b(5137)),B.register(b(88262)),B.register(b(63632)),B.register(b(59149)),B.register(b(50256)),B.register(b(61777)),B.register(b(3623)),B.register(b(82707)),B.register(b(59338)),B.register(b(56267)),B.register(b(98809)),B.register(b(37548)),B.register(b(82161)),B.register(b(80625)),B.register(b(88393)),B.register(b(78404)),B.register(b(92923)),B.register(b(52992)),B.register(b(55762)),B.register(b(4137)),B.register(b(28260)),B.register(b(71360)),B.register(b(29308)),B.register(b(32168)),B.register(b(5755)),B.register(b(54105)),B.register(b(93503)),B.register(b(35108)),B.register(b(46678)),B.register(b(47496)),B.register(b(30527)),B.register(b(5261)),B.register(b(56939)),B.register(b(83648)),B.register(b(16009)),B.register(b(41720)),B.register(b(6054)),B.register(b(9997)),B.register(b(24296)),B.register(b(49246)),B.register(b(18890)),B.register(b(11037)),B.register(b(64020)),B.register(b(49760)),B.register(b(33351)),B.register(b(13570)),B.register(b(38181)),B.register(b(98774)),B.register(b(22855)),B.register(b(29611)),B.register(b(11114)),B.register(b(67386)),B.register(b(28067)),B.register(b(49168)),B.register(b(23651)),B.register(b(21483)),B.register(b(32268)),B.register(b(2329)),B.register(b(82996)),B.register(b(17290)),B.register(b(67989)),B.register(b(31065)),B.register(b(85572)),B.register(b(27536)),B.register(b(87041)),B.register(b(61028)),B.register(b(24691)),B.register(b(19892)),B.register(b(4979)),B.register(b(23159)),B.register(b(34966)),B.register(b(44623)),B.register(b(38521)),B.register(b(7255)),B.register(b(28173)),B.register(b(53813)),B.register(b(46891)),B.register(b(91824)),B.register(b(9447)),B.register(b(53062)),B.register(b(46215)),B.register(b(10784)),B.register(b(17684)),B.register(b(64851)),B.register(b(18191)),B.register(b(75242)),B.register(b(93639)),B.register(b(97202)),B.register(b(13808)),B.register(b(21301)),B.register(b(20349)),B.register(b(65039)),B.register(b(96319)),B.register(b(31501))},36167:function(Ie){"use strict";Ie.exports=Z,Z.displayName="abap",Z.aliases=[];function Z(b){b.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:SCIENTIFIC_WITH_LEADING_ZERO|SCALE_PRESERVING_SCIENTIFIC|RMC_COMMUNICATION_FAILURE|END-ENHANCEMENT-SECTION|MULTIPLY-CORRESPONDING|SUBTRACT-CORRESPONDING|VERIFICATION-MESSAGE|DIVIDE-CORRESPONDING|ENHANCEMENT-SECTION|CURRENCY_CONVERSION|RMC_SYSTEM_FAILURE|START-OF-SELECTION|MOVE-CORRESPONDING|RMC_INVALID_STATUS|CUSTOMER-FUNCTION|END-OF-DEFINITION|ENHANCEMENT-POINT|SYSTEM-EXCEPTIONS|ADD-CORRESPONDING|SCALE_PRESERVING|SELECTION-SCREEN|CURSOR-SELECTION|END-OF-SELECTION|LOAD-OF-PROGRAM|SCROLL-BOUNDARY|SELECTION-TABLE|EXCEPTION-TABLE|IMPLEMENTATIONS|PARAMETER-TABLE|RIGHT-JUSTIFIED|UNIT_CONVERSION|AUTHORITY-CHECK|LIST-PROCESSING|SIGN_AS_POSTFIX|COL_BACKGROUND|IMPLEMENTATION|INTERFACE-POOL|TRANSFORMATION|IDENTIFICATION|ENDENHANCEMENT|LINE-SELECTION|INITIALIZATION|LEFT-JUSTIFIED|SELECT-OPTIONS|SELECTION-SETS|COMMUNICATION|CORRESPONDING|DECIMAL_SHIFT|PRINT-CONTROL|VALUE-REQUEST|CHAIN-REQUEST|FUNCTION-POOL|FIELD-SYMBOLS|FUNCTIONALITY|INVERTED-DATE|SELECTION-SET|CLASS-METHODS|OUTPUT-LENGTH|CLASS-CODING|COL_NEGATIVE|ERRORMESSAGE|FIELD-GROUPS|HELP-REQUEST|NO-EXTENSION|NO-TOPOFPAGE|REDEFINITION|DISPLAY-MODE|ENDINTERFACE|EXIT-COMMAND|FIELD-SYMBOL|NO-SCROLLING|SHORTDUMP-ID|ACCESSPOLICY|CLASS-EVENTS|COL_POSITIVE|DECLARATIONS|ENHANCEMENTS|FILTER-TABLE|SWITCHSTATES|SYNTAX-CHECK|TRANSPORTING|ASYNCHRONOUS|SYNTAX-TRACE|TOKENIZATION|USER-COMMAND|WITH-HEADING|ABAP-SOURCE|BREAK-POINT|CHAIN-INPUT|COMPRESSION|FIXED-POINT|NEW-SECTION|NON-UNICODE|OCCURRENCES|RESPONSIBLE|SYSTEM-CALL|TRACE-TABLE|ABBREVIATED|CHAR-TO-HEX|END-OF-FILE|ENDFUNCTION|ENVIRONMENT|ASSOCIATION|COL_HEADING|EDITOR-CALL|END-OF-PAGE|ENGINEERING|IMPLEMENTED|INTENSIFIED|RADIOBUTTON|SYSTEM-EXIT|TOP-OF-PAGE|TRANSACTION|APPLICATION|CONCATENATE|DESTINATION|ENHANCEMENT|IMMEDIATELY|NO-GROUPING|PRECOMPILED|REPLACEMENT|TITLE-LINES|ACTIVATION|BYTE-ORDER|CLASS-POOL|CONNECTION|CONVERSION|DEFINITION|DEPARTMENT|EXPIRATION|INHERITING|MESSAGE-ID|NO-HEADING|PERFORMING|QUEUE-ONLY|RIGHTSPACE|SCIENTIFIC|STATUSINFO|STRUCTURES|SYNCPOINTS|WITH-TITLE|ATTRIBUTES|BOUNDARIES|CLASS-DATA|COL_NORMAL|DD\/MM\/YYYY|DESCENDING|INTERFACES|LINE-COUNT|MM\/DD\/YYYY|NON-UNIQUE|PRESERVING|SELECTIONS|STATEMENTS|SUBROUTINE|TRUNCATION|TYPE-POOLS|ARITHMETIC|BACKGROUND|ENDPROVIDE|EXCEPTIONS|IDENTIFIER|INDEX-LINE|OBLIGATORY|PARAMETERS|PERCENTAGE|PUSHBUTTON|RESOLUTION|COMPONENTS|DEALLOCATE|DISCONNECT|DUPLICATES|FIRST-LINE|HEAD-LINES|NO-DISPLAY|OCCURRENCE|RESPECTING|RETURNCODE|SUBMATCHES|TRACE-FILE|ASCENDING|BYPASSING|ENDMODULE|EXCEPTION|EXCLUDING|EXPORTING|INCREMENT|MATCHCODE|PARAMETER|PARTIALLY|PREFERRED|REFERENCE|REPLACING|RETURNING|SELECTION|SEPARATED|SPECIFIED|STATEMENT|TIMESTAMP|TYPE-POOL|ACCEPTING|APPENDAGE|ASSIGNING|COL_GROUP|COMPARING|CONSTANTS|DANGEROUS|IMPORTING|INSTANCES|LEFTSPACE|LOG-POINT|QUICKINFO|READ-ONLY|SCROLLING|SQLSCRIPT|STEP-LOOP|TOP-LINES|TRANSLATE|APPENDING|AUTHORITY|CHARACTER|COMPONENT|CONDITION|DIRECTORY|DUPLICATE|MESSAGING|RECEIVING|SUBSCREEN|ACCORDING|COL_TOTAL|END-LINES|ENDMETHOD|ENDSELECT|EXPANDING|EXTENSION|INCLUDING|INFOTYPES|INTERFACE|INTERVALS|LINE-SIZE|PF-STATUS|PROCEDURE|PROTECTED|REQUESTED|RESUMABLE|RIGHTPLUS|SAP-SPOOL|SECONDARY|STRUCTURE|SUBSTRING|TABLEVIEW|NUMOFCHAR|ADJACENT|ANALYSIS|ASSIGNED|BACKWARD|CHANNELS|CHECKBOX|CONTINUE|CRITICAL|DATAINFO|DD\/MM\/YY|DURATION|ENCODING|ENDCLASS|FUNCTION|LEFTPLUS|LINEFEED|MM\/DD\/YY|OVERFLOW|RECEIVED|SKIPPING|SORTABLE|STANDARD|SUBTRACT|SUPPRESS|TABSTRIP|TITLEBAR|TRUNCATE|UNASSIGN|WHENEVER|ANALYZER|COALESCE|COMMENTS|CONDENSE|DECIMALS|DEFERRED|ENDWHILE|EXPLICIT|KEYWORDS|MESSAGES|POSITION|PRIORITY|RECEIVER|RENAMING|TIMEZONE|TRAILING|ALLOCATE|CENTERED|CIRCULAR|CONTROLS|CURRENCY|DELETING|DESCRIBE|DISTANCE|ENDCATCH|EXPONENT|EXTENDED|GENERATE|IGNORING|INCLUDES|INTERNAL|MAJOR-ID|MODIFIER|NEW-LINE|OPTIONAL|PROPERTY|ROLLBACK|STARTING|SUPPLIED|ABSTRACT|CHANGING|CONTEXTS|CREATING|CUSTOMER|DATABASE|DAYLIGHT|DEFINING|DISTINCT|DIVISION|ENABLING|ENDCHAIN|ESCAPING|HARMLESS|IMPLICIT|INACTIVE|LANGUAGE|MINOR-ID|MULTIPLY|NEW-PAGE|NO-TITLE|POS_HIGH|SEPARATE|TEXTPOOL|TRANSFER|SELECTOR|DBMAXLEN|ITERATOR|ARCHIVE|BIT-XOR|BYTE-CO|COLLECT|COMMENT|CURRENT|DEFAULT|DISPLAY|ENDFORM|EXTRACT|LEADING|LISTBOX|LOCATOR|MEMBERS|METHODS|NESTING|POS_LOW|PROCESS|PROVIDE|RAISING|RESERVE|SECONDS|SUMMARY|VISIBLE|BETWEEN|BIT-AND|BYTE-CS|CLEANUP|COMPUTE|CONTROL|CONVERT|DATASET|ENDCASE|FORWARD|HEADERS|HOTSPOT|INCLUDE|INVERSE|KEEPING|NO-ZERO|OBJECTS|OVERLAY|PADDING|PATTERN|PROGRAM|REFRESH|SECTION|SUMMING|TESTING|VERSION|WINDOWS|WITHOUT|BIT-NOT|BYTE-CA|BYTE-NA|CASTING|CONTEXT|COUNTRY|DYNAMIC|ENABLED|ENDLOOP|EXECUTE|FRIENDS|HANDLER|HEADING|INITIAL|\*-INPUT|LOGFILE|MAXIMUM|MINIMUM|NO-GAPS|NO-SIGN|PRAGMAS|PRIMARY|PRIVATE|REDUCED|REPLACE|REQUEST|RESULTS|UNICODE|WARNING|ALIASES|BYTE-CN|BYTE-NS|CALLING|COL_KEY|COLUMNS|CONNECT|ENDEXEC|ENTRIES|EXCLUDE|FILTERS|FURTHER|HELP-ID|LOGICAL|MAPPING|MESSAGE|NAMETAB|OPTIONS|PACKAGE|PERFORM|RECEIVE|STATICS|VARYING|BINDING|CHARLEN|GREATER|XSTRLEN|ACCEPT|APPEND|DETAIL|ELSEIF|ENDING|ENDTRY|FORMAT|FRAMES|GIVING|HASHED|HEADER|IMPORT|INSERT|MARGIN|MODULE|NATIVE|OBJECT|OFFSET|REMOTE|RESUME|SAVING|SIMPLE|SUBMIT|TABBED|TOKENS|UNIQUE|UNPACK|UPDATE|WINDOW|YELLOW|ACTUAL|ASPECT|CENTER|CURSOR|DELETE|DIALOG|DIVIDE|DURING|ERRORS|EVENTS|EXTEND|FILTER|HANDLE|HAVING|IGNORE|LITTLE|MEMORY|NO-GAP|OCCURS|OPTION|PERSON|PLACES|PUBLIC|REDUCE|REPORT|RESULT|SINGLE|SORTED|SWITCH|SYNTAX|TARGET|VALUES|WRITER|ASSERT|BLOCKS|BOUNDS|BUFFER|CHANGE|COLUMN|COMMIT|CONCAT|COPIES|CREATE|DDMMYY|DEFINE|ENDIAN|ESCAPE|EXPAND|KERNEL|LAYOUT|LEGACY|LEVELS|MMDDYY|NUMBER|OUTPUT|RANGES|READER|RETURN|SCREEN|SEARCH|SELECT|SHARED|SOURCE|STABLE|STATIC|SUBKEY|SUFFIX|TABLES|UNWIND|YYMMDD|ASSIGN|BACKUP|BEFORE|BINARY|BIT-OR|BLANKS|CLIENT|CODING|COMMON|DEMAND|DYNPRO|EXCEPT|EXISTS|EXPORT|FIELDS|GLOBAL|GROUPS|LENGTH|LOCALE|MEDIUM|METHOD|MODIFY|NESTED|OTHERS|REJECT|SCROLL|SUPPLY|SYMBOL|ENDFOR|STRLEN|ALIGN|BEGIN|BOUND|ENDAT|ENTRY|EVENT|FINAL|FLUSH|GRANT|INNER|SHORT|USING|WRITE|AFTER|BLACK|BLOCK|CLOCK|COLOR|COUNT|DUMMY|EMPTY|ENDDO|ENDON|GREEN|INDEX|INOUT|LEAVE|LEVEL|LINES|MODIF|ORDER|OUTER|RANGE|RESET|RETRY|RIGHT|SMART|SPLIT|STYLE|TABLE|THROW|UNDER|UNTIL|UPPER|UTF-8|WHERE|ALIAS|BLANK|CLEAR|CLOSE|EXACT|FETCH|FIRST|FOUND|GROUP|LLANG|LOCAL|OTHER|REGEX|SPOOL|TITLE|TYPES|VALID|WHILE|ALPHA|BOXED|CATCH|CHAIN|CHECK|CLASS|COVER|ENDIF|EQUIV|FIELD|FLOOR|FRAME|INPUT|LOWER|MATCH|NODES|PAGES|PRINT|RAISE|ROUND|SHIFT|SPACE|SPOTS|STAMP|STATE|TASKS|TIMES|TRMAC|ULINE|UNION|VALUE|WIDTH|EQUAL|LOG10|TRUNC|BLOB|CASE|CEIL|CLOB|COND|EXIT|FILE|GAPS|HOLD|INCL|INTO|KEEP|KEYS|LAST|LINE|LONG|LPAD|MAIL|MODE|OPEN|PINK|READ|ROWS|TEST|THEN|ZERO|AREA|BACK|BADI|BYTE|CAST|EDIT|EXEC|FAIL|FIND|FKEQ|FONT|FREE|GKEQ|HIDE|INIT|ITNO|LATE|LOOP|MAIN|MARK|MOVE|NEXT|NULL|RISK|ROLE|UNIT|WAIT|ZONE|BASE|CALL|CODE|DATA|DATE|FKGE|GKGE|HIGH|KIND|LEFT|LIST|MASK|MESH|NAME|NODE|PACK|PAGE|POOL|SEND|SIGN|SIZE|SOME|STOP|TASK|TEXT|TIME|USER|VARY|WITH|WORD|BLUE|CONV|COPY|DEEP|ELSE|FORM|FROM|HINT|ICON|JOIN|LIKE|LOAD|ONLY|PART|SCAN|SKIP|SORT|TYPE|UNIX|VIEW|WHEN|WORK|ACOS|ASIN|ATAN|COSH|EACH|FRAC|LESS|RTTI|SINH|SQRT|TANH|AVG|BIT|DIV|ISO|LET|OUT|PAD|SQL|ALL|CI_|CPI|END|LOB|LPI|MAX|MIN|NEW|OLE|RUN|SET|\?TO|YES|ABS|ADD|AND|BIG|FOR|HDB|JOB|LOW|NOT|SAP|TRY|VIA|XML|ANY|GET|IDS|KEY|MOD|OFF|PUT|RAW|RED|REF|SUM|TAB|XSD|CNT|COS|EXP|LOG|SIN|TAN|XOR|AT|CO|CP|DO|GT|ID|IF|NS|OR|BT|CA|CS|GE|NA|NB|EQ|IN|LT|NE|NO|OF|ON|PF|TO|AS|BY|CN|IS|LE|NP|UP|E|I|M|O|Z|C|X)\b/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}},68313:function(Ie){"use strict";Ie.exports=Z,Z.displayName="abnf",Z.aliases=[];function Z(b){(function(B){var Y="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";B.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+Y+"|<"+Y+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(b)}},5199:function(Ie){"use strict";Ie.exports=Z,Z.displayName="actionscript",Z.aliases=[];function Z(b){b.languages.actionscript=b.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),b.languages.actionscript["class-name"].alias="function",delete b.languages.actionscript.parameter,delete b.languages.actionscript["literal-property"],b.languages.markup&&b.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:b.languages.markup}})}},89693:function(Ie){"use strict";Ie.exports=Z,Z.displayName="ada",Z.aliases=[];function Z(b){b.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],"attr-name":/\b'\w+/,keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}},24001:function(Ie){"use strict";Ie.exports=Z,Z.displayName="agda",Z.aliases=[];function Z(b){(function(B){B.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(b)}},18018:function(Ie){"use strict";Ie.exports=Z,Z.displayName="al",Z.aliases=[];function Z(b){b.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}},36363:function(Ie){"use strict";Ie.exports=Z,Z.displayName="antlr4",Z.aliases=["g4"];function Z(b){b.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},b.languages.g4=b.languages.antlr4}},35281:function(Ie){"use strict";Ie.exports=Z,Z.displayName="apacheconf",Z.aliases=[];function Z(b){b.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}},10433:function(Ie,Z,b){"use strict";var B=b(11114);Ie.exports=Y,Y.displayName="apex",Y.aliases=[];function Y(s){s.register(B),function(E){var I=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,u=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!<keyword>))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(/<keyword>/g,function(){return I.source});function d(y){return RegExp(y.replace(/<CLASS-NAME>/g,function(){return u}),"i")}var g={keyword:I,punctuation:/[()\[\]{};,:.<>]/};E.languages.apex={comment:E.languages.clike.comment,string:E.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:E.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:d(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)<CLASS-NAME>/.source),lookbehind:!0,inside:g},{pattern:d(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:g},{pattern:d(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:g}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:I,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<<?=?|>{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(s)}},84039:function(Ie){"use strict";Ie.exports=Z,Z.displayName="apl",Z.aliases=[];function Z(b){b.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}},71336:function(Ie){"use strict";Ie.exports=Z,Z.displayName="applescript",Z.aliases=[];function Z(b){b.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}},4481:function(Ie){"use strict";Ie.exports=Z,Z.displayName="aql",Z.aliases=[];function Z(b){b.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}},2159:function(Ie,Z,b){"use strict";var B=b(80096);Ie.exports=Y,Y.displayName="arduino",Y.aliases=["ino"];function Y(s){s.register(B),s.languages.arduino=s.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),s.languages.ino=s.languages.arduino}},60274:function(Ie){"use strict";Ie.exports=Z,Z.displayName="arff",Z.aliases=[];function Z(b){b.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}},18738:function(Ie){"use strict";Ie.exports=Z,Z.displayName="asciidoc",Z.aliases=["adoc"];function Z(b){(function(B){var Y={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},s=B.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:Y,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)<?\d*>/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:Y.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:Y,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function E(I){I=I.split(" ");for(var u={},d=0,g=I.length;d<g;d++)u[I[d]]=s[I[d]];return u}Y.inside.interpreted.inside.rest=E("macro inline replacement entity"),s["passthrough-block"].inside.rest=E("macro"),s["literal-block"].inside.rest=E("callout"),s.table.inside.rest=E("comment-block passthrough-block literal-block other-block list-punctuation indented-block comment title attribute-entry attributes hr page-break admonition list-label callout macro inline replacement entity line-continuation"),s["other-block"].inside.rest=E("table list-punctuation indented-block comment attribute-entry attributes hr page-break admonition list-label macro inline replacement entity line-continuation"),s.title.inside.rest=E("macro inline replacement entity"),B.hooks.add("wrap",function(I){I.type==="entity"&&(I.attributes.title=I.content.value.replace(/&amp;/,"&"))}),B.languages.adoc=B.languages.asciidoc})(b)}},58572:function(Ie){"use strict";Ie.exports=Z,Z.displayName="asm6502",Z.aliases=[];function Z(b){b.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}},28937:function(Ie){"use strict";Ie.exports=Z,Z.displayName="asmatmel",Z.aliases=[];function Z(b){b.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?:ADC|ADD|ADIW|AND|ANDI|ASR|BCLR|BLD|BRBC|BRBS|BRCC|BRCS|BREAK|BREQ|BRGE|BRHC|BRHS|BRID|BRIE|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BRTC|BRTS|BRVC|BRVS|BSET|BST|CALL|CBI|CBR|CLC|CLH|CLI|CLN|CLR|CLS|CLT|CLV|CLZ|COM|CP|CPC|CPI|CPSE|DEC|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|adc|add|adiw|and|andi|asr|bclr|bld|brbc|brbs|brcc|brcs|break|breq|brge|brhc|brhs|brid|brie|brlo|brlt|brmi|brne|brpl|brsh|brtc|brts|brvc|brvs|bset|bst|call|cbi|cbr|clc|clh|cli|cln|clr|cls|clt|clv|clz|com|cp|cpc|cpi|cpse|dec|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&&?|\|\|?|[-+*/%&|^!=<>?]=?/,punctuation:/[(),:]/}}},78734:function(Ie,Z,b){"use strict";var B=b(61958);Ie.exports=Y,Y.displayName="aspnet",Y.aliases=[];function Y(s){s.register(B),s.languages.aspnet=s.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:s.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:s.languages.csharp}}}),s.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,s.languages.insertBefore("inside","punctuation",{directive:s.languages.aspnet.directive},s.languages.aspnet.tag.inside["attr-value"]),s.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),s.languages.insertBefore("aspnet",s.languages.javascript?"script":"tag",{"asp-script":{pattern:/(<script(?=.*runat=['"]?server\b)[^>]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:s.languages.csharp||{}}})}},6681:function(Ie){"use strict";Ie.exports=Z,Z.displayName="autohotkey",Z.aliases=[];function Z(b){b.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,selector:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,important:/#\b(?:AllowSameLineComments|ClipboardTimeout|CommentFlag|DerefChar|ErrorStdOut|EscapeChar|HotkeyInterval|HotkeyModifierTimeout|Hotstring|If|IfTimeout|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Include|IncludeAgain|InputLevel|InstallKeybdHook|InstallMouseHook|KeyHistory|MaxHotkeysPerInterval|MaxMem|MaxThreads|MaxThreadsBuffer|MaxThreadsPerHotkey|MenuMaskKey|NoEnv|NoTrayIcon|Persistent|SingleInstance|UseHook|Warn|WinActivateForce)\b/i,keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}},53358:function(Ie){"use strict";Ie.exports=Z,Z.displayName="autoit",Z.aliases=[];function Z(b){b.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}},81700:function(Ie){"use strict";Ie.exports=Z,Z.displayName="avisynth",Z.aliases=["avs"];function Z(b){(function(B){function Y(y,S){return y.replace(/<<(\d+)>>/g,function(v,c){return S[+c]})}function s(y,S,v){return RegExp(Y(y,S),v||"")}var E=/bool|clip|float|int|string|val/.source,I=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),u=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),d=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),g=[I,u,d].join("|");B.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:s(/\b(?:<<0>>)\s+("?)\w+\1/.source,[E],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:s(/\b(?:<<0>>)\b/.source,[g],"i"),alias:"function"},"type-cast":{pattern:s(/\b(?:<<0>>)(?=\s*\()/.source,[E],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},B.languages.avs=B.languages.avisynth})(b)}},37219:function(Ie){"use strict";Ie.exports=Z,Z.displayName="avroIdl",Z.aliases=[];function Z(b){b.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},b.languages.avdl=b.languages["avro-idl"]}},6979:function(Ie){"use strict";Ie.exports=Z,Z.displayName="bash",Z.aliases=["shell"];function Z(b){(function(B){var Y="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",s={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},E={bash:s,environment:{pattern:RegExp("\\$"+Y),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+Y),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};B.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+Y),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:E},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:s}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:E},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:E.entity}}],environment:{pattern:RegExp("\\$?"+Y),alias:"constant"},variable:E.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},s.inside=B.languages.bash;for(var I=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],u=E.variable[1].inside,d=0;d<I.length;d++)u[I[d]]=B.languages.bash[I[d]];B.languages.shell=B.languages.bash})(b)}},46241:function(Ie){"use strict";Ie.exports=Z,Z.displayName="basic",Z.aliases=[];function Z(b){b.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}},94781:function(Ie){"use strict";Ie.exports=Z,Z.displayName="batch",Z.aliases=[];function Z(b){(function(B){var Y=/%%?[~:\w]+%?|!\S+!/,s={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},E=/"(?:[\\"]"|[^"])*"(?!")/,I=/(?:\b|-)\d+\b/;B.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:E,parameter:s,variable:Y,number:I,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:E,parameter:s,variable:Y,number:I,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:E,parameter:s,variable:[Y,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:I,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:E,parameter:s,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:Y,number:I,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(b)}},62260:function(Ie){"use strict";Ie.exports=Z,Z.displayName="bbcode",Z.aliases=["shortcode"];function Z(b){b.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},b.languages.shortcode=b.languages.bbcode}},36153:function(Ie){"use strict";Ie.exports=Z,Z.displayName="bicep",Z.aliases=[];function Z(b){b.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},b.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=b.languages.bicep}},59258:function(Ie){"use strict";Ie.exports=Z,Z.displayName="birb",Z.aliases=[];function Z(b){b.languages.birb=b.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),b.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}},62890:function(Ie,Z,b){"use strict";var B=b(65806);Ie.exports=Y,Y.displayName="bison",Y.aliases=[];function Y(s){s.register(B),s.languages.bison=s.languages.extend("c",{}),s.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:s.languages.c}},comment:s.languages.c.comment,string:s.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}},15958:function(Ie){"use strict";Ie.exports=Z,Z.displayName="bnf",Z.aliases=["rbnf"];function Z(b){b.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},b.languages.rbnf=b.languages.bnf}},61321:function(Ie){"use strict";Ie.exports=Z,Z.displayName="brainfuck",Z.aliases=[];function Z(b){b.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}},77856:function(Ie){"use strict";Ie.exports=Z,Z.displayName="brightscript",Z.aliases=[];function Z(b){b.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},b.languages.brightscript["directive-statement"].inside.expression.inside=b.languages.brightscript}},90741:function(Ie){"use strict";Ie.exports=Z,Z.displayName="bro",Z.aliases=[];function Z(b){b.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}},83410:function(Ie){"use strict";Ie.exports=Z,Z.displayName="bsl",Z.aliases=[];function Z(b){b.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},b.languages.oscript=b.languages.bsl}},65806:function(Ie){"use strict";Ie.exports=Z,Z.displayName="c",Z.aliases=[];function Z(b){b.languages.c=b.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),b.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),b.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},b.languages.c.string],char:b.languages.c.char,comment:b.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:b.languages.c}}}}),b.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete b.languages.c.boolean}},33039:function(Ie){"use strict";Ie.exports=Z,Z.displayName="cfscript",Z.aliases=[];function Z(b){b.languages.cfscript=b.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|<=?|>=?|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|[?:]/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),b.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete b.languages.cfscript["class-name"],b.languages.cfc=b.languages.cfscript}},85082:function(Ie,Z,b){"use strict";var B=b(80096);Ie.exports=Y,Y.displayName="chaiscript",Y.aliases=[];function Y(s){s.register(B),s.languages.chaiscript=s.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[s.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),s.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),s.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:s.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}},79415:function(Ie){"use strict";Ie.exports=Z,Z.displayName="cil",Z.aliases=[];function Z(b){b.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}},29726:function(Ie){"use strict";Ie.exports=Z,Z.displayName="clike",Z.aliases=[];function Z(b){b.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}},62849:function(Ie){"use strict";Ie.exports=Z,Z.displayName="clojure",Z.aliases=[];function Z(b){b.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}},55773:function(Ie){"use strict";Ie.exports=Z,Z.displayName="cmake",Z.aliases=[];function Z(b){b.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_(?:BINARY_DIR|DESCRIPTION|HOMEPAGE_URL|NAME|SOURCE_DIR|VERSION|VERSION_(?:MAJOR|MINOR|PATCH|TWEAK))|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE|XCODE_VERSION))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|GLOBAL_KEYWORD|GLOBAL_PROJECT_TYPES|GLOBAL_ROOTNAMESPACE|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}},32762:function(Ie){"use strict";Ie.exports=Z,Z.displayName="cobol",Z.aliases=[];function Z(b){b.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}},43576:function(Ie){"use strict";Ie.exports=Z,Z.displayName="coffeescript",Z.aliases=["coffee"];function Z(b){(function(B){var Y=/#(?!\{).+/,s={pattern:/#\{[^}]+\}/,alias:"variable"};B.languages.coffeescript=B.languages.extend("javascript",{comment:Y,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:s}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),B.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:Y,interpolation:s}}}),B.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:B.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:s}}]}),B.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete B.languages.coffeescript["template-string"],B.languages.coffee=B.languages.coffeescript})(b)}},71794:function(Ie){"use strict";Ie.exports=Z,Z.displayName="concurnas",Z.aliases=["conc"];function Z(b){b.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},b.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:b.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:b.languages.concurnas},string:/[\s\S]+/}}}),b.languages.conc=b.languages.concurnas}},1315:function(Ie){"use strict";Ie.exports=Z,Z.displayName="coq",Z.aliases=[];function Z(b){(function(B){for(var Y=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|<self>)*\*\)/.source,s=0;s<2;s++)Y=Y.replace(/<self>/g,function(){return Y});Y=Y.replace(/<self>/g,"[]"),B.languages.coq={comment:RegExp(Y),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|<comment>)*\]/.source.replace(/<comment>/g,function(){return Y})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(Y),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(b)}},80096:function(Ie,Z,b){"use strict";var B=b(65806);Ie.exports=Y,Y.displayName="cpp",Y.aliases=[];function Y(s){s.register(B),function(E){var I=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,u=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return I.source});E.languages.cpp=E.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return I.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:I,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),E.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return u})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),E.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:E.languages.cpp}}}}),E.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),E.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:E.languages.extend("cpp",{})}}),E.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},E.languages.cpp["base-clause"])}(s)}},99176:function(Ie,Z,b){"use strict";var B=b(56939);Ie.exports=Y,Y.displayName="crystal",Y.aliases=[];function Y(s){s.register(B),function(E){E.languages.crystal=E.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,E.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),E.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:E.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:E.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(s)}},61958:function(Ie){"use strict";Ie.exports=Z,Z.displayName="csharp",Z.aliases=["dotnet","cs"];function Z(b){(function(B){function Y(Le,ee){return Le.replace(/<<(\d+)>>/g,function(se,le){return"(?:"+ee[+le]+")"})}function s(Le,ee,se){return RegExp(Y(Le,ee),se||"")}function E(Le,ee){for(var se=0;se<ee;se++)Le=Le.replace(/<<self>>/g,function(){return"(?:"+Le+")"});return Le.replace(/<<self>>/g,"[^\\s\\S]")}var I={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function u(Le){return"\\b(?:"+Le.trim().replace(/ /g,"|")+")\\b"}var d=u(I.typeDeclaration),g=RegExp(u(I.type+" "+I.typeDeclaration+" "+I.contextual+" "+I.other)),y=u(I.typeDeclaration+" "+I.contextual+" "+I.other),S=u(I.type+" "+I.typeDeclaration+" "+I.other),v=E(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),c=E(/\((?:[^()]|<<self>>)*\)/.source,2),h=/@?\b[A-Za-z_]\w*\b/.source,m=Y(/<<0>>(?:\s*<<1>>)?/.source,[h,v]),x=Y(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[y,m]),T=/\[\s*(?:,\s*)*\]/.source,_=Y(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[x,T]),R=Y(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[v,c,T]),A=Y(/\(<<0>>+(?:,<<0>>+)+\)/.source,[R]),N=Y(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[A,x,T]),L={keyword:g,punctuation:/[<>()?,.:[\]]/},M=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,F=/"(?:\\.|[^\\"\r\n])*"/.source,H=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;B.languages.csharp=B.languages.extend("clike",{string:[{pattern:s(/(^|[^$\\])<<0>>/.source,[H]),lookbehind:!0,greedy:!0},{pattern:s(/(^|[^@$\\])<<0>>/.source,[F]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:s(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[x]),lookbehind:!0,inside:L},{pattern:s(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[h,N]),lookbehind:!0,inside:L},{pattern:s(/(\busing\s+)<<0>>(?=\s*=)/.source,[h]),lookbehind:!0},{pattern:s(/(\b<<0>>\s+)<<1>>/.source,[d,m]),lookbehind:!0,inside:L},{pattern:s(/(\bcatch\s*\(\s*)<<0>>/.source,[x]),lookbehind:!0,inside:L},{pattern:s(/(\bwhere\s+)<<0>>/.source,[h]),lookbehind:!0},{pattern:s(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[_]),lookbehind:!0,inside:L},{pattern:s(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[N,S,h]),inside:L}],keyword:g,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),B.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),B.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:s(/([(,]\s*)<<0>>(?=\s*:)/.source,[h]),lookbehind:!0,alias:"punctuation"}}),B.languages.insertBefore("csharp","class-name",{namespace:{pattern:s(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[h]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:s(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[c]),lookbehind:!0,alias:"class-name",inside:L},"return-type":{pattern:s(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[N,x]),inside:L,alias:"class-name"},"constructor-invocation":{pattern:s(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[N]),lookbehind:!0,inside:L,alias:"class-name"},"generic-method":{pattern:s(/<<0>>\s*<<1>>(?=\s*\()/.source,[h,v]),inside:{function:s(/^<<0>>/.source,[h]),generic:{pattern:RegExp(v),alias:"class-name",inside:L}}},"type-list":{pattern:s(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[d,m,h,N,g.source,c,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:s(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[m,c]),lookbehind:!0,greedy:!0,inside:B.languages.csharp},keyword:g,"class-name":{pattern:RegExp(N),greedy:!0,inside:L},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var P=F+"|"+M,V=Y(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[P]),G=E(Y(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[V]),2),Q=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,ne=Y(/<<0>>(?:\s*\(<<1>>*\))?/.source,[x,G]);B.languages.insertBefore("csharp","class-name",{attribute:{pattern:s(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[Q,ne]),lookbehind:!0,greedy:!0,inside:{target:{pattern:s(/^<<0>>(?=\s*:)/.source,[Q]),alias:"keyword"},"attribute-arguments":{pattern:s(/\(<<0>>*\)/.source,[G]),inside:B.languages.csharp},"class-name":{pattern:RegExp(x),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var ue=/:[^}\r\n]+/.source,ae=E(Y(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[V]),2),he=Y(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[ae,ue]),ce=E(Y(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[P]),2),we=Y(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[ce,ue]);function me(Le,ee){return{interpolation:{pattern:s(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[Le]),lookbehind:!0,inside:{"format-string":{pattern:s(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[ee,ue]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:B.languages.csharp}}},string:/[\s\S]+/}}B.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:s(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[he]),lookbehind:!0,greedy:!0,inside:me(he,ae)},{pattern:s(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[we]),lookbehind:!0,greedy:!0,inside:me(we,ce)}],char:{pattern:RegExp(M),greedy:!0}}),B.languages.dotnet=B.languages.cs=B.languages.csharp})(b)}},90312:function(Ie,Z,b){"use strict";var B=b(61958);Ie.exports=Y,Y.displayName="cshtml",Y.aliases=["razor"];function Y(s){s.register(B),function(E){var I=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,u=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function d(_,R){for(var A=0;A<R;A++)_=_.replace(/<self>/g,function(){return"(?:"+_+")"});return _.replace(/<self>/g,"[^\\s\\S]").replace(/<str>/g,"(?:"+u+")").replace(/<comment>/g,"(?:"+I+")")}var g=d(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),y=d(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,2),S=d(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),v=d(/<(?:[^<>'"@/]|<str>|<comment>|<self>)*>/.source,2),c=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,h=/(?!\d)[^\s>\/=$<%]+/.source+c+/\s*\/?>/.source,m=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+c+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+h+"|"+d(/<\1/.source+c+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+h+"|<self>")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/</.source+h+")";E.languages.cshtml=E.languages.extend("markup",{});var x=E.languages.insertBefore("csharp","string",{html:{pattern:RegExp(m),greedy:!0,inside:E.languages.cshtml}},{csharp:E.languages.extend("csharp",{})}),T={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:x};E.languages.insertBefore("cshtml","prolog",{"razor-comment":{pattern:/@\*[\s\S]*?\*@/,greedy:!0,alias:"comment"},block:{pattern:RegExp(/(^|[^@])@/.source+"(?:"+[S,/(?:code|functions)\s*/.source+S,/(?:for|foreach|lock|switch|using|while)\s*/.source+g+/\s*/.source+S,/do\s*/.source+S+/\s*while\s*/.source+g+/(?:\s*;)?/.source,/try\s*/.source+S+/\s*catch\s*/.source+g+/\s*/.source+S+/\s*finally\s*/.source+S,/if\s*/.source+g+/\s*/.source+S+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+g+")?"+/\s*/.source+S+")*"].join("|")+")"),lookbehind:!0,greedy:!0,inside:{keyword:/^@\w*/,csharp:T}},directive:{pattern:/^([ \t]*)@(?:addTagHelper|attribute|implements|inherits|inject|layout|model|namespace|page|preservewhitespace|removeTagHelper|section|tagHelperPrefix|using)(?=\s).*/m,lookbehind:!0,greedy:!0,inside:{keyword:/^@\w+/,csharp:T}},value:{pattern:RegExp(/(^|[^@])@/.source+/(?:await\b\s*)?/.source+"(?:"+/\w+\b/.source+"|"+g+")(?:"+/[?!]?\.\w+\b/.source+"|"+g+"|"+y+"|"+v+g+")*"),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:T}},"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),E.languages.razor=E.languages.cshtml}(s)}},65447:function(Ie){"use strict";Ie.exports=Z,Z.displayName="csp",Z.aliases=[];function Z(b){(function(B){function Y(s){return RegExp(/([ \t])/.source+"(?:"+s+")"+/(?=[\s;]|$)/.source,"i")}B.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:Y(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:Y(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:Y(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:Y(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:Y(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:Y(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:Y(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(b)}},4762:function(Ie){"use strict";Ie.exports=Z,Z.displayName="cssExtras",Z.aliases=[];function Z(b){(function(B){var Y=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,s;B.languages.css.selector={pattern:B.languages.css.selector.pattern,lookbehind:!0,inside:s={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+Y.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[Y,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},B.languages.css.atrule.inside["selector-function-argument"].inside=s,B.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var E={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},I={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};B.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:E,number:I,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:E,number:I})})(b)}},12049:function(Ie){"use strict";Ie.exports=Z,Z.displayName="css",Z.aliases=[];function Z(b){(function(B){var Y=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;B.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+Y.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+Y.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+Y.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:Y,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},B.languages.css.atrule.inside.rest=B.languages.css;var s=B.languages.markup;s&&(s.tag.addInlined("style","css"),s.tag.addAttribute("style","css"))})(b)}},78090:function(Ie){"use strict";Ie.exports=Z,Z.displayName="csv",Z.aliases=[];function Z(b){b.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}},40315:function(Ie){"use strict";Ie.exports=Z,Z.displayName="cypher",Z.aliases=[];function Z(b){b.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}},7902:function(Ie){"use strict";Ie.exports=Z,Z.displayName="d",Z.aliases=[];function Z(b){b.languages.d=b.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),b.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),b.languages.insertBefore("d","keyword",{property:/\B@\w*/}),b.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}},28651:function(Ie){"use strict";Ie.exports=Z,Z.displayName="dart",Z.aliases=[];function Z(b){(function(B){var Y=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],s=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,E={pattern:RegExp(s+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};B.languages.dart=B.languages.extend("clike",{"class-name":[E,{pattern:RegExp(s+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:E.inside}],keyword:Y,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),B.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:B.languages.dart}}},string:/[\s\S]+/}},string:void 0}),B.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),B.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":E,keyword:Y,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(b)}},55579:function(Ie){"use strict";Ie.exports=Z,Z.displayName="dataweave",Z.aliases=[];function Z(b){(function(B){B.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(b)}},93685:function(Ie){"use strict";Ie.exports=Z,Z.displayName="dax",Z.aliases=[];function Z(b){b.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}},13934:function(Ie){"use strict";Ie.exports=Z,Z.displayName="dhall",Z.aliases=[];function Z(b){b.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},b.languages.dhall.string.inside.interpolation.inside.expression.inside=b.languages.dhall}},93336:function(Ie){"use strict";Ie.exports=Z,Z.displayName="diff",Z.aliases=[];function Z(b){(function(B){B.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var Y={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(Y).forEach(function(s){var E=Y[s],I=[];/^\w+$/.test(s)||I.push(/\w+/.exec(s)[0]),s==="diff"&&I.push("bold"),B.languages.diff[s]={pattern:RegExp("^(?:["+E+`].*(?:\r
?|
|(?![\\s\\S])))+`,"m"),alias:I,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(s)[0]}}}}),Object.defineProperty(B.languages.diff,"PREFIXES",{value:Y})})(b)}},13294:function(Ie,Z,b){"use strict";var B=b(93205);Ie.exports=Y,Y.displayName="django",Y.aliases=["jinja2"];function Y(s){s.register(B),function(E){E.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var I=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,u=E.languages["markup-templating"];E.hooks.add("before-tokenize",function(d){u.buildPlaceholders(d,"django",I)}),E.hooks.add("after-tokenize",function(d){u.tokenizePlaceholders(d,"django")}),E.languages.jinja2=E.languages.django,E.hooks.add("before-tokenize",function(d){u.buildPlaceholders(d,"jinja2",I)}),E.hooks.add("after-tokenize",function(d){u.tokenizePlaceholders(d,"jinja2")})}(s)}},38223:function(Ie){"use strict";Ie.exports=Z,Z.displayName="dnsZoneFile",Z.aliases=[];function Z(b){b.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},b.languages["dns-zone"]=b.languages["dns-zone-file"]}},97266:function(Ie){"use strict";Ie.exports=Z,Z.displayName="docker",Z.aliases=["dockerfile"];function Z(b){(function(B){var Y=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,s=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return Y}),E=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,I=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return E}),u={pattern:RegExp(E),greedy:!0},d={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function g(y,S){return y=y.replace(/<OPT>/g,function(){return I}).replace(/<SP>/g,function(){return s}),RegExp(y,S)}B.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:g(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[u,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:g(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:g(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:g(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:d,string:u,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:d},B.languages.dockerfile=B.languages.docker})(b)}},77125:function(Ie){"use strict";Ie.exports=Z,Z.displayName="dot",Z.aliases=["gv"];function Z(b){(function(B){var Y="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!<!--)<(?:[^<>"']|"[^"]*"|'[^']*')+>|<!--(?:[^-]|-(?!->))*-->)*>/.source].join("|")+")",s={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:B.languages.markup}};function E(I,u){return RegExp(I.replace(/<ID>/g,function(){return Y}),u)}B.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:E(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)<ID>/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:s},"attr-value":{pattern:E(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:s},"attr-name":{pattern:E(/([\[;, \t\r\n])<ID>(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:s},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:E(/(^|[^-.\w\x80-\uFFFF\\])<ID>/.source),lookbehind:!0,greedy:!0,inside:s},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},B.languages.gv=B.languages.dot})(b)}},36500:function(Ie){"use strict";Ie.exports=Z,Z.displayName="ebnf",Z.aliases=[];function Z(b){b.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}},30296:function(Ie){"use strict";Ie.exports=Z,Z.displayName="editorconfig",Z.aliases=[];function Z(b){b.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}},50115:function(Ie){"use strict";Ie.exports=Z,Z.displayName="eiffel",Z.aliases=[];function Z(b){b.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}},20791:function(Ie,Z,b){"use strict";var B=b(93205);Ie.exports=Y,Y.displayName="ejs",Y.aliases=["eta"];function Y(s){s.register(B),function(E){E.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:E.languages.javascript}},E.hooks.add("before-tokenize",function(I){var u=/<%(?!%)[\s\S]+?%>/g;E.languages["markup-templating"].buildPlaceholders(I,"ejs",u)}),E.hooks.add("after-tokenize",function(I){E.languages["markup-templating"].tokenizePlaceholders(I,"ejs")}),E.languages.eta=E.languages.ejs}(s)}},11974:function(Ie){"use strict";Ie.exports=Z,Z.displayName="elixir",Z.aliases=[];function Z(b){b.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},b.languages.elixir.string.forEach(function(B){B.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:b.languages.elixir}}}})}},8645:function(Ie){"use strict";Ie.exports=Z,Z.displayName="elm",Z.aliases=[];function Z(b){b.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}},84790:function(Ie,Z,b){"use strict";var B=b(56939),Y=b(93205);Ie.exports=s,s.displayName="erb",s.aliases=[];function s(E){E.register(B),E.register(Y),function(I){I.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:I.languages.ruby}},I.hooks.add("before-tokenize",function(u){var d=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;I.languages["markup-templating"].buildPlaceholders(u,"erb",d)}),I.hooks.add("after-tokenize",function(u){I.languages["markup-templating"].tokenizePlaceholders(u,"erb")})}(E)}},4502:function(Ie){"use strict";Ie.exports=Z,Z.displayName="erlang",Z.aliases=[];function Z(b){b.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}},66055:function(Ie,Z,b){"use strict";var B=b(59803),Y=b(93205);Ie.exports=s,s.displayName="etlua",s.aliases=[];function s(E){E.register(B),E.register(Y),function(I){I.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:I.languages.lua}},I.hooks.add("before-tokenize",function(u){var d=/<%[\s\S]+?%>/g;I.languages["markup-templating"].buildPlaceholders(u,"etlua",d)}),I.hooks.add("after-tokenize",function(u){I.languages["markup-templating"].tokenizePlaceholders(u,"etlua")})}(E)}},34668:function(Ie){"use strict";Ie.exports=Z,Z.displayName="excelFormula",Z.aliases=[];function Z(b){b.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"keyword"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"property",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"property"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},b.languages.xlsx=b.languages.xls=b.languages["excel-formula"]}},95126:function(Ie){"use strict";Ie.exports=Z,Z.displayName="factor",Z.aliases=[];function Z(b){(function(B){var Y={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},s={number:/\\[^\s']|%\w/},E={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:Y},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:Y},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:Y}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:s.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:s},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:s}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:s}},I=function(y){return(y+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},u=function(y){return new RegExp("(^|\\s)(?:"+y.map(I).join("|")+")(?=\\s|$)")},d={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","<wrapper>","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated","<PRIVATE",">>>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","<slice>","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","<iota>","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","<reversed>","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","<repetition>","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","<fp-nan>","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(d).forEach(function(y){E[y].pattern=u(d[y])});var g=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","input<sequence","append-outputs","drop-inputs","inputs","smart-2reduce","drop-outputs","smart-reduce","preserving","smart-when","outputs","append-outputs-as","smart-unless","smart-if*","sum-outputs","input<sequence-unsafe","output>sequence"];E.combinators.pattern=u(g),B.languages.factor=E})(b)}},90618:function(Ie){"use strict";Ie.exports=Z,Z.displayName="$false",Z.aliases=[];function Z(b){(function(B){B.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()<BDO®]/,alias:"bold"}}})(b)}},63128:function(Ie){"use strict";Ie.exports=Z,Z.displayName="firestoreSecurityRules",Z.aliases=[];function Z(b){b.languages["firestore-security-rules"]=b.languages.extend("clike",{comment:/\/\/.*/,keyword:/\b(?:allow|function|if|match|null|return|rules_version|service)\b/,operator:/&&|\|\||[<>!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete b.languages["firestore-security-rules"]["class-name"],b.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}},37225:function(Ie){"use strict";Ie.exports=Z,Z.displayName="flow",Z.aliases=[];function Z(b){(function(B){B.languages.flow=B.languages.extend("javascript",{}),B.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),B.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete B.languages.flow.parameter,B.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(B.languages.flow.keyword)||(B.languages.flow.keyword=[B.languages.flow.keyword]),B.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(b)}},16725:function(Ie){"use strict";Ie.exports=Z,Z.displayName="fortran",Z.aliases=[];function Z(b){b.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}},95559:function(Ie){"use strict";Ie.exports=Z,Z.displayName="fsharp",Z.aliases=[];function Z(b){b.languages.fsharp=b.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|<?\|{1,3}>?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),b.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),b.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),b.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:b.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}},82114:function(Ie,Z,b){"use strict";var B=b(93205);Ie.exports=Y,Y.displayName="ftl",Y.aliases=[];function Y(s){s.register(B),function(E){for(var I=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,u=0;u<2;u++)I=I.replace(/<expr>/g,function(){return I});I=I.replace(/<expr>/g,/[^\s\S]/.source);var d={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,function(){return I})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,function(){return I})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};d.string[1].inside.interpolation.inside.rest=d,E.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:d}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:d}}}},E.hooks.add("before-tokenize",function(g){var y=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return I}),"gi");E.languages["markup-templating"].buildPlaceholders(g,"ftl",y)}),E.hooks.add("after-tokenize",function(g){E.languages["markup-templating"].tokenizePlaceholders(g,"ftl")})}(s)}},6806:function(Ie){"use strict";Ie.exports=Z,Z.displayName="gap",Z.aliases=[];function Z(b){b.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},b.languages.gap.shell.inside.gap.inside=b.languages.gap}},12208:function(Ie){"use strict";Ie.exports=Z,Z.displayName="gcode",Z.aliases=[];function Z(b){b.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}},62728:function(Ie){"use strict";Ie.exports=Z,Z.displayName="gdscript",Z.aliases=[];function Z(b){b.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}},81549:function(Ie){"use strict";Ie.exports=Z,Z.displayName="gedcom",Z.aliases=[];function Z(b){b.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},tag:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"string"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}},6024:function(Ie){"use strict";Ie.exports=Z,Z.displayName="gherkin",Z.aliases=[];function Z(b){(function(B){var Y=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;B.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+Y+")(?:"+Y+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(Y),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(b)}},13600:function(Ie){"use strict";Ie.exports=Z,Z.displayName="git",Z.aliases=[];function Z(b){b.languages.git={comment:/^#.*/m,deleted:/^[-].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}},3322:function(Ie,Z,b){"use strict";var B=b(65806);Ie.exports=Y,Y.displayName="glsl",Y.aliases=[];function Y(s){s.register(B),s.languages.glsl=s.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}},53877:function(Ie){"use strict";Ie.exports=Z,Z.displayName="gml",Z.aliases=[];function Z(b){b.languages.gamemakerlanguage=b.languages.gml=b.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}},60794:function(Ie){"use strict";Ie.exports=Z,Z.displayName="gn",Z.aliases=["gni"];function Z(b){b.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},b.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=b.languages.gn,b.languages.gni=b.languages.gn}},20222:function(Ie){"use strict";Ie.exports=Z,Z.displayName="goModule",Z.aliases=[];function Z(b){b.languages["go-mod"]=b.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}},51519:function(Ie){"use strict";Ie.exports=Z,Z.displayName="go",Z.aliases=[];function Z(b){b.languages.go=b.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),b.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete b.languages.go["class-name"]}},94055:function(Ie){"use strict";Ie.exports=Z,Z.displayName="graphql",Z.aliases=[];function Z(b){b.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:b.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},b.hooks.add("after-tokenize",function(Y){if(Y.language!=="graphql")return;var s=Y.tokens.filter(function(T){return typeof T!="string"&&T.type!=="comment"&&T.type!=="scalar"}),E=0;function I(T){return s[E+T]}function u(T,_){_=_||0;for(var R=0;R<T.length;R++){var A=I(R+_);if(!A||A.type!==T[R])return!1}return!0}function d(T,_){for(var R=1,A=E;A<s.length;A++){var N=s[A],L=N.content;if(N.type==="punctuation"&&typeof L=="string"){if(T.test(L))R++;else if(_.test(L)&&(R--,R===0))return A}}return-1}function g(T,_){var R=T.alias;R?Array.isArray(R)||(T.alias=R=[R]):T.alias=R=[],R.push(_)}for(;E<s.length;){var y=s[E++];if(y.type==="keyword"&&y.content==="mutation"){var S=[];if(u(["definition-mutation","punctuation"])&&I(1).content==="("){E+=2;var v=d(/^\($/,/^\)$/);if(v===-1)continue;for(;E<v;E++){var c=I(0);c.type==="variable"&&(g(c,"variable-input"),S.push(c.content))}E=v+1}if(u(["punctuation","property-query"])&&I(0).content==="{"&&(E++,g(I(0),"property-mutation"),S.length>0)){var h=d(/^\{$/,/^\}$/);if(h===-1)continue;for(var m=E;m<h;m++){var x=s[m];x.type==="variable"&&S.indexOf(x.content)>=0&&g(x,"variable-input")}}}}})}},43826:function(Ie){"use strict";Ie.exports=Z,Z.displayName="groovy",Z.aliases=[];function Z(b){b.languages.groovy=b.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),b.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),b.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),b.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),b.hooks.add("wrap",function(B){if(B.language==="groovy"&&B.type==="string"){var Y=B.content.value[0];if(Y!="'"){var s=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;Y==="$"&&(s=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),B.content.value=B.content.value.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),B.content=b.highlight(B.content.value,{expression:{pattern:s,lookbehind:!0,inside:b.languages.groovy}}),B.classes.push(Y==="/"?"regex":"gstring")}}})}},29536:function(Ie,Z,b){"use strict";var B=b(56939);Ie.exports=Y,Y.displayName="haml",Y.aliases=[];function Y(s){s.register(B),function(E){E.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:E.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:E.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:E.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:E.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:E.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:E.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:E.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var I="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",u=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],d={},g=0,y=u.length;g<y;g++){var S=u[g];S=typeof S=="string"?{filter:S,language:S}:S,E.languages[S.language]&&(d["filter-"+S.filter]={pattern:RegExp(I.replace("{{filter_name}}",function(){return S.filter})),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[S.language,"language-"+S.language],inside:E.languages[S.language]}}})}E.languages.insertBefore("haml","filter",d)}(s)}},82834:function(Ie,Z,b){"use strict";var B=b(93205);Ie.exports=Y,Y.displayName="handlebars",Y.aliases=["hbs"];function Y(s){s.register(B),function(E){E.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},E.hooks.add("before-tokenize",function(I){var u=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;E.languages["markup-templating"].buildPlaceholders(I,"handlebars",u)}),E.hooks.add("after-tokenize",function(I){E.languages["markup-templating"].tokenizePlaceholders(I,"handlebars")}),E.languages.hbs=E.languages.handlebars}(s)}},58090:function(Ie){"use strict";Ie.exports=Z,Z.displayName="haskell",Z.aliases=["hs"];function Z(b){b.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},b.languages.hs=b.languages.haskell}},95121:function(Ie){"use strict";Ie.exports=Z,Z.displayName="haxe",Z.aliases=[];function Z(b){b.languages.haxe=b.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<<?|>{1,3}|[-+*/%!=&|^])=?|[?:~]/}),b.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:b.languages.haxe}}},string:/[\s\S]+/}}}),b.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:b.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),b.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}},59904:function(Ie){"use strict";Ie.exports=Z,Z.displayName="hcl",Z.aliases=[];function Z(b){b.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}},9436:function(Ie,Z,b){"use strict";var B=b(65806);Ie.exports=Y,Y.displayName="hlsl",Y.aliases=[];function Y(s){s.register(B),s.languages.hlsl=s.languages.extend("c",{"class-name":[s.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}},60591:function(Ie){"use strict";Ie.exports=Z,Z.displayName="hoon",Z.aliases=[];function Z(b){b.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}},76942:function(Ie){"use strict";Ie.exports=Z,Z.displayName="hpkp",Z.aliases=[];function Z(b){b.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}},60561:function(Ie){"use strict";Ie.exports=Z,Z.displayName="hsts",Z.aliases=[];function Z(b){b.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}},49660:function(Ie){"use strict";Ie.exports=Z,Z.displayName="http",Z.aliases=[];function Z(b){(function(B){function Y(S){return RegExp("(^(?:"+S+"):[ ]*(?![ ]))[^]+","i")}B.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:B.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:Y(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:B.languages.csp},{pattern:Y(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:B.languages.hpkp},{pattern:Y(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:B.languages.hsts},{pattern:Y(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var s=B.languages,E={"application/javascript":s.javascript,"application/json":s.json||s.javascript,"application/xml":s.xml,"text/xml":s.xml,"text/html":s.html,"text/css":s.css,"text/plain":s.plain},I={"application/json":!0,"application/xml":!0};function u(S){var v=S.replace(/^[a-z]+\//,""),c="\\w+/(?:[\\w.-]+\\+)+"+v+"(?![+\\w.-])";return"(?:"+S+"|"+c+")"}var d;for(var g in E)if(E[g]){d=d||{};var y=I[g]?u(g):g;d[g.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+y+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:E[g]}}d&&B.languages.insertBefore("http","header",d)})(b)}},30615:function(Ie){"use strict";Ie.exports=Z,Z.displayName="ichigojam",Z.aliases=[];function Z(b){b.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}},93865:function(Ie){"use strict";Ie.exports=Z,Z.displayName="icon",Z.aliases=[];function Z(b){b.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|<?=?)|>>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}},51078:function(Ie){"use strict";Ie.exports=Z,Z.displayName="icuMessageFormat",Z.aliases=[];function Z(b){(function(B){function Y(g,y){return y<=0?/[]/.source:g.replace(/<SELF>/g,function(){return Y(g,y-1)})}var s=/'[{}:=,](?:[^']|'')*'(?!')/,E={pattern:/''/,greedy:!0,alias:"operator"},I={pattern:s,greedy:!0,inside:{escape:E}},u=Y(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return s.source}),8),d={pattern:RegExp(u),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};B.languages["icu-message-format"]={argument:{pattern:RegExp(u),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":d,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":d,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+Y(/(?:[^{}']|'[^']*'|\{(?:<SELF>)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:E,string:I},d.inside.message.inside=B.languages["icu-message-format"],B.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=B.languages["icu-message-format"]})(b)}},91178:function(Ie,Z,b){"use strict";var B=b(58090);Ie.exports=Y,Y.displayName="idris",Y.aliases=["idr"];function Y(s){s.register(B),s.languages.idris=s.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),s.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),s.languages.idr=s.languages.idris}},40011:function(Ie){"use strict";Ie.exports=Z,Z.displayName="iecst",Z.aliases=[];function Z(b){b.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}},12017:function(Ie){"use strict";Ie.exports=Z,Z.displayName="ignore",Z.aliases=["gitignore","hgignore","npmignore"];function Z(b){(function(B){B.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},B.languages.gitignore=B.languages.ignore,B.languages.hgignore=B.languages.ignore,B.languages.npmignore=B.languages.ignore})(b)}},65175:function(Ie){"use strict";Ie.exports=Z,Z.displayName="inform7",Z.aliases=[];function Z(b){b.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},b.languages.inform7.string.inside.substitution.inside.rest=b.languages.inform7,b.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}},14970:function(Ie){"use strict";Ie.exports=Z,Z.displayName="ini",Z.aliases=[];function Z(b){b.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}},30764:function(Ie){"use strict";Ie.exports=Z,Z.displayName="io",Z.aliases=[];function Z(b){b.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<<?=?|:?:?=|\+\+?|--?|\*\*?|\/\/?|%|\|\|?|&&?|\b(?:and|not|or|return)\b|@@?|\?\??|\.\./,punctuation:/[{}[\];(),.:]/}}},87624:function(Ie){"use strict";Ie.exports=Z,Z.displayName="j",Z.aliases=[];function Z(b){b.languages.j={comment:{pattern:/\bNB\..*/,greedy:!0},string:{pattern:/'(?:''|[^'\r\n])*'/,greedy:!0},keyword:/\b(?:(?:CR|LF|adverb|conjunction|def|define|dyad|monad|noun|verb)\b|(?:assert|break|case|catch[dt]?|continue|do|else|elseif|end|fcase|for|for_\w+|goto_\w+|if|label_\w+|return|select|throw|try|while|whilst)\.)/,verb:{pattern:/(?!\^:|;\.|[=!][.:])(?:\{(?:\.|::?)?|p(?:\.\.?|:)|[=!\]]|[<>+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}},15909:function(Ie){"use strict";Ie.exports=Z,Z.displayName="java",Z.aliases=[];function Z(b){(function(B){var Y=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,s=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,E={pattern:RegExp(s+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};B.languages.java=B.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[E,{pattern:RegExp(s+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:E.inside}],keyword:Y,function:[B.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),B.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),B.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":E,keyword:Y,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return Y.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(b)}},36553:function(Ie,Z,b){"use strict";var B=b(15909),Y=b(9858);Ie.exports=s,s.displayName="javadoc",s.aliases=[];function s(E){E.register(B),E.register(Y),function(I){var u=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,d=/#\s*\w+(?:\s*\([^()]*\))?/.source,g=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(/<mem>/g,function(){return d});I.languages.javadoc=I.languages.extend("javadoclike",{}),I.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+g+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:I.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:u,lookbehind:!0,inside:I.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!<code>)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:u,lookbehind:!0,inside:{tag:I.languages.markup.tag,entity:I.languages.markup.entity,code:{pattern:/.+/,inside:I.languages.java,alias:"language-java"}}}}}],tag:I.languages.markup.tag,entity:I.languages.markup.entity}),I.languages.javadoclike.addSupport("java",I.languages.javadoc)}(E)}},9858:function(Ie){"use strict";Ie.exports=Z,Z.displayName="javadoclike",Z.aliases=[];function Z(b){(function(B){var Y=B.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function s(I,u){var d="doc-comment",g=B.languages[I];if(g){var y=g[d];if(!y){var S={};S[d]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},g=B.languages.insertBefore(I,"comment",S),y=g[d]}if(y instanceof RegExp&&(y=g[d]={pattern:y}),Array.isArray(y))for(var v=0,c=y.length;v<c;v++)y[v]instanceof RegExp&&(y[v]={pattern:y[v]}),u(y[v]);else u(y)}}function E(I,u){typeof I=="string"&&(I=[I]),I.forEach(function(d){s(d,function(g){g.inside||(g.inside={}),g.inside.rest=u})})}Object.defineProperty(Y,"addSupport",{value:E}),Y.addSupport(["java","javascript","php"],Y)})(b)}},36155:function(Ie){"use strict";Ie.exports=Z,Z.displayName="javascript",Z.aliases=["js"];function Z(b){b.languages.javascript=b.languages.extend("clike",{"class-name":[b.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),b.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,b.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:b.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:b.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:b.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:b.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:b.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),b.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:b.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),b.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),b.languages.markup&&(b.languages.markup.tag.addInlined("script","javascript"),b.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),b.languages.js=b.languages.javascript}},11223:function(Ie){"use strict";Ie.exports=Z,Z.displayName="javastacktrace",Z.aliases=[];function Z(b){b.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:<init>)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:<init>|[\w$]+)\()/,function:/(?:<init>|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}},57957:function(Ie){"use strict";Ie.exports=Z,Z.displayName="jexl",Z.aliases=[];function Z(b){b.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}},66604:function(Ie){"use strict";Ie.exports=Z,Z.displayName="jolie",Z.aliases=[];function Z(b){b.languages.jolie=b.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),b.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}},77935:function(Ie){"use strict";Ie.exports=Z,Z.displayName="jq",Z.aliases=[];function Z(b){(function(B){var Y=/\\\((?:[^()]|\([^()]*\))*\)/.source,s=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return Y})),E={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+Y),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},I=B.languages.jq={comment:/#.*/,property:{pattern:RegExp(s.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:E},string:{pattern:s,lookbehind:!0,greedy:!0,inside:E},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};E.interpolation.inside.content.inside=I})(b)}},46155:function(Ie){"use strict";Ie.exports=Z,Z.displayName="jsExtras",Z.aliases=[];function Z(b){(function(B){B.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+B.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),B.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+B.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),B.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function Y(g,y){return RegExp(g.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),y)}B.languages.insertBefore("javascript","keyword",{imports:{pattern:Y(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:B.languages.javascript},exports:{pattern:Y(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:B.languages.javascript}}),B.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),B.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),B.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:Y(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var s=["function","function-variable","method","method-variable","property-access"],E=0;E<s.length;E++){var I=s[E],u=B.languages.javascript[I];B.util.type(u)==="RegExp"&&(u=B.languages.javascript[I]={pattern:u});var d=u.inside||{};u.inside=d,d["maybe-class-name"]=/^[A-Z][\s\S]*/}})(b)}},47359:function(Ie){"use strict";Ie.exports=Z,Z.displayName="jsTemplates",Z.aliases=[];function Z(b){(function(B){var Y=B.languages.javascript["template-string"],s=Y.pattern.source,E=Y.inside.interpolation,I=E.inside["interpolation-punctuation"],u=E.pattern.source;function d(m,x){if(B.languages[m])return{pattern:RegExp("((?:"+x+")\\s*)"+s),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:m}}}}B.languages.javascript["template-string"]=[d("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),d("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),d("svg",/\bsvg/.source),d("markdown",/\b(?:markdown|md)/.source),d("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),d("sql",/\bsql/.source),Y].filter(Boolean);function g(m,x){return"___"+x.toUpperCase()+"_"+m+"___"}function y(m,x,T){var _={code:m,grammar:x,language:T};return B.hooks.run("before-tokenize",_),_.tokens=B.tokenize(_.code,_.grammar),B.hooks.run("after-tokenize",_),_.tokens}function S(m){var x={};x["interpolation-punctuation"]=I;var T=B.tokenize(m,x);if(T.length===3){var _=[1,1];_.push.apply(_,y(T[1],B.languages.javascript,"javascript")),T.splice.apply(T,_)}return new B.Token("interpolation",T,E.alias,m)}function v(m,x,T){var _=B.tokenize(m,{interpolation:{pattern:RegExp(u),lookbehind:!0}}),R=0,A={},N=_.map(function(H){if(typeof H=="string")return H;for(var P=H.content,V;m.indexOf(V=g(R++,T))!==-1;);return A[V]=P,V}).join(""),L=y(N,x,T),M=Object.keys(A);R=0;function F(H){for(var P=0;P<H.length;P++){if(R>=M.length)return;var V=H[P];if(typeof V=="string"||typeof V.content=="string"){var G=M[R],Q=typeof V=="string"?V:V.content,ne=Q.indexOf(G);if(ne!==-1){++R;var ue=Q.substring(0,ne),ae=S(A[G]),he=Q.substring(ne+G.length),ce=[];if(ue&&ce.push(ue),ce.push(ae),he){var we=[he];F(we),ce.push.apply(ce,we)}typeof V=="string"?(H.splice.apply(H,[P,1].concat(ce)),P+=ce.length-1):V.content=ce}}else{var me=V.content;Array.isArray(me)?F(me):F([me])}}}return F(L),new B.Token(T,L,"language-"+T,m)}var c={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};B.hooks.add("after-tokenize",function(m){if(!(m.language in c))return;function x(T){for(var _=0,R=T.length;_<R;_++){var A=T[_];if(typeof A!="string"){var N=A.content;if(!Array.isArray(N)){typeof N!="string"&&x([N]);continue}if(A.type==="template-string"){var L=N[1];if(N.length===3&&typeof L!="string"&&L.type==="embedded-code"){var M=h(L),F=L.alias,H=Array.isArray(F)?F[0]:F,P=B.languages[H];if(!P)continue;N[1]=v(M,P,H)}}else x(N)}}}x(m.tokens)});function h(m){return typeof m=="string"?m:Array.isArray(m)?m.map(h).join(""):h(m.content)}})(b)}},25319:function(Ie,Z,b){"use strict";var B=b(9858),Y=b(4979);Ie.exports=s,s.displayName="jsdoc",s.aliases=[];function s(E){E.register(B),E.register(Y),function(I){var u=I.languages.javascript,d=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,g="(@(?:arg|argument|param|property)\\s+(?:"+d+"\\s+)?)";I.languages.jsdoc=I.languages.extend("javadoclike",{parameter:{pattern:RegExp(g+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),I.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(g+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:u,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return d})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+d),lookbehind:!0,inside:{string:u.string,number:u.number,boolean:u.boolean,keyword:I.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:u,alias:"language-javascript"}}}}),I.languages.javadoclike.addSupport("javascript",I.languages.jsdoc)}(E)}},45950:function(Ie){"use strict";Ie.exports=Z,Z.displayName="json",Z.aliases=["webmanifest"];function Z(b){b.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},b.languages.webmanifest=b.languages.json}},50235:function(Ie,Z,b){"use strict";var B=b(45950);Ie.exports=Y,Y.displayName="json5",Y.aliases=[];function Y(s){s.register(B),function(E){var I=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;E.languages.json5=E.languages.extend("json",{property:[{pattern:RegExp(I.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:I,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(s)}},80963:function(Ie,Z,b){"use strict";var B=b(45950);Ie.exports=Y,Y.displayName="jsonp",Y.aliases=[];function Y(s){s.register(B),s.languages.jsonp=s.languages.extend("json",{punctuation:/[{}[\]();,.]/}),s.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}},79358:function(Ie){"use strict";Ie.exports=Z,Z.displayName="jsstacktrace",Z.aliases=[];function Z(b){b.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js|<unknown>|.*(?:node_modules|\(<anonymous>\)|\(<unknown>|<anonymous>$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}},96412:function(Ie){"use strict";Ie.exports=Z,Z.displayName="jsx",Z.aliases=[];function Z(b){(function(B){var Y=B.util.clone(B.languages.javascript),s=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,E=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,I=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function u(y,S){return y=y.replace(/<S>/g,function(){return s}).replace(/<BRACES>/g,function(){return E}).replace(/<SPREAD>/g,function(){return I}),RegExp(y,S)}I=u(I).source,B.languages.jsx=B.languages.extend("markup",Y),B.languages.jsx.tag.pattern=u(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),B.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,B.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,B.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,B.languages.jsx.tag.inside.comment=Y.comment,B.languages.insertBefore("inside","attr-name",{spread:{pattern:u(/<SPREAD>/.source),inside:B.languages.jsx}},B.languages.jsx.tag),B.languages.insertBefore("inside","special-attr",{script:{pattern:u(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:B.languages.jsx}}},B.languages.jsx.tag);var d=function(y){return y?typeof y=="string"?y:typeof y.content=="string"?y.content:y.content.map(d).join(""):""},g=function(y){for(var S=[],v=0;v<y.length;v++){var c=y[v],h=!1;if(typeof c!="string"&&(c.type==="tag"&&c.content[0]&&c.content[0].type==="tag"?c.content[0].content[0].content==="</"?S.length>0&&S[S.length-1].tagName===d(c.content[0].content[1])&&S.pop():c.content[c.content.length-1].content==="/>"||S.push({tagName:d(c.content[0].content[1]),openedBraces:0}):S.length>0&&c.type==="punctuation"&&c.content==="{"?S[S.length-1].openedBraces++:S.length>0&&S[S.length-1].openedBraces>0&&c.type==="punctuation"&&c.content==="}"?S[S.length-1].openedBraces--:h=!0),(h||typeof c=="string")&&S.length>0&&S[S.length-1].openedBraces===0){var m=d(c);v<y.length-1&&(typeof y[v+1]=="string"||y[v+1].type==="plain-text")&&(m+=d(y[v+1]),y.splice(v+1,1)),v>0&&(typeof y[v-1]=="string"||y[v-1].type==="plain-text")&&(m=d(y[v-1])+m,y.splice(v-1,1),v--),y[v]=new B.Token("plain-text",m,null,m)}c.content&&typeof c.content!="string"&&g(c.content)}};B.hooks.add("after-tokenize",function(y){y.language!=="jsx"&&y.language!=="tsx"||g(y.tokens)})})(b)}},39259:function(Ie){"use strict";Ie.exports=Z,Z.displayName="julia",Z.aliases=[];function Z(b){b.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}},32409:function(Ie){"use strict";Ie.exports=Z,Z.displayName="keepalived",Z.aliases=[];function Z(b){b.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}<ipv4>|(?:[\da-f]{1,4}:){0,5}:<ipv4>|::(?:[\da-f]{1,4}:){0,5}<ipv4>|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|<ipv4>(?:\/\d{1,2})?)\b/.source.replace(/<ipv4>/g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}},35760:function(Ie){"use strict";Ie.exports=Z,Z.displayName="keyman",Z.aliases=[];function Z(b){b.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|nomatch|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}},19715:function(Ie){"use strict";Ie.exports=Z,Z.displayName="kotlin",Z.aliases=["kt","kts"];function Z(b){(function(B){B.languages.kotlin=B.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete B.languages.kotlin["class-name"];var Y={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:B.languages.kotlin}};B.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:Y},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:Y},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete B.languages.kotlin.string,B.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),B.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),B.languages.kt=B.languages.kotlin,B.languages.kts=B.languages.kotlin})(b)}},27614:function(Ie){"use strict";Ie.exports=Z,Z.displayName="kumir",Z.aliases=["kum"];function Z(b){(function(B){var Y=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function s(E,I){return RegExp(E.replace(/<nonId>/g,Y),I)}B.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:s(/(^|[<nonId>])(?:да|нет)(?=[<nonId>]|$)/.source),lookbehind:!0},"operator-word":{pattern:s(/(^|[<nonId>])(?:и|или|не)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:s(/(^|[<nonId>])знач(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:s(/(^|[<nonId>])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:s(/(^|[<nonId>])(?:компл|сканкод|файл|цвет)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:s(/(^|[<nonId>])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[<nonId>]|$)/.source),lookbehind:!0},name:{pattern:s(/(^|[<nonId>])[^\d<nonId>][^<nonId>]*(?:\x20+[^<nonId>]+)*(?=[<nonId>]|$)/.source),lookbehind:!0},number:{pattern:s(/(^|[<nonId>])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[<nonId>]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},B.languages.kum=B.languages.kumir})(b)}},82819:function(Ie){"use strict";Ie.exports=Z,Z.displayName="kusto",Z.aliases=[];function Z(b){b.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}},42876:function(Ie){"use strict";Ie.exports=Z,Z.displayName="latex",Z.aliases=["tex","context"];function Z(b){(function(B){var Y=/\\(?:[^a-z()[\]]|[a-z*]+)/i,s={"equation-command":{pattern:Y,alias:"regex"}};B.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:s,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:s,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:Y,alias:"selector"},punctuation:/[[\]{}&]/},B.languages.tex=B.languages.latex,B.languages.context=B.languages.latex})(b)}},2980:function(Ie,Z,b){"use strict";var B=b(93205),Y=b(88262);Ie.exports=s,s.displayName="latte",s.aliases=[];function s(E){E.register(B),E.register(Y),function(I){I.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:I.languages.php}};var u=I.languages.extend("markup",{});I.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:I.languages.php}}}}}},u.tag),I.hooks.add("before-tokenize",function(d){if(d.language==="latte"){var g=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;I.languages["markup-templating"].buildPlaceholders(d,"latte",g),d.grammar=u}}),I.hooks.add("after-tokenize",function(d){I.languages["markup-templating"].tokenizePlaceholders(d,"latte")})}(E)}},41701:function(Ie){"use strict";Ie.exports=Z,Z.displayName="less",Z.aliases=[];function Z(b){b.languages.less=b.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),b.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}},42491:function(Ie,Z,b){"use strict";var B=b(9997);Ie.exports=Y,Y.displayName="lilypond",Y.aliases=[];function Y(s){s.register(B),function(E){for(var I=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,u=5,d=0;d<u;d++)I=I.replace(/<expr>/g,function(){return I});I=I.replace(/<expr>/g,/[^\s\S]/.source);var g=E.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|<expr>))/.source.replace(/<expr>/g,function(){return I}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:E.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};g["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=g,E.languages.ly=g}(s)}},34927:function(Ie,Z,b){"use strict";var B=b(93205);Ie.exports=Y,Y.displayName="liquid",Y.aliases=[];function Y(s){s.register(B),s.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},s.hooks.add("before-tokenize",function(E){var I=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,u=!1;s.languages["markup-templating"].buildPlaceholders(E,"liquid",I,function(d){var g=/^\{%-?\s*(\w+)/.exec(d);if(g){var y=g[1];if(y==="raw"&&!u)return u=!0,!0;if(y==="endraw")return u=!1,!0}return!u})}),s.hooks.add("after-tokenize",function(E){s.languages["markup-templating"].tokenizePlaceholders(E,"liquid")})}},3848:function(Ie){"use strict";Ie.exports=Z,Z.displayName="lisp",Z.aliases=[];function Z(b){(function(B){function Y(m){return RegExp(/(\()/.source+"(?:"+m+")"+/(?=[\s\)])/.source)}function s(m){return RegExp(/([\s([])/.source+"(?:"+m+")"+/(?=[\s)])/.source)}var E=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,I="&"+E,u="(\\()",d="(?=\\))",g="(?=\\s)",y=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,S={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+E+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+E),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+E),alias:"property"},splice:{pattern:RegExp(",@?"+E),alias:["symbol","variable"]},keyword:[{pattern:RegExp(u+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+g),lookbehind:!0},{pattern:RegExp(u+"(?:append|by|collect|concat|do|finally|for|in|return)"+g),lookbehind:!0}],declare:{pattern:Y(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:Y(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:s(/nil|t/.source),lookbehind:!0},number:{pattern:s(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(u+"def(?:const|custom|group|var)\\s+"+E),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(E)}},defun:{pattern:RegExp(u+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+E+/\s+\(/.source+y+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+E),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(u+"lambda\\s+\\(\\s*(?:&?"+E+"(?:\\s+&?"+E+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(u+E),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},v={"lisp-marker":RegExp(I),varform:{pattern:RegExp(/\(/.source+E+/\s+(?=\S)/.source+y+/\)/.source),inside:S},argument:{pattern:RegExp(/(^|[\s(])/.source+E),lookbehind:!0,alias:"variable"},rest:S},c="\\S+(?:\\s+\\S+)*",h={pattern:RegExp(u+y+d),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+c),inside:v},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+c),inside:v},keys:{pattern:RegExp("&key\\s+"+c+"(?:\\s+&allow-other-keys)?"),inside:v},argument:{pattern:RegExp(E),alias:"variable"},punctuation:/[()]/}};S.lambda.inside.arguments=h,S.defun.inside.arguments=B.util.clone(h),S.defun.inside.arguments.inside.sublist=h,B.languages.lisp=S,B.languages.elisp=S,B.languages.emacs=S,B.languages["emacs-lisp"]=S})(b)}},41469:function(Ie){"use strict";Ie.exports=Z,Z.displayName="livescript",Z.aliases=[];function Z(b){b.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<<?<?|--?!?|~~?!?|[|=?])?|>[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},b.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=b.languages.livescript}},73070:function(Ie){"use strict";Ie.exports=Z,Z.displayName="llvm",Z.aliases=[];function Z(b){(function(B){B.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(b)}},35049:function(Ie){"use strict";Ie.exports=Z,Z.displayName="log",Z.aliases=[];function Z(b){b.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:b.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}},8789:function(Ie){"use strict";Ie.exports=Z,Z.displayName="lolcode",Z.aliases=[];function Z(b){b.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}},59803:function(Ie){"use strict";Ie.exports=Z,Z.displayName="lua",Z.aliases=[];function Z(b){b.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}},86328:function(Ie){"use strict";Ie.exports=Z,Z.displayName="magma",Z.aliases=[];function Z(b){b.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}},33055:function(Ie){"use strict";Ie.exports=Z,Z.displayName="makefile",Z.aliases=[];function Z(b){b.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}},90542:function(Ie){"use strict";Ie.exports=Z,Z.displayName="markdown",Z.aliases=["md"];function Z(b){(function(B){var Y=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function s(v){return v=v.replace(/<inner>/g,function(){return Y}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+v+")")}var E=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,I=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return E}),u=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;B.languages.markdown=B.languages.extend("markup",{}),B.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:B.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+I+u+"(?:"+I+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+I+u+")(?:"+I+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(E),inside:B.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+I+")"+u+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+I+"$"),inside:{"table-header":{pattern:RegExp(E),alias:"important",inside:B.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:s(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:s(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:s(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:s(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(v){["url","bold","italic","strike","code-snippet"].forEach(function(c){v!==c&&(B.languages.markdown[v].inside.content.inside[c]=B.languages.markdown[c])})}),B.hooks.add("after-tokenize",function(v){if(v.language!=="markdown"&&v.language!=="md")return;function c(h){if(!(!h||typeof h=="string"))for(var m=0,x=h.length;m<x;m++){var T=h[m];if(T.type!=="code"){c(T.content);continue}var _=T.content[1],R=T.content[3];if(_&&R&&_.type==="code-language"&&R.type==="code-block"&&typeof _.content=="string"){var A=_.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");A=(/[a-z][\w-]*/i.exec(A)||[""])[0].toLowerCase();var N="language-"+A;R.alias?typeof R.alias=="string"?R.alias=[R.alias,N]:R.alias.push(N):R.alias=[N]}}}c(v.tokens)}),B.hooks.add("wrap",function(v){if(v.type==="code-block"){for(var c="",h=0,m=v.classes.length;h<m;h++){var x=v.classes[h],T=/language-(.+)/.exec(x);if(T){c=T[1];break}}var _=B.languages[c];if(_)v.content=B.highlight(S(v.content.value),_,c);else if(c&&c!=="none"&&B.plugins.autoloader){var R="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);v.attributes.id=R,B.plugins.autoloader.loadLanguages(c,function(){var A=document.getElementById(R);A&&(A.innerHTML=B.highlight(A.textContent,B.languages[c],c))})}}});var d=RegExp(B.languages.markup.tag.pattern.source,"gi"),g={amp:"&",lt:"<",gt:">",quot:'"'},y=String.fromCodePoint||String.fromCharCode;function S(v){var c=v.replace(d,"");return c=c.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(h,m){if(m=m.toLowerCase(),m[0]==="#"){var x;return m[1]==="x"?x=parseInt(m.slice(2),16):x=Number(m.slice(1)),y(x)}else{var T=g[m];return T||h}}),c}B.languages.md=B.languages.markdown})(b)}},93205:function(Ie){"use strict";Ie.exports=Z,Z.displayName="markupTemplating",Z.aliases=[];function Z(b){(function(B){function Y(s,E){return"___"+s.toUpperCase()+E+"___"}Object.defineProperties(B.languages["markup-templating"]={},{buildPlaceholders:{value:function(s,E,I,u){if(s.language===E){var d=s.tokenStack=[];s.code=s.code.replace(I,function(g){if(typeof u=="function"&&!u(g))return g;for(var y=d.length,S;s.code.indexOf(S=Y(E,y))!==-1;)++y;return d[y]=g,S}),s.grammar=B.languages.markup}}},tokenizePlaceholders:{value:function(s,E){if(s.language!==E||!s.tokenStack)return;s.grammar=B.languages[E];var I=0,u=Object.keys(s.tokenStack);function d(g){for(var y=0;y<g.length&&!(I>=u.length);y++){var S=g[y];if(typeof S=="string"||S.content&&typeof S.content=="string"){var v=u[I],c=s.tokenStack[v],h=typeof S=="string"?S:S.content,m=Y(E,v),x=h.indexOf(m);if(x>-1){++I;var T=h.substring(0,x),_=new B.Token(E,B.tokenize(c,s.grammar),"language-"+E,c),R=h.substring(x+m.length),A=[];T&&A.push.apply(A,d([T])),A.push(_),R&&A.push.apply(A,d([R])),typeof S=="string"?g.splice.apply(g,[y,1].concat(A)):S.content=A}}else S.content&&d(S.content)}return g}d(s.tokens)}}})})(b)}},2717:function(Ie){"use strict";Ie.exports=Z,Z.displayName="markup",Z.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function Z(b){b.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},b.languages.markup.tag.inside["attr-value"].inside.entity=b.languages.markup.entity,b.languages.markup.doctype.inside["internal-subset"].inside=b.languages.markup,b.hooks.add("wrap",function(B){B.type==="entity"&&(B.attributes.title=B.content.value.replace(/&amp;/,"&"))}),Object.defineProperty(b.languages.markup.tag,"addInlined",{value:function(Y,s){var E={};E["language-"+s]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:b.languages[s]},E.cdata=/^<!\[CDATA\[|\]\]>$/i;var I={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:E}};I["language-"+s]={pattern:/[\s\S]+/,inside:b.languages[s]};var u={};u[Y]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return Y}),"i"),lookbehind:!0,greedy:!0,inside:I},b.languages.insertBefore("markup","cdata",u)}}),Object.defineProperty(b.languages.markup.tag,"addAttribute",{value:function(B,Y){b.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+B+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[Y,"language-"+Y],inside:b.languages[Y]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),b.languages.html=b.languages.markup,b.languages.mathml=b.languages.markup,b.languages.svg=b.languages.markup,b.languages.xml=b.languages.extend("markup",{}),b.languages.ssml=b.languages.xml,b.languages.atom=b.languages.xml,b.languages.rss=b.languages.xml}},27992:function(Ie){"use strict";Ie.exports=Z,Z.displayName="matlab",Z.aliases=[];function Z(b){b.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}},91115:function(Ie){"use strict";Ie.exports=Z,Z.displayName="maxscript",Z.aliases=[];function Z(b){(function(B){var Y=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;B.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+Y.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+Y.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:Y,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(b)}},606:function(Ie){"use strict";Ie.exports=Z,Z.displayName="mel",Z.aliases=[];function Z(b){b.languages.mel={comment:/\/\/.*/,code:{pattern:/`(?:\\.|[^\\`\r\n])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:/\b\w+(?=\()|\b(?:CBG|HfAddAttractorToAS|HfAssignAS|HfBuildEqualMap|HfBuildFurFiles|HfBuildFurImages|HfCancelAFR|HfConnectASToHF|HfCreateAttractor|HfDeleteAS|HfEditAS|HfPerformCreateAS|HfRemoveAttractorFromAS|HfSelectAttached|HfSelectAttractors|HfUnAssignAS|Mayatomr|about|abs|addAttr|addAttributeEditorNodeHelp|addDynamic|addNewShelfTab|addPP|addPanelCategory|addPrefixToName|advanceToNextDrivenKey|affectedNet|affects|aimConstraint|air|alias|aliasAttr|align|alignCtx|alignCurve|alignSurface|allViewFit|ambientLight|angle|angleBetween|animCone|animCurveEditor|animDisplay|animView|annotate|appendStringArray|applicationName|applyAttrPreset|applyTake|arcLenDimContext|arcLengthDimension|arclen|arrayMapper|art3dPaintCtx|artAttrCtx|artAttrPaintVertexCtx|artAttrSkinPaintCtx|artAttrTool|artBuildPaintMenu|artFluidAttrCtx|artPuttyCtx|artSelectCtx|artSetPaintCtx|artUserPaintCtx|assignCommand|assignInputDevice|assignViewportFactories|attachCurve|attachDeviceAttr|attachSurface|attrColorSliderGrp|attrCompatibility|attrControlGrp|attrEnumOptionMenu|attrEnumOptionMenuGrp|attrFieldGrp|attrFieldSliderGrp|attrNavigationControlGrp|attrPresetEditWin|attributeExists|attributeInfo|attributeMenu|attributeQuery|autoKeyframe|autoPlace|bakeClip|bakeFluidShading|bakePartialHistory|bakeResults|bakeSimulation|basename|basenameEx|batchRender|bessel|bevel|bevelPlus|binMembership|bindSkin|blend2|blendShape|blendShapeEditor|blendShapePanel|blendTwoAttr|blindDataType|boneLattice|boundary|boxDollyCtx|boxZoomCtx|bufferCurve|buildBookmarkMenu|buildKeyframeMenu|button|buttonManip|cacheFile|cacheFileCombine|cacheFileMerge|cacheFileTrack|camera|cameraView|canCreateManip|canvas|capitalizeString|catch|catchQuiet|ceil|changeSubdivComponentDisplayLevel|changeSubdivRegion|channelBox|character|characterMap|characterOutlineEditor|characterize|chdir|checkBox|checkBoxGrp|checkDefaultRenderGlobals|choice|circle|circularFillet|clamp|clear|clearCache|clip|clipEditor|clipEditorCurrentTimeCtx|clipSchedule|clipSchedulerOutliner|clipTrimBefore|closeCurve|closeSurface|cluster|cmdFileOutput|cmdScrollFieldExecuter|cmdScrollFieldReporter|cmdShell|coarsenSubdivSelectionList|collision|color|colorAtPoint|colorEditor|colorIndex|colorIndexSliderGrp|colorSliderButtonGrp|colorSliderGrp|columnLayout|commandEcho|commandLine|commandPort|compactHairSystem|componentEditor|compositingInterop|computePolysetVolume|condition|cone|confirmDialog|connectAttr|connectControl|connectDynamic|connectJoint|connectionInfo|constrain|constrainValue|constructionHistory|container|containsMultibyte|contextInfo|control|convertFromOldLayers|convertIffToPsd|convertLightmap|convertSolidTx|convertTessellation|convertUnit|copyArray|copyFlexor|copyKey|copySkinWeights|cos|cpButton|cpCache|cpClothSet|cpCollision|cpConstraint|cpConvClothToMesh|cpForces|cpGetSolverAttr|cpPanel|cpProperty|cpRigidCollisionFilter|cpSeam|cpSetEdit|cpSetSolverAttr|cpSolver|cpSolverTypes|cpTool|cpUpdateClothUVs|createDisplayLayer|createDrawCtx|createEditor|createLayeredPsdFile|createMotionField|createNewShelf|createNode|createRenderLayer|createSubdivRegion|cross|crossProduct|ctxAbort|ctxCompletion|ctxEditMode|ctxTraverse|currentCtx|currentTime|currentTimeCtx|currentUnit|curve|curveAddPtCtx|curveCVCtx|curveEPCtx|curveEditorCtx|curveIntersect|curveMoveEPCtx|curveOnSurface|curveSketchCtx|cutKey|cycleCheck|cylinder|dagPose|date|defaultLightListCheckBox|defaultNavigation|defineDataServer|defineVirtualDevice|deformer|deg_to_rad|delete|deleteAttr|deleteShadingGroupsAndMaterials|deleteShelfTab|deleteUI|deleteUnusedBrushes|delrandstr|detachCurve|detachDeviceAttr|detachSurface|deviceEditor|devicePanel|dgInfo|dgdirty|dgeval|dgtimer|dimWhen|directKeyCtx|directionalLight|dirmap|dirname|disable|disconnectAttr|disconnectJoint|diskCache|displacementToPoly|displayAffected|displayColor|displayCull|displayLevelOfDetail|displayPref|displayRGBColor|displaySmoothness|displayStats|displayString|displaySurface|distanceDimContext|distanceDimension|doBlur|dolly|dollyCtx|dopeSheetEditor|dot|dotProduct|doubleProfileBirailSurface|drag|dragAttrContext|draggerContext|dropoffLocator|duplicate|duplicateCurve|duplicateSurface|dynCache|dynControl|dynExport|dynExpression|dynGlobals|dynPaintEditor|dynParticleCtx|dynPref|dynRelEdPanel|dynRelEditor|dynamicLoad|editAttrLimits|editDisplayLayerGlobals|editDisplayLayerMembers|editRenderLayerAdjustment|editRenderLayerGlobals|editRenderLayerMembers|editor|editorTemplate|effector|emit|emitter|enableDevice|encodeString|endString|endsWith|env|equivalent|equivalentTol|erf|error|eval|evalDeferred|evalEcho|event|exactWorldBoundingBox|exclusiveLightCheckBox|exec|executeForEachObject|exists|exp|expression|expressionEditorListen|extendCurve|extendSurface|extrude|fcheck|fclose|feof|fflush|fgetline|fgetword|file|fileBrowserDialog|fileDialog|fileExtension|fileInfo|filetest|filletCurve|filter|filterCurve|filterExpand|filterStudioImport|findAllIntersections|findAnimCurves|findKeyframe|findMenuItem|findRelatedSkinCluster|finder|firstParentOf|fitBspline|flexor|floatEq|floatField|floatFieldGrp|floatScrollBar|floatSlider|floatSlider2|floatSliderButtonGrp|floatSliderGrp|floor|flow|fluidCacheInfo|fluidEmitter|fluidVoxelInfo|flushUndo|fmod|fontDialog|fopen|formLayout|format|fprint|frameLayout|fread|freeFormFillet|frewind|fromNativePath|fwrite|gamma|gauss|geometryConstraint|getApplicationVersionAsFloat|getAttr|getClassification|getDefaultBrush|getFileList|getFluidAttr|getInputDeviceRange|getMayaPanelTypes|getModifiers|getPanel|getParticleAttr|getPluginResource|getenv|getpid|glRender|glRenderEditor|globalStitch|gmatch|goal|gotoBindPose|grabColor|gradientControl|gradientControlNoAttr|graphDollyCtx|graphSelectContext|graphTrackCtx|gravity|grid|gridLayout|group|groupObjectsByName|hardenPointCurve|hardware|hardwareRenderPanel|headsUpDisplay|headsUpMessage|help|helpLine|hermite|hide|hilite|hitTest|hotBox|hotkey|hotkeyCheck|hsv_to_rgb|hudButton|hudSlider|hudSliderButton|hwReflectionMap|hwRender|hwRenderLoad|hyperGraph|hyperPanel|hyperShade|hypot|iconTextButton|iconTextCheckBox|iconTextRadioButton|iconTextRadioCollection|iconTextScrollList|iconTextStaticLabel|ikHandle|ikHandleCtx|ikHandleDisplayScale|ikSolver|ikSplineHandleCtx|ikSystem|ikSystemInfo|ikfkDisplayMethod|illustratorCurves|image|imfPlugins|inheritTransform|insertJoint|insertJointCtx|insertKeyCtx|insertKnotCurve|insertKnotSurface|instance|instanceable|instancer|intField|intFieldGrp|intScrollBar|intSlider|intSliderGrp|interToUI|internalVar|intersect|iprEngine|isAnimCurve|isConnected|isDirty|isParentOf|isSameObject|isTrue|isValidObjectName|isValidString|isValidUiName|isolateSelect|itemFilter|itemFilterAttr|itemFilterRender|itemFilterType|joint|jointCluster|jointCtx|jointDisplayScale|jointLattice|keyTangent|keyframe|keyframeOutliner|keyframeRegionCurrentTimeCtx|keyframeRegionDirectKeyCtx|keyframeRegionDollyCtx|keyframeRegionInsertKeyCtx|keyframeRegionMoveKeyCtx|keyframeRegionScaleKeyCtx|keyframeRegionSelectKeyCtx|keyframeRegionSetKeyCtx|keyframeRegionTrackCtx|keyframeStats|lassoContext|lattice|latticeDeformKeyCtx|launch|launchImageEditor|layerButton|layeredShaderPort|layeredTexturePort|layout|layoutDialog|lightList|lightListEditor|lightListPanel|lightlink|lineIntersection|linearPrecision|linstep|listAnimatable|listAttr|listCameras|listConnections|listDeviceAttachments|listHistory|listInputDeviceAxes|listInputDeviceButtons|listInputDevices|listMenuAnnotation|listNodeTypes|listPanelCategories|listRelatives|listSets|listTransforms|listUnselected|listerEditor|loadFluid|loadNewShelf|loadPlugin|loadPluginLanguageResources|loadPrefObjects|localizedPanelLabel|lockNode|loft|log|longNameOf|lookThru|ls|lsThroughFilter|lsType|lsUI|mag|makeIdentity|makeLive|makePaintable|makeRoll|makeSingleSurface|makeTubeOn|makebot|manipMoveContext|manipMoveLimitsCtx|manipOptions|manipRotateContext|manipRotateLimitsCtx|manipScaleContext|manipScaleLimitsCtx|marker|match|max|memory|menu|menuBarLayout|menuEditor|menuItem|menuItemToShelf|menuSet|menuSetPref|messageLine|min|minimizeApp|mirrorJoint|modelCurrentTimeCtx|modelEditor|modelPanel|mouse|movIn|movOut|move|moveIKtoFK|moveKeyCtx|moveVertexAlongDirection|multiProfileBirailSurface|mute|nParticle|nameCommand|nameField|namespace|namespaceInfo|newPanelItems|newton|nodeCast|nodeIconButton|nodeOutliner|nodePreset|nodeType|noise|nonLinear|normalConstraint|normalize|nurbsBoolean|nurbsCopyUVSet|nurbsCube|nurbsEditUV|nurbsPlane|nurbsSelect|nurbsSquare|nurbsToPoly|nurbsToPolygonsPref|nurbsToSubdiv|nurbsToSubdivPref|nurbsUVSet|nurbsViewDirectionVector|objExists|objectCenter|objectLayer|objectType|objectTypeUI|obsoleteProc|oceanNurbsPreviewPlane|offsetCurve|offsetCurveOnSurface|offsetSurface|openGLExtension|openMayaPref|optionMenu|optionMenuGrp|optionVar|orbit|orbitCtx|orientConstraint|outlinerEditor|outlinerPanel|overrideModifier|paintEffectsDisplay|pairBlend|palettePort|paneLayout|panel|panelConfiguration|panelHistory|paramDimContext|paramDimension|paramLocator|parent|parentConstraint|particle|particleExists|particleInstancer|particleRenderInfo|partition|pasteKey|pathAnimation|pause|pclose|percent|performanceOptions|pfxstrokes|pickWalk|picture|pixelMove|planarSrf|plane|play|playbackOptions|playblast|plugAttr|plugNode|pluginInfo|pluginResourceUtil|pointConstraint|pointCurveConstraint|pointLight|pointMatrixMult|pointOnCurve|pointOnSurface|pointPosition|poleVectorConstraint|polyAppend|polyAppendFacetCtx|polyAppendVertex|polyAutoProjection|polyAverageNormal|polyAverageVertex|polyBevel|polyBlendColor|polyBlindData|polyBoolOp|polyBridgeEdge|polyCacheMonitor|polyCheck|polyChipOff|polyClipboard|polyCloseBorder|polyCollapseEdge|polyCollapseFacet|polyColorBlindData|polyColorDel|polyColorPerVertex|polyColorSet|polyCompare|polyCone|polyCopyUV|polyCrease|polyCreaseCtx|polyCreateFacet|polyCreateFacetCtx|polyCube|polyCut|polyCutCtx|polyCylinder|polyCylindricalProjection|polyDelEdge|polyDelFacet|polyDelVertex|polyDuplicateAndConnect|polyDuplicateEdge|polyEditUV|polyEditUVShell|polyEvaluate|polyExtrudeEdge|polyExtrudeFacet|polyExtrudeVertex|polyFlipEdge|polyFlipUV|polyForceUV|polyGeoSampler|polyHelix|polyInfo|polyInstallAction|polyLayoutUV|polyListComponentConversion|polyMapCut|polyMapDel|polyMapSew|polyMapSewMove|polyMergeEdge|polyMergeEdgeCtx|polyMergeFacet|polyMergeFacetCtx|polyMergeUV|polyMergeVertex|polyMirrorFace|polyMoveEdge|polyMoveFacet|polyMoveFacetUV|polyMoveUV|polyMoveVertex|polyNormal|polyNormalPerVertex|polyNormalizeUV|polyOptUvs|polyOptions|polyOutput|polyPipe|polyPlanarProjection|polyPlane|polyPlatonicSolid|polyPoke|polyPrimitive|polyPrism|polyProjection|polyPyramid|polyQuad|polyQueryBlindData|polyReduce|polySelect|polySelectConstraint|polySelectConstraintMonitor|polySelectCtx|polySelectEditCtx|polySeparate|polySetToFaceNormal|polySewEdge|polyShortestPathCtx|polySmooth|polySoftEdge|polySphere|polySphericalProjection|polySplit|polySplitCtx|polySplitEdge|polySplitRing|polySplitVertex|polyStraightenUVBorder|polySubdivideEdge|polySubdivideFacet|polyToSubdiv|polyTorus|polyTransfer|polyTriangulate|polyUVSet|polyUnite|polyWedgeFace|popen|popupMenu|pose|pow|preloadRefEd|print|progressBar|progressWindow|projFileViewer|projectCurve|projectTangent|projectionContext|projectionManip|promptDialog|propModCtx|propMove|psdChannelOutliner|psdEditTextureFile|psdExport|psdTextureFile|putenv|pwd|python|querySubdiv|quit|rad_to_deg|radial|radioButton|radioButtonGrp|radioCollection|radioMenuItemCollection|rampColorPort|rand|randomizeFollicles|randstate|rangeControl|readTake|rebuildCurve|rebuildSurface|recordAttr|recordDevice|redo|reference|referenceEdit|referenceQuery|refineSubdivSelectionList|refresh|refreshAE|registerPluginResource|rehash|reloadImage|removeJoint|removeMultiInstance|removePanelCategory|rename|renameAttr|renameSelectionList|renameUI|render|renderGlobalsNode|renderInfo|renderLayerButton|renderLayerParent|renderLayerPostProcess|renderLayerUnparent|renderManip|renderPartition|renderQualityNode|renderSettings|renderThumbnailUpdate|renderWindowEditor|renderWindowSelectContext|renderer|reorder|reorderDeformers|requires|reroot|resampleFluid|resetAE|resetPfxToPolyCamera|resetTool|resolutionNode|retarget|reverseCurve|reverseSurface|revolve|rgb_to_hsv|rigidBody|rigidSolver|roll|rollCtx|rootOf|rot|rotate|rotationInterpolation|roundConstantRadius|rowColumnLayout|rowLayout|runTimeCommand|runup|sampleImage|saveAllShelves|saveAttrPreset|saveFluid|saveImage|saveInitialState|saveMenu|savePrefObjects|savePrefs|saveShelf|saveToolSettings|scale|scaleBrushBrightness|scaleComponents|scaleConstraint|scaleKey|scaleKeyCtx|sceneEditor|sceneUIReplacement|scmh|scriptCtx|scriptEditorInfo|scriptJob|scriptNode|scriptTable|scriptToShelf|scriptedPanel|scriptedPanelType|scrollField|scrollLayout|sculpt|searchPathArray|seed|selLoadSettings|select|selectContext|selectCurveCV|selectKey|selectKeyCtx|selectKeyframeRegionCtx|selectMode|selectPref|selectPriority|selectType|selectedNodes|selectionConnection|separator|setAttr|setAttrEnumResource|setAttrMapping|setAttrNiceNameResource|setConstraintRestPosition|setDefaultShadingGroup|setDrivenKeyframe|setDynamic|setEditCtx|setEditor|setFluidAttr|setFocus|setInfinity|setInputDeviceMapping|setKeyCtx|setKeyPath|setKeyframe|setKeyframeBlendshapeTargetWts|setMenuMode|setNodeNiceNameResource|setNodeTypeFlag|setParent|setParticleAttr|setPfxToPolyCamera|setPluginResource|setProject|setStampDensity|setStartupMessage|setState|setToolTo|setUITemplate|setXformManip|sets|shadingConnection|shadingGeometryRelCtx|shadingLightRelCtx|shadingNetworkCompare|shadingNode|shapeCompare|shelfButton|shelfLayout|shelfTabLayout|shellField|shortNameOf|showHelp|showHidden|showManipCtx|showSelectionInTitle|showShadingGroupAttrEditor|showWindow|sign|simplify|sin|singleProfileBirailSurface|size|sizeBytes|skinCluster|skinPercent|smoothCurve|smoothTangentSurface|smoothstep|snap2to2|snapKey|snapMode|snapTogetherCtx|snapshot|soft|softMod|softModCtx|sort|sound|soundControl|source|spaceLocator|sphere|sphrand|spotLight|spotLightPreviewPort|spreadSheetEditor|spring|sqrt|squareSurface|srtContext|stackTrace|startString|startsWith|stitchAndExplodeShell|stitchSurface|stitchSurfacePoints|strcmp|stringArrayCatenate|stringArrayContains|stringArrayCount|stringArrayInsertAtIndex|stringArrayIntersector|stringArrayRemove|stringArrayRemoveAtIndex|stringArrayRemoveDuplicates|stringArrayRemoveExact|stringArrayToString|stringToStringArray|strip|stripPrefixFromName|stroke|subdAutoProjection|subdCleanTopology|subdCollapse|subdDuplicateAndConnect|subdEditUV|subdListComponentConversion|subdMapCut|subdMapSewMove|subdMatchTopology|subdMirror|subdToBlind|subdToPoly|subdTransferUVsToCache|subdiv|subdivCrease|subdivDisplaySmoothness|substitute|substituteAllString|substituteGeometry|substring|surface|surfaceSampler|surfaceShaderList|swatchDisplayPort|switchTable|symbolButton|symbolCheckBox|sysFile|system|tabLayout|tan|tangentConstraint|texLatticeDeformContext|texManipContext|texMoveContext|texMoveUVShellContext|texRotateContext|texScaleContext|texSelectContext|texSelectShortestPathCtx|texSmudgeUVContext|texWinToolCtx|text|textCurves|textField|textFieldButtonGrp|textFieldGrp|textManip|textScrollList|textToShelf|textureDisplacePlane|textureHairColor|texturePlacementContext|textureWindow|threadCount|threePointArcCtx|timeControl|timePort|timerX|toNativePath|toggle|toggleAxis|toggleWindowVisibility|tokenize|tokenizeList|tolerance|tolower|toolButton|toolCollection|toolDropped|toolHasOptions|toolPropertyWindow|torus|toupper|trace|track|trackCtx|transferAttributes|transformCompare|transformLimits|translator|trim|trunc|truncateFluidCache|truncateHairCache|tumble|tumbleCtx|turbulence|twoPointArcCtx|uiRes|uiTemplate|unassignInputDevice|undo|undoInfo|ungroup|uniform|unit|unloadPlugin|untangleUV|untitledFileName|untrim|upAxis|updateAE|userCtx|uvLink|uvSnapshot|validateShelfName|vectorize|view2dToolCtx|viewCamera|viewClipPlane|viewFit|viewHeadOn|viewLookAt|viewManip|viewPlace|viewSet|visor|volumeAxis|vortex|waitCursor|warning|webBrowser|webBrowserPrefs|whatIs|window|windowPref|wire|wireContext|workspace|wrinkle|wrinkleContext|writeTake|xbmLangPathList|xform)\b/,operator:[/\+[+=]?|-[-=]?|&&|\|\||[<>]=|[*\/!=]=?|[%^]/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,:;?\[\](){}]/},b.languages.mel.code.inside.rest=b.languages.mel}},68582:function(Ie){"use strict";Ie.exports=Z,Z.displayName="mermaid",Z.aliases=[];function Z(b){b.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[<ox](?:==+|--+|-\.*-)[>ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}},23388:function(Ie){"use strict";Ie.exports=Z,Z.displayName="mizar",Z.aliases=[];function Z(b){b.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}},90596:function(Ie){"use strict";Ie.exports=Z,Z.displayName="mongodb",Z.aliases=[];function Z(b){(function(B){var Y=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],s=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];Y=Y.map(function(I){return I.replace("$","\\$")});var E="(?:"+Y.join("|")+")\\b";B.languages.mongodb=B.languages.extend("javascript",{}),B.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+E+"(?:\\1)?$")}}}),B.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},B.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+s.join("|")+")\\b"),alias:"keyword"}})})(b)}},95721:function(Ie){"use strict";Ie.exports=Z,Z.displayName="monkey",Z.aliases=[];function Z(b){b.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}},64262:function(Ie){"use strict";Ie.exports=Z,Z.displayName="moonscript",Z.aliases=["moon"];function Z(b){b.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},b.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=b.languages.moonscript,b.languages.moon=b.languages.moonscript}},18190:function(Ie){"use strict";Ie.exports=Z,Z.displayName="n1ql",Z.aliases=[];function Z(b){b.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}},70896:function(Ie){"use strict";Ie.exports=Z,Z.displayName="n4js",Z.aliases=["n4jsd"];function Z(b){b.languages.n4js=b.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),b.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),b.languages.n4jsd=b.languages.n4js}},42242:function(Ie){"use strict";Ie.exports=Z,Z.displayName="nand2tetrisHdl",Z.aliases=[];function Z(b){b.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}},37943:function(Ie){"use strict";Ie.exports=Z,Z.displayName="naniscript",Z.aliases=[];function Z(b){(function(B){var Y=/\{[^\r\n\[\]{}]*\}/,s={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:Y,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};B.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:Y,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:s}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:Y,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:s},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},B.languages.nani=B.languages.naniscript,B.hooks.add("after-tokenize",function(u){var d=u.tokens;d.forEach(function(g){if(typeof g!="string"&&g.type==="generic-text"){var y=I(g);E(y)||(g.type="bad-line",g.content=y)}})});function E(u){for(var d="[]{}",g=[],y=0;y<u.length;y++){var S=u[y],v=d.indexOf(S);if(v!==-1){if(v%2===0)g.push(v+1);else if(g.pop()!==v)return!1}}return g.length===0}function I(u){return typeof u=="string"?u:Array.isArray(u)?u.map(I).join(""):I(u.content)}})(b)}},293:function(Ie){"use strict";Ie.exports=Z,Z.displayName="nasm",Z.aliases=[];function Z(b){b.languages.nasm={comment:/;.*$/m,string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,label:{pattern:/(^\s*)[A-Za-z._?$][\w.?$@~#]*:/m,lookbehind:!0,alias:"function"},keyword:[/\[?BITS (?:16|32|64)\]?/,{pattern:/(^\s*)section\s*[a-z.]+:?/im,lookbehind:!0},/(?:extern|global)[^;\r\n]*/i,/(?:CPU|DEFAULT|FLOAT).*$/m],register:{pattern:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s)\b/i,alias:"variable"},number:/(?:\b|(?=\$))(?:0[hx](?:\.[\da-f]+|[\da-f]+(?:\.[\da-f]+)?)(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-\/%<>=&|$!]/}}},83873:function(Ie){"use strict";Ie.exports=Z,Z.displayName="neon",Z.aliases=[];function Z(b){b.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"atrule"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}},75932:function(Ie){"use strict";Ie.exports=Z,Z.displayName="nevod",Z.aliases=[];function Z(b){b.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}},60221:function(Ie){"use strict";Ie.exports=Z,Z.displayName="nginx",Z.aliases=[];function Z(b){(function(B){var Y=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;B.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:Y}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:Y}},punctuation:/[{};]/}})(b)}},44188:function(Ie){"use strict";Ie.exports=Z,Z.displayName="nim",Z.aliases=[];function Z(b){b.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}},74426:function(Ie){"use strict";Ie.exports=Z,Z.displayName="nix",Z.aliases=[];function Z(b){b.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},b.languages.nix.string.inside.interpolation.inside=b.languages.nix}},88447:function(Ie){"use strict";Ie.exports=Z,Z.displayName="nsis",Z.aliases=[];function Z(b){b.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|LabelAddress|TempFileName)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}},16032:function(Ie,Z,b){"use strict";var B=b(65806);Ie.exports=Y,Y.displayName="objectivec",Y.aliases=["objc"];function Y(s){s.register(B),s.languages.objectivec=s.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete s.languages.objectivec["class-name"],s.languages.objc=s.languages.objectivec}},33607:function(Ie){"use strict";Ie.exports=Z,Z.displayName="ocaml",Z.aliases=[];function Z(b){b.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}},22001:function(Ie,Z,b){"use strict";var B=b(65806);Ie.exports=Y,Y.displayName="opencl",Y.aliases=[];function Y(s){s.register(B),function(E){E.languages.opencl=E.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),E.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var I={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};E.languages.insertBefore("c","keyword",I),E.languages.cpp&&(I["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},E.languages.insertBefore("cpp","keyword",I))}(s)}},22950:function(Ie){"use strict";Ie.exports=Z,Z.displayName="openqasm",Z.aliases=["qasm"];function Z(b){b.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},b.languages.qasm=b.languages.openqasm}},23254:function(Ie){"use strict";Ie.exports=Z,Z.displayName="oz",Z.aliases=[];function Z(b){b.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|<?:?)|>=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}},70558:function(Ie){"use strict";Ie.exports=Z,Z.displayName="parigp",Z.aliases=[];function Z(b){b.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var B=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return B=B.map(function(Y){return Y.split("").join(" *")}).join("|"),RegExp("\\b(?:"+B+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}},43273:function(Ie){"use strict";Ie.exports=Z,Z.displayName="parser",Z.aliases=[];function Z(b){(function(B){var Y=B.languages.parser=B.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});Y=B.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:Y.keyword,variable:Y.variable,function:Y.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:Y.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:Y.punctuation}}}),B.languages.insertBefore("inside","punctuation",{expression:Y.expression,keyword:Y.keyword,variable:Y.variable,function:Y.function,escape:Y.escape,"parser-punctuation":{pattern:Y.punctuation,alias:"punctuation"}},Y.tag.inside["attr-value"])})(b)}},60718:function(Ie){"use strict";Ie.exports=Z,Z.displayName="pascal",Z.aliases=["objectpascal"];function Z(b){b.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},b.languages.pascal.asm.inside=b.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),b.languages.objectpascal=b.languages.pascal}},39303:function(Ie){"use strict";Ie.exports=Z,Z.displayName="pascaligo",Z.aliases=[];function Z(b){(function(B){var Y=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,s=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,function(){return Y}),E=B.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)<type>/.source.replace(/<type>/g,function(){return s}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/<type>(?=\s+is\b)/.source.replace(/<type>/g,function(){return s}),"i"),inside:null},{pattern:RegExp(/(:\s*)<type>/.source.replace(/<type>/g,function(){return s})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},I=["comment","keyword","builtin","operator","punctuation"].reduce(function(u,d){return u[d]=E[d],u},{});E["class-name"].forEach(function(u){u.inside=I})})(b)}},77393:function(Ie){"use strict";Ie.exports=Z,Z.displayName="pcaxis",Z.aliases=["px"];function Z(b){b.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},b.languages.px=b.languages.pcaxis}},19023:function(Ie){"use strict";Ie.exports=Z,Z.displayName="peoplecode",Z.aliases=["pcode"];function Z(b){b.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},b.languages.pcode=b.languages.peoplecode}},74212:function(Ie){"use strict";Ie.exports=Z,Z.displayName="perl",Z.aliases=[];function Z(b){(function(B){var Y=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;B.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,Y].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,Y].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,Y+/\s*/.source+Y].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(b)}},5137:function(Ie,Z,b){"use strict";var B=b(88262);Ie.exports=Y,Y.displayName="phpExtras",Y.aliases=[];function Y(s){s.register(B),s.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}},88262:function(Ie,Z,b){"use strict";var B=b(93205);Ie.exports=Y,Y.displayName="php",Y.aliases=[];function Y(s){s.register(B),function(E){var I=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,u=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],d=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,g=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,y=/[{}\[\](),:;]/;E.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:I,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:u,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:d,operator:g,punctuation:y};var S={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:E.languages.php},v=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:S}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:S}}];E.languages.insertBefore("php","variable",{string:v,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:I,string:v,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:u,number:d,operator:g,punctuation:y}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),E.hooks.add("before-tokenize",function(c){if(/<\?/.test(c.code)){var h=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;E.languages["markup-templating"].buildPlaceholders(c,"php",h)}}),E.hooks.add("after-tokenize",function(c){E.languages["markup-templating"].tokenizePlaceholders(c,"php")})}(s)}},63632:function(Ie,Z,b){"use strict";var B=b(88262),Y=b(9858);Ie.exports=s,s.displayName="phpdoc",s.aliases=[];function s(E){E.register(B),E.register(Y),function(I){var u=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;I.languages.phpdoc=I.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+u+"\\s+)?)\\$\\w+"),lookbehind:!0}}),I.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+u),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),I.languages.javadoclike.addSupport("php",I.languages.phpdoc)}(E)}},59149:function(Ie,Z,b){"use strict";var B=b(11114);Ie.exports=Y,Y.displayName="plsql",Y.aliases=[];function Y(s){s.register(B),s.languages.plsql=s.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),s.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}},50256:function(Ie){"use strict";Ie.exports=Z,Z.displayName="powerquery",Z.aliases=[];function Z(b){b.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},b.languages.pq=b.languages.powerquery,b.languages.mscript=b.languages.powerquery}},61777:function(Ie){"use strict";Ie.exports=Z,Z.displayName="powershell",Z.aliases=[];function Z(b){(function(B){var Y=B.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};Y.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:Y},boolean:Y.boolean,variable:Y.variable}})(b)}},3623:function(Ie){"use strict";Ie.exports=Z,Z.displayName="processing",Z.aliases=[];function Z(b){b.languages.processing=b.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),b.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}},82707:function(Ie){"use strict";Ie.exports=Z,Z.displayName="prolog",Z.aliases=[];function Z(b){b.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}},59338:function(Ie){"use strict";Ie.exports=Z,Z.displayName="promql",Z.aliases=[];function Z(b){(function(B){var Y=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],s=["on","ignoring","group_right","group_left","by","without"],E=["offset"],I=Y.concat(s,E);B.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+s.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+I.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(b)}},56267:function(Ie){"use strict";Ie.exports=Z,Z.displayName="properties",Z.aliases=[];function Z(b){b.languages.properties={comment:/^[ \t]*[#!].*$/m,"attr-value":{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0},"attr-name":/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,punctuation:/[=:]/}}},98809:function(Ie){"use strict";Ie.exports=Z,Z.displayName="protobuf",Z.aliases=[];function Z(b){(function(B){var Y=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;B.languages.protobuf=B.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),B.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:Y}},builtin:Y,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})})(b)}},37548:function(Ie){"use strict";Ie.exports=Z,Z.displayName="psl",Z.aliases=[];function Z(b){b.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}},82161:function(Ie){"use strict";Ie.exports=Z,Z.displayName="pug",Z.aliases=[];function Z(b){(function(B){B.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:B.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:B.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:B.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:B.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:B.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:B.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:B.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:B.languages.javascript}],punctuation:/[.\-!=|]+/};for(var Y=/(^([\t ]*)):<filter_name>(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,s=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],E={},I=0,u=s.length;I<u;I++){var d=s[I];d=typeof d=="string"?{filter:d,language:d}:d,B.languages[d.language]&&(E["filter-"+d.filter]={pattern:RegExp(Y.replace("<filter_name>",function(){return d.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[d.language,"language-"+d.language],inside:B.languages[d.language]}}})}B.languages.insertBefore("pug","filter",E)})(b)}},80625:function(Ie){"use strict";Ie.exports=Z,Z.displayName="puppet",Z.aliases=[];function Z(b){(function(B){B.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var Y=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:B.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];B.languages.puppet.heredoc[0].inside.interpolation=Y,B.languages.puppet.string.inside["double-quoted"].inside.interpolation=Y})(b)}},88393:function(Ie){"use strict";Ie.exports=Z,Z.displayName="pure",Z.aliases=[];function Z(b){(function(B){B.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var Y=["c",{lang:"c++",alias:"cpp"},"fortran"],s=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source;Y.forEach(function(E){var I=E;if(typeof E!="string"&&(I=E.alias,E=E.lang),B.languages[I]){var u={};u["inline-lang-"+I]={pattern:RegExp(s.replace("<lang>",E.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:B.util.clone(B.languages.pure["inline-lang"].inside)},u["inline-lang-"+I].inside.rest=B.util.clone(B.languages[I]),B.languages.insertBefore("pure","inline-lang",u)}}),B.languages.c&&(B.languages.pure["inline-lang"].inside.rest=B.util.clone(B.languages.c))})(b)}},78404:function(Ie){"use strict";Ie.exports=Z,Z.displayName="purebasic",Z.aliases=[];function Z(b){b.languages.purebasic=b.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+|-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*/@]/}),b.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete b.languages.purebasic["class-name"],delete b.languages.purebasic.boolean,b.languages.pbfasm=b.languages.purebasic}},92923:function(Ie,Z,b){"use strict";var B=b(58090);Ie.exports=Y,Y.displayName="purescript",Y.aliases=["purs"];function Y(s){s.register(B),s.languages.purescript=s.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[s.languages.haskell.operator[0],s.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),s.languages.purs=s.languages.purescript}},52992:function(Ie){"use strict";Ie.exports=Z,Z.displayName="python",Z.aliases=["py"];function Z(b){b.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},b.languages.python["string-interpolation"].inside.interpolation.inside.rest=b.languages.python,b.languages.py=b.languages.python}},55762:function(Ie){"use strict";Ie.exports=Z,Z.displayName="q",Z.aliases=[];function Z(b){b.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}},4137:function(Ie){"use strict";Ie.exports=Z,Z.displayName="qml",Z.aliases=[];function Z(b){(function(B){for(var Y=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,s=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,E=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,function(){return Y}).replace(/<comment>/g,function(){return s}),I=0;I<2;I++)E=E.replace(/<expr>/g,function(){return E});E=E.replace(/<expr>/g,"[^\\s\\S]"),B.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(<js>*\)\s*\{<js>*\}/.source.replace(/<js>/g,function(){return E}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:B.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}])<js>)+/.source.replace(/<js>/g,function(){return E}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:B.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(b)}},28260:function(Ie){"use strict";Ie.exports=Z,Z.displayName="qore",Z.aliases=[];function Z(b){b.languages.qore=b.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}},71360:function(Ie){"use strict";Ie.exports=Z,Z.displayName="qsharp",Z.aliases=["qs"];function Z(b){(function(B){function Y(h,m){return h.replace(/<<(\d+)>>/g,function(x,T){return"(?:"+m[+T]+")"})}function s(h,m,x){return RegExp(Y(h,m),x||"")}function E(h,m){for(var x=0;x<m;x++)h=h.replace(/<<self>>/g,function(){return"(?:"+h+")"});return h.replace(/<<self>>/g,"[^\\s\\S]")}var I={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function u(h){return"\\b(?:"+h.trim().replace(/ /g,"|")+")\\b"}var d=RegExp(u(I.type+" "+I.other)),g=/\b[A-Za-z_]\w*\b/.source,y=Y(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[g]),S={keyword:d,punctuation:/[<>()?,.:[\]]/},v=/"(?:\\.|[^\\"])*"/.source;B.languages.qsharp=B.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:s(/(^|[^$\\])<<0>>/.source,[v]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:s(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[y]),lookbehind:!0,inside:S},{pattern:s(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[y]),lookbehind:!0,inside:S}],keyword:d,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),B.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var c=E(Y(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[v]),2);B.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:s(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[c]),greedy:!0,inside:{interpolation:{pattern:s(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[c]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:B.languages.qsharp}}},string:/[\s\S]+/}}})})(b),b.languages.qs=b.languages.qsharp}},29308:function(Ie){"use strict";Ie.exports=Z,Z.displayName="r",Z.aliases=[];function Z(b){b.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}},32168:function(Ie,Z,b){"use strict";var B=b(9997);Ie.exports=Y,Y.displayName="racket",Y.aliases=["rkt"];function Y(s){s.register(B),s.languages.racket=s.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),s.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),s.languages.rkt=s.languages.racket}},5755:function(Ie){"use strict";Ie.exports=Z,Z.displayName="reason",Z.aliases=[];function Z(b){b.languages.reason=b.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),b.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete b.languages.reason.function}},54105:function(Ie){"use strict";Ie.exports=Z,Z.displayName="regex",Z.aliases=[];function Z(b){(function(B){var Y={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},s=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,E={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},I={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},u="(?:[^\\\\-]|"+s.source+")",d=RegExp(u+"-"+u),g={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};B.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:d,inside:{escape:s,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":Y,"char-set":I,escape:s}},"special-escape":Y,"char-set":E,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":g}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:s,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":g}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(b)}},93503:function(Ie){"use strict";Ie.exports=Z,Z.displayName="rego",Z.aliases=[];function Z(b){b.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}},35108:function(Ie){"use strict";Ie.exports=Z,Z.displayName="renpy",Z.aliases=["rpy"];function Z(b){b.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},b.languages.rpy=b.languages.renpy}},46678:function(Ie){"use strict";Ie.exports=Z,Z.displayName="rest",Z.aliases=[];function Z(b){b.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}},47496:function(Ie){"use strict";Ie.exports=Z,Z.displayName="rip",Z.aliases=[];function Z(b){b.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}},30527:function(Ie){"use strict";Ie.exports=Z,Z.displayName="roboconf",Z.aliases=[];function Z(b){b.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}},5261:function(Ie){"use strict";Ie.exports=Z,Z.displayName="robotframework",Z.aliases=[];function Z(b){(function(B){var Y={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},s={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function E(g,y){var S={};S["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var v in y)S[v]=y[v];return S.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},S.variable=s,S.comment=Y,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return g}),"im"),alias:"section",inside:S}}var I={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},u={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:s}},d={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:s}};B.languages.robotframework={settings:E("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:E("Variables"),"test-cases":E("Test Cases",{"test-name":u,documentation:I,property:d}),keywords:E("Keywords",{"keyword-name":u,documentation:I,property:d}),tasks:E("Tasks",{"task-name":u,documentation:I,property:d}),comment:Y},B.languages.robot=B.languages.robotframework})(b)}},56939:function(Ie){"use strict";Ie.exports=Z,Z.displayName="ruby",Z.aliases=["rb"];function Z(b){(function(B){B.languages.ruby=B.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),B.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var Y={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:B.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete B.languages.ruby.function;var s="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",E=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;B.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+s+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:Y,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:Y,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+E),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+E+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),B.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+s),greedy:!0,inside:{interpolation:Y,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:Y,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:Y,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+s),greedy:!0,inside:{interpolation:Y,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:Y,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete B.languages.ruby.string,B.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),B.languages.rb=B.languages.ruby})(b)}},83648:function(Ie){"use strict";Ie.exports=Z,Z.displayName="rust",Z.aliases=[];function Z(b){(function(B){for(var Y=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,s=0;s<2;s++)Y=Y.replace(/<self>/g,function(){return Y});Y=Y.replace(/<self>/g,function(){return/[^\s\S]/.source}),B.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+Y),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},B.languages.rust["closure-params"].inside.rest=B.languages.rust,B.languages.rust.attribute.inside.string=B.languages.rust.string})(b)}},16009:function(Ie){"use strict";Ie.exports=Z,Z.displayName="sas",Z.aliases=[];function Z(b){(function(B){var Y=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,s=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,E={pattern:RegExp(Y+"[bx]"),alias:"number"},I={pattern:/&[a-z_]\w*/i},u={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},d={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},g=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],y={pattern:RegExp(Y),greedy:!0},S=/[$%@.(){}\[\];,\\]/,v={pattern:/%?\b\w+(?=\()/,alias:"keyword"},c={function:v,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":I,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:s,"numeric-constant":E,punctuation:S,string:y},h={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},m={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},x={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},T={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},_=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,R={pattern:RegExp(/(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(/<act>/g,function(){return _}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g,function(){return _}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:g,function:v,"arg-value":c["arg-value"],operator:c.operator,argument:c.arg,number:s,"numeric-constant":E,punctuation:S,string:y}},A={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};B.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:<str>|[^;"'])+;/.source.replace(/<str>/g,function(){return Y}),"im"),alias:"language-sql",inside:B.languages.sql},"global-statements":x,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:s,"numeric-constant":E,punctuation:S,string:y}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:g,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return Y}),"im"),lookbehind:!0,alias:"language-groovy",inside:B.languages.groovy},keyword:A,"submit-statement":T,"global-statements":x,number:s,"numeric-constant":E,punctuation:S,string:y}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:g,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return Y}),"im"),lookbehind:!0,alias:"language-lua",inside:B.languages.lua},keyword:A,"submit-statement":T,"global-statements":x,number:s,"numeric-constant":E,punctuation:S,string:y}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:g,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:c}},"cas-actions":R,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:c},step:d,keyword:A,function:v,format:h,altformat:m,"global-statements":x,number:s,"numeric-constant":E,punctuation:S,string:y}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,function(){return Y}),"im"),lookbehind:!0,inside:c},"macro-keyword":u,"macro-variable":I,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":u,"macro-variable":I,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:S}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:g,number:s,"numeric-constant":E}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:c},"cas-actions":R,comment:g,function:v,format:h,altformat:m,"numeric-constant":E,datetime:{pattern:RegExp(Y+"(?:dt?|t)"),alias:"number"},string:y,step:d,keyword:A,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:s,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:S}})(b)}},41720:function(Ie){"use strict";Ie.exports=Z,Z.displayName="sass",Z.aliases=[];function Z(b){(function(B){B.languages.sass=B.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),B.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete B.languages.sass.atrule;var Y=/\$[-\w]+|#\{\$[-\w]+\}/,s=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];B.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:Y,operator:s}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:Y,operator:s,important:B.languages.sass.important}}}),delete B.languages.sass.property,delete B.languages.sass.important,B.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(b)}},6054:function(Ie,Z,b){"use strict";var B=b(15909);Ie.exports=Y,Y.displayName="scala",Y.aliases=[];function Y(s){s.register(B),s.languages.scala=s.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),s.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:s.languages.scala}}},string:/[\s\S]+/}}}),delete s.languages.scala["class-name"],delete s.languages.scala.function}},9997:function(Ie){"use strict";Ie.exports=Z,Z.displayName="scheme",Z.aliases=[];function Z(b){(function(B){B.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(Y({"<ureal dec>":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"<real dec>":/[+-]?<ureal dec>|[+-](?:inf|nan)\.0/.source,"<imaginary dec>":/[+-](?:<ureal dec>|(?:inf|nan)\.0)?i/.source,"<complex dec>":/<real dec>(?:@<real dec>|<imaginary dec>)?|<imaginary dec>/.source,"<num dec>":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?<complex dec>/.source,"<ureal box>":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"<real box>":/[+-]?<ureal box>|[+-](?:inf|nan)\.0/.source,"<imaginary box>":/[+-](?:<ureal box>|(?:inf|nan)\.0)?i/.source,"<complex box>":/<real box>(?:@<real box>|<imaginary box>)?|<imaginary box>/.source,"<num box>":/#[box](?:#[ei])?|(?:#[ei])?#[box]<complex box>/.source,"<number>":/(^|[()\[\]\s])(?:<num dec>|<num box>)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function Y(s){for(var E in s)s[E]=s[E].replace(/<[\w\s]+>/g,function(I){return"(?:"+s[I].trim()+")"});return s[E]}})(b)}},24296:function(Ie){"use strict";Ie.exports=Z,Z.displayName="scss",Z.aliases=[];function Z(b){b.languages.scss=b.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),b.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),b.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),b.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),b.languages.scss.atrule.inside.rest=b.languages.scss}},49246:function(Ie,Z,b){"use strict";var B=b(6979);Ie.exports=Y,Y.displayName="shellSession",Y.aliases=[];function Y(s){s.register(B),function(E){var I=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");E.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<<str>>)+/.source.replace(/<<str>>/g,function(){return I}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:E.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},E.languages["sh-session"]=E.languages.shellsession=E.languages["shell-session"]}(s)}},18890:function(Ie){"use strict";Ie.exports=Z,Z.displayName="smali",Z.aliases=[];function Z(b){b.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}},11037:function(Ie){"use strict";Ie.exports=Z,Z.displayName="smalltalk",Z.aliases=[];function Z(b){b.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}},64020:function(Ie,Z,b){"use strict";var B=b(93205);Ie.exports=Y,Y.displayName="smarty",Y.aliases=[];function Y(s){s.register(B),function(E){E.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:E.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},E.languages.smarty["embedded-php"].inside.smarty.inside=E.languages.smarty,E.languages.smarty.string[0].inside.interpolation.inside.expression.inside=E.languages.smarty;var I=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,u=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,function(){return I.source}),"g");E.hooks.add("before-tokenize",function(d){var g="{literal}",y="{/literal}",S=!1;E.languages["markup-templating"].buildPlaceholders(d,"smarty",u,function(v){return v===y&&(S=!1),S?!1:(v===g&&(S=!0),!0)})}),E.hooks.add("after-tokenize",function(d){E.languages["markup-templating"].tokenizePlaceholders(d,"smarty")})}(s)}},49760:function(Ie){"use strict";Ie.exports=Z,Z.displayName="sml",Z.aliases=["smlnj"];function Z(b){(function(B){var Y=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;B.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)<TERMINAL>(?:\s*(?:(?:\*|->)\s*<TERMINAL>|,\s*<TERMINAL>(?:(?=<NOT-LAST>)|(?!<NOT-LAST>)\s+<LONG-ID>)))*/.source.replace(/<NOT-LAST>/g,function(){return/\s*(?:[*,]|->)/.source}).replace(/<TERMINAL>/g,function(){return/(?:'[\w']*|<LONG-ID>|\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+<LONG-ID>)*/.source}).replace(/<LONG-ID>/g,function(){return/(?!<KEYWORD>)[a-z\d_][\w'.]*/.source}).replace(/<KEYWORD>/g,function(){return Y.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:Y,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},B.languages.sml["class-name"][0].inside=B.languages.sml,B.languages.smlnj=B.languages.sml})(b)}},33351:function(Ie){"use strict";Ie.exports=Z,Z.displayName="solidity",Z.aliases=["sol"];function Z(b){b.languages.solidity=b.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),b.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),b.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),b.languages.sol=b.languages.solidity}},13570:function(Ie){"use strict";Ie.exports=Z,Z.displayName="solutionFile",Z.aliases=[];function Z(b){(function(B){var Y={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};B.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:Y}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:Y}},guid:Y,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},B.languages.sln=B.languages["solution-file"]})(b)}},38181:function(Ie,Z,b){"use strict";var B=b(93205);Ie.exports=Y,Y.displayName="soy",Y.aliases=[];function Y(s){s.register(B),function(E){var I=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,u=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;E.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:I,greedy:!0},number:u,punctuation:/[\[\].?]/}},string:{pattern:I,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:u,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},E.hooks.add("before-tokenize",function(d){var g=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,y="{literal}",S="{/literal}",v=!1;E.languages["markup-templating"].buildPlaceholders(d,"soy",g,function(c){return c===S&&(v=!1),v?!1:(c===y&&(v=!0),!0)})}),E.hooks.add("after-tokenize",function(d){E.languages["markup-templating"].tokenizePlaceholders(d,"soy")})}(s)}},98774:function(Ie,Z,b){"use strict";var B=b(24691);Ie.exports=Y,Y.displayName="sparql",Y.aliases=["rq"];function Y(s){s.register(B),s.languages.sparql=s.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),s.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),s.languages.rq=s.languages.sparql}},22855:function(Ie){"use strict";Ie.exports=Z,Z.displayName="splunkSpl",Z.aliases=[];function Z(b){b.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}},29611:function(Ie){"use strict";Ie.exports=Z,Z.displayName="sqf",Z.aliases=[];function Z(b){b.languages.sqf=b.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),b.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:b.languages.sqf.comment}}}),delete b.languages.sqf["class-name"]}},11114:function(Ie){"use strict";Ie.exports=Z,Z.displayName="sql",Z.aliases=[];function Z(b){b.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}},67386:function(Ie){"use strict";Ie.exports=Z,Z.displayName="squirrel",Z.aliases=[];function Z(b){b.languages.squirrel=b.languages.extend("clike",{comment:[b.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),b.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),b.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}},28067:function(Ie){"use strict";Ie.exports=Z,Z.displayName="stan",Z.aliases=[];function Z(b){(function(B){var Y=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;B.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+Y.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,Y],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},B.languages.stan.constraint.inside.expression.inside=B.languages.stan})(b)}},49168:function(Ie){"use strict";Ie.exports=Z,Z.displayName="stylus",Z.aliases=[];function Z(b){(function(B){var Y={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},s={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},E={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:Y,number:s,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:Y,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:s,punctuation:/[{}()\[\];:,]/};E.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:E}},E.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:E}},B.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:E}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:E}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:E}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:E.interpolation}},rest:E}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:E.interpolation,comment:E.comment,punctuation:/[{},]/}},func:E.func,string:E.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:E.interpolation,punctuation:/[{}()\[\];:.]/}})(b)}},23651:function(Ie){"use strict";Ie.exports=Z,Z.displayName="swift",Z.aliases=[];function Z(b){b.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},b.languages.swift["string-literal"].forEach(function(B){B.inside.interpolation.inside=b.languages.swift})}},21483:function(Ie){"use strict";Ie.exports=Z,Z.displayName="systemd",Z.aliases=[];function Z(b){(function(B){var Y={pattern:/^[;#].*/m,greedy:!0},s=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;B.languages.systemd={comment:Y,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+s+`|(?=[^"\r
]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+s+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:Y,quoted:{pattern:RegExp(/(^|\s)/.source+s),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(b)}},32268:function(Ie,Z,b){"use strict";var B=b(2329),Y=b(61958);Ie.exports=s,s.displayName="t4Cs",s.aliases=[];function s(E){E.register(B),E.register(Y),E.languages.t4=E.languages["t4-cs"]=E.languages["t4-templating"].createT4("csharp")}},2329:function(Ie){"use strict";Ie.exports=Z,Z.displayName="t4Templating",Z.aliases=[];function Z(b){(function(B){function Y(E,I,u){return{pattern:RegExp("<#"+E+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+E+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:I,alias:u}}}}function s(E){var I=B.languages[E],u="language-"+E;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:Y("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:Y("=",I,u),"class-feature":Y("\\+",I,u),standard:Y("",I,u)}}}}B.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:s})})(b)}},82996:function(Ie,Z,b){"use strict";var B=b(2329),Y=b(53813);Ie.exports=s,s.displayName="t4Vb",s.aliases=[];function s(E){E.register(B),E.register(Y),E.languages["t4-vb"]=E.languages["t4-templating"].createT4("vbnet")}},17290:function(Ie,Z,b){"use strict";var B=b(65039);Ie.exports=Y,Y.displayName="tap",Y.aliases=[];function Y(s){s.register(B),s.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:s.languages.yaml,alias:"language-yaml"}}}},67989:function(Ie){"use strict";Ie.exports=Z,Z.displayName="tcl",Z.aliases=[];function Z(b){b.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}},31065:function(Ie){"use strict";Ie.exports=Z,Z.displayName="textile",Z.aliases=[];function Z(b){(function(B){var Y=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,s=/\)|\((?![^|()\n]+\))/.source;function E(v,c){return RegExp(v.replace(/<MOD>/g,function(){return"(?:"+Y+")"}).replace(/<PAR>/g,function(){return"(?:"+s+")"}),c||"")}var I={css:{pattern:/\{[^{}]+\}/,inside:{rest:B.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},u=B.languages.textile=B.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:E(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:E(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:I},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:E(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:E(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:I},punctuation:/^[*#]+/}},table:{pattern:E(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:E(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:I},punctuation:/\||^\./}},inline:{pattern:E(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:E(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:E(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:E(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:E(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:E(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:E(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:E(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:E(/(^\*\*|__|\?\?|[*_%@+\-^~])<MOD>+/.source),lookbehind:!0,inside:I},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:E(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:E(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:E(/(^")<MOD>+/.source),lookbehind:!0,inside:I},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:E(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:E(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:E(/(^!)(?:<MOD>|<PAR>|[<>=])+/.source),lookbehind:!0,inside:I},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),d=u.phrase.inside,g={inline:d.inline,link:d.link,image:d.image,footnote:d.footnote,acronym:d.acronym,mark:d.mark};u.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var y=d.inline.inside;y.bold.inside=g,y.italic.inside=g,y.inserted.inside=g,y.deleted.inside=g,y.span.inside=g;var S=d.table.inside;S.inline=g.inline,S.link=g.link,S.image=g.image,S.footnote=g.footnote,S.acronym=g.acronym,S.mark=g.mark})(b)}},85572:function(Ie){"use strict";Ie.exports=Z,Z.displayName="toml",Z.aliases=[];function Z(b){(function(B){var Y=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function s(E){return E.replace(/__/g,function(){return Y})}B.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(s(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(s(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(b)}},27536:function(Ie){"use strict";Ie.exports=Z,Z.displayName="tremor",Z.aliases=[];function Z(b){(function(B){B.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var Y=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;B.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+Y+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+Y+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(Y),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:B.languages.tremor}}},string:/[\s\S]+/}},B.languages.troy=B.languages.tremor,B.languages.trickle=B.languages.tremor})(b)}},87041:function(Ie,Z,b){"use strict";var B=b(96412),Y=b(4979);Ie.exports=s,s.displayName="tsx",s.aliases=[];function s(E){E.register(B),E.register(Y),function(I){var u=I.util.clone(I.languages.typescript);I.languages.tsx=I.languages.extend("jsx",u),delete I.languages.tsx.parameter,delete I.languages.tsx["literal-property"];var d=I.languages.tsx.tag;d.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+d.pattern.source+")",d.pattern.flags),d.lookbehind=!0}(E)}},61028:function(Ie,Z,b){"use strict";var B=b(93205);Ie.exports=Y,Y.displayName="tt2",Y.aliases=[];function Y(s){s.register(B),function(E){E.languages.tt2=E.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),E.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),E.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),E.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete E.languages.tt2.string,E.hooks.add("before-tokenize",function(I){var u=/\[%[\s\S]+?%\]/g;E.languages["markup-templating"].buildPlaceholders(I,"tt2",u)}),E.hooks.add("after-tokenize",function(I){E.languages["markup-templating"].tokenizePlaceholders(I,"tt2")})}(s)}},24691:function(Ie){"use strict";Ie.exports=Z,Z.displayName="turtle",Z.aliases=[];function Z(b){b.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},b.languages.trig=b.languages.turtle}},19892:function(Ie,Z,b){"use strict";var B=b(93205);Ie.exports=Y,Y.displayName="twig",Y.aliases=[];function Y(s){s.register(B),s.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},s.hooks.add("before-tokenize",function(E){if(E.language==="twig"){var I=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;s.languages["markup-templating"].buildPlaceholders(E,"twig",I)}}),s.hooks.add("after-tokenize",function(E){s.languages["markup-templating"].tokenizePlaceholders(E,"twig")})}},4979:function(Ie){"use strict";Ie.exports=Z,Z.displayName="typescript",Z.aliases=["ts"];function Z(b){(function(B){B.languages.typescript=B.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),B.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete B.languages.typescript.parameter,delete B.languages.typescript["literal-property"];var Y=B.languages.extend("typescript",{});delete Y["class-name"],B.languages.typescript["class-name"].inside=Y,B.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:Y}}}}),B.languages.ts=B.languages.typescript})(b)}},23159:function(Ie){"use strict";Ie.exports=Z,Z.displayName="typoscript",Z.aliases=["tsconfig"];function Z(b){(function(B){var Y=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;B.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern:/<INCLUDE_TYPOSCRIPT:\s*source\s*=\s*(?:"[^"\r\n]*"|'[^'\r\n]*')\s*>/,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:Y}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:Y,number:/^\d+$/,punctuation:/[,|:]/}},keyword:Y,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},B.languages.tsconfig=B.languages.typoscript})(b)}},34966:function(Ie){"use strict";Ie.exports=Z,Z.displayName="unrealscript",Z.aliases=["uc","uscript"];function Z(b){b.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},b.languages.uc=b.languages.uscript=b.languages.unrealscript}},44623:function(Ie){"use strict";Ie.exports=Z,Z.displayName="uorazor",Z.aliases=[];function Z(b){b.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}},38521:function(Ie){"use strict";Ie.exports=Z,Z.displayName="uri",Z.aliases=["url"];function Z(b){b.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},b.languages.url=b.languages.uri}},7255:function(Ie){"use strict";Ie.exports=Z,Z.displayName="v",Z.aliases=[];function Z(b){(function(B){var Y={pattern:/[\s\S]+/,inside:null};B.languages.v=B.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":Y}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),Y.inside=B.languages.v,B.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),B.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),B.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:B.languages.v.generic.inside}}}})})(b)}},28173:function(Ie){"use strict";Ie.exports=Z,Z.displayName="vala",Z.aliases=[];function Z(b){b.languages.vala=b.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),b.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:b.languages.vala}},string:/[\s\S]+/}}}),b.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:b.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}},53813:function(Ie,Z,b){"use strict";var B=b(46241);Ie.exports=Y,Y.displayName="vbnet",Y.aliases=[];function Y(s){s.register(B),s.languages.vbnet=s.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}},46891:function(Ie){"use strict";Ie.exports=Z,Z.displayName="velocity",Z.aliases=[];function Z(b){(function(B){B.languages.velocity=B.languages.extend("markup",{});var Y={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};Y.variable.inside={string:Y.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:Y.number,boolean:Y.boolean,punctuation:Y.punctuation},B.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:Y}},variable:Y.variable}),B.languages.velocity.tag.inside["attr-value"].inside.rest=B.languages.velocity})(b)}},91824:function(Ie){"use strict";Ie.exports=Z,Z.displayName="verilog",Z.aliases=[];function Z(b){b.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}},9447:function(Ie){"use strict";Ie.exports=Z,Z.displayName="vhdl",Z.aliases=[];function Z(b){b.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,constant:/\b(?:library|use)\b/i,keyword:/\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}},53062:function(Ie){"use strict";Ie.exports=Z,Z.displayName="vim",Z.aliases=[];function Z(b){b.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}},46215:function(Ie){"use strict";Ie.exports=Z,Z.displayName="visualBasic",Z.aliases=[];function Z(b){b.languages["visual-basic"]={comment:{pattern:/(?:[']|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},b.languages.vb=b.languages["visual-basic"],b.languages.vba=b.languages["visual-basic"]}},10784:function(Ie){"use strict";Ie.exports=Z,Z.displayName="warpscript",Z.aliases=[];function Z(b){b.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}},17684:function(Ie){"use strict";Ie.exports=Z,Z.displayName="wasm",Z.aliases=[];function Z(b){b.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}},64851:function(Ie){"use strict";Ie.exports=Z,Z.displayName="webIdl",Z.aliases=[];function Z(b){(function(B){var Y=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,s="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+Y+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,E={};B.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+Y),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:E},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+s),lookbehind:!0,inside:E},{pattern:RegExp("("+/\bcallback\s+/.source+Y+/\s*=\s*/.source+")"+s),lookbehind:!0,inside:E},{pattern:RegExp(/(\btypedef\b\s*)/.source+s),lookbehind:!0,inside:E},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+Y),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+Y),lookbehind:!0},RegExp(Y+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+Y),lookbehind:!0},{pattern:RegExp(s+"(?="+/\s*(?:\.{3}\s*)?/.source+Y+/\s*[(),;=]/.source+")"),inside:E}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var I in B.languages["web-idl"])I!=="class-name"&&(E[I]=B.languages["web-idl"][I]);B.languages.webidl=B.languages["web-idl"]})(b)}},18191:function(Ie){"use strict";Ie.exports=Z,Z.displayName="wiki",Z.aliases=[];function Z(b){b.languages.wiki=b.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:b.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),b.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:b.languages.markup.tag.inside}}}})}},75242:function(Ie){"use strict";Ie.exports=Z,Z.displayName="wolfram",Z.aliases=["mathematica","wl","nb"];function Z(b){b.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},b.languages.mathematica=b.languages.wolfram,b.languages.wl=b.languages.wolfram,b.languages.nb=b.languages.wolfram}},93639:function(Ie){"use strict";Ie.exports=Z,Z.displayName="wren",Z.aliases=[];function Z(b){b.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},b.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:b.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}},97202:function(Ie){"use strict";Ie.exports=Z,Z.displayName="xeora",Z.aliases=["xeoracube"];function Z(b){(function(B){B.languages.xeora=B.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),B.languages.insertBefore("inside","punctuation",{variable:B.languages.xeora["function-inline"].inside.variable},B.languages.xeora["function-block"]),B.languages.xeoracube=B.languages.xeora})(b)}},13808:function(Ie){"use strict";Ie.exports=Z,Z.displayName="xmlDoc",Z.aliases=[];function Z(b){(function(B){function Y(u,d){B.languages[u]&&B.languages.insertBefore(u,"comment",{"doc-comment":d})}var s=B.languages.markup.tag,E={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:s}},I={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:s}};Y("csharp",E),Y("fsharp",E),Y("vbnet",I)})(b)}},21301:function(Ie){"use strict";Ie.exports=Z,Z.displayName="xojo",Z.aliases=[];function Z(b){b.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}},20349:function(Ie){"use strict";Ie.exports=Z,Z.displayName="xquery",Z.aliases=[];function Z(b){(function(B){B.languages.xquery=B.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),B.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,B.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,B.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,B.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:B.languages.xquery,alias:"language-xquery"};var Y=function(E){return typeof E=="string"?E:typeof E.content=="string"?E.content:E.content.map(Y).join("")},s=function(E){for(var I=[],u=0;u<E.length;u++){var d=E[u],g=!1;if(typeof d!="string"&&(d.type==="tag"&&d.content[0]&&d.content[0].type==="tag"?d.content[0].content[0].content==="</"?I.length>0&&I[I.length-1].tagName===Y(d.content[0].content[1])&&I.pop():d.content[d.content.length-1].content==="/>"||I.push({tagName:Y(d.content[0].content[1]),openedBraces:0}):I.length>0&&d.type==="punctuation"&&d.content==="{"&&(!E[u+1]||E[u+1].type!=="punctuation"||E[u+1].content!=="{")&&(!E[u-1]||E[u-1].type!=="plain-text"||E[u-1].content!=="{")?I[I.length-1].openedBraces++:I.length>0&&I[I.length-1].openedBraces>0&&d.type==="punctuation"&&d.content==="}"?I[I.length-1].openedBraces--:d.type!=="comment"&&(g=!0)),(g||typeof d=="string")&&I.length>0&&I[I.length-1].openedBraces===0){var y=Y(d);u<E.length-1&&(typeof E[u+1]=="string"||E[u+1].type==="plain-text")&&(y+=Y(E[u+1]),E.splice(u+1,1)),u>0&&(typeof E[u-1]=="string"||E[u-1].type==="plain-text")&&(y=Y(E[u-1])+y,E.splice(u-1,1),u--),/^\s+$/.test(y)?E[u]=y:E[u]=new B.Token("plain-text",y,null,y)}d.content&&typeof d.content!="string"&&s(d.content)}};B.hooks.add("after-tokenize",function(E){E.language==="xquery"&&s(E.tokens)})})(b)}},65039:function(Ie){"use strict";Ie.exports=Z,Z.displayName="yaml",Z.aliases=["yml"];function Z(b){(function(B){var Y=/[*&][^\s[\]{},]+/,s=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,E="(?:"+s.source+"(?:[ ]+"+Y.source+")?|"+Y.source+"(?:[ ]+"+s.source+")?)",I=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),u=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function d(g,y){y=(y||"").replace(/m/g,"")+"m";var S=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return E}).replace(/<<value>>/g,function(){return g});return RegExp(S,y)}B.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return E})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return E}).replace(/<<key>>/g,function(){return"(?:"+I+"|"+u+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:d(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:d(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:d(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:d(u),lookbehind:!0,greedy:!0},number:{pattern:d(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:s,important:Y,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},B.languages.yml=B.languages.yaml})(b)}},96319:function(Ie){"use strict";Ie.exports=Z,Z.displayName="yang",Z.aliases=[];function Z(b){b.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}},31501:function(Ie){"use strict";Ie.exports=Z,Z.displayName="zig",Z.aliases=[];function Z(b){(function(B){function Y(y){return function(){return y}}var s=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,E="\\b(?!"+s.source+")(?!\\d)\\w+\\b",I=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,u=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,Y(I)),d=/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,Y(E)),g="(?!\\s)(?:!?\\s*(?:"+u+"\\s*)*"+d+")+";B.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?[=;,)])|<TYPE>(?=\s*(?:<ALIGN>\s*)?\{)/.source.replace(/<TYPE>/g,Y(g)).replace(/<ALIGN>/g,Y(I))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,Y(g)).replace(/<ALIGN>/g,Y(I))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:s,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},B.languages.zig["class-name"].forEach(function(y){y.inside===null&&(y.inside=B.languages.zig)})})(b)}},97003:function(Ie,Z){"use strict";var b;Z.Q=E,b=I;var B=",",Y=" ",s="";function E(u){for(var d=[],g=String(u||s),y=g.indexOf(B),S=0,v=!1,c;!v;)y===-1&&(y=g.length,v=!0),c=g.slice(S,y).trim(),(c||!v)&&d.push(c),S=y+1,y=g.indexOf(B,S);return d}function I(u,d){var g=d||{},y=g.padLeft===!1?s:Y,S=g.padRight?Y:s;return u[u.length-1]===s&&(u=u.concat(s)),u.join(S+B+y).trim()}},34995:function(Ie){"use strict";Ie.exports=b;var Z=/[#.]/g;function b(B,Y){for(var s=B||"",E=Y||"div",I={},u=0,d,g,y;u<s.length;)Z.lastIndex=u,y=Z.exec(s),d=s.slice(u,y?y.index:s.length),d&&(g?g==="#"?I.id=d:I.className?I.className.push(d):I.className=[d]:E=d,u+=d.length),y&&(g=y[0],u++);return{type:"element",tagName:E,properties:I,children:[]}}},6509:function(Ie,Z,b){"use strict";var B=b(65605),Y=b(33343),s=b(34995),E=b(42749).Q,I=b(97003).Q;Ie.exports=d;var u={}.hasOwnProperty;function d(x,T,_){var R=_?m(_):null;return A;function A(L,M){var F=s(L,T),H=Array.prototype.slice.call(arguments,2),P=F.tagName.toLowerCase(),V;if(F.tagName=R&&u.call(R,P)?R[P]:P,M&&g(M,F)&&(H.unshift(M),M=null),M)for(V in M)N(F.properties,V,M[V]);return S(F.children,H),F.tagName==="template"&&(F.content={type:"root",children:F.children},F.children=[]),F}function N(L,M,F){var H,P,V;F==null||F!==F||(H=B(x,M),P=H.property,V=F,typeof V=="string"&&(H.spaceSeparated?V=E(V):H.commaSeparated?V=I(V):H.commaOrSpaceSeparated&&(V=E(I(V).join(" ")))),P==="style"&&typeof F!="string"&&(V=h(V)),P==="className"&&L.className&&(V=L.className.concat(V)),L[P]=v(H,P,V))}}function g(x,T){return typeof x=="string"||"length"in x||y(T.tagName,x)}function y(x,T){var _=T.type;return x==="input"||!_||typeof _!="string"?!1:typeof T.children=="object"&&"length"in T.children?!0:(_=_.toLowerCase(),x==="button"?_!=="menu"&&_!=="submit"&&_!=="reset"&&_!=="button":"value"in T)}function S(x,T){var _,R;if(typeof T=="string"||typeof T=="number"){x.push({type:"text",value:String(T)});return}if(typeof T=="object"&&"length"in T){for(_=-1,R=T.length;++_<R;)S(x,T[_]);return}if(typeof T!="object"||!("type"in T))throw new Error("Expected node, nodes, or string, got `"+T+"`");x.push(T)}function v(x,T,_){var R,A,N;if(typeof _!="object"||!("length"in _))return c(x,T,_);for(A=_.length,R=-1,N=[];++R<A;)N[R]=c(x,T,_[R]);return N}function c(x,T,_){var R=_;return x.number||x.positiveNumber?!isNaN(R)&&R!==""&&(R=Number(R)):(x.boolean||x.overloadedBoolean)&&typeof R=="string"&&(R===""||Y(_)===Y(T))&&(R=!0),R}function h(x){var T=[],_;for(_ in x)T.push([_,x[_]].join(": "));return T.join("; ")}function m(x){for(var T=x.length,_=-1,R={},A;++_<T;)A=x[_],R[A.toLowerCase()]=A;return R}},51575:function(Ie,Z,b){"use strict";var B=b(17034),Y=b(6509),s=Y(B,"div");s.displayName="html",Ie.exports=s},90871:function(Ie,Z,b){"use strict";Ie.exports=b(51575)},59216:function(Ie,Z,b){var B=typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{};var Y=function(s){var E=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,I=0,u={},d={manual:s.Prism&&s.Prism.manual,disableWorkerMessageHandler:s.Prism&&s.Prism.disableWorkerMessageHandler,util:{encode:function R(A){return A instanceof g?new g(A.type,R(A.content),A.alias):Array.isArray(A)?A.map(R):A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(R){return Object.prototype.toString.call(R).slice(8,-1)},objId:function(R){return R.__id||Object.defineProperty(R,"__id",{value:++I}),R.__id},clone:function R(A,N){N=N||{};var L,M;switch(d.util.type(A)){case"Object":if(M=d.util.objId(A),N[M])return N[M];L={},N[M]=L;for(var F in A)A.hasOwnProperty(F)&&(L[F]=R(A[F],N));return L;case"Array":return M=d.util.objId(A),N[M]?N[M]:(L=[],N[M]=L,A.forEach(function(H,P){L[P]=R(H,N)}),L);default:return A}},getLanguage:function(R){for(;R;){var A=E.exec(R.className);if(A)return A[1].toLowerCase();R=R.parentElement}return"none"},setLanguage:function(R,A){R.className=R.className.replace(RegExp(E,"gi"),""),R.classList.add("language-"+A)},currentScript:function(){if(typeof document=="undefined")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(L){var R=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(L.stack)||[])[1];if(R){var A=document.getElementsByTagName("script");for(var N in A)if(A[N].src==R)return A[N]}return null}},isActive:function(R,A,N){for(var L="no-"+A;R;){var M=R.classList;if(M.contains(A))return!0;if(M.contains(L))return!1;R=R.parentElement}return!!N}},languages:{plain:u,plaintext:u,text:u,txt:u,extend:function(R,A){var N=d.util.clone(d.languages[R]);for(var L in A)N[L]=A[L];return N},insertBefore:function(R,A,N,L){L=L||d.languages;var M=L[R],F={};for(var H in M)if(M.hasOwnProperty(H)){if(H==A)for(var P in N)N.hasOwnProperty(P)&&(F[P]=N[P]);N.hasOwnProperty(H)||(F[H]=M[H])}var V=L[R];return L[R]=F,d.languages.DFS(d.languages,function(G,Q){Q===V&&G!=R&&(this[G]=F)}),F},DFS:function R(A,N,L,M){M=M||{};var F=d.util.objId;for(var H in A)if(A.hasOwnProperty(H)){N.call(A,H,A[H],L||H);var P=A[H],V=d.util.type(P);V==="Object"&&!M[F(P)]?(M[F(P)]=!0,R(P,N,null,M)):V==="Array"&&!M[F(P)]&&(M[F(P)]=!0,R(P,N,H,M))}}},plugins:{},highlightAll:function(R,A){d.highlightAllUnder(document,R,A)},highlightAllUnder:function(R,A,N){var L={callback:N,container:R,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};d.hooks.run("before-highlightall",L),L.elements=Array.prototype.slice.apply(L.container.querySelectorAll(L.selector)),d.hooks.run("before-all-elements-highlight",L);for(var M=0,F;F=L.elements[M++];)d.highlightElement(F,A===!0,L.callback)},highlightElement:function(R,A,N){var L=d.util.getLanguage(R),M=d.languages[L];d.util.setLanguage(R,L);var F=R.parentElement;F&&F.nodeName.toLowerCase()==="pre"&&d.util.setLanguage(F,L);var H=R.textContent,P={element:R,language:L,grammar:M,code:H};function V(Q){P.highlightedCode=Q,d.hooks.run("before-insert",P),P.element.innerHTML=P.highlightedCode,d.hooks.run("after-highlight",P),d.hooks.run("complete",P),N&&N.call(P.element)}if(d.hooks.run("before-sanity-check",P),F=P.element.parentElement,F&&F.nodeName.toLowerCase()==="pre"&&!F.hasAttribute("tabindex")&&F.setAttribute("tabindex","0"),!P.code){d.hooks.run("complete",P),N&&N.call(P.element);return}if(d.hooks.run("before-highlight",P),!P.grammar){V(d.util.encode(P.code));return}if(A&&s.Worker){var G=new Worker(d.filename);G.onmessage=function(Q){V(Q.data)},G.postMessage(JSON.stringify({language:P.language,code:P.code,immediateClose:!0}))}else V(d.highlight(P.code,P.grammar,P.language))},highlight:function(R,A,N){var L={code:R,grammar:A,language:N};if(d.hooks.run("before-tokenize",L),!L.grammar)throw new Error('The language "'+L.language+'" has no grammar.');return L.tokens=d.tokenize(L.code,L.grammar),d.hooks.run("after-tokenize",L),g.stringify(d.util.encode(L.tokens),L.language)},tokenize:function(R,A){var N=A.rest;if(N){for(var L in N)A[L]=N[L];delete A.rest}var M=new v;return c(M,M.head,R),S(R,M,A,M.head,0),m(M)},hooks:{all:{},add:function(R,A){var N=d.hooks.all;N[R]=N[R]||[],N[R].push(A)},run:function(R,A){var N=d.hooks.all[R];if(!(!N||!N.length))for(var L=0,M;M=N[L++];)M(A)}},Token:g};s.Prism=d;function g(R,A,N,L){this.type=R,this.content=A,this.alias=N,this.length=(L||"").length|0}g.stringify=function R(A,N){if(typeof A=="string")return A;if(Array.isArray(A)){var L="";return A.forEach(function(V){L+=R(V,N)}),L}var M={type:A.type,content:R(A.content,N),tag:"span",classes:["token",A.type],attributes:{},language:N},F=A.alias;F&&(Array.isArray(F)?Array.prototype.push.apply(M.classes,F):M.classes.push(F)),d.hooks.run("wrap",M);var H="";for(var P in M.attributes)H+=" "+P+'="'+(M.attributes[P]||"").replace(/"/g,"&quot;")+'"';return"<"+M.tag+' class="'+M.classes.join(" ")+'"'+H+">"+M.content+"</"+M.tag+">"};function y(R,A,N,L){R.lastIndex=A;var M=R.exec(N);if(M&&L&&M[1]){var F=M[1].length;M.index+=F,M[0]=M[0].slice(F)}return M}function S(R,A,N,L,M,F){for(var H in N)if(!(!N.hasOwnProperty(H)||!N[H])){var P=N[H];P=Array.isArray(P)?P:[P];for(var V=0;V<P.length;++V){if(F&&F.cause==H+","+V)return;var G=P[V],Q=G.inside,ne=!!G.lookbehind,ue=!!G.greedy,ae=G.alias;if(ue&&!G.pattern.global){var he=G.pattern.toString().match(/[imsuy]*$/)[0];G.pattern=RegExp(G.pattern.source,he+"g")}for(var ce=G.pattern||G,we=L.next,me=M;we!==A.tail&&!(F&&me>=F.reach);me+=we.value.length,we=we.next){var Le=we.value;if(A.length>R.length)return;if(!(Le instanceof g)){var ee=1,se;if(ue){if(se=y(ce,me,R,ne),!se||se.index>=R.length)break;var Be=se.index,le=se.index+se[0].length,ke=me;for(ke+=we.value.length;Be>=ke;)we=we.next,ke+=we.value.length;if(ke-=we.value.length,me=ke,we.value instanceof g)continue;for(var De=we;De!==A.tail&&(ke<le||typeof De.value=="string");De=De.next)ee++,ke+=De.value.length;ee--,Le=R.slice(me,ke),se.index-=me}else if(se=y(ce,0,Le,ne),!se)continue;var Be=se.index,He=se[0],Fe=Le.slice(0,Be),Je=Le.slice(Be+He.length),Me=me+Le.length;F&&Me>F.reach&&(F.reach=Me);var lt=we.prev;Fe&&(lt=c(A,lt,Fe),me+=Fe.length),h(A,lt,ee);var Re=new g(H,Q?d.tokenize(He,Q):He,ae,He);if(we=c(A,lt,Re),Je&&c(A,we,Je),ee>1){var Oe={cause:H+","+V,reach:Me};S(R,A,N,we.prev,me,Oe),F&&Oe.reach>F.reach&&(F.reach=Oe.reach)}}}}}}function v(){var R={value:null,prev:null,next:null},A={value:null,prev:R,next:null};R.next=A,this.head=R,this.tail=A,this.length=0}function c(R,A,N){var L=A.next,M={value:N,prev:A,next:L};return A.next=M,L.prev=M,R.length++,M}function h(R,A,N){for(var L=A.next,M=0;M<N&&L!==R.tail;M++)L=L.next;A.next=L,L.prev=A,R.length-=M}function m(R){for(var A=[],N=R.head.next;N!==R.tail;)A.push(N.value),N=N.next;return A}if(!s.document)return s.addEventListener&&(d.disableWorkerMessageHandler||s.addEventListener("message",function(R){var A=JSON.parse(R.data),N=A.language,L=A.code,M=A.immediateClose;s.postMessage(d.highlight(L,d.languages[N],N)),M&&s.close()},!1)),d;var x=d.util.currentScript();x&&(d.filename=x.src,x.hasAttribute("data-manual")&&(d.manual=!0));function T(){d.manual||d.highlightAll()}if(!d.manual){var _=document.readyState;_==="loading"||_==="interactive"&&x&&x.defer?document.addEventListener("DOMContentLoaded",T):window.requestAnimationFrame?window.requestAnimationFrame(T):window.setTimeout(T,16)}return d}(B);Ie.exports&&(Ie.exports=Y),typeof b.g!="undefined"&&(b.g.Prism=Y)},65605:function(Ie,Z,b){"use strict";var B=b(33343),Y=b(3405),s=b(33806),E="data";Ie.exports=g;var I=/^data[-\w.:]+$/i,u=/-[a-z]/g,d=/[A-Z]/g;function g(h,m){var x=B(m),T=m,_=s;return x in h.normal?h.property[h.normal[x]]:(x.length>4&&x.slice(0,4)===E&&I.test(m)&&(m.charAt(4)==="-"?T=y(m):m=S(m),_=Y),new _(T,m))}function y(h){var m=h.slice(5).replace(u,c);return E+m.charAt(0).toUpperCase()+m.slice(1)}function S(h){var m=h.slice(4);return u.test(m)?h:(m=m.replace(d,v),m.charAt(0)!=="-"&&(m="-"+m),E+m)}function v(h){return"-"+h.toLowerCase()}function c(h){return h.charAt(1).toUpperCase()}},17034:function(Ie,Z,b){"use strict";var B=b(72627),Y=b(9501),s=b(90822),E=b(87109),I=b(25956),u=b(44330);Ie.exports=B([s,Y,E,I,u])},25956:function(Ie,Z,b){"use strict";var B=b(3941),Y=b(5260),s=B.booleanish,E=B.number,I=B.spaceSeparated;Ie.exports=Y({transform:u,properties:{ariaActiveDescendant:null,ariaAtomic:s,ariaAutoComplete:null,ariaBusy:s,ariaChecked:s,ariaColCount:E,ariaColIndex:E,ariaColSpan:E,ariaControls:I,ariaCurrent:null,ariaDescribedBy:I,ariaDetails:null,ariaDisabled:s,ariaDropEffect:I,ariaErrorMessage:null,ariaExpanded:s,ariaFlowTo:I,ariaGrabbed:s,ariaHasPopup:null,ariaHidden:s,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:I,ariaLevel:E,ariaLive:null,ariaModal:s,ariaMultiLine:s,ariaMultiSelectable:s,ariaOrientation:null,ariaOwns:I,ariaPlaceholder:null,ariaPosInSet:E,ariaPressed:s,ariaReadOnly:s,ariaRelevant:null,ariaRequired:s,ariaRoleDescription:I,ariaRowCount:E,ariaRowIndex:E,ariaRowSpan:E,ariaSelected:s,ariaSetSize:E,ariaSort:null,ariaValueMax:E,ariaValueMin:E,ariaValueNow:E,ariaValueText:null,role:null}});function u(d,g){return g==="role"?g:"aria-"+g.slice(4).toLowerCase()}},44330:function(Ie,Z,b){"use strict";var B=b(3941),Y=b(5260),s=b(86716),E=B.boolean,I=B.overloadedBoolean,u=B.booleanish,d=B.number,g=B.spaceSeparated,y=B.commaSeparated;Ie.exports=Y({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:s,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:y,acceptCharset:g,accessKey:g,action:null,allow:null,allowFullScreen:E,allowPaymentRequest:E,allowUserMedia:E,alt:null,as:null,async:E,autoCapitalize:null,autoComplete:g,autoFocus:E,autoPlay:E,capture:E,charSet:null,checked:E,cite:null,className:g,cols:d,colSpan:null,content:null,contentEditable:u,controls:E,controlsList:g,coords:d|y,crossOrigin:null,data:null,dateTime:null,decoding:null,default:E,defer:E,dir:null,dirName:null,disabled:E,download:I,draggable:u,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:E,formTarget:null,headers:g,height:d,hidden:E,high:d,href:null,hrefLang:null,htmlFor:g,httpEquiv:g,id:null,imageSizes:null,imageSrcSet:y,inputMode:null,integrity:null,is:null,isMap:E,itemId:null,itemProp:g,itemRef:g,itemScope:E,itemType:g,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:E,low:d,manifest:null,max:null,maxLength:d,media:null,method:null,min:null,minLength:d,multiple:E,muted:E,name:null,nonce:null,noModule:E,noValidate:E,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:E,optimum:d,pattern:null,ping:g,placeholder:null,playsInline:E,poster:null,preload:null,readOnly:E,referrerPolicy:null,rel:g,required:E,reversed:E,rows:d,rowSpan:d,sandbox:g,scope:null,scoped:E,seamless:E,selected:E,shape:null,size:d,sizes:null,slot:null,span:d,spellCheck:u,src:null,srcDoc:null,srcLang:null,srcSet:y,start:d,step:null,style:null,tabIndex:d,target:null,title:null,translate:null,type:null,typeMustMatch:E,useMap:null,value:u,width:d,wrap:null,align:null,aLink:null,archive:g,axis:null,background:null,bgColor:null,border:d,borderColor:null,bottomMargin:d,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:E,declare:E,event:null,face:null,frame:null,frameBorder:null,hSpace:d,leftMargin:d,link:null,longDesc:null,lowSrc:null,marginHeight:d,marginWidth:d,noResize:E,noHref:E,noShade:E,noWrap:E,object:null,profile:null,prompt:null,rev:null,rightMargin:d,rules:null,scheme:null,scrolling:u,standby:null,summary:null,text:null,topMargin:d,valueType:null,version:null,vAlign:null,vLink:null,vSpace:d,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:E,disableRemotePlayback:E,prefix:null,property:null,results:d,security:null,unselectable:null}})},86716:function(Ie,Z,b){"use strict";var B=b(83532);Ie.exports=Y;function Y(s,E){return B(s,E.toLowerCase())}},83532:function(Ie){"use strict";Ie.exports=Z;function Z(b,B){return B in b?b[B]:B}},5260:function(Ie,Z,b){"use strict";var B=b(33343),Y=b(85815),s=b(3405);Ie.exports=E;function E(I){var u=I.space,d=I.mustUseProperty||[],g=I.attributes||{},y=I.properties,S=I.transform,v={},c={},h,m;for(h in y)m=new s(h,S(g,h),y[h],u),d.indexOf(h)!==-1&&(m.mustUseProperty=!0),v[h]=m,c[B(h)]=h,c[B(m.attribute)]=h;return new Y(v,c,u)}},3405:function(Ie,Z,b){"use strict";var B=b(33806),Y=b(3941);Ie.exports=I,I.prototype=new B,I.prototype.defined=!0;var s=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],E=s.length;function I(d,g,y,S){var v=-1,c;for(u(this,"space",S),B.call(this,d,g);++v<E;)c=s[v],u(this,c,(y&Y[c])===Y[c])}function u(d,g,y){y&&(d[g]=y)}},33806:function(Ie){"use strict";Ie.exports=b;var Z=b.prototype;Z.space=null,Z.attribute=null,Z.property=null,Z.boolean=!1,Z.booleanish=!1,Z.overloadedBoolean=!1,Z.number=!1,Z.commaSeparated=!1,Z.spaceSeparated=!1,Z.commaOrSpaceSeparated=!1,Z.mustUseProperty=!1,Z.defined=!1;function b(B,Y){this.property=B,this.attribute=Y}},72627:function(Ie,Z,b){"use strict";var B=b(47529),Y=b(85815);Ie.exports=s;function s(E){for(var I=E.length,u=[],d=[],g=-1,y,S;++g<I;)y=E[g],u.push(y.property),d.push(y.normal),S=y.space;return new Y(B.apply(null,u),B.apply(null,d),S)}},85815:function(Ie){"use strict";Ie.exports=b;var Z=b.prototype;Z.space=null,Z.normal={},Z.property={};function b(B,Y,s){this.property=B,this.normal=Y,s&&(this.space=s)}},3941:function(Ie,Z){"use strict";var b=0;Z.boolean=B(),Z.booleanish=B(),Z.overloadedBoolean=B(),Z.number=B(),Z.spaceSeparated=B(),Z.commaSeparated=B(),Z.commaOrSpaceSeparated=B();function B(){return Math.pow(2,++b)}},9501:function(Ie,Z,b){"use strict";var B=b(5260);Ie.exports=B({space:"xlink",transform:Y,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function Y(s,E){return"xlink:"+E.slice(5).toLowerCase()}},90822:function(Ie,Z,b){"use strict";var B=b(5260);Ie.exports=B({space:"xml",transform:Y,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Y(s,E){return"xml:"+E.slice(3).toLowerCase()}},87109:function(Ie,Z,b){"use strict";var B=b(5260),Y=b(86716);Ie.exports=B({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Y,properties:{xmlns:null,xmlnsXLink:null}})},33343:function(Ie){"use strict";Ie.exports=Z;function Z(b){return b.toLowerCase()}},42749:function(Ie,Z){"use strict";var b;Z.Q=E,b=I;var B="",Y=" ",s=/[ \t\n\r\f]+/g;function E(u){var d=String(u||B).trim();return d===B?[]:d.split(s)}function I(u){return u.join(Y).trim()}},58971:function(Ie,Z,b){var B=b(62195),Y=b(39015),s=[b(19257)];Ie.exports=B.createStore(Y,s)},19257:function(Ie,Z,b){Ie.exports=B;function B(){return b(55703),{}}},55703:function(){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(Ie){return Ie<10?"0"+Ie:Ie}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(Ie){return rx_escapable.lastIndex=0,rx_escapable.test(Ie)?'"'+Ie.replace(rx_escapable,function(Z){var b=meta[Z];return typeof b=="string"?b:"\\u"+("0000"+Z.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+Ie+'"'}function str(Ie,Z){var b,B,Y,s,E=gap,I,u=Z[Ie];switch(u&&typeof u=="object"&&typeof u.toJSON=="function"&&(u=u.toJSON(Ie)),typeof rep=="function"&&(u=rep.call(Z,Ie,u)),typeof u){case"string":return quote(u);case"number":return isFinite(u)?String(u):"null";case"boolean":case"null":return String(u);case"object":if(!u)return"null";if(gap+=indent,I=[],Object.prototype.toString.apply(u)==="[object Array]"){for(s=u.length,b=0;b<s;b+=1)I[b]=str(b,u)||"null";return Y=I.length===0?"[]":gap?`[
`+gap+I.join(`,
`+gap)+`
`+E+"]":"["+I.join(",")+"]",gap=E,Y}if(rep&&typeof rep=="object")for(s=rep.length,b=0;b<s;b+=1)typeof rep[b]=="string"&&(B=rep[b],Y=str(B,u),Y&&I.push(quote(B)+(gap?": ":":")+Y));else for(B in u)Object.prototype.hasOwnProperty.call(u,B)&&(Y=str(B,u),Y&&I.push(quote(B)+(gap?": ":":")+Y));return Y=I.length===0?"{}":gap?`{
`+gap+I.join(`,
`+gap)+`
`+E+"}":"{"+I.join(",")+"}",gap=E,Y}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(Ie,Z,b){var B;if(gap="",indent="",typeof b=="number")for(B=0;B<b;B+=1)indent+=" ";else typeof b=="string"&&(indent=b);if(rep=Z,Z&&typeof Z!="function"&&(typeof Z!="object"||typeof Z.length!="number"))throw new Error("JSON.stringify");return str("",{"":Ie})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(Ie,Z){var b,B,Y=Ie[Z];if(Y&&typeof Y=="object")for(b in Y)Object.prototype.hasOwnProperty.call(Y,b)&&(B=walk(Y,b),B!==void 0?Y[b]=B:delete Y[b]);return reviver.call(Ie,Z,Y)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(Ie){return"\\u"+("0000"+Ie.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")})}()},62195:function(Ie,Z,b){var B=b(69078),Y=B.slice,s=B.pluck,E=B.each,I=B.bind,u=B.create,d=B.isList,g=B.isFunction,y=B.isObject;Ie.exports={createStore:c};var S={version:"2.0.12",enabled:!1,get:function(h,m){var x=this.storage.read(this._namespacePrefix+h);return this._deserialize(x,m)},set:function(h,m){return m===void 0?this.remove(h):(this.storage.write(this._namespacePrefix+h,this._serialize(m)),m)},remove:function(h){this.storage.remove(this._namespacePrefix+h)},each:function(h){var m=this;this.storage.each(function(x,T){h.call(m,m._deserialize(x),(T||"").replace(m._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(h){return this._namespacePrefix=="__storejs_"+h+"_"},createStore:function(){return c.apply(this,arguments)},addPlugin:function(h){this._addPlugin(h)},namespace:function(h){return c(this.storage,this.plugins,h)}};function v(){var h=typeof console=="undefined"?null:console;if(h){var m=h.warn?h.warn:h.log;m.apply(h,arguments)}}function c(h,m,x){x||(x=""),h&&!d(h)&&(h=[h]),m&&!d(m)&&(m=[m]);var T=x?"__storejs_"+x+"_":"",_=x?new RegExp("^"+T):null,R=/^[a-zA-Z0-9_\-]*$/;if(!R.test(x))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var A={_namespacePrefix:T,_namespaceRegexp:_,_testStorage:function(L){try{var M="__storejs__test__";L.write(M,M);var F=L.read(M)===M;return L.remove(M),F}catch(H){return!1}},_assignPluginFnProp:function(L,M){var F=this[M];this[M]=function(){var P=Y(arguments,0),V=this;function G(){if(F)return E(arguments,function(ne,ue){P[ue]=ne}),F.apply(V,P)}var Q=[G].concat(P);return L.apply(V,Q)}},_serialize:function(L){return JSON.stringify(L)},_deserialize:function(L,M){if(!L)return M;var F="";try{F=JSON.parse(L)}catch(H){F=L}return F!==void 0?F:M},_addStorage:function(L){this.enabled||this._testStorage(L)&&(this.storage=L,this.enabled=!0)},_addPlugin:function(L){var M=this;if(d(L)){E(L,function(P){M._addPlugin(P)});return}var F=s(this.plugins,function(P){return L===P});if(!F){if(this.plugins.push(L),!g(L))throw new Error("Plugins must be function values that return objects");var H=L.call(this);if(!y(H))throw new Error("Plugins must return an object of function properties");E(H,function(P,V){if(!g(P))throw new Error("Bad plugin property: "+V+" from plugin "+L.name+". Plugins should only return functions.");M._assignPluginFnProp(P,V)})}},addStorage:function(L){v("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(L)}},N=u(A,S,{plugins:[]});return N.raw={},E(N,function(L,M){g(L)&&(N.raw[M]=I(N,L))}),E(h,function(L){N._addStorage(L)}),E(m,function(L){N._addPlugin(L)}),N}},69078:function(Ie,Z,b){var B=I(),Y=u(),s=d(),E=typeof window!="undefined"?window:b.g;Ie.exports={assign:B,create:Y,trim:s,bind:g,slice:y,each:S,map:v,pluck:c,isList:h,isFunction:m,isObject:x,Global:E};function I(){return Object.assign?Object.assign:function(_,R,A,N){for(var L=1;L<arguments.length;L++)S(Object(arguments[L]),function(M,F){_[F]=M});return _}}function u(){if(Object.create)return function(R,A,N,L){var M=y(arguments,1);return B.apply(this,[Object.create(R)].concat(M))};{let _=function(){};var T=_;return function(A,N,L,M){var F=y(arguments,1);return _.prototype=A,B.apply(this,[new _].concat(F))}}}function d(){return String.prototype.trim?function(_){return String.prototype.trim.call(_)}:function(_){return _.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function g(T,_){return function(){return _.apply(T,Array.prototype.slice.call(arguments,0))}}function y(T,_){return Array.prototype.slice.call(T,_||0)}function S(T,_){c(T,function(R,A){return _(R,A),!1})}function v(T,_){var R=h(T)?[]:{};return c(T,function(A,N){return R[N]=_(A,N),!1}),R}function c(T,_){if(h(T)){for(var R=0;R<T.length;R++)if(_(T[R],R))return T[R]}else for(var A in T)if(T.hasOwnProperty(A)&&_(T[A],A))return T[A]}function h(T){return T!=null&&typeof T!="function"&&typeof T.length=="number"}function m(T){return T&&{}.toString.call(T)==="[object Function]"}function x(T){return T&&{}.toString.call(T)==="[object Object]"}},39015:function(Ie,Z,b){Ie.exports=[b(39627),b(95347),b(34524),b(45580),b(58855),b(8728)]},45580:function(Ie,Z,b){var B=b(69078),Y=B.Global,s=B.trim;Ie.exports={name:"cookieStorage",read:I,write:d,each:u,remove:g,clearAll:y};var E=Y.document;function I(v){if(!v||!S(v))return null;var c="(?:^|.*;\\s*)"+escape(v).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(E.cookie.replace(new RegExp(c),"$1"))}function u(v){for(var c=E.cookie.split(/; ?/g),h=c.length-1;h>=0;h--)if(s(c[h])){var m=c[h].split("="),x=unescape(m[0]),T=unescape(m[1]);v(T,x)}}function d(v,c){v&&(E.cookie=escape(v)+"="+escape(c)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function g(v){!v||!S(v)||(E.cookie=escape(v)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function y(){u(function(v,c){g(c)})}function S(v){return new RegExp("(?:^|;\\s*)"+escape(v).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(E.cookie)}},39627:function(Ie,Z,b){var B=b(69078),Y=B.Global;Ie.exports={name:"localStorage",read:E,write:I,each:u,remove:d,clearAll:g};function s(){return Y.localStorage}function E(y){return s().getItem(y)}function I(y,S){return s().setItem(y,S)}function u(y){for(var S=s().length-1;S>=0;S--){var v=s().key(S);y(E(v),v)}}function d(y){return s().removeItem(y)}function g(){return s().clear()}},8728:function(Ie){Ie.exports={name:"memoryStorage",read:b,write:B,each:Y,remove:s,clearAll:E};var Z={};function b(I){return Z[I]}function B(I,u){Z[I]=u}function Y(I){for(var u in Z)Z.hasOwnProperty(u)&&I(Z[u],u)}function s(I){delete Z[I]}function E(I){Z={}}},95347:function(Ie,Z,b){var B=b(69078),Y=B.Global;Ie.exports={name:"oldFF-globalStorage",read:E,write:I,each:u,remove:d,clearAll:g};var s=Y.globalStorage;function E(y){return s[y]}function I(y,S){s[y]=S}function u(y){for(var S=s.length-1;S>=0;S--){var v=s.key(S);y(s[v],v)}}function d(y){return s.removeItem(y)}function g(){u(function(y,S){delete s[y]})}},34524:function(Ie,Z,b){var B=b(69078),Y=B.Global;Ie.exports={name:"oldIE-userDataStorage",write:d,read:g,each:y,remove:S,clearAll:v};var s="storejs",E=Y.document,I=m(),u=(Y.navigator?Y.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function d(x,T){if(!u){var _=h(x);I(function(R){R.setAttribute(_,T),R.save(s)})}}function g(x){if(!u){var T=h(x),_=null;return I(function(R){_=R.getAttribute(T)}),_}}function y(x){I(function(T){for(var _=T.XMLDocument.documentElement.attributes,R=_.length-1;R>=0;R--){var A=_[R];x(T.getAttribute(A.name),A.name)}})}function S(x){var T=h(x);I(function(_){_.removeAttribute(T),_.save(s)})}function v(){I(function(x){var T=x.XMLDocument.documentElement.attributes;x.load(s);for(var _=T.length-1;_>=0;_--)x.removeAttribute(T[_].name);x.save(s)})}var c=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function h(x){return x.replace(/^\d/,"___$&").replace(c,"___")}function m(){if(!E||!E.documentElement||!E.documentElement.addBehavior)return null;var x="script",T,_,R;try{_=new ActiveXObject("htmlfile"),_.open(),_.write("<"+x+">document.w=window</"+x+'><iframe src="/favicon.ico"></iframe>'),_.close(),T=_.w.frames[0].document,R=T.createElement("div")}catch(A){R=E.createElement("div"),T=E.body}return function(A){var N=[].slice.call(arguments,0);N.unshift(R),T.appendChild(R),R.addBehavior("#default#userData"),R.load(s),A.apply(this,N),T.removeChild(R)}}},58855:function(Ie,Z,b){var B=b(69078),Y=B.Global;Ie.exports={name:"sessionStorage",read:E,write:I,each:u,remove:d,clearAll:g};function s(){return Y.sessionStorage}function E(y){return s().getItem(y)}function I(y,S){return s().setItem(y,S)}function u(y){for(var S=s().length-1;S>=0;S--){var v=s().key(S);y(E(v),v)}}function d(y){return s().removeItem(y)}function g(){return s().clear()}},5174:function(Ie,Z,b){"use strict";var B=this&&this.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(Z,"__esModule",{value:!0});var Y=B(b(18139));function s(E,I){var u=null;if(!E||typeof E!="string")return u;var d=(0,Y.default)(E),g=typeof I=="function";return d.forEach(function(y){if(y.type==="declaration"){var S=y.property,v=y.value;g?I(S,v,y):v&&(u=u||{},u[S]=v)}}),u}Z.default=s},47529:function(Ie){Ie.exports=b;var Z=Object.prototype.hasOwnProperty;function b(){for(var B={},Y=0;Y<arguments.length;Y++){var s=arguments[Y];for(var E in s)Z.call(s,E)&&(B[E]=s[E])}return B}},12320:function(Ie){(function(Z,b){if(1)Ie.exports=b();else var B,Y})(window,function(){return function(Z){var b={};function B(Y){if(b[Y])return b[Y].exports;var s=b[Y]={i:Y,l:!1,exports:{}};return Z[Y].call(s.exports,s,s.exports,B),s.l=!0,s.exports}return B.m=Z,B.c=b,B.d=function(Y,s,E){B.o(Y,s)||Object.defineProperty(Y,s,{enumerable:!0,get:E})},B.r=function(Y){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Y,"__esModule",{value:!0})},B.t=function(Y,s){if(1&s&&(Y=B(Y)),8&s||4&s&&typeof Y=="object"&&Y&&Y.__esModule)return Y;var E=Object.create(null);if(B.r(E),Object.defineProperty(E,"default",{enumerable:!0,value:Y}),2&s&&typeof Y!="string")for(var I in Y)B.d(E,I,function(u){return Y[u]}.bind(null,I));return E},B.n=function(Y){var s=Y&&Y.__esModule?function(){return Y.default}:function(){return Y};return B.d(s,"a",s),s},B.o=function(Y,s){return Object.prototype.hasOwnProperty.call(Y,s)},B.p="",B(B.s=34)}([function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.forwardEvent=b.EventEmitter=void 0;var Y=function(){function s(){this._listeners=[],this._disposed=!1}return Object.defineProperty(s.prototype,"event",{get:function(){var E=this;return this._event||(this._event=function(I){return E._listeners.push(I),{dispose:function(){if(!E._disposed){for(var u=0;u<E._listeners.length;u++)if(E._listeners[u]===I)return void E._listeners.splice(u,1)}}}}),this._event},enumerable:!1,configurable:!0}),s.prototype.fire=function(E,I){for(var u=[],d=0;d<this._listeners.length;d++)u.push(this._listeners[d]);for(d=0;d<u.length;d++)u[d].call(void 0,E,I)},s.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},s}();b.EventEmitter=Y,b.forwardEvent=function(s,E){return s(function(I){return E.fire(I)})}},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.IUnicodeService=b.IOptionsService=b.ILogService=b.IInstantiationService=b.IDirtyRowService=b.ICharsetService=b.ICoreService=b.ICoreMouseService=b.IBufferService=void 0;var Y=B(14);b.IBufferService=Y.createDecorator("BufferService"),b.ICoreMouseService=Y.createDecorator("CoreMouseService"),b.ICoreService=Y.createDecorator("CoreService"),b.ICharsetService=Y.createDecorator("CharsetService"),b.IDirtyRowService=Y.createDecorator("DirtyRowService"),b.IInstantiationService=Y.createDecorator("InstantiationService"),b.ILogService=Y.createDecorator("LogService"),b.IOptionsService=Y.createDecorator("OptionsService"),b.IUnicodeService=Y.createDecorator("UnicodeService")},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.getDisposeArrayDisposable=b.disposeArray=b.Disposable=void 0;var Y=function(){function E(){this._disposables=[],this._isDisposed=!1}return E.prototype.dispose=function(){this._isDisposed=!0;for(var I=0,u=this._disposables;I<u.length;I++)u[I].dispose();this._disposables.length=0},E.prototype.register=function(I){return this._disposables.push(I),I},E.prototype.unregister=function(I){var u=this._disposables.indexOf(I);u!==-1&&this._disposables.splice(u,1)},E}();function s(E){for(var I=0,u=E;I<u.length;I++)u[I].dispose();E.length=0}b.Disposable=Y,b.disposeArray=s,b.getDisposeArrayDisposable=function(E){return{dispose:function(){return s(E)}}}},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.WHITESPACE_CELL_CODE=b.WHITESPACE_CELL_WIDTH=b.WHITESPACE_CELL_CHAR=b.NULL_CELL_CODE=b.NULL_CELL_WIDTH=b.NULL_CELL_CHAR=b.CHAR_DATA_CODE_INDEX=b.CHAR_DATA_WIDTH_INDEX=b.CHAR_DATA_CHAR_INDEX=b.CHAR_DATA_ATTR_INDEX=b.DEFAULT_ATTR=b.DEFAULT_COLOR=void 0,b.DEFAULT_COLOR=256,b.DEFAULT_ATTR=256|b.DEFAULT_COLOR<<9,b.CHAR_DATA_ATTR_INDEX=0,b.CHAR_DATA_CHAR_INDEX=1,b.CHAR_DATA_WIDTH_INDEX=2,b.CHAR_DATA_CODE_INDEX=3,b.NULL_CELL_CHAR="",b.NULL_CELL_WIDTH=1,b.NULL_CELL_CODE=0,b.WHITESPACE_CELL_CHAR=" ",b.WHITESPACE_CELL_WIDTH=1,b.WHITESPACE_CELL_CODE=32},function(Z,b,B){"use strict";var Y,s=this&&this.__extends||(Y=function(g,y){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,v){S.__proto__=v}||function(S,v){for(var c in v)v.hasOwnProperty(c)&&(S[c]=v[c])})(g,y)},function(g,y){function S(){this.constructor=g}Y(g,y),g.prototype=y===null?Object.create(y):(S.prototype=y.prototype,new S)});Object.defineProperty(b,"__esModule",{value:!0}),b.CellData=void 0;var E=B(8),I=B(3),u=B(6),d=function(g){function y(){var S=g!==null&&g.apply(this,arguments)||this;return S.content=0,S.fg=0,S.bg=0,S.extended=new u.ExtendedAttrs,S.combinedData="",S}return s(y,g),y.fromCharData=function(S){var v=new y;return v.setFromCharData(S),v},y.prototype.isCombined=function(){return 2097152&this.content},y.prototype.getWidth=function(){return this.content>>22},y.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?E.stringFromCodePoint(2097151&this.content):""},y.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},y.prototype.setFromCharData=function(S){this.fg=S[I.CHAR_DATA_ATTR_INDEX],this.bg=0;var v=!1;if(S[I.CHAR_DATA_CHAR_INDEX].length>2)v=!0;else if(S[I.CHAR_DATA_CHAR_INDEX].length===2){var c=S[I.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=c&&c<=56319){var h=S[I.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=h&&h<=57343?this.content=1024*(c-55296)+h-56320+65536|S[I.CHAR_DATA_WIDTH_INDEX]<<22:v=!0}else v=!0}else this.content=S[I.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|S[I.CHAR_DATA_WIDTH_INDEX]<<22;v&&(this.combinedData=S[I.CHAR_DATA_CHAR_INDEX],this.content=2097152|S[I.CHAR_DATA_WIDTH_INDEX]<<22)},y.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},y}(u.AttributeData);b.CellData=d},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.ISoundService=b.ISelectionService=b.IRenderService=b.IMouseService=b.ICoreBrowserService=b.ICharSizeService=void 0;var Y=B(14);b.ICharSizeService=Y.createDecorator("CharSizeService"),b.ICoreBrowserService=Y.createDecorator("CoreBrowserService"),b.IMouseService=Y.createDecorator("MouseService"),b.IRenderService=Y.createDecorator("RenderService"),b.ISelectionService=Y.createDecorator("SelectionService"),b.ISoundService=Y.createDecorator("SoundService")},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.ExtendedAttrs=b.AttributeData=void 0;var Y=function(){function E(){this.fg=0,this.bg=0,this.extended=new s}return E.toColorRGB=function(I){return[I>>>16&255,I>>>8&255,255&I]},E.fromColorRGB=function(I){return(255&I[0])<<16|(255&I[1])<<8|255&I[2]},E.prototype.clone=function(){var I=new E;return I.fg=this.fg,I.bg=this.bg,I.extended=this.extended.clone(),I},E.prototype.isInverse=function(){return 67108864&this.fg},E.prototype.isBold=function(){return 134217728&this.fg},E.prototype.isUnderline=function(){return 268435456&this.fg},E.prototype.isBlink=function(){return 536870912&this.fg},E.prototype.isInvisible=function(){return 1073741824&this.fg},E.prototype.isItalic=function(){return 67108864&this.bg},E.prototype.isDim=function(){return 134217728&this.bg},E.prototype.getFgColorMode=function(){return 50331648&this.fg},E.prototype.getBgColorMode=function(){return 50331648&this.bg},E.prototype.isFgRGB=function(){return(50331648&this.fg)==50331648},E.prototype.isBgRGB=function(){return(50331648&this.bg)==50331648},E.prototype.isFgPalette=function(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432},E.prototype.isBgPalette=function(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432},E.prototype.isFgDefault=function(){return(50331648&this.fg)==0},E.prototype.isBgDefault=function(){return(50331648&this.bg)==0},E.prototype.isAttributeDefault=function(){return this.fg===0&&this.bg===0},E.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},E.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},E.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},E.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},E.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()},E.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},E.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()},E.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()},E.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()},E.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},E}();b.AttributeData=Y;var s=function(){function E(I,u){I===void 0&&(I=0),u===void 0&&(u=-1),this.underlineStyle=I,this.underlineColor=u}return E.prototype.clone=function(){return new E(this.underlineStyle,this.underlineColor)},E.prototype.isEmpty=function(){return this.underlineStyle===0},E}();b.ExtendedAttrs=s},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.addDisposableDomListener=void 0,b.addDisposableDomListener=function(Y,s,E,I){Y.addEventListener(s,E,I);var u=!1;return{dispose:function(){u||(u=!0,Y.removeEventListener(s,E,I))}}}},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.Utf8ToUtf32=b.StringToUtf32=b.utf32ToString=b.stringFromCodePoint=void 0,b.stringFromCodePoint=function(E){return E>65535?(E-=65536,String.fromCharCode(55296+(E>>10))+String.fromCharCode(E%1024+56320)):String.fromCharCode(E)},b.utf32ToString=function(E,I,u){I===void 0&&(I=0),u===void 0&&(u=E.length);for(var d="",g=I;g<u;++g){var y=E[g];y>65535?(y-=65536,d+=String.fromCharCode(55296+(y>>10))+String.fromCharCode(y%1024+56320)):d+=String.fromCharCode(y)}return d};var Y=function(){function E(){this._interim=0}return E.prototype.clear=function(){this._interim=0},E.prototype.decode=function(I,u){var d=I.length;if(!d)return 0;var g=0,y=0;this._interim&&(56320<=(c=I.charCodeAt(y++))&&c<=57343?u[g++]=1024*(this._interim-55296)+c-56320+65536:(u[g++]=this._interim,u[g++]=c),this._interim=0);for(var S=y;S<d;++S){var v=I.charCodeAt(S);if(55296<=v&&v<=56319){if(++S>=d)return this._interim=v,g;var c;56320<=(c=I.charCodeAt(S))&&c<=57343?u[g++]=1024*(v-55296)+c-56320+65536:(u[g++]=v,u[g++]=c)}else u[g++]=v}return g},E}();b.StringToUtf32=Y;var s=function(){function E(){this.interim=new Uint8Array(3)}return E.prototype.clear=function(){this.interim.fill(0)},E.prototype.decode=function(I,u){var d=I.length;if(!d)return 0;var g,y,S,v,c=0,h=0,m=0;if(this.interim[0]){var x=!1,T=this.interim[0];T&=(224&T)==192?31:(240&T)==224?15:7;for(var _=0,R=void 0;(R=63&this.interim[++_])&&_<4;)T<<=6,T|=R;for(var A=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,N=A-_;m<N;){if(m>=d)return 0;if((192&(R=I[m++]))!=128){m--,x=!0;break}this.interim[_++]=R,T<<=6,T|=63&R}x||(A===2?T<128?m--:u[c++]=T:A===3?T<2048||T>=55296&&T<=57343||(u[c++]=T):T<65536||T>1114111||(u[c++]=T)),this.interim.fill(0)}for(var L=d-4,M=m;M<d;){for(;!(!(M<L)||128&(g=I[M])||128&(y=I[M+1])||128&(S=I[M+2])||128&(v=I[M+3]));)u[c++]=g,u[c++]=y,u[c++]=S,u[c++]=v,M+=4;if((g=I[M++])<128)u[c++]=g;else if((224&g)==192){if(M>=d)return this.interim[0]=g,c;if((192&(y=I[M++]))!=128){M--;continue}if((h=(31&g)<<6|63&y)<128){M--;continue}u[c++]=h}else if((240&g)==224){if(M>=d)return this.interim[0]=g,c;if((192&(y=I[M++]))!=128){M--;continue}if(M>=d)return this.interim[0]=g,this.interim[1]=y,c;if((192&(S=I[M++]))!=128){M--;continue}if((h=(15&g)<<12|(63&y)<<6|63&S)<2048||h>=55296&&h<=57343)continue;u[c++]=h}else if((248&g)==240){if(M>=d)return this.interim[0]=g,c;if((192&(y=I[M++]))!=128){M--;continue}if(M>=d)return this.interim[0]=g,this.interim[1]=y,c;if((192&(S=I[M++]))!=128){M--;continue}if(M>=d)return this.interim[0]=g,this.interim[1]=y,this.interim[2]=S,c;if((192&(v=I[M++]))!=128){M--;continue}if((h=(7&g)<<18|(63&y)<<12|(63&S)<<6|63&v)<65536||h>1114111)continue;u[c++]=h}}return c},E}();b.Utf8ToUtf32=s},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.CHAR_ATLAS_CELL_SPACING=b.DIM_OPACITY=b.INVERTED_DEFAULT_COLOR=void 0,b.INVERTED_DEFAULT_COLOR=257,b.DIM_OPACITY=.5,b.CHAR_ATLAS_CELL_SPACING=1},function(Z,b,B){"use strict";var Y,s,E,I;function u(g){var y=g.toString(16);return y.length<2?"0"+y:y}function d(g,y){return g<y?(y+.05)/(g+.05):(g+.05)/(y+.05)}Object.defineProperty(b,"__esModule",{value:!0}),b.contrastRatio=b.toPaddedHex=b.rgba=b.rgb=b.css=b.color=b.channels=void 0,function(g){g.toCss=function(y,S,v,c){return c!==void 0?"#"+u(y)+u(S)+u(v)+u(c):"#"+u(y)+u(S)+u(v)},g.toRgba=function(y,S,v,c){return c===void 0&&(c=255),(y<<24|S<<16|v<<8|c)>>>0}}(Y=b.channels||(b.channels={})),(s=b.color||(b.color={})).blend=function(g,y){var S=(255&y.rgba)/255;if(S===1)return{css:y.css,rgba:y.rgba};var v=y.rgba>>24&255,c=y.rgba>>16&255,h=y.rgba>>8&255,m=g.rgba>>24&255,x=g.rgba>>16&255,T=g.rgba>>8&255,_=m+Math.round((v-m)*S),R=x+Math.round((c-x)*S),A=T+Math.round((h-T)*S);return{css:Y.toCss(_,R,A),rgba:Y.toRgba(_,R,A)}},s.isOpaque=function(g){return(255&g.rgba)==255},s.ensureContrastRatio=function(g,y,S){var v=I.ensureContrastRatio(g.rgba,y.rgba,S);if(v)return I.toColor(v>>24&255,v>>16&255,v>>8&255)},s.opaque=function(g){var y=(255|g.rgba)>>>0,S=I.toChannels(y),v=S[0],c=S[1],h=S[2];return{css:Y.toCss(v,c,h),rgba:y}},s.opacity=function(g,y){var S=Math.round(255*y),v=I.toChannels(g.rgba),c=v[0],h=v[1],m=v[2];return{css:Y.toCss(c,h,m,S),rgba:Y.toRgba(c,h,m,S)}},(b.css||(b.css={})).toColor=function(g){switch(g.length){case 7:return{css:g,rgba:(parseInt(g.slice(1),16)<<8|255)>>>0};case 9:return{css:g,rgba:parseInt(g.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(g){function y(S,v,c){var h=S/255,m=v/255,x=c/255;return .2126*(h<=.03928?h/12.92:Math.pow((h+.055)/1.055,2.4))+.7152*(m<=.03928?m/12.92:Math.pow((m+.055)/1.055,2.4))+.0722*(x<=.03928?x/12.92:Math.pow((x+.055)/1.055,2.4))}g.relativeLuminance=function(S){return y(S>>16&255,S>>8&255,255&S)},g.relativeLuminance2=y}(E=b.rgb||(b.rgb={})),function(g){function y(v,c,h){for(var m=v>>24&255,x=v>>16&255,T=v>>8&255,_=c>>24&255,R=c>>16&255,A=c>>8&255,N=d(E.relativeLuminance2(_,A,R),E.relativeLuminance2(m,x,T));N<h&&(_>0||R>0||A>0);)_-=Math.max(0,Math.ceil(.1*_)),R-=Math.max(0,Math.ceil(.1*R)),A-=Math.max(0,Math.ceil(.1*A)),N=d(E.relativeLuminance2(_,A,R),E.relativeLuminance2(m,x,T));return(_<<24|R<<16|A<<8|255)>>>0}function S(v,c,h){for(var m=v>>24&255,x=v>>16&255,T=v>>8&255,_=c>>24&255,R=c>>16&255,A=c>>8&255,N=d(E.relativeLuminance2(_,A,R),E.relativeLuminance2(m,x,T));N<h&&(_<255||R<255||A<255);)_=Math.min(255,_+Math.ceil(.1*(255-_))),R=Math.min(255,R+Math.ceil(.1*(255-R))),A=Math.min(255,A+Math.ceil(.1*(255-A))),N=d(E.relativeLuminance2(_,A,R),E.relativeLuminance2(m,x,T));return(_<<24|R<<16|A<<8|255)>>>0}g.ensureContrastRatio=function(v,c,h){var m=E.relativeLuminance(v>>8),x=E.relativeLuminance(c>>8);if(d(m,x)<h)return x<m?y(v,c,h):S(v,c,h)},g.reduceLuminance=y,g.increaseLuminance=S,g.toChannels=function(v){return[v>>24&255,v>>16&255,v>>8&255,255&v]},g.toColor=function(v,c,h){return{css:Y.toCss(v,c,h),rgba:Y.toRgba(v,c,h)}}}(I=b.rgba||(b.rgba={})),b.toPaddedHex=u,b.contrastRatio=d},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.isLinux=b.isWindows=b.isIphone=b.isIpad=b.isMac=b.isSafari=b.isFirefox=void 0;var Y=typeof navigator=="undefined",s=Y?"node":navigator.userAgent,E=Y?"node":navigator.platform;function I(u,d){return u.indexOf(d)>=0}b.isFirefox=!!~s.indexOf("Firefox"),b.isSafari=/^((?!chrome|android).)*safari/i.test(s),b.isMac=I(["Macintosh","MacIntel","MacPPC","Mac68K"],E),b.isIpad=E==="iPad",b.isIphone=E==="iPhone",b.isWindows=I(["Windows","Win16","Win32","WinCE"],E),b.isLinux=E.indexOf("Linux")>=0},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.C1=b.C0=void 0,function(Y){Y.NUL="\0",Y.SOH="",Y.STX="",Y.ETX="",Y.EOT="",Y.ENQ="",Y.ACK="",Y.BEL="\x07",Y.BS="\b",Y.HT=" ",Y.LF=`
`,Y.VT="\v",Y.FF="\f",Y.CR="\r",Y.SO="",Y.SI="",Y.DLE="",Y.DC1="",Y.DC2="",Y.DC3="",Y.DC4="",Y.NAK="",Y.SYN="",Y.ETB="",Y.CAN="",Y.EM="",Y.SUB="",Y.ESC="\x1B",Y.FS="",Y.GS="",Y.RS="",Y.US="",Y.SP=" ",Y.DEL="\x7F"}(b.C0||(b.C0={})),function(Y){Y.PAD="\x80",Y.HOP="\x81",Y.BPH="\x82",Y.NBH="\x83",Y.IND="\x84",Y.NEL="\x85",Y.SSA="\x86",Y.ESA="\x87",Y.HTS="\x88",Y.HTJ="\x89",Y.VTS="\x8A",Y.PLD="\x8B",Y.PLU="\x8C",Y.RI="\x8D",Y.SS2="\x8E",Y.SS3="\x8F",Y.DCS="\x90",Y.PU1="\x91",Y.PU2="\x92",Y.STS="\x93",Y.CCH="\x94",Y.MW="\x95",Y.SPA="\x96",Y.EPA="\x97",Y.SOS="\x98",Y.SGCI="\x99",Y.SCI="\x9A",Y.CSI="\x9B",Y.ST="\x9C",Y.OSC="\x9D",Y.PM="\x9E",Y.APC="\x9F"}(b.C1||(b.C1={}))},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.BaseRenderLayer=void 0;var Y=B(3),s=B(9),E=B(25),I=B(6),u=B(28),d=B(10),g=B(17),y=function(){function S(v,c,h,m,x,T,_,R){this._container=v,this._alpha=m,this._colors=x,this._rendererId=T,this._bufferService=_,this._optionsService=R,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-"+c+"-layer"),this._canvas.style.zIndex=h.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return S.prototype.dispose=function(){var v;g.removeElementFromParent(this._canvas),(v=this._charAtlas)===null||v===void 0||v.dispose()},S.prototype._initCanvas=function(){this._ctx=u.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},S.prototype.onOptionsChanged=function(){},S.prototype.onBlur=function(){},S.prototype.onFocus=function(){},S.prototype.onCursorMove=function(){},S.prototype.onGridChanged=function(v,c){},S.prototype.onSelectionChanged=function(v,c,h){h===void 0&&(h=!1)},S.prototype.setColors=function(v){this._refreshCharAtlas(v)},S.prototype._setTransparency=function(v){if(v!==this._alpha){var c=this._canvas;this._alpha=v,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,c),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},S.prototype._refreshCharAtlas=function(v){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=E.acquireCharAtlas(this._optionsService.options,this._rendererId,v,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},S.prototype.resize=function(v){this._scaledCellWidth=v.scaledCellWidth,this._scaledCellHeight=v.scaledCellHeight,this._scaledCharWidth=v.scaledCharWidth,this._scaledCharHeight=v.scaledCharHeight,this._scaledCharLeft=v.scaledCharLeft,this._scaledCharTop=v.scaledCharTop,this._canvas.width=v.scaledCanvasWidth,this._canvas.height=v.scaledCanvasHeight,this._canvas.style.width=v.canvasWidth+"px",this._canvas.style.height=v.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},S.prototype._fillCells=function(v,c,h,m){this._ctx.fillRect(v*this._scaledCellWidth,c*this._scaledCellHeight,h*this._scaledCellWidth,m*this._scaledCellHeight)},S.prototype._fillBottomLineAtCells=function(v,c,h){h===void 0&&(h=1),this._ctx.fillRect(v*this._scaledCellWidth,(c+1)*this._scaledCellHeight-window.devicePixelRatio-1,h*this._scaledCellWidth,window.devicePixelRatio)},S.prototype._fillLeftLineAtCell=function(v,c,h){this._ctx.fillRect(v*this._scaledCellWidth,c*this._scaledCellHeight,window.devicePixelRatio*h,this._scaledCellHeight)},S.prototype._strokeRectAtCell=function(v,c,h,m){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(v*this._scaledCellWidth+window.devicePixelRatio/2,c*this._scaledCellHeight+window.devicePixelRatio/2,h*this._scaledCellWidth-window.devicePixelRatio,m*this._scaledCellHeight-window.devicePixelRatio)},S.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))},S.prototype._clearCells=function(v,c,h,m){this._alpha?this._ctx.clearRect(v*this._scaledCellWidth,c*this._scaledCellHeight,h*this._scaledCellWidth,m*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(v*this._scaledCellWidth,c*this._scaledCellHeight,h*this._scaledCellWidth,m*this._scaledCellHeight))},S.prototype._fillCharTrueColor=function(v,c,h){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(h),this._ctx.fillText(v.getChars(),c*this._scaledCellWidth+this._scaledCharLeft,h*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},S.prototype._drawChars=function(v,c,h){var m,x,T=this._getContrastColor(v);T||v.isFgRGB()||v.isBgRGB()?this._drawUncachedChars(v,c,h,T):(v.isInverse()?(m=v.isBgDefault()?s.INVERTED_DEFAULT_COLOR:v.getBgColor(),x=v.isFgDefault()?s.INVERTED_DEFAULT_COLOR:v.getFgColor()):(x=v.isBgDefault()?Y.DEFAULT_COLOR:v.getBgColor(),m=v.isFgDefault()?Y.DEFAULT_COLOR:v.getFgColor()),m+=this._optionsService.options.drawBoldTextInBrightColors&&v.isBold()&&m<8?8:0,this._currentGlyphIdentifier.chars=v.getChars()||Y.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=v.getCode()||Y.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=x,this._currentGlyphIdentifier.fg=m,this._currentGlyphIdentifier.bold=!!v.isBold(),this._currentGlyphIdentifier.dim=!!v.isDim(),this._currentGlyphIdentifier.italic=!!v.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,c*this._scaledCellWidth+this._scaledCharLeft,h*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(v,c,h))},S.prototype._drawUncachedChars=function(v,c,h,m){if(this._ctx.save(),this._ctx.font=this._getFont(!!v.isBold(),!!v.isItalic()),this._ctx.textBaseline="middle",v.isInverse())if(m)this._ctx.fillStyle=m.css;else if(v.isBgDefault())this._ctx.fillStyle=d.color.opaque(this._colors.background).css;else if(v.isBgRGB())this._ctx.fillStyle="rgb("+I.AttributeData.toColorRGB(v.getBgColor()).join(",")+")";else{var x=v.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&v.isBold()&&x<8&&(x+=8),this._ctx.fillStyle=this._colors.ansi[x].css}else if(m)this._ctx.fillStyle=m.css;else if(v.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(v.isFgRGB())this._ctx.fillStyle="rgb("+I.AttributeData.toColorRGB(v.getFgColor()).join(",")+")";else{var T=v.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&v.isBold()&&T<8&&(T+=8),this._ctx.fillStyle=this._colors.ansi[T].css}this._clipRow(h),v.isDim()&&(this._ctx.globalAlpha=s.DIM_OPACITY),this._ctx.fillText(v.getChars(),c*this._scaledCellWidth+this._scaledCharLeft,h*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},S.prototype._clipRow=function(v){this._ctx.beginPath(),this._ctx.rect(0,v*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},S.prototype._getFont=function(v,c){return(c?"italic":"")+" "+(v?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},S.prototype._getContrastColor=function(v){if(this._optionsService.options.minimumContrastRatio!==1){var c=this._colors.contrastCache.getColor(v.bg,v.fg);if(c!==void 0)return c||void 0;var h=v.getFgColor(),m=v.getFgColorMode(),x=v.getBgColor(),T=v.getBgColorMode(),_=!!v.isInverse(),R=!!v.isInverse();if(_){var A=h;h=x,x=A;var N=m;m=T,T=N}var L=this._resolveBackgroundRgba(T,x,_),M=this._resolveForegroundRgba(m,h,_,R),F=d.rgba.ensureContrastRatio(L,M,this._optionsService.options.minimumContrastRatio);if(F){var H={css:d.channels.toCss(F>>24&255,F>>16&255,F>>8&255),rgba:F};return this._colors.contrastCache.setColor(v.bg,v.fg,H),H}this._colors.contrastCache.setColor(v.bg,v.fg,null)}},S.prototype._resolveBackgroundRgba=function(v,c,h){switch(v){case 16777216:case 33554432:return this._colors.ansi[c].rgba;case 50331648:return c<<8;case 0:default:return h?this._colors.foreground.rgba:this._colors.background.rgba}},S.prototype._resolveForegroundRgba=function(v,c,h,m){switch(v){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&m&&c<8&&(c+=8),this._colors.ansi[c].rgba;case 50331648:return c<<8;case 0:default:return h?this._colors.background.rgba:this._colors.foreground.rgba}},S}();b.BaseRenderLayer=y},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.createDecorator=b.getServiceDependencies=b.serviceRegistry=void 0;function Y(s,E,I){E.di$target===E?E.di$dependencies.push({id:s,index:I}):(E.di$dependencies=[{id:s,index:I}],E.di$target=E)}b.serviceRegistry=new Map,b.getServiceDependencies=function(s){return s.di$dependencies||[]},b.createDecorator=function(s){if(b.serviceRegistry.has(s))return b.serviceRegistry.get(s);var E=function(I,u,d){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");Y(E,I,d)};return E.toString=function(){return s},b.serviceRegistry.set(s,E),E}},function(Z,b,B){"use strict";function Y(s,E,I,u){if(I===void 0&&(I=0),u===void 0&&(u=s.length),I>=s.length)return s;I=(s.length+I)%s.length,u=u>=s.length?s.length:(s.length+u)%s.length;for(var d=I;d<u;++d)s[d]=E;return s}Object.defineProperty(b,"__esModule",{value:!0}),b.concat=b.fillFallback=b.fill=void 0,b.fill=function(s,E,I,u){return s.fill?s.fill(E,I,u):Y(s,E,I,u)},b.fillFallback=Y,b.concat=function(s,E){var I=new s.constructor(s.length+E.length);return I.set(s),I.set(E,s.length),I}},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.BufferLine=b.DEFAULT_ATTR_DATA=void 0;var Y=B(8),s=B(3),E=B(4),I=B(6);b.DEFAULT_ATTR_DATA=Object.freeze(new I.AttributeData);var u=function(){function d(g,y,S){S===void 0&&(S=!1),this.isWrapped=S,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*g);for(var v=y||E.CellData.fromCharData([0,s.NULL_CELL_CHAR,s.NULL_CELL_WIDTH,s.NULL_CELL_CODE]),c=0;c<g;++c)this.setCell(c,v);this.length=g}return d.prototype.get=function(g){var y=this._data[3*g+0],S=2097151&y;return[this._data[3*g+1],2097152&y?this._combined[g]:S?Y.stringFromCodePoint(S):"",y>>22,2097152&y?this._combined[g].charCodeAt(this._combined[g].length-1):S]},d.prototype.set=function(g,y){this._data[3*g+1]=y[s.CHAR_DATA_ATTR_INDEX],y[s.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[g]=y[1],this._data[3*g+0]=2097152|g|y[s.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*g+0]=y[s.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|y[s.CHAR_DATA_WIDTH_INDEX]<<22},d.prototype.getWidth=function(g){return this._data[3*g+0]>>22},d.prototype.hasWidth=function(g){return 12582912&this._data[3*g+0]},d.prototype.getFg=function(g){return this._data[3*g+1]},d.prototype.getBg=function(g){return this._data[3*g+2]},d.prototype.hasContent=function(g){return 4194303&this._data[3*g+0]},d.prototype.getCodePoint=function(g){var y=this._data[3*g+0];return 2097152&y?this._combined[g].charCodeAt(this._combined[g].length-1):2097151&y},d.prototype.isCombined=function(g){return 2097152&this._data[3*g+0]},d.prototype.getString=function(g){var y=this._data[3*g+0];return 2097152&y?this._combined[g]:2097151&y?Y.stringFromCodePoint(2097151&y):""},d.prototype.loadCell=function(g,y){var S=3*g;return y.content=this._data[S+0],y.fg=this._data[S+1],y.bg=this._data[S+2],2097152&y.content&&(y.combinedData=this._combined[g]),268435456&y.bg&&(y.extended=this._extendedAttrs[g]),y},d.prototype.setCell=function(g,y){2097152&y.content&&(this._combined[g]=y.combinedData),268435456&y.bg&&(this._extendedAttrs[g]=y.extended),this._data[3*g+0]=y.content,this._data[3*g+1]=y.fg,this._data[3*g+2]=y.bg},d.prototype.setCellFromCodePoint=function(g,y,S,v,c,h){268435456&c&&(this._extendedAttrs[g]=h),this._data[3*g+0]=y|S<<22,this._data[3*g+1]=v,this._data[3*g+2]=c},d.prototype.addCodepointToCell=function(g,y){var S=this._data[3*g+0];2097152&S?this._combined[g]+=Y.stringFromCodePoint(y):(2097151&S?(this._combined[g]=Y.stringFromCodePoint(2097151&S)+Y.stringFromCodePoint(y),S&=-2097152,S|=2097152):S=y|1<<22,this._data[3*g+0]=S)},d.prototype.insertCells=function(g,y,S,v){if((g%=this.length)&&this.getWidth(g-1)===2&&this.setCellFromCodePoint(g-1,0,1,(v==null?void 0:v.fg)||0,(v==null?void 0:v.bg)||0,(v==null?void 0:v.extended)||new I.ExtendedAttrs),y<this.length-g){for(var c=new E.CellData,h=this.length-g-y-1;h>=0;--h)this.setCell(g+y+h,this.loadCell(g+h,c));for(h=0;h<y;++h)this.setCell(g+h,S)}else for(h=g;h<this.length;++h)this.setCell(h,S);this.getWidth(this.length-1)===2&&this.setCellFromCodePoint(this.length-1,0,1,(v==null?void 0:v.fg)||0,(v==null?void 0:v.bg)||0,(v==null?void 0:v.extended)||new I.ExtendedAttrs)},d.prototype.deleteCells=function(g,y,S,v){if(g%=this.length,y<this.length-g){for(var c=new E.CellData,h=0;h<this.length-g-y;++h)this.setCell(g+h,this.loadCell(g+y+h,c));for(h=this.length-y;h<this.length;++h)this.setCell(h,S)}else for(h=g;h<this.length;++h)this.setCell(h,S);g&&this.getWidth(g-1)===2&&this.setCellFromCodePoint(g-1,0,1,(v==null?void 0:v.fg)||0,(v==null?void 0:v.bg)||0,(v==null?void 0:v.extended)||new I.ExtendedAttrs),this.getWidth(g)!==0||this.hasContent(g)||this.setCellFromCodePoint(g,0,1,(v==null?void 0:v.fg)||0,(v==null?void 0:v.bg)||0,(v==null?void 0:v.extended)||new I.ExtendedAttrs)},d.prototype.replaceCells=function(g,y,S,v){for(g&&this.getWidth(g-1)===2&&this.setCellFromCodePoint(g-1,0,1,(v==null?void 0:v.fg)||0,(v==null?void 0:v.bg)||0,(v==null?void 0:v.extended)||new I.ExtendedAttrs),y<this.length&&this.getWidth(y-1)===2&&this.setCellFromCodePoint(y,0,1,(v==null?void 0:v.fg)||0,(v==null?void 0:v.bg)||0,(v==null?void 0:v.extended)||new I.ExtendedAttrs);g<y&&g<this.length;)this.setCell(g++,S)},d.prototype.resize=function(g,y){if(g!==this.length){if(g>this.length){var S=new Uint32Array(3*g);this.length&&(3*g<this._data.length?S.set(this._data.subarray(0,3*g)):S.set(this._data)),this._data=S;for(var v=this.length;v<g;++v)this.setCell(v,y)}else if(g){(S=new Uint32Array(3*g)).set(this._data.subarray(0,3*g)),this._data=S;var c=Object.keys(this._combined);for(v=0;v<c.length;v++){var h=parseInt(c[v],10);h>=g&&delete this._combined[h]}}else this._data=new Uint32Array(0),this._combined={};this.length=g}},d.prototype.fill=function(g){this._combined={},this._extendedAttrs={};for(var y=0;y<this.length;++y)this.setCell(y,g)},d.prototype.copyFrom=function(g){for(var y in this.length!==g.length?this._data=new Uint32Array(g._data):this._data.set(g._data),this.length=g.length,this._combined={},g._combined)this._combined[y]=g._combined[y];for(var y in this._extendedAttrs={},g._extendedAttrs)this._extendedAttrs[y]=g._extendedAttrs[y];this.isWrapped=g.isWrapped},d.prototype.clone=function(){var g=new d(0);for(var y in g._data=new Uint32Array(this._data),g.length=this.length,this._combined)g._combined[y]=this._combined[y];for(var y in this._extendedAttrs)g._extendedAttrs[y]=this._extendedAttrs[y];return g.isWrapped=this.isWrapped,g},d.prototype.getTrimmedLength=function(){for(var g=this.length-1;g>=0;--g)if(4194303&this._data[3*g+0])return g+(this._data[3*g+0]>>22);return 0},d.prototype.copyCellsFrom=function(g,y,S,v,c){var h=g._data;if(c)for(var m=v-1;m>=0;m--)for(var x=0;x<3;x++)this._data[3*(S+m)+x]=h[3*(y+m)+x];else for(m=0;m<v;m++)for(x=0;x<3;x++)this._data[3*(S+m)+x]=h[3*(y+m)+x];var T=Object.keys(g._combined);for(x=0;x<T.length;x++){var _=parseInt(T[x],10);_>=y&&(this._combined[_-y+S]=g._combined[_])}},d.prototype.translateToString=function(g,y,S){g===void 0&&(g=!1),y===void 0&&(y=0),S===void 0&&(S=this.length),g&&(S=Math.min(S,this.getTrimmedLength()));for(var v="";y<S;){var c=this._data[3*y+0],h=2097151&c;v+=2097152&c?this._combined[y]:h?Y.stringFromCodePoint(h):s.WHITESPACE_CELL_CHAR,y+=c>>22||1}return v},d}();b.BufferLine=u},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.removeElementFromParent=void 0,b.removeElementFromParent=function(){for(var Y,s=[],E=0;E<arguments.length;E++)s[E]=arguments[E];for(var I=0,u=s;I<u.length;I++){var d=u[I];(Y=d==null?void 0:d.parentElement)===null||Y===void 0||Y.removeChild(d)}}},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.tooMuchOutput=b.promptLabel=void 0,b.promptLabel="Terminal input",b.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},function(Z,b,B){"use strict";var Y,s=this&&this.__extends||(Y=function(M,F){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(H,P){H.__proto__=P}||function(H,P){for(var V in P)P.hasOwnProperty(V)&&(H[V]=P[V])})(M,F)},function(M,F){function H(){this.constructor=M}Y(M,F),M.prototype=F===null?Object.create(F):(H.prototype=F.prototype,new H)});Object.defineProperty(b,"__esModule",{value:!0}),b.InputHandler=b.WindowsOptionsReportType=void 0;var E,I=B(12),u=B(20),d=B(39),g=B(2),y=B(15),S=B(8),v=B(16),c=B(0),h=B(3),m=B(4),x=B(6),T=B(22),_=B(24),R={"(":0,")":1,"*":2,"+":3,"-":1,".":2};function A(M,F){if(M>24)return F.setWinLines||!1;switch(M){case 1:return!!F.restoreWin;case 2:return!!F.minimizeWin;case 3:return!!F.setWinPosition;case 4:return!!F.setWinSizePixels;case 5:return!!F.raiseWin;case 6:return!!F.lowerWin;case 7:return!!F.refreshWin;case 8:return!!F.setWinSizeChars;case 9:return!!F.maximizeWin;case 10:return!!F.fullscreenWin;case 11:return!!F.getWinState;case 13:return!!F.getWinPosition;case 14:return!!F.getWinSizePixels;case 15:return!!F.getScreenSizePixels;case 16:return!!F.getCellSizePixels;case 18:return!!F.getWinSizeChars;case 19:return!!F.getScreenSizeChars;case 20:return!!F.getIconTitle;case 21:return!!F.getWinTitle;case 22:return!!F.pushTitle;case 23:return!!F.popTitle;case 24:return!!F.setWinLines}return!1}(function(M){M[M.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",M[M.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"})(E=b.WindowsOptionsReportType||(b.WindowsOptionsReportType={}));var N=function(){function M(F,H,P,V){this._bufferService=F,this._coreService=H,this._logService=P,this._optionsService=V,this._data=new Uint32Array(0)}return M.prototype.hook=function(F){this._data=new Uint32Array(0)},M.prototype.put=function(F,H,P){this._data=y.concat(this._data,F.subarray(H,P))},M.prototype.unhook=function(F){if(F){var H=S.utf32ToString(this._data);switch(this._data=new Uint32Array(0),H){case'"q':return this._coreService.triggerDataEvent(I.C0.ESC+'P1$r0"q'+I.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(I.C0.ESC+'P1$r61;1"p'+I.C0.ESC+"\\");case"r":var P=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(I.C0.ESC+"P1$r"+P+I.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(I.C0.ESC+"P1$r0m"+I.C0.ESC+"\\");case" q":var V={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return V-=this._optionsService.options.cursorBlink?1:0,this._coreService.triggerDataEvent(I.C0.ESC+"P1$r"+V+" q"+I.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",H),this._coreService.triggerDataEvent(I.C0.ESC+"P0$r"+I.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},M}(),L=function(M){function F(H,P,V,G,Q,ne,ue,ae,he){he===void 0&&(he=new d.EscapeSequenceParser);var ce=M.call(this)||this;ce._bufferService=H,ce._charsetService=P,ce._coreService=V,ce._dirtyRowService=G,ce._logService=Q,ce._optionsService=ne,ce._coreMouseService=ue,ce._unicodeService=ae,ce._parser=he,ce._parseBuffer=new Uint32Array(4096),ce._stringDecoder=new S.StringToUtf32,ce._utf8Decoder=new S.Utf8ToUtf32,ce._workCell=new m.CellData,ce._windowTitle="",ce._iconName="",ce._windowTitleStack=[],ce._iconNameStack=[],ce._curAttrData=v.DEFAULT_ATTR_DATA.clone(),ce._eraseAttrDataInternal=v.DEFAULT_ATTR_DATA.clone(),ce._onRequestBell=new c.EventEmitter,ce._onRequestRefreshRows=new c.EventEmitter,ce._onRequestReset=new c.EventEmitter,ce._onRequestScroll=new c.EventEmitter,ce._onRequestSyncScrollBar=new c.EventEmitter,ce._onRequestWindowsOptionsReport=new c.EventEmitter,ce._onA11yChar=new c.EventEmitter,ce._onA11yTab=new c.EventEmitter,ce._onCursorMove=new c.EventEmitter,ce._onLineFeed=new c.EventEmitter,ce._onScroll=new c.EventEmitter,ce._onTitleChange=new c.EventEmitter,ce.register(ce._parser),ce._parser.setCsiHandlerFallback(function(ee,se){ce._logService.debug("Unknown CSI code: ",{identifier:ce._parser.identToString(ee),params:se.toArray()})}),ce._parser.setEscHandlerFallback(function(ee){ce._logService.debug("Unknown ESC code: ",{identifier:ce._parser.identToString(ee)})}),ce._parser.setExecuteHandlerFallback(function(ee){ce._logService.debug("Unknown EXECUTE code: ",{code:ee})}),ce._parser.setOscHandlerFallback(function(ee,se,le){ce._logService.debug("Unknown OSC code: ",{identifier:ee,action:se,data:le})}),ce._parser.setDcsHandlerFallback(function(ee,se,le){se==="HOOK"&&(le=le.toArray()),ce._logService.debug("Unknown DCS code: ",{identifier:ce._parser.identToString(ee),action:se,payload:le})}),ce._parser.setPrintHandler(function(ee,se,le){return ce.print(ee,se,le)}),ce._parser.setCsiHandler({final:"@"},function(ee){return ce.insertChars(ee)}),ce._parser.setCsiHandler({intermediates:" ",final:"@"},function(ee){return ce.scrollLeft(ee)}),ce._parser.setCsiHandler({final:"A"},function(ee){return ce.cursorUp(ee)}),ce._parser.setCsiHandler({intermediates:" ",final:"A"},function(ee){return ce.scrollRight(ee)}),ce._parser.setCsiHandler({final:"B"},function(ee){return ce.cursorDown(ee)}),ce._parser.setCsiHandler({final:"C"},function(ee){return ce.cursorForward(ee)}),ce._parser.setCsiHandler({final:"D"},function(ee){return ce.cursorBackward(ee)}),ce._parser.setCsiHandler({final:"E"},function(ee){return ce.cursorNextLine(ee)}),ce._parser.setCsiHandler({final:"F"},function(ee){return ce.cursorPrecedingLine(ee)}),ce._parser.setCsiHandler({final:"G"},function(ee){return ce.cursorCharAbsolute(ee)}),ce._parser.setCsiHandler({final:"H"},function(ee){return ce.cursorPosition(ee)}),ce._parser.setCsiHandler({final:"I"},function(ee){return ce.cursorForwardTab(ee)}),ce._parser.setCsiHandler({final:"J"},function(ee){return ce.eraseInDisplay(ee)}),ce._parser.setCsiHandler({prefix:"?",final:"J"},function(ee){return ce.eraseInDisplay(ee)}),ce._parser.setCsiHandler({final:"K"},function(ee){return ce.eraseInLine(ee)}),ce._parser.setCsiHandler({prefix:"?",final:"K"},function(ee){return ce.eraseInLine(ee)}),ce._parser.setCsiHandler({final:"L"},function(ee){return ce.insertLines(ee)}),ce._parser.setCsiHandler({final:"M"},function(ee){return ce.deleteLines(ee)}),ce._parser.setCsiHandler({final:"P"},function(ee){return ce.deleteChars(ee)}),ce._parser.setCsiHandler({final:"S"},function(ee){return ce.scrollUp(ee)}),ce._parser.setCsiHandler({final:"T"},function(ee){return ce.scrollDown(ee)}),ce._parser.setCsiHandler({final:"X"},function(ee){return ce.eraseChars(ee)}),ce._parser.setCsiHandler({final:"Z"},function(ee){return ce.cursorBackwardTab(ee)}),ce._parser.setCsiHandler({final:"`"},function(ee){return ce.charPosAbsolute(ee)}),ce._parser.setCsiHandler({final:"a"},function(ee){return ce.hPositionRelative(ee)}),ce._parser.setCsiHandler({final:"b"},function(ee){return ce.repeatPrecedingCharacter(ee)}),ce._parser.setCsiHandler({final:"c"},function(ee){return ce.sendDeviceAttributesPrimary(ee)}),ce._parser.setCsiHandler({prefix:">",final:"c"},function(ee){return ce.sendDeviceAttributesSecondary(ee)}),ce._parser.setCsiHandler({final:"d"},function(ee){return ce.linePosAbsolute(ee)}),ce._parser.setCsiHandler({final:"e"},function(ee){return ce.vPositionRelative(ee)}),ce._parser.setCsiHandler({final:"f"},function(ee){return ce.hVPosition(ee)}),ce._parser.setCsiHandler({final:"g"},function(ee){return ce.tabClear(ee)}),ce._parser.setCsiHandler({final:"h"},function(ee){return ce.setMode(ee)}),ce._parser.setCsiHandler({prefix:"?",final:"h"},function(ee){return ce.setModePrivate(ee)}),ce._parser.setCsiHandler({final:"l"},function(ee){return ce.resetMode(ee)}),ce._parser.setCsiHandler({prefix:"?",final:"l"},function(ee){return ce.resetModePrivate(ee)}),ce._parser.setCsiHandler({final:"m"},function(ee){return ce.charAttributes(ee)}),ce._parser.setCsiHandler({final:"n"},function(ee){return ce.deviceStatus(ee)}),ce._parser.setCsiHandler({prefix:"?",final:"n"},function(ee){return ce.deviceStatusPrivate(ee)}),ce._parser.setCsiHandler({intermediates:"!",final:"p"},function(ee){return ce.softReset(ee)}),ce._parser.setCsiHandler({intermediates:" ",final:"q"},function(ee){return ce.setCursorStyle(ee)}),ce._parser.setCsiHandler({final:"r"},function(ee){return ce.setScrollRegion(ee)}),ce._parser.setCsiHandler({final:"s"},function(ee){return ce.saveCursor(ee)}),ce._parser.setCsiHandler({final:"t"},function(ee){return ce.windowOptions(ee)}),ce._parser.setCsiHandler({final:"u"},function(ee){return ce.restoreCursor(ee)}),ce._parser.setCsiHandler({intermediates:"'",final:"}"},function(ee){return ce.insertColumns(ee)}),ce._parser.setCsiHandler({intermediates:"'",final:"~"},function(ee){return ce.deleteColumns(ee)}),ce._parser.setExecuteHandler(I.C0.BEL,function(){return ce.bell()}),ce._parser.setExecuteHandler(I.C0.LF,function(){return ce.lineFeed()}),ce._parser.setExecuteHandler(I.C0.VT,function(){return ce.lineFeed()}),ce._parser.setExecuteHandler(I.C0.FF,function(){return ce.lineFeed()}),ce._parser.setExecuteHandler(I.C0.CR,function(){return ce.carriageReturn()}),ce._parser.setExecuteHandler(I.C0.BS,function(){return ce.backspace()}),ce._parser.setExecuteHandler(I.C0.HT,function(){return ce.tab()}),ce._parser.setExecuteHandler(I.C0.SO,function(){return ce.shiftOut()}),ce._parser.setExecuteHandler(I.C0.SI,function(){return ce.shiftIn()}),ce._parser.setExecuteHandler(I.C1.IND,function(){return ce.index()}),ce._parser.setExecuteHandler(I.C1.NEL,function(){return ce.nextLine()}),ce._parser.setExecuteHandler(I.C1.HTS,function(){return ce.tabSet()}),ce._parser.setOscHandler(0,new T.OscHandler(function(ee){ce.setTitle(ee),ce.setIconName(ee)})),ce._parser.setOscHandler(1,new T.OscHandler(function(ee){return ce.setIconName(ee)})),ce._parser.setOscHandler(2,new T.OscHandler(function(ee){return ce.setTitle(ee)})),ce._parser.setEscHandler({final:"7"},function(){return ce.saveCursor()}),ce._parser.setEscHandler({final:"8"},function(){return ce.restoreCursor()}),ce._parser.setEscHandler({final:"D"},function(){return ce.index()}),ce._parser.setEscHandler({final:"E"},function(){return ce.nextLine()}),ce._parser.setEscHandler({final:"H"},function(){return ce.tabSet()}),ce._parser.setEscHandler({final:"M"},function(){return ce.reverseIndex()}),ce._parser.setEscHandler({final:"="},function(){return ce.keypadApplicationMode()}),ce._parser.setEscHandler({final:">"},function(){return ce.keypadNumericMode()}),ce._parser.setEscHandler({final:"c"},function(){return ce.fullReset()}),ce._parser.setEscHandler({final:"n"},function(){return ce.setgLevel(2)}),ce._parser.setEscHandler({final:"o"},function(){return ce.setgLevel(3)}),ce._parser.setEscHandler({final:"|"},function(){return ce.setgLevel(3)}),ce._parser.setEscHandler({final:"}"},function(){return ce.setgLevel(2)}),ce._parser.setEscHandler({final:"~"},function(){return ce.setgLevel(1)}),ce._parser.setEscHandler({intermediates:"%",final:"@"},function(){return ce.selectDefaultCharset()}),ce._parser.setEscHandler({intermediates:"%",final:"G"},function(){return ce.selectDefaultCharset()});var we=function(ee){me._parser.setEscHandler({intermediates:"(",final:ee},function(){return ce.selectCharset("("+ee)}),me._parser.setEscHandler({intermediates:")",final:ee},function(){return ce.selectCharset(")"+ee)}),me._parser.setEscHandler({intermediates:"*",final:ee},function(){return ce.selectCharset("*"+ee)}),me._parser.setEscHandler({intermediates:"+",final:ee},function(){return ce.selectCharset("+"+ee)}),me._parser.setEscHandler({intermediates:"-",final:ee},function(){return ce.selectCharset("-"+ee)}),me._parser.setEscHandler({intermediates:".",final:ee},function(){return ce.selectCharset("."+ee)}),me._parser.setEscHandler({intermediates:"/",final:ee},function(){return ce.selectCharset("/"+ee)})},me=this;for(var Le in u.CHARSETS)we(Le);return ce._parser.setEscHandler({intermediates:"#",final:"8"},function(){return ce.screenAlignmentPattern()}),ce._parser.setErrorHandler(function(ee){return ce._logService.error("Parsing error: ",ee),ee}),ce._parser.setDcsHandler({intermediates:"$",final:"q"},new N(ce._bufferService,ce._coreService,ce._logService,ce._optionsService)),ce}return s(F,M),Object.defineProperty(F.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),F.prototype.dispose=function(){M.prototype.dispose.call(this)},F.prototype.parse=function(H){var P=this._bufferService.buffer,V=P.x,G=P.y;if(this._logService.debug("parsing data",H),this._parseBuffer.length<H.length&&this._parseBuffer.length<131072&&(this._parseBuffer=new Uint32Array(Math.min(H.length,131072))),this._dirtyRowService.clearRange(),H.length>131072)for(var Q=0;Q<H.length;Q+=131072){var ne=Q+131072<H.length?Q+131072:H.length,ue=typeof H=="string"?this._stringDecoder.decode(H.substring(Q,ne),this._parseBuffer):this._utf8Decoder.decode(H.subarray(Q,ne),this._parseBuffer);this._parser.parse(this._parseBuffer,ue)}else ue=typeof H=="string"?this._stringDecoder.decode(H,this._parseBuffer):this._utf8Decoder.decode(H,this._parseBuffer),this._parser.parse(this._parseBuffer,ue);(P=this._bufferService.buffer).x===V&&P.y===G||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},F.prototype.print=function(H,P,V){var G,Q,ne=this._bufferService.buffer,ue=this._charsetService.charset,ae=this._optionsService.options.screenReaderMode,he=this._bufferService.cols,ce=this._coreService.decPrivateModes.wraparound,we=this._coreService.modes.insertMode,me=this._curAttrData,Le=ne.lines.get(ne.ybase+ne.y);this._dirtyRowService.markDirty(ne.y),ne.x&&V-P>0&&Le.getWidth(ne.x-1)===2&&Le.setCellFromCodePoint(ne.x-1,0,1,me.fg,me.bg,me.extended);for(var ee=P;ee<V;++ee){if(G=H[ee],Q=this._unicodeService.wcwidth(G),G<127&&ue){var se=ue[String.fromCharCode(G)];se&&(G=se.charCodeAt(0))}if(ae&&this._onA11yChar.fire(S.stringFromCodePoint(G)),Q||!ne.x){if(ne.x+Q-1>=he){if(ce){for(;ne.x<he;)Le.setCellFromCodePoint(ne.x++,0,1,me.fg,me.bg,me.extended);ne.x=0,ne.y++,ne.y===ne.scrollBottom+1?(ne.y--,this._onRequestScroll.fire(this._eraseAttrData(),!0)):(ne.y>=this._bufferService.rows&&(ne.y=this._bufferService.rows-1),ne.lines.get(ne.ybase+ne.y).isWrapped=!0),Le=ne.lines.get(ne.ybase+ne.y)}else if(ne.x=he-1,Q===2)continue}if(we&&(Le.insertCells(ne.x,Q,ne.getNullCell(me),me),Le.getWidth(he-1)===2&&Le.setCellFromCodePoint(he-1,h.NULL_CELL_CODE,h.NULL_CELL_WIDTH,me.fg,me.bg,me.extended)),Le.setCellFromCodePoint(ne.x++,G,Q,me.fg,me.bg,me.extended),Q>0)for(;--Q;)Le.setCellFromCodePoint(ne.x++,0,0,me.fg,me.bg,me.extended)}else Le.getWidth(ne.x-1)?Le.addCodepointToCell(ne.x-1,G):Le.addCodepointToCell(ne.x-2,G)}V-P>0&&(Le.loadCell(ne.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),ne.x<he&&V-P>0&&Le.getWidth(ne.x)===0&&!Le.hasContent(ne.x)&&Le.setCellFromCodePoint(ne.x,0,1,me.fg,me.bg,me.extended),this._dirtyRowService.markDirty(ne.y)},F.prototype.addCsiHandler=function(H,P){var V=this;return H.final!=="t"||H.prefix||H.intermediates?this._parser.addCsiHandler(H,P):this._parser.addCsiHandler(H,function(G){return!A(G.params[0],V._optionsService.options.windowOptions)||P(G)})},F.prototype.addDcsHandler=function(H,P){return this._parser.addDcsHandler(H,new _.DcsHandler(P))},F.prototype.addEscHandler=function(H,P){return this._parser.addEscHandler(H,P)},F.prototype.addOscHandler=function(H,P){return this._parser.addOscHandler(H,new T.OscHandler(P))},F.prototype.bell=function(){this._onRequestBell.fire()},F.prototype.lineFeed=function(){var H=this._bufferService.buffer;this._dirtyRowService.markDirty(H.y),this._optionsService.options.convertEol&&(H.x=0),H.y++,H.y===H.scrollBottom+1?(H.y--,this._onRequestScroll.fire(this._eraseAttrData())):H.y>=this._bufferService.rows&&(H.y=this._bufferService.rows-1),H.x>=this._bufferService.cols&&H.x--,this._dirtyRowService.markDirty(H.y),this._onLineFeed.fire()},F.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},F.prototype.backspace=function(){var H,P=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(P.x>0&&P.x--);if(this._restrictCursor(this._bufferService.cols),P.x>0)P.x--;else if(P.x===0&&P.y>P.scrollTop&&P.y<=P.scrollBottom&&(!((H=P.lines.get(P.ybase+P.y))===null||H===void 0)&&H.isWrapped)){P.lines.get(P.ybase+P.y).isWrapped=!1,P.y--,P.x=this._bufferService.cols-1;var V=P.lines.get(P.ybase+P.y);V.hasWidth(P.x)&&!V.hasContent(P.x)&&P.x--}this._restrictCursor()},F.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var H=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-H)}},F.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},F.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},F.prototype._restrictCursor=function(H){H===void 0&&(H=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(H,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)},F.prototype._setCursor=function(H,P){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=H,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+P):(this._bufferService.buffer.x=H,this._bufferService.buffer.y=P),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},F.prototype._moveCursor=function(H,P){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+H,this._bufferService.buffer.y+P)},F.prototype.cursorUp=function(H){var P=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;P>=0?this._moveCursor(0,-Math.min(P,H.params[0]||1)):this._moveCursor(0,-(H.params[0]||1))},F.prototype.cursorDown=function(H){var P=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;P>=0?this._moveCursor(0,Math.min(P,H.params[0]||1)):this._moveCursor(0,H.params[0]||1)},F.prototype.cursorForward=function(H){this._moveCursor(H.params[0]||1,0)},F.prototype.cursorBackward=function(H){this._moveCursor(-(H.params[0]||1),0)},F.prototype.cursorNextLine=function(H){this.cursorDown(H),this._bufferService.buffer.x=0},F.prototype.cursorPrecedingLine=function(H){this.cursorUp(H),this._bufferService.buffer.x=0},F.prototype.cursorCharAbsolute=function(H){this._setCursor((H.params[0]||1)-1,this._bufferService.buffer.y)},F.prototype.cursorPosition=function(H){this._setCursor(H.length>=2?(H.params[1]||1)-1:0,(H.params[0]||1)-1)},F.prototype.charPosAbsolute=function(H){this._setCursor((H.params[0]||1)-1,this._bufferService.buffer.y)},F.prototype.hPositionRelative=function(H){this._moveCursor(H.params[0]||1,0)},F.prototype.linePosAbsolute=function(H){this._setCursor(this._bufferService.buffer.x,(H.params[0]||1)-1)},F.prototype.vPositionRelative=function(H){this._moveCursor(0,H.params[0]||1)},F.prototype.hVPosition=function(H){this.cursorPosition(H)},F.prototype.tabClear=function(H){var P=H.params[0];P===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:P===3&&(this._bufferService.buffer.tabs={})},F.prototype.cursorForwardTab=function(H){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var P=H.params[0]||1;P--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},F.prototype.cursorBackwardTab=function(H){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var P=H.params[0]||1,V=this._bufferService.buffer;P--;)V.x=V.prevStop()},F.prototype._eraseInBufferLine=function(H,P,V,G){G===void 0&&(G=!1);var Q=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+H);Q.replaceCells(P,V,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),G&&(Q.isWrapped=!1)},F.prototype._resetBufferLine=function(H){var P=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+H);P.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),P.isWrapped=!1},F.prototype.eraseInDisplay=function(H){var P;switch(this._restrictCursor(),H.params[0]){case 0:for(P=this._bufferService.buffer.y,this._dirtyRowService.markDirty(P),this._eraseInBufferLine(P++,this._bufferService.buffer.x,this._bufferService.cols,this._bufferService.buffer.x===0);P<this._bufferService.rows;P++)this._resetBufferLine(P);this._dirtyRowService.markDirty(P);break;case 1:for(P=this._bufferService.buffer.y,this._dirtyRowService.markDirty(P),this._eraseInBufferLine(P,0,this._bufferService.buffer.x+1,!0),this._bufferService.buffer.x+1>=this._bufferService.cols&&(this._bufferService.buffer.lines.get(P+1).isWrapped=!1);P--;)this._resetBufferLine(P);this._dirtyRowService.markDirty(0);break;case 2:for(P=this._bufferService.rows,this._dirtyRowService.markDirty(P-1);P--;)this._resetBufferLine(P);this._dirtyRowService.markDirty(0);break;case 3:var V=this._bufferService.buffer.lines.length-this._bufferService.rows;V>0&&(this._bufferService.buffer.lines.trimStart(V),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-V,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-V,0),this._onScroll.fire(0))}},F.prototype.eraseInLine=function(H){switch(this._restrictCursor(),H.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)},F.prototype.insertLines=function(H){this._restrictCursor();var P=H.params[0]||1,V=this._bufferService.buffer;if(!(V.y>V.scrollBottom||V.y<V.scrollTop)){for(var G=V.ybase+V.y,Q=this._bufferService.rows-1-V.scrollBottom,ne=this._bufferService.rows-1+V.ybase-Q+1;P--;)V.lines.splice(ne-1,1),V.lines.splice(G,0,V.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(V.y,V.scrollBottom),V.x=0}},F.prototype.deleteLines=function(H){this._restrictCursor();var P=H.params[0]||1,V=this._bufferService.buffer;if(!(V.y>V.scrollBottom||V.y<V.scrollTop)){var G,Q=V.ybase+V.y;for(G=this._bufferService.rows-1-V.scrollBottom,G=this._bufferService.rows-1+V.ybase-G;P--;)V.lines.splice(Q,1),V.lines.splice(G,0,V.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(V.y,V.scrollBottom),V.x=0}},F.prototype.insertChars=function(H){this._restrictCursor();var P=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);P&&(P.insertCells(this._bufferService.buffer.x,H.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},F.prototype.deleteChars=function(H){this._restrictCursor();var P=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);P&&(P.deleteCells(this._bufferService.buffer.x,H.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},F.prototype.scrollUp=function(H){for(var P=H.params[0]||1,V=this._bufferService.buffer;P--;)V.lines.splice(V.ybase+V.scrollTop,1),V.lines.splice(V.ybase+V.scrollBottom,0,V.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(V.scrollTop,V.scrollBottom)},F.prototype.scrollDown=function(H){for(var P=H.params[0]||1,V=this._bufferService.buffer;P--;)V.lines.splice(V.ybase+V.scrollBottom,1),V.lines.splice(V.ybase+V.scrollTop,0,V.getBlankLine(v.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(V.scrollTop,V.scrollBottom)},F.prototype.scrollLeft=function(H){var P=this._bufferService.buffer;if(!(P.y>P.scrollBottom||P.y<P.scrollTop)){for(var V=H.params[0]||1,G=P.scrollTop;G<=P.scrollBottom;++G){var Q=P.lines.get(P.ybase+G);Q.deleteCells(0,V,P.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Q.isWrapped=!1}this._dirtyRowService.markRangeDirty(P.scrollTop,P.scrollBottom)}},F.prototype.scrollRight=function(H){var P=this._bufferService.buffer;if(!(P.y>P.scrollBottom||P.y<P.scrollTop)){for(var V=H.params[0]||1,G=P.scrollTop;G<=P.scrollBottom;++G){var Q=P.lines.get(P.ybase+G);Q.insertCells(0,V,P.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Q.isWrapped=!1}this._dirtyRowService.markRangeDirty(P.scrollTop,P.scrollBottom)}},F.prototype.insertColumns=function(H){var P=this._bufferService.buffer;if(!(P.y>P.scrollBottom||P.y<P.scrollTop)){for(var V=H.params[0]||1,G=P.scrollTop;G<=P.scrollBottom;++G){var Q=this._bufferService.buffer.lines.get(P.ybase+G);Q.insertCells(P.x,V,P.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Q.isWrapped=!1}this._dirtyRowService.markRangeDirty(P.scrollTop,P.scrollBottom)}},F.prototype.deleteColumns=function(H){var P=this._bufferService.buffer;if(!(P.y>P.scrollBottom||P.y<P.scrollTop)){for(var V=H.params[0]||1,G=P.scrollTop;G<=P.scrollBottom;++G){var Q=P.lines.get(P.ybase+G);Q.deleteCells(P.x,V,P.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Q.isWrapped=!1}this._dirtyRowService.markRangeDirty(P.scrollTop,P.scrollBottom)}},F.prototype.eraseChars=function(H){this._restrictCursor();var P=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);P&&(P.replaceCells(this._bufferService.buffer.x,this._bufferService.buffer.x+(H.params[0]||1),this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},F.prototype.repeatPrecedingCharacter=function(H){if(this._parser.precedingCodepoint){for(var P=H.params[0]||1,V=new Uint32Array(P),G=0;G<P;++G)V[G]=this._parser.precedingCodepoint;this.print(V,0,V.length)}},F.prototype.sendDeviceAttributesPrimary=function(H){H.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(I.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(I.C0.ESC+"[?6c"))},F.prototype.sendDeviceAttributesSecondary=function(H){H.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(I.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(I.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(H.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(I.C0.ESC+"[>83;40003;0c"))},F.prototype._is=function(H){return(this._optionsService.options.termName+"").indexOf(H)===0},F.prototype.setMode=function(H){for(var P=0;P<H.length;P++)switch(H.params[P]){case 4:this._coreService.modes.insertMode=!0}},F.prototype.setModePrivate=function(H){for(var P=0;P<H.length;P++)switch(H.params[P]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,u.DEFAULT_CHARSET),this._charsetService.setgCharset(1,u.DEFAULT_CHARSET),this._charsetService.setgCharset(2,u.DEFAULT_CHARSET),this._charsetService.setgCharset(3,u.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}},F.prototype.resetMode=function(H){for(var P=0;P<H.length;P++)switch(H.params[P]){case 4:this._coreService.modes.insertMode=!1}},F.prototype.resetModePrivate=function(H){for(var P=0;P<H.length;P++)switch(H.params[P]){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(),H.params[P]===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}},F.prototype._updateAttrColor=function(H,P,V,G,Q){return P===2?(H|=50331648,H&=-16777216,H|=x.AttributeData.fromColorRGB([V,G,Q])):P===5&&(H&=-50331904,H|=33554432|255&V),H},F.prototype._extractColor=function(H,P,V){var G=[0,0,-1,0,0,0],Q=0,ne=0;do{if(G[ne+Q]=H.params[P+ne],H.hasSubParams(P+ne)){var ue=H.getSubParams(P+ne),ae=0;do G[1]===5&&(Q=1),G[ne+ae+1+Q]=ue[ae];while(++ae<ue.length&&ae+ne+1+Q<G.length);break}if(G[1]===5&&ne+Q>=2||G[1]===2&&ne+Q>=5)break;G[1]&&(Q=1)}while(++ne+P<H.length&&ne+Q<G.length);for(ae=2;ae<G.length;++ae)G[ae]===-1&&(G[ae]=0);switch(G[0]){case 38:V.fg=this._updateAttrColor(V.fg,G[1],G[3],G[4],G[5]);break;case 48:V.bg=this._updateAttrColor(V.bg,G[1],G[3],G[4],G[5]);break;case 58:V.extended=V.extended.clone(),V.extended.underlineColor=this._updateAttrColor(V.extended.underlineColor,G[1],G[3],G[4],G[5])}return ne},F.prototype._processUnderline=function(H,P){P.extended=P.extended.clone(),(!~H||H>5)&&(H=1),P.extended.underlineStyle=H,P.fg|=268435456,H===0&&(P.fg&=-268435457),P.updateExtended()},F.prototype.charAttributes=function(H){if(H.length===1&&H.params[0]===0)return this._curAttrData.fg=v.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=v.DEFAULT_ATTR_DATA.bg);for(var P,V=H.length,G=this._curAttrData,Q=0;Q<V;Q++)(P=H.params[Q])>=30&&P<=37?(G.fg&=-50331904,G.fg|=16777216|P-30):P>=40&&P<=47?(G.bg&=-50331904,G.bg|=16777216|P-40):P>=90&&P<=97?(G.fg&=-50331904,G.fg|=16777224|P-90):P>=100&&P<=107?(G.bg&=-50331904,G.bg|=16777224|P-100):P===0?(G.fg=v.DEFAULT_ATTR_DATA.fg,G.bg=v.DEFAULT_ATTR_DATA.bg):P===1?G.fg|=134217728:P===3?G.bg|=67108864:P===4?(G.fg|=268435456,this._processUnderline(H.hasSubParams(Q)?H.getSubParams(Q)[0]:1,G)):P===5?G.fg|=536870912:P===7?G.fg|=67108864:P===8?G.fg|=1073741824:P===2?G.bg|=134217728:P===21?this._processUnderline(2,G):P===22?(G.fg&=-134217729,G.bg&=-134217729):P===23?G.bg&=-67108865:P===24?G.fg&=-268435457:P===25?G.fg&=-536870913:P===27?G.fg&=-67108865:P===28?G.fg&=-1073741825:P===39?(G.fg&=-67108864,G.fg|=16777215&v.DEFAULT_ATTR_DATA.fg):P===49?(G.bg&=-67108864,G.bg|=16777215&v.DEFAULT_ATTR_DATA.bg):P===38||P===48||P===58?Q+=this._extractColor(H,Q,G):P===59?(G.extended=G.extended.clone(),G.extended.underlineColor=-1,G.updateExtended()):P===100?(G.fg&=-67108864,G.fg|=16777215&v.DEFAULT_ATTR_DATA.fg,G.bg&=-67108864,G.bg|=16777215&v.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",P)},F.prototype.deviceStatus=function(H){switch(H.params[0]){case 5:this._coreService.triggerDataEvent(I.C0.ESC+"[0n");break;case 6:var P=this._bufferService.buffer.y+1,V=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(I.C0.ESC+"["+P+";"+V+"R")}},F.prototype.deviceStatusPrivate=function(H){switch(H.params[0]){case 6:var P=this._bufferService.buffer.y+1,V=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(I.C0.ESC+"[?"+P+";"+V+"R")}},F.prototype.softReset=function(H){this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=v.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},F.prototype.setCursorStyle=function(H){var P=H.params[0]||1;switch(P){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 V=P%2==1;this._optionsService.options.cursorBlink=V},F.prototype.setScrollRegion=function(H){var P,V=H.params[0]||1;(H.length<2||(P=H.params[1])>this._bufferService.rows||P===0)&&(P=this._bufferService.rows),P>V&&(this._bufferService.buffer.scrollTop=V-1,this._bufferService.buffer.scrollBottom=P-1,this._setCursor(0,0))},F.prototype.windowOptions=function(H){if(A(H.params[0],this._optionsService.options.windowOptions)){var P=H.length>1?H.params[1]:0;switch(H.params[0]){case 14:P!==2&&this._onRequestWindowsOptionsReport.fire(E.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(E.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(I.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:P!==0&&P!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),P!==0&&P!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:P!==0&&P!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),P!==0&&P!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},F.prototype.saveCursor=function(H){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},F.prototype.restoreCursor=function(H){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()},F.prototype.setTitle=function(H){this._windowTitle=H,this._onTitleChange.fire(H)},F.prototype.setIconName=function(H){this._iconName=H},F.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},F.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},F.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},F.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,u.DEFAULT_CHARSET)},F.prototype.selectCharset=function(H){H.length===2?H[0]!=="/"&&this._charsetService.setgCharset(R[H[0]],u.CHARSETS[H[1]]||u.DEFAULT_CHARSET):this.selectDefaultCharset()},F.prototype.index=function(){this._restrictCursor();var H=this._bufferService.buffer;this._bufferService.buffer.y++,H.y===H.scrollBottom+1?(H.y--,this._onRequestScroll.fire(this._eraseAttrData())):H.y>=this._bufferService.rows&&(H.y=this._bufferService.rows-1),this._restrictCursor()},F.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},F.prototype.reverseIndex=function(){this._restrictCursor();var H=this._bufferService.buffer;if(H.y===H.scrollTop){var P=H.scrollBottom-H.scrollTop;H.lines.shiftElements(H.ybase+H.y,P,1),H.lines.set(H.ybase+H.y,H.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(H.scrollTop,H.scrollBottom)}else H.y--,this._restrictCursor()},F.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},F.prototype.reset=function(){this._curAttrData=v.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=v.DEFAULT_ATTR_DATA.clone()},F.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},F.prototype.setgLevel=function(H){this._charsetService.setgLevel(H)},F.prototype.screenAlignmentPattern=function(){var H=new m.CellData;H.content=1<<22|69,H.fg=this._curAttrData.fg,H.bg=this._curAttrData.bg;var P=this._bufferService.buffer;this._setCursor(0,0);for(var V=0;V<this._bufferService.rows;++V){var G=P.ybase+P.y+V,Q=P.lines.get(G);Q&&(Q.fill(H),Q.isWrapped=!1)}this._dirtyRowService.markAllDirty(),this._setCursor(0,0)},F}(g.Disposable);b.InputHandler=L},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.DEFAULT_CHARSET=b.CHARSETS=void 0,b.CHARSETS={},b.DEFAULT_CHARSET=b.CHARSETS.B,b.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"},b.CHARSETS.A={"#":"\xA3"},b.CHARSETS.B=void 0,b.CHARSETS[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"},b.CHARSETS.C=b.CHARSETS[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},b.CHARSETS.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"},b.CHARSETS.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"},b.CHARSETS.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"},b.CHARSETS.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"},b.CHARSETS.E=b.CHARSETS[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"},b.CHARSETS.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"},b.CHARSETS.H=b.CHARSETS[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},b.CHARSETS["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"}},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.Params=void 0;var Y=function(){function s(E,I){if(E===void 0&&(E=32),I===void 0&&(I=32),this.maxLength=E,this.maxSubParamsLength=I,I>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(E),this.length=0,this._subParams=new Int32Array(I),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(E),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return s.fromArray=function(E){var I=new s;if(!E.length)return I;for(var u=E[0]instanceof Array?1:0;u<E.length;++u){var d=E[u];if(d instanceof Array)for(var g=0;g<d.length;++g)I.addSubParam(d[g]);else I.addParam(d)}return I},s.prototype.clone=function(){var E=new s(this.maxLength,this.maxSubParamsLength);return E.params.set(this.params),E.length=this.length,E._subParams.set(this._subParams),E._subParamsLength=this._subParamsLength,E._subParamsIdx.set(this._subParamsIdx),E._rejectDigits=this._rejectDigits,E._rejectSubDigits=this._rejectSubDigits,E._digitIsSub=this._digitIsSub,E},s.prototype.toArray=function(){for(var E=[],I=0;I<this.length;++I){E.push(this.params[I]);var u=this._subParamsIdx[I]>>8,d=255&this._subParamsIdx[I];d-u>0&&E.push(Array.prototype.slice.call(this._subParams,u,d))}return E},s.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},s.prototype.addParam=function(E){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(E<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=E>2147483647?2147483647:E}},s.prototype.addSubParam=function(E){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(E<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=E>2147483647?2147483647:E,this._subParamsIdx[this.length-1]++}},s.prototype.hasSubParams=function(E){return(255&this._subParamsIdx[E])-(this._subParamsIdx[E]>>8)>0},s.prototype.getSubParams=function(E){var I=this._subParamsIdx[E]>>8,u=255&this._subParamsIdx[E];return u-I>0?this._subParams.subarray(I,u):null},s.prototype.getSubParamsAll=function(){for(var E={},I=0;I<this.length;++I){var u=this._subParamsIdx[I]>>8,d=255&this._subParamsIdx[I];d-u>0&&(E[I]=this._subParams.slice(u,d))}return E},s.prototype.addDigit=function(E){var I;if(!(this._rejectDigits||!(I=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var u=this._digitIsSub?this._subParams:this.params,d=u[I-1];u[I-1]=~d?Math.min(10*d+E,2147483647):E}},s}();b.Params=Y},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.OscHandler=b.OscParser=void 0;var Y=B(23),s=B(8),E=function(){function u(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return u.prototype.addHandler=function(d,g){this._handlers[d]===void 0&&(this._handlers[d]=[]);var y=this._handlers[d];return y.push(g),{dispose:function(){var S=y.indexOf(g);S!==-1&&y.splice(S,1)}}},u.prototype.setHandler=function(d,g){this._handlers[d]=[g]},u.prototype.clearHandler=function(d){this._handlers[d]&&delete this._handlers[d]},u.prototype.setHandlerFallback=function(d){this._handlerFb=d},u.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},u.prototype.reset=function(){this._state===2&&this.end(!1),this._id=-1,this._state=0},u.prototype._start=function(){var d=this._handlers[this._id];if(d)for(var g=d.length-1;g>=0;g--)d[g].start();else this._handlerFb(this._id,"START")},u.prototype._put=function(d,g,y){var S=this._handlers[this._id];if(S)for(var v=S.length-1;v>=0;v--)S[v].put(d,g,y);else this._handlerFb(this._id,"PUT",s.utf32ToString(d,g,y))},u.prototype._end=function(d){var g=this._handlers[this._id];if(g){for(var y=g.length-1;y>=0&&g[y].end(d)===!1;y--);for(y--;y>=0;y--)g[y].end(!1)}else this._handlerFb(this._id,"END",d)},u.prototype.start=function(){this.reset(),this._id=-1,this._state=1},u.prototype.put=function(d,g,y){if(this._state!==3){if(this._state===1)for(;g<y;){var S=d[g++];if(S===59){this._state=2,this._start();break}if(S<48||57<S)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+S-48}this._state===2&&y-g>0&&this._put(d,g,y)}},u.prototype.end=function(d){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(d)),this._id=-1,this._state=0)},u}();b.OscParser=E;var I=function(){function u(d){this._handler=d,this._data="",this._hitLimit=!1}return u.prototype.start=function(){this._data="",this._hitLimit=!1},u.prototype.put=function(d,g,y){this._hitLimit||(this._data+=s.utf32ToString(d,g,y),this._data.length>Y.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},u.prototype.end=function(d){var g;return this._hitLimit?g=!1:d&&(g=this._handler(this._data)),this._data="",this._hitLimit=!1,g},u}();b.OscHandler=I},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.PAYLOAD_LIMIT=void 0,b.PAYLOAD_LIMIT=1e7},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.DcsHandler=b.DcsParser=void 0;var Y=B(8),s=B(21),E=B(23),I=[],u=function(){function g(){this._handlers=Object.create(null),this._active=I,this._ident=0,this._handlerFb=function(){}}return g.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},g.prototype.addHandler=function(y,S){this._handlers[y]===void 0&&(this._handlers[y]=[]);var v=this._handlers[y];return v.push(S),{dispose:function(){var c=v.indexOf(S);c!==-1&&v.splice(c,1)}}},g.prototype.setHandler=function(y,S){this._handlers[y]=[S]},g.prototype.clearHandler=function(y){this._handlers[y]&&delete this._handlers[y]},g.prototype.setHandlerFallback=function(y){this._handlerFb=y},g.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=I,this._ident=0},g.prototype.hook=function(y,S){if(this.reset(),this._ident=y,this._active=this._handlers[y]||I,this._active.length)for(var v=this._active.length-1;v>=0;v--)this._active[v].hook(S);else this._handlerFb(this._ident,"HOOK",S)},g.prototype.put=function(y,S,v){if(this._active.length)for(var c=this._active.length-1;c>=0;c--)this._active[c].put(y,S,v);else this._handlerFb(this._ident,"PUT",Y.utf32ToString(y,S,v))},g.prototype.unhook=function(y){if(this._active.length){for(var S=this._active.length-1;S>=0&&this._active[S].unhook(y)===!1;S--);for(S--;S>=0;S--)this._active[S].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",y);this._active=I,this._ident=0},g}();b.DcsParser=u;var d=function(){function g(y){this._handler=y,this._data="",this._hitLimit=!1}return g.prototype.hook=function(y){this._params=y.clone(),this._data="",this._hitLimit=!1},g.prototype.put=function(y,S,v){this._hitLimit||(this._data+=Y.utf32ToString(y,S,v),this._data.length>E.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},g.prototype.unhook=function(y){var S;return this._hitLimit?S=!1:y&&(S=this._handler(this._data,this._params||new s.Params)),this._params=void 0,this._data="",this._hitLimit=!1,S},g}();b.DcsHandler=d},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.removeTerminalFromCache=b.acquireCharAtlas=void 0;var Y=B(26),s=B(43),E=[];b.acquireCharAtlas=function(I,u,d,g,y){for(var S=Y.generateConfig(g,y,I,d),v=0;v<E.length;v++){var c=(h=E[v]).ownedBy.indexOf(u);if(c>=0){if(Y.configEquals(h.config,S))return h.atlas;h.ownedBy.length===1?(h.atlas.dispose(),E.splice(v,1)):h.ownedBy.splice(c,1);break}}for(v=0;v<E.length;v++){var h=E[v];if(Y.configEquals(h.config,S))return h.ownedBy.push(u),h.atlas}var m={atlas:new s.DynamicCharAtlas(document,S),config:S,ownedBy:[u]};return E.push(m),m.atlas},b.removeTerminalFromCache=function(I){for(var u=0;u<E.length;u++){var d=E[u].ownedBy.indexOf(I);if(d!==-1){E[u].ownedBy.length===1?(E[u].atlas.dispose(),E.splice(u,1)):E[u].ownedBy.splice(d,1);break}}}},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.is256Color=b.configEquals=b.generateConfig=void 0;var Y=B(3);b.generateConfig=function(s,E,I,u){var d={foreground:u.foreground,background:u.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:u.ansi.slice(0,16)};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:s,scaledCharHeight:E,fontFamily:I.fontFamily,fontSize:I.fontSize,fontWeight:I.fontWeight,fontWeightBold:I.fontWeightBold,allowTransparency:I.allowTransparency,colors:d}},b.configEquals=function(s,E){for(var I=0;I<s.colors.ansi.length;I++)if(s.colors.ansi[I].rgba!==E.colors.ansi[I].rgba)return!1;return s.devicePixelRatio===E.devicePixelRatio&&s.fontFamily===E.fontFamily&&s.fontSize===E.fontSize&&s.fontWeight===E.fontWeight&&s.fontWeightBold===E.fontWeightBold&&s.allowTransparency===E.allowTransparency&&s.scaledCharWidth===E.scaledCharWidth&&s.scaledCharHeight===E.scaledCharHeight&&s.colors.foreground===E.colors.foreground&&s.colors.background===E.colors.background},b.is256Color=function(s){return s<Y.DEFAULT_COLOR}},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.ColorManager=b.DEFAULT_ANSI_COLORS=void 0;var Y=B(10),s=B(45),E=Y.css.toColor("#ffffff"),I=Y.css.toColor("#000000"),u=Y.css.toColor("#ffffff"),d=Y.css.toColor("#000000"),g={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};b.DEFAULT_ANSI_COLORS=function(){for(var S=[Y.css.toColor("#2e3436"),Y.css.toColor("#cc0000"),Y.css.toColor("#4e9a06"),Y.css.toColor("#c4a000"),Y.css.toColor("#3465a4"),Y.css.toColor("#75507b"),Y.css.toColor("#06989a"),Y.css.toColor("#d3d7cf"),Y.css.toColor("#555753"),Y.css.toColor("#ef2929"),Y.css.toColor("#8ae234"),Y.css.toColor("#fce94f"),Y.css.toColor("#729fcf"),Y.css.toColor("#ad7fa8"),Y.css.toColor("#34e2e2"),Y.css.toColor("#eeeeec")],v=[0,95,135,175,215,255],c=0;c<216;c++){var h=v[c/36%6|0],m=v[c/6%6|0],x=v[c%6];S.push({css:Y.channels.toCss(h,m,x),rgba:Y.channels.toRgba(h,m,x)})}for(c=0;c<24;c++){var T=8+10*c;S.push({css:Y.channels.toCss(T,T,T),rgba:Y.channels.toRgba(T,T,T)})}return S}();var y=function(){function S(v,c){this.allowTransparency=c;var h=v.createElement("canvas");h.width=1,h.height=1;var m=h.getContext("2d");if(!m)throw new Error("Could not get rendering context");this._ctx=m,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new s.ColorContrastCache,this.colors={foreground:E,background:I,cursor:u,cursorAccent:d,selectionTransparent:g,selectionOpaque:Y.color.blend(I,g),ansi:b.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return S.prototype.onOptionsChange=function(v){v==="minimumContrastRatio"&&this._contrastCache.clear()},S.prototype.setTheme=function(v){v===void 0&&(v={}),this.colors.foreground=this._parseColor(v.foreground,E),this.colors.background=this._parseColor(v.background,I),this.colors.cursor=this._parseColor(v.cursor,u,!0),this.colors.cursorAccent=this._parseColor(v.cursorAccent,d,!0),this.colors.selectionTransparent=this._parseColor(v.selection,g,!0),this.colors.selectionOpaque=Y.color.blend(this.colors.background,this.colors.selectionTransparent),Y.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=Y.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(v.black,b.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(v.red,b.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(v.green,b.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(v.yellow,b.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(v.blue,b.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(v.magenta,b.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(v.cyan,b.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(v.white,b.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(v.brightBlack,b.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(v.brightRed,b.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(v.brightGreen,b.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(v.brightYellow,b.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(v.brightBlue,b.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(v.brightMagenta,b.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(v.brightCyan,b.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(v.brightWhite,b.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},S.prototype._parseColor=function(v,c,h){if(h===void 0&&(h=this.allowTransparency),v===void 0)return c;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=v,typeof this._ctx.fillStyle!="string")return console.warn("Color: "+v+" is invalid using fallback "+c.css),c;this._ctx.fillRect(0,0,1,1);var m=this._ctx.getImageData(0,0,1,1).data;if(m[3]!==255){if(!h)return console.warn("Color: "+v+" is using transparency, but allowTransparency is false. Using fallback "+c.css+"."),c;var x=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(L){return Number(L)}),T=x[0],_=x[1],R=x[2],A=x[3],N=Math.round(255*A);return{rgba:Y.channels.toRgba(T,_,R,N),css:v}}return{css:this._ctx.fillStyle,rgba:Y.channels.toRgba(m[0],m[1],m[2],m[3])}},S}();b.ColorManager=y},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.throwIfFalsy=void 0,b.throwIfFalsy=function(Y){if(!Y)throw new Error("value must not be falsy");return Y}},function(Z,b,B){"use strict";var Y,s=this&&this.__extends||(Y=function(y,S){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,c){v.__proto__=c}||function(v,c){for(var h in c)c.hasOwnProperty(h)&&(v[h]=c[h])})(y,S)},function(y,S){function v(){this.constructor=y}Y(y,S),y.prototype=S===null?Object.create(S):(v.prototype=S.prototype,new v)});Object.defineProperty(b,"__esModule",{value:!0}),b.CharacterJoinerRegistry=b.JoinedCellData=void 0;var E=B(6),I=B(3),u=B(4),d=function(y){function S(v,c,h){var m=y.call(this)||this;return m.content=0,m.combinedData="",m.fg=v.fg,m.bg=v.bg,m.combinedData=c,m._width=h,m}return s(S,y),S.prototype.isCombined=function(){return 2097152},S.prototype.getWidth=function(){return this._width},S.prototype.getChars=function(){return this.combinedData},S.prototype.getCode=function(){return 2097151},S.prototype.setFromCharData=function(v){throw new Error("not implemented")},S.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},S}(E.AttributeData);b.JoinedCellData=d;var g=function(){function y(S){this._bufferService=S,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new u.CellData}return y.prototype.registerCharacterJoiner=function(S){var v={id:this._nextCharacterJoinerId++,handler:S};return this._characterJoiners.push(v),v.id},y.prototype.deregisterCharacterJoiner=function(S){for(var v=0;v<this._characterJoiners.length;v++)if(this._characterJoiners[v].id===S)return this._characterJoiners.splice(v,1),!0;return!1},y.prototype.getJoinedCharacters=function(S){if(this._characterJoiners.length===0)return[];var v=this._bufferService.buffer.lines.get(S);if(!v||v.length===0)return[];for(var c=[],h=v.translateToString(!0),m=0,x=0,T=0,_=v.getFg(0),R=v.getBg(0),A=0;A<v.getTrimmedLength();A++)if(v.loadCell(A,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==_||this._workCell.bg!==R){if(A-m>1)for(var N=this._getJoinedRanges(h,T,x,v,m),L=0;L<N.length;L++)c.push(N[L]);m=A,T=x,_=this._workCell.fg,R=this._workCell.bg}x+=this._workCell.getChars().length||I.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-m>1)for(N=this._getJoinedRanges(h,T,x,v,m),L=0;L<N.length;L++)c.push(N[L]);return c},y.prototype._getJoinedRanges=function(S,v,c,h,m){for(var x=S.substring(v,c),T=this._characterJoiners[0].handler(x),_=1;_<this._characterJoiners.length;_++)for(var R=this._characterJoiners[_].handler(x),A=0;A<R.length;A++)y._mergeRanges(T,R[A]);return this._stringRangesToCellRanges(T,h,m),T},y.prototype._stringRangesToCellRanges=function(S,v,c){var h=0,m=!1,x=0,T=S[h];if(T){for(var _=c;_<this._bufferService.cols;_++){var R=v.getWidth(_),A=v.getString(_).length||I.WHITESPACE_CELL_CHAR.length;if(R!==0){if(!m&&T[0]<=x&&(T[0]=_,m=!0),T[1]<=x){if(T[1]=_,!(T=S[++h]))break;T[0]<=x?(T[0]=_,m=!0):m=!1}x+=A}}T&&(T[1]=this._bufferService.cols)}},y._mergeRanges=function(S,v){for(var c=!1,h=0;h<S.length;h++){var m=S[h];if(c){if(v[1]<=m[0])return S[h-1][1]=v[1],S;if(v[1]<=m[1])return S[h-1][1]=Math.max(v[1],m[1]),S.splice(h,1),S;S.splice(h,1),h--}else{if(v[1]<=m[0])return S.splice(h,0,v),S;if(v[1]<=m[1])return m[0]=Math.min(v[0],m[0]),S;v[0]<m[1]&&(m[0]=Math.min(v[0],m[0]),c=!0)}}return c?S[S.length-1][1]=v[1]:S.push(v),S},y}();b.CharacterJoinerRegistry=g},function(Z,b,B){"use strict";function Y(s,E){var I=E.getBoundingClientRect();return[s.clientX-I.left,s.clientY-I.top]}Object.defineProperty(b,"__esModule",{value:!0}),b.getRawByteCoords=b.getCoords=b.getCoordsRelativeToElement=void 0,b.getCoordsRelativeToElement=Y,b.getCoords=function(s,E,I,u,d,g,y,S){if(d){var v=Y(s,E);if(v)return v[0]=Math.ceil((v[0]+(S?g/2:0))/g),v[1]=Math.ceil(v[1]/y),v[0]=Math.min(Math.max(v[0],1),I+(S?1:0)),v[1]=Math.min(Math.max(v[1],1),u),v}},b.getRawByteCoords=function(s){if(s)return{x:s[0]+32,y:s[1]+32}}},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.RenderDebouncer=void 0;var Y=function(){function s(E){this._renderCallback=E}return s.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},s.prototype.refresh=function(E,I,u){var d=this;this._rowCount=u,E=E!==void 0?E:0,I=I!==void 0?I:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,E):E,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,I):I,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return d._innerRefresh()}))},s.prototype._innerRefresh=function(){if(this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var E=Math.max(this._rowStart,0),I=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(E,I)}},s}();b.RenderDebouncer=Y},function(Z,b,B){"use strict";var Y,s=this&&this.__extends||(Y=function(I,u){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,g){d.__proto__=g}||function(d,g){for(var y in g)g.hasOwnProperty(y)&&(d[y]=g[y])})(I,u)},function(I,u){function d(){this.constructor=I}Y(I,u),I.prototype=u===null?Object.create(u):(d.prototype=u.prototype,new d)});Object.defineProperty(b,"__esModule",{value:!0}),b.ScreenDprMonitor=void 0;var E=function(I){function u(){var d=I!==null&&I.apply(this,arguments)||this;return d._currentDevicePixelRatio=window.devicePixelRatio,d}return s(u,I),u.prototype.setListener=function(d){var g=this;this._listener&&this.clearListener(),this._listener=d,this._outerListener=function(){g._listener&&(g._listener(window.devicePixelRatio,g._currentDevicePixelRatio),g._updateDpr())},this._updateDpr()},u.prototype.dispose=function(){I.prototype.dispose.call(this),this.clearListener()},u.prototype._updateDpr=function(){var d;this._outerListener&&((d=this._resolutionMediaMatchList)===null||d===void 0||d.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},u.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)},u}(B(2).Disposable);b.ScreenDprMonitor=E},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.clone=void 0,b.clone=function Y(s,E){if(E===void 0&&(E=5),typeof s!="object")return s;var I=Array.isArray(s)?[]:{};for(var u in s)I[u]=E<=1?s[u]:s[u]?Y(s[u],E-1):s[u];return I}},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.Terminal=void 0;var Y=B(4),s=B(35),E=B(18),I=B(0),u=B(83),d=function(){function h(m){this._core=new s.Terminal(m),this._addonManager=new u.AddonManager}return h.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(h.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new v(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"unicode",{get:function(){return this._checkProposedApi(),new c(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"buffer",{get:function(){return this._checkProposedApi(),new y(this._core.buffers)},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),h.prototype.blur=function(){this._core.blur()},h.prototype.focus=function(){this._core.focus()},h.prototype.resize=function(m,x){this._verifyIntegers(m,x),this._core.resize(m,x)},h.prototype.open=function(m){this._core.open(m)},h.prototype.attachCustomKeyEventHandler=function(m){this._core.attachCustomKeyEventHandler(m)},h.prototype.registerLinkMatcher=function(m,x,T){return this._checkProposedApi(),this._core.registerLinkMatcher(m,x,T)},h.prototype.deregisterLinkMatcher=function(m){this._checkProposedApi(),this._core.deregisterLinkMatcher(m)},h.prototype.registerLinkProvider=function(m){return this._checkProposedApi(),this._core.registerLinkProvider(m)},h.prototype.registerCharacterJoiner=function(m){return this._checkProposedApi(),this._core.registerCharacterJoiner(m)},h.prototype.deregisterCharacterJoiner=function(m){this._checkProposedApi(),this._core.deregisterCharacterJoiner(m)},h.prototype.registerMarker=function(m){return this._checkProposedApi(),this._verifyIntegers(m),this._core.addMarker(m)},h.prototype.addMarker=function(m){return this.registerMarker(m)},h.prototype.hasSelection=function(){return this._core.hasSelection()},h.prototype.select=function(m,x,T){this._verifyIntegers(m,x,T),this._core.select(m,x,T)},h.prototype.getSelection=function(){return this._core.getSelection()},h.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},h.prototype.clearSelection=function(){this._core.clearSelection()},h.prototype.selectAll=function(){this._core.selectAll()},h.prototype.selectLines=function(m,x){this._verifyIntegers(m,x),this._core.selectLines(m,x)},h.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},h.prototype.scrollLines=function(m){this._verifyIntegers(m),this._core.scrollLines(m)},h.prototype.scrollPages=function(m){this._verifyIntegers(m),this._core.scrollPages(m)},h.prototype.scrollToTop=function(){this._core.scrollToTop()},h.prototype.scrollToBottom=function(){this._core.scrollToBottom()},h.prototype.scrollToLine=function(m){this._verifyIntegers(m),this._core.scrollToLine(m)},h.prototype.clear=function(){this._core.clear()},h.prototype.write=function(m,x){this._core.write(m,x)},h.prototype.writeUtf8=function(m,x){this._core.write(m,x)},h.prototype.writeln=function(m,x){this._core.write(m),this._core.write(`\r
`,x)},h.prototype.paste=function(m){this._core.paste(m)},h.prototype.getOption=function(m){return this._core.optionsService.getOption(m)},h.prototype.setOption=function(m,x){this._core.optionsService.setOption(m,x)},h.prototype.refresh=function(m,x){this._verifyIntegers(m,x),this._core.refresh(m,x)},h.prototype.reset=function(){this._core.reset()},h.prototype.loadAddon=function(m){return this._addonManager.loadAddon(this,m)},Object.defineProperty(h,"strings",{get:function(){return E},enumerable:!1,configurable:!0}),h.prototype._verifyIntegers=function(){for(var m=[],x=0;x<arguments.length;x++)m[x]=arguments[x];for(var T=0,_=m;T<_.length;T++){var R=_[T];if(R===1/0||isNaN(R)||R%1!=0)throw new Error("This API only accepts integers")}},h}();b.Terminal=d;var g=function(){function h(m,x){this._buffer=m,this.type=x}return h.prototype.init=function(m){return this._buffer=m,this},Object.defineProperty(h.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),h.prototype.getLine=function(m){var x=this._buffer.lines.get(m);if(x)return new S(x)},h.prototype.getNullCell=function(){return new Y.CellData},h}(),y=function(){function h(m){var x=this;this._buffers=m,this._onBufferChange=new I.EventEmitter,this._normal=new g(this._buffers.normal,"normal"),this._alternate=new g(this._buffers.alt,"alternate"),this._buffers.onBufferActivate(function(){return x._onBufferChange.fire(x.active)})}return Object.defineProperty(h.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(h.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(h.prototype,"normal",{get:function(){return this._normal.init(this._buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"alternate",{get:function(){return this._alternate.init(this._buffers.alt)},enumerable:!1,configurable:!0}),h}(),S=function(){function h(m){this._line=m}return Object.defineProperty(h.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),h.prototype.getCell=function(m,x){if(!(m<0||m>=this._line.length))return x?(this._line.loadCell(m,x),x):this._line.loadCell(m,new Y.CellData)},h.prototype.translateToString=function(m,x,T){return this._line.translateToString(m,x,T)},h}(),v=function(){function h(m){this._core=m}return h.prototype.registerCsiHandler=function(m,x){return this._core.addCsiHandler(m,function(T){return x(T.toArray())})},h.prototype.addCsiHandler=function(m,x){return this.registerCsiHandler(m,x)},h.prototype.registerDcsHandler=function(m,x){return this._core.addDcsHandler(m,function(T,_){return x(T,_.toArray())})},h.prototype.addDcsHandler=function(m,x){return this.registerDcsHandler(m,x)},h.prototype.registerEscHandler=function(m,x){return this._core.addEscHandler(m,x)},h.prototype.addEscHandler=function(m,x){return this.registerEscHandler(m,x)},h.prototype.registerOscHandler=function(m,x){return this._core.addOscHandler(m,x)},h.prototype.addOscHandler=function(m,x){return this.registerOscHandler(m,x)},h}(),c=function(){function h(m){this._core=m}return h.prototype.register=function(m){this._core.unicodeService.register(m)},Object.defineProperty(h.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(m){this._core.unicodeService.activeVersion=m},enumerable:!1,configurable:!0}),h}()},function(Z,b,B){"use strict";var Y,s=this&&this.__extends||(Y=function(he,ce){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(we,me){we.__proto__=me}||function(we,me){for(var Le in me)me.hasOwnProperty(Le)&&(we[Le]=me[Le])})(he,ce)},function(he,ce){function we(){this.constructor=he}Y(he,ce),he.prototype=ce===null?Object.create(ce):(we.prototype=ce.prototype,new we)});Object.defineProperty(b,"__esModule",{value:!0}),b.Terminal=void 0;var E=B(36),I=B(37),u=B(38),d=B(12),g=B(19),y=B(40),S=B(50),v=B(51),c=B(11),h=B(7),m=B(18),x=B(54),T=B(55),_=B(56),R=B(57),A=B(59),N=B(0),L=B(16),M=B(27),F=B(60),H=B(5),P=B(61),V=B(62),G=B(63),Q=B(64),ne=B(65),ue=typeof window!="undefined"?window.document:null,ae=function(he){function ce(we){we===void 0&&(we={});var me=he.call(this,we)||this;return me.browser=c,me._keyDownHandled=!1,me._onCursorMove=new N.EventEmitter,me._onKey=new N.EventEmitter,me._onRender=new N.EventEmitter,me._onSelectionChange=new N.EventEmitter,me._onTitleChange=new N.EventEmitter,me._onFocus=new N.EventEmitter,me._onBlur=new N.EventEmitter,me._onA11yCharEmitter=new N.EventEmitter,me._onA11yTabEmitter=new N.EventEmitter,me._setup(),me.linkifier=me._instantiationService.createInstance(S.Linkifier),me.linkifier2=me.register(me._instantiationService.createInstance(G.Linkifier2)),me.register(me._inputHandler.onRequestBell(function(){return me.bell()})),me.register(me._inputHandler.onRequestRefreshRows(function(Le,ee){return me.refresh(Le,ee)})),me.register(me._inputHandler.onRequestReset(function(){return me.reset()})),me.register(me._inputHandler.onRequestScroll(function(Le,ee){return me.scroll(Le,ee||void 0)})),me.register(me._inputHandler.onRequestWindowsOptionsReport(function(Le){return me._reportWindowsOptions(Le)})),me.register(N.forwardEvent(me._inputHandler.onCursorMove,me._onCursorMove)),me.register(N.forwardEvent(me._inputHandler.onTitleChange,me._onTitleChange)),me.register(N.forwardEvent(me._inputHandler.onA11yChar,me._onA11yCharEmitter)),me.register(N.forwardEvent(me._inputHandler.onA11yTab,me._onA11yTabEmitter)),me.register(me._bufferService.onResize(function(Le){return me._afterResize(Le.cols,Le.rows)})),me}return s(ce,he),Object.defineProperty(ce.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),ce.prototype.dispose=function(){var we,me,Le;this._isDisposed||(he.prototype.dispose.call(this),(we=this._renderService)===null||we===void 0||we.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(Le=(me=this.element)===null||me===void 0?void 0:me.parentNode)===null||Le===void 0||Le.removeChild(this.element))},ce.prototype._setup=function(){he.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(ce.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),ce.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},ce.prototype._updateOptions=function(we){var me,Le,ee,se;switch(he.prototype._updateOptions.call(this,we),we){case"fontFamily":case"fontSize":(me=this._renderService)===null||me===void 0||me.clear(),(Le=this._charSizeService)===null||Le===void 0||Le.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":(ee=this.viewport)===null||ee===void 0||ee.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new _.AccessibilityManager(this,this._renderService)):((se=this._accessibilityManager)===null||se===void 0||se.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},ce.prototype._onTextAreaFocus=function(we){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(d.C0.ESC+"[I"),this.updateCursorStyle(we),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},ce.prototype.blur=function(){var we;return(we=this.textarea)===null||we===void 0?void 0:we.blur()},ce.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(d.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},ce.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var we=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),me=this._bufferService.buffer.y*we,Le=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=Le+"px",this.textarea.style.top=me+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=we+"px",this.textarea.style.lineHeight=we+"px",this.textarea.style.zIndex="-5"}},ce.prototype._initGlobal=function(){var we=this;this._bindKeys(),this.register(h.addDisposableDomListener(this.element,"copy",function(Le){we.hasSelection()&&u.copyHandler(Le,we._selectionService)}));var me=function(Le){return u.handlePasteEvent(Le,we.textarea,we._coreService)};this.register(h.addDisposableDomListener(this.textarea,"paste",me)),this.register(h.addDisposableDomListener(this.element,"paste",me)),c.isFirefox?this.register(h.addDisposableDomListener(this.element,"mousedown",function(Le){Le.button===2&&u.rightClickHandler(Le,we.textarea,we.screenElement,we._selectionService,we.options.rightClickSelectsWord)})):this.register(h.addDisposableDomListener(this.element,"contextmenu",function(Le){u.rightClickHandler(Le,we.textarea,we.screenElement,we._selectionService,we.options.rightClickSelectsWord)})),c.isLinux&&this.register(h.addDisposableDomListener(this.element,"auxclick",function(Le){Le.button===1&&u.moveTextAreaUnderMouseCursor(Le,we.textarea,we.screenElement)}))},ce.prototype._bindKeys=function(){var we=this;this.register(h.addDisposableDomListener(this.textarea,"keyup",function(me){return we._keyUp(me)},!0)),this.register(h.addDisposableDomListener(this.textarea,"keydown",function(me){return we._keyDown(me)},!0)),this.register(h.addDisposableDomListener(this.textarea,"keypress",function(me){return we._keyPress(me)},!0)),this.register(h.addDisposableDomListener(this.textarea,"compositionstart",function(){return we._compositionHelper.compositionstart()})),this.register(h.addDisposableDomListener(this.textarea,"compositionupdate",function(me){return we._compositionHelper.compositionupdate(me)})),this.register(h.addDisposableDomListener(this.textarea,"compositionend",function(){return we._compositionHelper.compositionend()})),this.register(this.onRender(function(){return we._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(me){return we._queueLinkification(me.start,me.end)}))},ce.prototype.open=function(we){var me=this;if(!we)throw new Error("Terminal requires a parent element.");ue.body.contains(we)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=we.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"),we.appendChild(this.element);var Le=ue.createDocumentFragment();this._viewportElement=ue.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),Le.appendChild(this._viewportElement),this._viewportScrollArea=ue.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=ue.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=ue.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),Le.appendChild(this.screenElement),this.textarea=ue.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",m.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(h.addDisposableDomListener(this.textarea,"focus",function(le){return me._onTextAreaFocus(le)})),this.register(h.addDisposableDomListener(this.textarea,"blur",function(){return me._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var ee=this._instantiationService.createInstance(Q.CoreBrowserService,this.textarea);this._instantiationService.setService(H.ICoreBrowserService,ee),this._charSizeService=this._instantiationService.createInstance(P.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(H.ICharSizeService,this._charSizeService),this._compositionView=ue.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(E.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(Le),this._theme=this.options.theme||this._theme,this._colorManager=new M.ColorManager(ue,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(le){return me._colorManager.onOptionsChange(le)})),this._colorManager.setTheme(this._theme);var se=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(F.RenderService,se,this.rows,this.screenElement)),this._instantiationService.setService(H.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(le){return me._onRender.fire(le)})),this.onResize(function(le){return me._renderService.resize(le.cols,le.rows)}),this._soundService=this._instantiationService.createInstance(x.SoundService),this._instantiationService.setService(H.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(V.MouseService),this._instantiationService.setService(H.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(I.Viewport,function(le,ke){return me.scrollLines(le,ke)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return me.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){me._renderService.onCursorMove(),me._syncTextArea()})),this.register(this.onResize(function(){return me._renderService.onResize(me.cols,me.rows)})),this.register(this.onBlur(function(){return me._renderService.onBlur()})),this.register(this.onFocus(function(){return me._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return me.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(v.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(H.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(le){return me.scrollLines(le.amount,le.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return me._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(le){return me._renderService.onSelectionChanged(le.start,le.end,le.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(le){me.textarea.value=le,me.textarea.focus(),me.textarea.select()})),this.register(this.onScroll(function(){me.viewport.syncScrollArea(),me._selectionService.refresh()})),this.register(h.addDisposableDomListener(this._viewportElement,"scroll",function(){return me._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(T.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return me._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register(h.addDisposableDomListener(this.element,"mousedown",function(le){return me._selectionService.onMouseDown(le)})),this._coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new _.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},ce.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(y.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(R.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},ce.prototype._setTheme=function(we){var me,Le,ee;this._theme=we,(me=this._colorManager)===null||me===void 0||me.setTheme(we),(Le=this._renderService)===null||Le===void 0||Le.setColors(this._colorManager.colors),(ee=this.viewport)===null||ee===void 0||ee.onThemeChange(this._colorManager.colors)},ce.prototype.bindMouse=function(){var we=this,me=this,Le=this.element;function ee(He){var Fe,Je,Me=me._mouseService.getRawByteCoords(He,me.screenElement,me.cols,me.rows);if(!Me)return!1;switch(He.overrideType||He.type){case"mousemove":Je=32,He.buttons===void 0?(Fe=3,He.button!==void 0&&(Fe=He.button<3?He.button:3)):Fe=1&He.buttons?0:4&He.buttons?1:2&He.buttons?2:3;break;case"mouseup":Je=0,Fe=He.button<3?He.button:3;break;case"mousedown":Je=1,Fe=He.button<3?He.button:3;break;case"wheel":He.deltaY!==0&&(Je=He.deltaY<0?0:1),Fe=4;break;default:return!1}return!(Je===void 0||Fe===void 0||Fe>4)&&me._coreMouseService.triggerMouseEvent({col:Me.x-33,row:Me.y-33,button:Fe,action:Je,ctrl:He.ctrlKey,alt:He.altKey,shift:He.shiftKey})}var se={mouseup:null,wheel:null,mousedrag:null,mousemove:null},le=function(He){return ee(He),He.buttons||(we._document.removeEventListener("mouseup",se.mouseup),se.mousedrag&&we._document.removeEventListener("mousemove",se.mousedrag)),we.cancel(He)},ke=function(He){return ee(He),He.preventDefault(),we.cancel(He)},De=function(He){He.buttons&&ee(He)},Be=function(He){He.buttons||ee(He)};this.register(this._coreMouseService.onProtocolChange(function(He){He?(we.optionsService.options.logLevel==="debug"&&we._logService.debug("Binding to mouse events:",we._coreMouseService.explainEvents(He)),we.element.classList.add("enable-mouse-events"),we._selectionService.disable()):(we._logService.debug("Unbinding from mouse events."),we.element.classList.remove("enable-mouse-events"),we._selectionService.enable()),8&He?se.mousemove||(Le.addEventListener("mousemove",Be),se.mousemove=Be):(Le.removeEventListener("mousemove",se.mousemove),se.mousemove=null),16&He?se.wheel||(Le.addEventListener("wheel",ke,{passive:!1}),se.wheel=ke):(Le.removeEventListener("wheel",se.wheel),se.wheel=null),2&He?se.mouseup||(se.mouseup=le):(we._document.removeEventListener("mouseup",se.mouseup),se.mouseup=null),4&He?se.mousedrag||(se.mousedrag=De):(we._document.removeEventListener("mousemove",se.mousedrag),se.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(h.addDisposableDomListener(Le,"mousedown",function(He){if(He.preventDefault(),we.focus(),we._coreMouseService.areMouseEventsActive&&!we._selectionService.shouldForceSelection(He))return ee(He),se.mouseup&&we._document.addEventListener("mouseup",se.mouseup),se.mousedrag&&we._document.addEventListener("mousemove",se.mousedrag),we.cancel(He)})),this.register(h.addDisposableDomListener(Le,"wheel",function(He){if(!se.wheel){if(!we.buffer.hasScrollback){var Fe=we.viewport.getLinesScrolled(He);if(Fe===0)return;for(var Je=d.C0.ESC+(we._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(He.deltaY<0?"A":"B"),Me="",lt=0;lt<Math.abs(Fe);lt++)Me+=Je;we._coreService.triggerDataEvent(Me,!0)}}},{passive:!0})),this.register(h.addDisposableDomListener(Le,"wheel",function(He){if(!se.wheel)return we.viewport.onWheel(He)?void 0:we.cancel(He)},{passive:!1})),this.register(h.addDisposableDomListener(Le,"touchstart",function(He){if(!we._coreMouseService.areMouseEventsActive)return we.viewport.onTouchStart(He),we.cancel(He)},{passive:!0})),this.register(h.addDisposableDomListener(Le,"touchmove",function(He){if(!we._coreMouseService.areMouseEventsActive)return we.viewport.onTouchMove(He)?void 0:we.cancel(He)},{passive:!1}))},ce.prototype.refresh=function(we,me){var Le;(Le=this._renderService)===null||Le===void 0||Le.refreshRows(we,me)},ce.prototype._queueLinkification=function(we,me){var Le;(Le=this.linkifier)===null||Le===void 0||Le.linkifyRows(we,me)},ce.prototype.updateCursorStyle=function(we){this._selectionService&&this._selectionService.shouldColumnSelect(we)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},ce.prototype._showCursor=function(){this._coreService.isCursorInitialized||(this._coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},ce.prototype.scrollLines=function(we,me){he.prototype.scrollLines.call(this,we,me),this.refresh(0,this.rows-1)},ce.prototype.paste=function(we){u.paste(we,this.textarea,this._coreService)},ce.prototype.attachCustomKeyEventHandler=function(we){this._customKeyEventHandler=we},ce.prototype.registerLinkMatcher=function(we,me,Le){var ee=this.linkifier.registerLinkMatcher(we,me,Le);return this.refresh(0,this.rows-1),ee},ce.prototype.deregisterLinkMatcher=function(we){this.linkifier.deregisterLinkMatcher(we)&&this.refresh(0,this.rows-1)},ce.prototype.registerLinkProvider=function(we){return this.linkifier2.registerLinkProvider(we)},ce.prototype.registerCharacterJoiner=function(we){var me=this._renderService.registerCharacterJoiner(we);return this.refresh(0,this.rows-1),me},ce.prototype.deregisterCharacterJoiner=function(we){this._renderService.deregisterCharacterJoiner(we)&&this.refresh(0,this.rows-1)},Object.defineProperty(ce.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),ce.prototype.addMarker=function(we){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+we)},ce.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},ce.prototype.select=function(we,me,Le){this._selectionService.setSelection(we,me,Le)},ce.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},ce.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]}},ce.prototype.clearSelection=function(){var we;(we=this._selectionService)===null||we===void 0||we.clearSelection()},ce.prototype.selectAll=function(){var we;(we=this._selectionService)===null||we===void 0||we.selectAll()},ce.prototype.selectLines=function(we,me){var Le;(Le=this._selectionService)===null||Le===void 0||Le.selectLines(we,me)},ce.prototype._keyDown=function(we){if(this._keyDownHandled=!1,this._customKeyEventHandler&&this._customKeyEventHandler(we)===!1)return!1;if(!this._compositionHelper.keydown(we))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var me=A.evaluateKeyboardEvent(we,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(we),me.type===3||me.type===2){var Le=this.rows-1;return this.scrollLines(me.type===2?-Le:Le),this.cancel(we,!0)}return me.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,we)||(me.cancel&&this.cancel(we,!0),!me.key||(me.key!==d.C0.ETX&&me.key!==d.C0.CR||(this.textarea.value=""),this._onKey.fire({key:me.key,domEvent:we}),this._showCursor(),this._coreService.triggerDataEvent(me.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(we,!0)))},ce.prototype._isThirdLevelShift=function(we,me){var Le=we.isMac&&!this.options.macOptionIsMeta&&me.altKey&&!me.ctrlKey&&!me.metaKey||we.isWindows&&me.altKey&&me.ctrlKey&&!me.metaKey;return me.type==="keypress"?Le:Le&&(!me.keyCode||me.keyCode>47)},ce.prototype._keyUp=function(we){this._customKeyEventHandler&&this._customKeyEventHandler(we)===!1||(function(me){return me.keyCode===16||me.keyCode===17||me.keyCode===18}(we)||this.focus(),this.updateCursorStyle(we))},ce.prototype._keyPress=function(we){var me;if(this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(we)===!1)return!1;if(this.cancel(we),we.charCode)me=we.charCode;else if(we.which===null||we.which===void 0)me=we.keyCode;else{if(we.which===0||we.charCode===0)return!1;me=we.which}return!(!me||(we.altKey||we.ctrlKey||we.metaKey)&&!this._isThirdLevelShift(this.browser,we))&&(me=String.fromCharCode(me),this._onKey.fire({key:me,domEvent:we}),this._showCursor(),this._coreService.triggerDataEvent(me,!0),!0)},ce.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},ce.prototype.resize=function(we,me){we!==this.cols||me!==this.rows?he.prototype.resize.call(this,we,me):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},ce.prototype._afterResize=function(we,me){var Le,ee;(Le=this._charSizeService)===null||Le===void 0||Le.measure(),(ee=this.viewport)===null||ee===void 0||ee.syncScrollArea(!0)},ce.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 we=1;we<this.rows;we++)this.buffer.lines.push(this.buffer.getBlankLine(L.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire(this.buffer.ydisp)}},ce.prototype.reset=function(){var we,me;this.options.rows=this.rows,this.options.cols=this.cols;var Le=this._customKeyEventHandler;this._setup(),he.prototype.reset.call(this),(we=this._selectionService)===null||we===void 0||we.reset(),this._customKeyEventHandler=Le,this.refresh(0,this.rows-1),(me=this.viewport)===null||me===void 0||me.syncScrollArea()},ce.prototype._reportWindowsOptions=function(we){if(this._renderService)switch(we){case g.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var me=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),Le=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this._coreService.triggerDataEvent(d.C0.ESC+"[4;"+Le+";"+me+"t");break;case g.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var ee=this._renderService.dimensions.scaledCellWidth.toFixed(0),se=this._renderService.dimensions.scaledCellHeight.toFixed(0);this._coreService.triggerDataEvent(d.C0.ESC+"[6;"+se+";"+ee+"t")}},ce.prototype.cancel=function(we,me){if(this.options.cancelEvents||me)return we.preventDefault(),we.stopPropagation(),!1},ce.prototype._visualBell=function(){return!1},ce.prototype._soundBell=function(){return this.options.bellStyle==="sound"},ce}(ne.CoreTerminal);b.Terminal=ae},function(Z,b,B){"use strict";var Y=this&&this.__decorate||function(d,g,y,S){var v,c=arguments.length,h=c<3?g:S===null?S=Object.getOwnPropertyDescriptor(g,y):S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(d,g,y,S);else for(var m=d.length-1;m>=0;m--)(v=d[m])&&(h=(c<3?v(h):c>3?v(g,y,h):v(g,y))||h);return c>3&&h&&Object.defineProperty(g,y,h),h},s=this&&this.__param||function(d,g){return function(y,S){g(y,S,d)}};Object.defineProperty(b,"__esModule",{value:!0}),b.CompositionHelper=void 0;var E=B(5),I=B(1),u=function(){function d(g,y,S,v,c,h){this._textarea=g,this._compositionView=y,this._bufferService=S,this._optionsService=v,this._charSizeService=c,this._coreService=h,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return Object.defineProperty(d.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),d.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},d.prototype.compositionupdate=function(g){var y=this;this._compositionView.textContent=g.data,this.updateCompositionElements(),setTimeout(function(){y._compositionPosition.end=y._textarea.value.length},0)},d.prototype.compositionend=function(){this._finalizeComposition(!0)},d.prototype.keydown=function(g){if(this._isComposing||this._isSendingComposition){if(g.keyCode===229||g.keyCode===16||g.keyCode===17||g.keyCode===18)return!1;this._finalizeComposition(!1)}return g.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},d.prototype._finalizeComposition=function(g){var y=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,g){var S={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(y._isSendingComposition){y._isSendingComposition=!1;var c=void 0;c=y._isComposing?y._textarea.value.substring(S.start,S.end):y._textarea.value.substring(S.start),y._coreService.triggerDataEvent(c,!0)}},0)}else{this._isSendingComposition=!1;var v=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(v,!0)}},d.prototype._handleAnyTextareaChanges=function(){var g=this,y=this._textarea.value;setTimeout(function(){if(!g._isComposing){var S=g._textarea.value.replace(y,"");S.length>0&&g._coreService.triggerDataEvent(S,!0)}},0)},d.prototype.updateCompositionElements=function(g){var y=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var S=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),v=this._bufferService.buffer.y*S,c=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=c+"px",this._compositionView.style.top=v+"px",this._compositionView.style.height=S+"px",this._compositionView.style.lineHeight=S+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var h=this._compositionView.getBoundingClientRect();this._textarea.style.left=c+"px",this._textarea.style.top=v+"px",this._textarea.style.width=h.width+"px",this._textarea.style.height=h.height+"px",this._textarea.style.lineHeight=h.height+"px"}g||setTimeout(function(){return y.updateCompositionElements(!0)},0)}},d=Y([s(2,I.IBufferService),s(3,I.IOptionsService),s(4,E.ICharSizeService),s(5,I.ICoreService)],d)}();b.CompositionHelper=u},function(Z,b,B){"use strict";var Y,s=this&&this.__extends||(Y=function(v,c){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var x in m)m.hasOwnProperty(x)&&(h[x]=m[x])})(v,c)},function(v,c){function h(){this.constructor=v}Y(v,c),v.prototype=c===null?Object.create(c):(h.prototype=c.prototype,new h)}),E=this&&this.__decorate||function(v,c,h,m){var x,T=arguments.length,_=T<3?c:m===null?m=Object.getOwnPropertyDescriptor(c,h):m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(v,c,h,m);else for(var R=v.length-1;R>=0;R--)(x=v[R])&&(_=(T<3?x(_):T>3?x(c,h,_):x(c,h))||_);return T>3&&_&&Object.defineProperty(c,h,_),_},I=this&&this.__param||function(v,c){return function(h,m){c(h,m,v)}};Object.defineProperty(b,"__esModule",{value:!0}),b.Viewport=void 0;var u=B(2),d=B(7),g=B(5),y=B(1),S=function(v){function c(h,m,x,T,_,R,A){var N=v.call(this)||this;return N._scrollLines=h,N._viewportElement=m,N._scrollArea=x,N._bufferService=T,N._optionsService=_,N._charSizeService=R,N._renderService=A,N.scrollBarWidth=0,N._currentRowHeight=0,N._lastRecordedBufferLength=0,N._lastRecordedViewportHeight=0,N._lastRecordedBufferHeight=0,N._lastTouchY=0,N._lastScrollTop=0,N._wheelPartialScroll=0,N._refreshAnimationFrame=null,N._ignoreNextScrollEvent=!1,N.scrollBarWidth=N._viewportElement.offsetWidth-N._scrollArea.offsetWidth||15,N.register(d.addDisposableDomListener(N._viewportElement,"scroll",N._onScroll.bind(N))),setTimeout(function(){return N.syncScrollArea()},0),N}return s(c,v),c.prototype.onThemeChange=function(h){this._viewportElement.style.backgroundColor=h.background.css},c.prototype._refresh=function(h){var m=this;if(h)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return m._innerRefresh()}))},c.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var h=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==h&&(this._lastRecordedBufferHeight=h,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var m=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==m&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=m),this._refreshAnimationFrame=null},c.prototype.syncScrollArea=function(h){if(h===void 0&&(h=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(h);if(this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight){var m=this._bufferService.buffer.ydisp*this._currentRowHeight;this._lastScrollTop===m&&this._lastScrollTop===this._viewportElement.scrollTop&&this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh(h)}else this._refresh(h)},c.prototype._onScroll=function(h){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent)if(this._ignoreNextScrollEvent)this._ignoreNextScrollEvent=!1;else{var m=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(m,!0)}},c.prototype._bubbleScroll=function(h,m){var x=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(m<0&&this._viewportElement.scrollTop!==0||m>0&&x<this._lastRecordedBufferHeight)||(h.cancelable&&h.preventDefault(),!1)},c.prototype.onWheel=function(h){var m=this._getPixelsScrolled(h);return m!==0&&(this._viewportElement.scrollTop+=m,this._bubbleScroll(h,m))},c.prototype._getPixelsScrolled=function(h){if(h.deltaY===0)return 0;var m=this._applyScrollModifier(h.deltaY,h);return h.deltaMode===WheelEvent.DOM_DELTA_LINE?m*=this._currentRowHeight:h.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(m*=this._currentRowHeight*this._bufferService.rows),m},c.prototype.getLinesScrolled=function(h){if(h.deltaY===0)return 0;var m=this._applyScrollModifier(h.deltaY,h);return h.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(m/=this._currentRowHeight+0,this._wheelPartialScroll+=m,m=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):h.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(m*=this._bufferService.rows),m},c.prototype._applyScrollModifier=function(h,m){var x=this._optionsService.options.fastScrollModifier;return x==="alt"&&m.altKey||x==="ctrl"&&m.ctrlKey||x==="shift"&&m.shiftKey?h*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:h*this._optionsService.options.scrollSensitivity},c.prototype.onTouchStart=function(h){this._lastTouchY=h.touches[0].pageY},c.prototype.onTouchMove=function(h){var m=this._lastTouchY-h.touches[0].pageY;return this._lastTouchY=h.touches[0].pageY,m!==0&&(this._viewportElement.scrollTop+=m,this._bubbleScroll(h,m))},c=E([I(3,y.IBufferService),I(4,y.IOptionsService),I(5,g.ICharSizeService),I(6,g.IRenderService)],c)}(u.Disposable);b.Viewport=S},function(Z,b,B){"use strict";function Y(u){return u.replace(/\r?\n/g,"\r")}function s(u,d){return d?"\x1B[200~"+u+"\x1B[201~":u}function E(u,d,g){u=s(u=Y(u),g.decPrivateModes.bracketedPasteMode),g.triggerDataEvent(u,!0),d.value=""}function I(u,d,g){var y=g.getBoundingClientRect(),S=u.clientX-y.left-10,v=u.clientY-y.top-10;d.style.width="20px",d.style.height="20px",d.style.left=S+"px",d.style.top=v+"px",d.style.zIndex="1000",d.focus()}Object.defineProperty(b,"__esModule",{value:!0}),b.rightClickHandler=b.moveTextAreaUnderMouseCursor=b.paste=b.handlePasteEvent=b.copyHandler=b.bracketTextForPaste=b.prepareTextForTerminal=void 0,b.prepareTextForTerminal=Y,b.bracketTextForPaste=s,b.copyHandler=function(u,d){u.clipboardData&&u.clipboardData.setData("text/plain",d.selectionText),u.preventDefault()},b.handlePasteEvent=function(u,d,g){u.stopPropagation(),u.clipboardData&&E(u.clipboardData.getData("text/plain"),d,g)},b.paste=E,b.moveTextAreaUnderMouseCursor=I,b.rightClickHandler=function(u,d,g,y,S){I(u,d,g),S&&!y.isClickInSelection(u)&&y.selectWordAtCursor(u),d.value=y.selectionText,d.select()}},function(Z,b,B){"use strict";var Y,s=this&&this.__extends||(Y=function(v,c){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var x in m)m.hasOwnProperty(x)&&(h[x]=m[x])})(v,c)},function(v,c){function h(){this.constructor=v}Y(v,c),v.prototype=c===null?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(b,"__esModule",{value:!0}),b.EscapeSequenceParser=b.VT500_TRANSITION_TABLE=b.TransitionTable=void 0;var E=B(2),I=B(15),u=B(21),d=B(22),g=B(24),y=function(){function v(c){this.table=new Uint8Array(c)}return v.prototype.setDefault=function(c,h){I.fill(this.table,c<<4|h)},v.prototype.add=function(c,h,m,x){this.table[h<<8|c]=m<<4|x},v.prototype.addMany=function(c,h,m,x){for(var T=0;T<c.length;T++)this.table[h<<8|c[T]]=m<<4|x},v}();b.TransitionTable=y,b.VT500_TRANSITION_TABLE=function(){var v=new y(4095),c=Array.apply(null,Array(256)).map(function(R,A){return A}),h=function(R,A){return c.slice(R,A)},m=h(32,127),x=h(0,24);x.push(25),x.push.apply(x,h(28,32));var T,_=h(0,14);for(T in v.setDefault(1,0),v.addMany(m,0,2,0),_)v.addMany([24,26,153,154],T,3,0),v.addMany(h(128,144),T,3,0),v.addMany(h(144,152),T,3,0),v.add(156,T,0,0),v.add(27,T,11,1),v.add(157,T,4,8),v.addMany([152,158,159],T,0,7),v.add(155,T,11,3),v.add(144,T,11,9);return v.addMany(x,0,3,0),v.addMany(x,1,3,1),v.add(127,1,0,1),v.addMany(x,8,0,8),v.addMany(x,3,3,3),v.add(127,3,0,3),v.addMany(x,4,3,4),v.add(127,4,0,4),v.addMany(x,6,3,6),v.addMany(x,5,3,5),v.add(127,5,0,5),v.addMany(x,2,3,2),v.add(127,2,0,2),v.add(93,1,4,8),v.addMany(m,8,5,8),v.add(127,8,5,8),v.addMany([156,27,24,26,7],8,6,0),v.addMany(h(28,32),8,0,8),v.addMany([88,94,95],1,0,7),v.addMany(m,7,0,7),v.addMany(x,7,0,7),v.add(156,7,0,0),v.add(127,7,0,7),v.add(91,1,11,3),v.addMany(h(64,127),3,7,0),v.addMany(h(48,60),3,8,4),v.addMany([60,61,62,63],3,9,4),v.addMany(h(48,60),4,8,4),v.addMany(h(64,127),4,7,0),v.addMany([60,61,62,63],4,0,6),v.addMany(h(32,64),6,0,6),v.add(127,6,0,6),v.addMany(h(64,127),6,0,0),v.addMany(h(32,48),3,9,5),v.addMany(h(32,48),5,9,5),v.addMany(h(48,64),5,0,6),v.addMany(h(64,127),5,7,0),v.addMany(h(32,48),4,9,5),v.addMany(h(32,48),1,9,2),v.addMany(h(32,48),2,9,2),v.addMany(h(48,127),2,10,0),v.addMany(h(48,80),1,10,0),v.addMany(h(81,88),1,10,0),v.addMany([89,90,92],1,10,0),v.addMany(h(96,127),1,10,0),v.add(80,1,11,9),v.addMany(x,9,0,9),v.add(127,9,0,9),v.addMany(h(28,32),9,0,9),v.addMany(h(32,48),9,9,12),v.addMany(h(48,60),9,8,10),v.addMany([60,61,62,63],9,9,10),v.addMany(x,11,0,11),v.addMany(h(32,128),11,0,11),v.addMany(h(28,32),11,0,11),v.addMany(x,10,0,10),v.add(127,10,0,10),v.addMany(h(28,32),10,0,10),v.addMany(h(48,60),10,8,10),v.addMany([60,61,62,63],10,0,11),v.addMany(h(32,48),10,9,12),v.addMany(x,12,0,12),v.add(127,12,0,12),v.addMany(h(28,32),12,0,12),v.addMany(h(32,48),12,9,12),v.addMany(h(48,64),12,0,11),v.addMany(h(64,127),12,12,13),v.addMany(h(64,127),10,12,13),v.addMany(h(64,127),9,12,13),v.addMany(x,13,13,13),v.addMany(m,13,13,13),v.add(127,13,0,13),v.addMany([27,156,24,26],13,14,0),v.add(160,0,2,0),v.add(160,8,5,8),v.add(160,6,0,6),v.add(160,11,0,11),v.add(160,13,13,13),v}();var S=function(v){function c(h){h===void 0&&(h=b.VT500_TRANSITION_TABLE);var m=v.call(this)||this;return m._transitions=h,m.initialState=0,m.currentState=m.initialState,m._params=new u.Params,m._params.addParam(0),m._collect=0,m.precedingCodepoint=0,m._printHandlerFb=function(x,T,_){},m._executeHandlerFb=function(x){},m._csiHandlerFb=function(x,T){},m._escHandlerFb=function(x){},m._errorHandlerFb=function(x){return x},m._printHandler=m._printHandlerFb,m._executeHandlers=Object.create(null),m._csiHandlers=Object.create(null),m._escHandlers=Object.create(null),m._oscParser=new d.OscParser,m._dcsParser=new g.DcsParser,m._errorHandler=m._errorHandlerFb,m.setEscHandler({final:"\\"},function(){}),m}return s(c,v),c.prototype._identifier=function(h,m){m===void 0&&(m=[64,126]);var x=0;if(h.prefix){if(h.prefix.length>1)throw new Error("only one byte as prefix supported");if((x=h.prefix.charCodeAt(0))&&60>x||x>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(h.intermediates){if(h.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var T=0;T<h.intermediates.length;++T){var _=h.intermediates.charCodeAt(T);if(32>_||_>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");x<<=8,x|=_}}if(h.final.length!==1)throw new Error("final must be a single byte");var R=h.final.charCodeAt(0);if(m[0]>R||R>m[1])throw new Error("final must be in range "+m[0]+" .. "+m[1]);return x<<=8,x|=R},c.prototype.identToString=function(h){for(var m=[];h;)m.push(String.fromCharCode(255&h)),h>>=8;return m.reverse().join("")},c.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},c.prototype.setPrintHandler=function(h){this._printHandler=h},c.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},c.prototype.addEscHandler=function(h,m){var x=this._identifier(h,[48,126]);this._escHandlers[x]===void 0&&(this._escHandlers[x]=[]);var T=this._escHandlers[x];return T.push(m),{dispose:function(){var _=T.indexOf(m);_!==-1&&T.splice(_,1)}}},c.prototype.setEscHandler=function(h,m){this._escHandlers[this._identifier(h,[48,126])]=[m]},c.prototype.clearEscHandler=function(h){this._escHandlers[this._identifier(h,[48,126])]&&delete this._escHandlers[this._identifier(h,[48,126])]},c.prototype.setEscHandlerFallback=function(h){this._escHandlerFb=h},c.prototype.setExecuteHandler=function(h,m){this._executeHandlers[h.charCodeAt(0)]=m},c.prototype.clearExecuteHandler=function(h){this._executeHandlers[h.charCodeAt(0)]&&delete this._executeHandlers[h.charCodeAt(0)]},c.prototype.setExecuteHandlerFallback=function(h){this._executeHandlerFb=h},c.prototype.addCsiHandler=function(h,m){var x=this._identifier(h);this._csiHandlers[x]===void 0&&(this._csiHandlers[x]=[]);var T=this._csiHandlers[x];return T.push(m),{dispose:function(){var _=T.indexOf(m);_!==-1&&T.splice(_,1)}}},c.prototype.setCsiHandler=function(h,m){this._csiHandlers[this._identifier(h)]=[m]},c.prototype.clearCsiHandler=function(h){this._csiHandlers[this._identifier(h)]&&delete this._csiHandlers[this._identifier(h)]},c.prototype.setCsiHandlerFallback=function(h){this._csiHandlerFb=h},c.prototype.addDcsHandler=function(h,m){return this._dcsParser.addHandler(this._identifier(h),m)},c.prototype.setDcsHandler=function(h,m){this._dcsParser.setHandler(this._identifier(h),m)},c.prototype.clearDcsHandler=function(h){this._dcsParser.clearHandler(this._identifier(h))},c.prototype.setDcsHandlerFallback=function(h){this._dcsParser.setHandlerFallback(h)},c.prototype.addOscHandler=function(h,m){return this._oscParser.addHandler(h,m)},c.prototype.setOscHandler=function(h,m){this._oscParser.setHandler(h,m)},c.prototype.clearOscHandler=function(h){this._oscParser.clearHandler(h)},c.prototype.setOscHandlerFallback=function(h){this._oscParser.setHandlerFallback(h)},c.prototype.setErrorHandler=function(h){this._errorHandler=h},c.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},c.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},c.prototype.parse=function(h,m){for(var x=0,T=0,_=this.currentState,R=this._oscParser,A=this._dcsParser,N=this._collect,L=this._params,M=this._transitions.table,F=0;F<m;++F){switch((T=M[_<<8|((x=h[F])<160?x:160)])>>4){case 2:for(var H=F+1;;++H){if(H>=m||(x=h[H])<32||x>126&&x<160){this._printHandler(h,F,H),F=H-1;break}if(++H>=m||(x=h[H])<32||x>126&&x<160){this._printHandler(h,F,H),F=H-1;break}if(++H>=m||(x=h[H])<32||x>126&&x<160){this._printHandler(h,F,H),F=H-1;break}if(++H>=m||(x=h[H])<32||x>126&&x<160){this._printHandler(h,F,H),F=H-1;break}}break;case 3:this._executeHandlers[x]?this._executeHandlers[x]():this._executeHandlerFb(x),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:F,code:x,currentState:_,collect:N,params:L,abort:!1}).abort)return;break;case 7:for(var P=this._csiHandlers[N<<8|x],V=P?P.length-1:-1;V>=0&&P[V](L)===!1;V--);V<0&&this._csiHandlerFb(N<<8|x,L),this.precedingCodepoint=0;break;case 8:do switch(x){case 59:L.addParam(0);break;case 58:L.addSubParam(-1);break;default:L.addDigit(x-48)}while(++F<m&&(x=h[F])>47&&x<60);F--;break;case 9:N<<=8,N|=x;break;case 10:for(var G=this._escHandlers[N<<8|x],Q=G?G.length-1:-1;Q>=0&&G[Q]()===!1;Q--);Q<0&&this._escHandlerFb(N<<8|x),this.precedingCodepoint=0;break;case 11:L.reset(),L.addParam(0),N=0;break;case 12:A.hook(N<<8|x,L);break;case 13:for(var ne=F+1;;++ne)if(ne>=m||(x=h[ne])===24||x===26||x===27||x>127&&x<160){A.put(h,F,ne),F=ne-1;break}break;case 14:A.unhook(x!==24&&x!==26),x===27&&(T|=1),L.reset(),L.addParam(0),N=0,this.precedingCodepoint=0;break;case 4:R.start();break;case 5:for(var ue=F+1;;ue++)if(ue>=m||(x=h[ue])<32||x>127&&x<=159){R.put(h,F,ue),F=ue-1;break}break;case 6:R.end(x!==24&&x!==26),x===27&&(T|=1),L.reset(),L.addParam(0),N=0,this.precedingCodepoint=0}_=15&T}this._collect=N,this.currentState=_},c}(E.Disposable);b.EscapeSequenceParser=S},function(Z,b,B){"use strict";var Y,s=this&&this.__extends||(Y=function(R,A){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,L){N.__proto__=L}||function(N,L){for(var M in L)L.hasOwnProperty(M)&&(N[M]=L[M])})(R,A)},function(R,A){function N(){this.constructor=R}Y(R,A),R.prototype=A===null?Object.create(A):(N.prototype=A.prototype,new N)}),E=this&&this.__decorate||function(R,A,N,L){var M,F=arguments.length,H=F<3?A:L===null?L=Object.getOwnPropertyDescriptor(A,N):L;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")H=Reflect.decorate(R,A,N,L);else for(var P=R.length-1;P>=0;P--)(M=R[P])&&(H=(F<3?M(H):F>3?M(A,N,H):M(A,N))||H);return F>3&&H&&Object.defineProperty(A,N,H),H},I=this&&this.__param||function(R,A){return function(N,L){A(N,L,R)}};Object.defineProperty(b,"__esModule",{value:!0}),b.Renderer=void 0;var u=B(41),d=B(47),g=B(48),y=B(49),S=B(29),v=B(2),c=B(5),h=B(1),m=B(25),x=B(0),T=1,_=function(R){function A(N,L,M,F,H,P,V,G,Q){var ne=R.call(this)||this;ne._colors=N,ne._screenElement=L,ne._bufferService=H,ne._charSizeService=P,ne._optionsService=V,ne._id=T++,ne._onRequestRedraw=new x.EventEmitter;var ue=ne._optionsService.options.allowTransparency;return ne._characterJoinerRegistry=new S.CharacterJoinerRegistry(ne._bufferService),ne._renderLayers=[new u.TextRenderLayer(ne._screenElement,0,ne._colors,ne._characterJoinerRegistry,ue,ne._id,ne._bufferService,V),new d.SelectionRenderLayer(ne._screenElement,1,ne._colors,ne._id,ne._bufferService,V),new y.LinkRenderLayer(ne._screenElement,2,ne._colors,ne._id,M,F,ne._bufferService,V),new g.CursorRenderLayer(ne._screenElement,3,ne._colors,ne._id,ne._onRequestRedraw,ne._bufferService,V,G,Q)],ne.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},ne._devicePixelRatio=window.devicePixelRatio,ne._updateDimensions(),ne.onOptionsChanged(),ne}return s(A,R),Object.defineProperty(A.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),A.prototype.dispose=function(){for(var N=0,L=this._renderLayers;N<L.length;N++)L[N].dispose();R.prototype.dispose.call(this),m.removeTerminalFromCache(this._id)},A.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},A.prototype.setColors=function(N){this._colors=N;for(var L=0,M=this._renderLayers;L<M.length;L++){var F=M[L];F.setColors(this._colors),F.reset()}},A.prototype.onResize=function(N,L){this._updateDimensions();for(var M=0,F=this._renderLayers;M<F.length;M++)F[M].resize(this.dimensions);this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},A.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},A.prototype.onBlur=function(){this._runOperation(function(N){return N.onBlur()})},A.prototype.onFocus=function(){this._runOperation(function(N){return N.onFocus()})},A.prototype.onSelectionChanged=function(N,L,M){M===void 0&&(M=!1),this._runOperation(function(F){return F.onSelectionChanged(N,L,M)})},A.prototype.onCursorMove=function(){this._runOperation(function(N){return N.onCursorMove()})},A.prototype.onOptionsChanged=function(){this._runOperation(function(N){return N.onOptionsChanged()})},A.prototype.clear=function(){this._runOperation(function(N){return N.reset()})},A.prototype._runOperation=function(N){for(var L=0,M=this._renderLayers;L<M.length;L++)N(M[L])},A.prototype.renderRows=function(N,L){for(var M=0,F=this._renderLayers;M<F.length;M++)F[M].onGridChanged(N,L)},A.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)},A.prototype.registerCharacterJoiner=function(N){return this._characterJoinerRegistry.registerCharacterJoiner(N)},A.prototype.deregisterCharacterJoiner=function(N){return this._characterJoinerRegistry.deregisterCharacterJoiner(N)},A=E([I(4,h.IBufferService),I(5,c.ICharSizeService),I(6,h.IOptionsService),I(7,h.ICoreService),I(8,c.ICoreBrowserService)],A)}(v.Disposable);b.Renderer=_},function(Z,b,B){"use strict";var Y,s=this&&this.__extends||(Y=function(v,c){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var x in m)m.hasOwnProperty(x)&&(h[x]=m[x])})(v,c)},function(v,c){function h(){this.constructor=v}Y(v,c),v.prototype=c===null?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(b,"__esModule",{value:!0}),b.TextRenderLayer=void 0;var E=B(42),I=B(13),u=B(6),d=B(3),g=B(29),y=B(4),S=function(v){function c(h,m,x,T,_,R,A,N){var L=v.call(this,h,"text",m,_,x,R,A,N)||this;return L._characterWidth=0,L._characterFont="",L._characterOverlapCache={},L._workCell=new y.CellData,L._state=new E.GridCache,L._characterJoinerRegistry=T,L}return s(c,v),c.prototype.resize=function(h){v.prototype.resize.call(this,h);var m=this._getFont(!1,!1);this._characterWidth===h.scaledCharWidth&&this._characterFont===m||(this._characterWidth=h.scaledCharWidth,this._characterFont=m,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},c.prototype.reset=function(){this._state.clear(),this._clearAll()},c.prototype._forEachCell=function(h,m,x,T){for(var _=h;_<=m;_++)for(var R=_+this._bufferService.buffer.ydisp,A=this._bufferService.buffer.lines.get(R),N=x?x.getJoinedCharacters(R):[],L=0;L<this._bufferService.cols;L++){A.loadCell(L,this._workCell);var M=this._workCell,F=!1,H=L;if(M.getWidth()!==0){if(N.length>0&&L===N[0][0]){F=!0;var P=N.shift();M=new g.JoinedCellData(this._workCell,A.translateToString(!0,P[0],P[1]),P[1]-P[0]),H=P[1]-1}!F&&this._isOverlapping(M)&&H<A.length-1&&A.getCodePoint(H+1)===d.NULL_CELL_CODE&&(M.content&=-12582913,M.content|=2<<22),T(M,L,_),L=H}}},c.prototype._drawBackground=function(h,m){var x=this,T=this._ctx,_=this._bufferService.cols,R=0,A=0,N=null;T.save(),this._forEachCell(h,m,null,function(L,M,F){var H=null;L.isInverse()?H=L.isFgDefault()?x._colors.foreground.css:L.isFgRGB()?"rgb("+u.AttributeData.toColorRGB(L.getFgColor()).join(",")+")":x._colors.ansi[L.getFgColor()].css:L.isBgRGB()?H="rgb("+u.AttributeData.toColorRGB(L.getBgColor()).join(",")+")":L.isBgPalette()&&(H=x._colors.ansi[L.getBgColor()].css),N===null&&(R=M,A=F),F!==A?(T.fillStyle=N||"",x._fillCells(R,A,_-R,1),R=M,A=F):N!==H&&(T.fillStyle=N||"",x._fillCells(R,A,M-R,1),R=M,A=F),N=H}),N!==null&&(T.fillStyle=N,this._fillCells(R,A,_-R,1)),T.restore()},c.prototype._drawForeground=function(h,m){var x=this;this._forEachCell(h,m,this._characterJoinerRegistry,function(T,_,R){if(!T.isInvisible()&&(x._drawChars(T,_,R),T.isUnderline())){if(x._ctx.save(),T.isInverse())if(T.isBgDefault())x._ctx.fillStyle=x._colors.background.css;else if(T.isBgRGB())x._ctx.fillStyle="rgb("+u.AttributeData.toColorRGB(T.getBgColor()).join(",")+")";else{var A=T.getBgColor();x._optionsService.options.drawBoldTextInBrightColors&&T.isBold()&&A<8&&(A+=8),x._ctx.fillStyle=x._colors.ansi[A].css}else if(T.isFgDefault())x._ctx.fillStyle=x._colors.foreground.css;else if(T.isFgRGB())x._ctx.fillStyle="rgb("+u.AttributeData.toColorRGB(T.getFgColor()).join(",")+")";else{var N=T.getFgColor();x._optionsService.options.drawBoldTextInBrightColors&&T.isBold()&&N<8&&(N+=8),x._ctx.fillStyle=x._colors.ansi[N].css}x._fillBottomLineAtCells(_,R,T.getWidth()),x._ctx.restore()}})},c.prototype.onGridChanged=function(h,m){this._state.cache.length!==0&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,h,this._bufferService.cols,m-h+1),this._drawBackground(h,m),this._drawForeground(h,m))},c.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},c.prototype._isOverlapping=function(h){if(h.getWidth()!==1||h.getCode()<256)return!1;var m=h.getChars();if(this._characterOverlapCache.hasOwnProperty(m))return this._characterOverlapCache[m];this._ctx.save(),this._ctx.font=this._characterFont;var x=Math.floor(this._ctx.measureText(m).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[m]=x,x},c}(I.BaseRenderLayer);b.TextRenderLayer=S},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.GridCache=void 0;var Y=function(){function s(){this.cache=[]}return s.prototype.resize=function(E,I){for(var u=0;u<E;u++){this.cache.length<=u&&this.cache.push([]);for(var d=this.cache[u].length;d<I;d++)this.cache[u].push(void 0);this.cache[u].length=I}this.cache.length=E},s.prototype.clear=function(){for(var E=0;E<this.cache.length;E++)for(var I=0;I<this.cache[E].length;I++)this.cache[E][I]=void 0},s}();b.GridCache=Y},function(Z,b,B){"use strict";var Y,s=this&&this.__extends||(Y=function(x,T){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,R){_.__proto__=R}||function(_,R){for(var A in R)R.hasOwnProperty(A)&&(_[A]=R[A])})(x,T)},function(x,T){function _(){this.constructor=x}Y(x,T),x.prototype=T===null?Object.create(T):(_.prototype=T.prototype,new _)});Object.defineProperty(b,"__esModule",{value:!0}),b.NoneCharAtlas=b.DynamicCharAtlas=b.getGlyphCacheKey=void 0;var E=B(9),I=B(44),u=B(27),d=B(46),g=B(11),y=B(28),S=B(10),v={css:"rgba(0, 0, 0, 0)",rgba:0};function c(x){return x.code<<21|x.bg<<12|x.fg<<3|(x.bold?0:4)+(x.dim?0:2)+(x.italic?0:1)}b.getGlyphCacheKey=c;var h=function(x){function T(_,R){var A=x.call(this)||this;A._config=R,A._drawToCacheCount=0,A._glyphsWaitingOnBitmap=[],A._bitmapCommitTimeout=null,A._bitmap=null,A._cacheCanvas=_.createElement("canvas"),A._cacheCanvas.width=1024,A._cacheCanvas.height=1024,A._cacheCtx=y.throwIfFalsy(A._cacheCanvas.getContext("2d",{alpha:!0}));var N=_.createElement("canvas");N.width=A._config.scaledCharWidth,N.height=A._config.scaledCharHeight,A._tmpCtx=y.throwIfFalsy(N.getContext("2d",{alpha:A._config.allowTransparency})),A._width=Math.floor(1024/A._config.scaledCharWidth),A._height=Math.floor(1024/A._config.scaledCharHeight);var L=A._width*A._height;return A._cacheMap=new d.LRUMap(L),A._cacheMap.prealloc(L),A}return s(T,x),T.prototype.dispose=function(){this._bitmapCommitTimeout!==null&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},T.prototype.beginFrame=function(){this._drawToCacheCount=0},T.prototype.draw=function(_,R,A,N){if(R.code===32)return!0;if(!this._canCache(R))return!1;var L=c(R),M=this._cacheMap.get(L);if(M!=null)return this._drawFromCache(_,M,A,N),!0;if(this._drawToCacheCount<100){var F=void 0;F=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var H=this._drawToCache(R,F);return this._cacheMap.set(L,H),this._drawFromCache(_,H,A,N),!0}return!1},T.prototype._canCache=function(_){return _.code<256},T.prototype._toCoordinateX=function(_){return _%this._width*this._config.scaledCharWidth},T.prototype._toCoordinateY=function(_){return Math.floor(_/this._width)*this._config.scaledCharHeight},T.prototype._drawFromCache=function(_,R,A,N){if(!R.isEmpty){var L=this._toCoordinateX(R.index),M=this._toCoordinateY(R.index);_.drawImage(R.inBitmap?this._bitmap:this._cacheCanvas,L,M,this._config.scaledCharWidth,this._config.scaledCharHeight,A,N,this._config.scaledCharWidth,this._config.scaledCharHeight)}},T.prototype._getColorFromAnsiIndex=function(_){return _<this._config.colors.ansi.length?this._config.colors.ansi[_]:u.DEFAULT_ANSI_COLORS[_]},T.prototype._getBackgroundColor=function(_){return this._config.allowTransparency?v:_.bg===E.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:_.bg<256?this._getColorFromAnsiIndex(_.bg):this._config.colors.background},T.prototype._getForegroundColor=function(_){return _.fg===E.INVERTED_DEFAULT_COLOR?S.color.opaque(this._config.colors.background):_.fg<256?this._getColorFromAnsiIndex(_.fg):this._config.colors.foreground},T.prototype._drawToCache=function(_,R){this._drawToCacheCount++,this._tmpCtx.save();var A=this._getBackgroundColor(_);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=A.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var N=_.bold?this._config.fontWeightBold:this._config.fontWeight,L=_.italic?"italic":"";this._tmpCtx.font=L+" "+N+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline="middle",this._tmpCtx.fillStyle=this._getForegroundColor(_).css,_.dim&&(this._tmpCtx.globalAlpha=E.DIM_OPACITY),this._tmpCtx.fillText(_.chars,0,this._config.scaledCharHeight/2),this._tmpCtx.restore();var M=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),F=!1;this._config.allowTransparency||(F=function(G,Q){for(var ne=!0,ue=Q.rgba>>>24,ae=Q.rgba>>>16&255,he=Q.rgba>>>8&255,ce=0;ce<G.data.length;ce+=4)G.data[ce]===ue&&G.data[ce+1]===ae&&G.data[ce+2]===he?G.data[ce+3]=0:ne=!1;return ne}(M,A));var H=this._toCoordinateX(R),P=this._toCoordinateY(R);this._cacheCtx.putImageData(M,H,P);var V={index:R,isEmpty:F,inBitmap:!1};return this._addGlyphToBitmap(V),V},T.prototype._addGlyphToBitmap=function(_){var R=this;!("createImageBitmap"in window)||g.isFirefox||g.isSafari||(this._glyphsWaitingOnBitmap.push(_),this._bitmapCommitTimeout===null&&(this._bitmapCommitTimeout=window.setTimeout(function(){return R._generateBitmap()},100)))},T.prototype._generateBitmap=function(){var _=this,R=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(A){_._bitmap=A;for(var N=0;N<R.length;N++)R[N].inBitmap=!0}),this._bitmapCommitTimeout=null},T}(I.BaseCharAtlas);b.DynamicCharAtlas=h;var m=function(x){function T(_,R){return x.call(this)||this}return s(T,x),T.prototype.draw=function(_,R,A,N){return!1},T}(I.BaseCharAtlas);b.NoneCharAtlas=m},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.BaseCharAtlas=void 0;var Y=function(){function s(){this._didWarmUp=!1}return s.prototype.dispose=function(){},s.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},s.prototype._doWarmUp=function(){},s.prototype.beginFrame=function(){},s}();b.BaseCharAtlas=Y},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.ColorContrastCache=void 0;var Y=function(){function s(){this._color={},this._rgba={}}return s.prototype.clear=function(){this._color={},this._rgba={}},s.prototype.setCss=function(E,I,u){this._rgba[E]||(this._rgba[E]={}),this._rgba[E][I]=u},s.prototype.getCss=function(E,I){return this._rgba[E]?this._rgba[E][I]:void 0},s.prototype.setColor=function(E,I,u){this._color[E]||(this._color[E]={}),this._color[E][I]=u},s.prototype.getColor=function(E,I){return this._color[E]?this._color[E][I]:void 0},s}();b.ColorContrastCache=Y},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.LRUMap=void 0;var Y=function(){function s(E){this.capacity=E,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return s.prototype._unlinkNode=function(E){var I=E.prev,u=E.next;E===this._head&&(this._head=u),E===this._tail&&(this._tail=I),I!==null&&(I.next=u),u!==null&&(u.prev=I)},s.prototype._appendNode=function(E){var I=this._tail;I!==null&&(I.next=E),E.prev=I,E.next=null,this._tail=E,this._head===null&&(this._head=E)},s.prototype.prealloc=function(E){for(var I=this._nodePool,u=0;u<E;u++)I.push({prev:null,next:null,key:null,value:null})},s.prototype.get=function(E){var I=this._map[E];return I!==void 0?(this._unlinkNode(I),this._appendNode(I),I.value):null},s.prototype.peekValue=function(E){var I=this._map[E];return I!==void 0?I.value:null},s.prototype.peek=function(){var E=this._head;return E===null?null:E.value},s.prototype.set=function(E,I){var u=this._map[E];if(u!==void 0)u=this._map[E],this._unlinkNode(u),u.value=I;else if(this.size>=this.capacity)u=this._head,this._unlinkNode(u),delete this._map[u.key],u.key=E,u.value=I,this._map[E]=u;else{var d=this._nodePool;d.length>0?((u=d.pop()).key=E,u.value=I):u={prev:null,next:null,key:E,value:I},this._map[E]=u,this.size++}this._appendNode(u)},s}();b.LRUMap=Y},function(Z,b,B){"use strict";var Y,s=this&&this.__extends||(Y=function(I,u){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,g){d.__proto__=g}||function(d,g){for(var y in g)g.hasOwnProperty(y)&&(d[y]=g[y])})(I,u)},function(I,u){function d(){this.constructor=I}Y(I,u),I.prototype=u===null?Object.create(u):(d.prototype=u.prototype,new d)});Object.defineProperty(b,"__esModule",{value:!0}),b.SelectionRenderLayer=void 0;var E=function(I){function u(d,g,y,S,v,c){var h=I.call(this,d,"selection",g,!0,y,S,v,c)||this;return h._clearState(),h}return s(u,I),u.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},u.prototype.resize=function(d){I.prototype.resize.call(this,d),this._clearState()},u.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},u.prototype.onSelectionChanged=function(d,g,y){if(this._didStateChange(d,g,y,this._bufferService.buffer.ydisp))if(this._clearAll(),d&&g){var S=d[1]-this._bufferService.buffer.ydisp,v=g[1]-this._bufferService.buffer.ydisp,c=Math.max(S,0),h=Math.min(v,this._bufferService.rows-1);if(!(c>=this._bufferService.rows||h<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,y){var m=d[0],x=g[0]-m,T=h-c+1;this._fillCells(m,c,x,T)}else{m=S===c?d[0]:0;var _=c===h?g[0]:this._bufferService.cols;this._fillCells(m,c,_-m,1);var R=Math.max(h-c-1,0);if(this._fillCells(0,c+1,this._bufferService.cols,R),c!==h){var A=v===h?g[0]:this._bufferService.cols;this._fillCells(0,h,A,1)}}this._state.start=[d[0],d[1]],this._state.end=[g[0],g[1]],this._state.columnSelectMode=y,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},u.prototype._didStateChange=function(d,g,y,S){return!this._areCoordinatesEqual(d,this._state.start)||!this._areCoordinatesEqual(g,this._state.end)||y!==this._state.columnSelectMode||S!==this._state.ydisp},u.prototype._areCoordinatesEqual=function(d,g){return!(!d||!g)&&d[0]===g[0]&&d[1]===g[1]},u}(B(13).BaseRenderLayer);b.SelectionRenderLayer=E},function(Z,b,B){"use strict";var Y,s=this&&this.__extends||(Y=function(g,y){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,v){S.__proto__=v}||function(S,v){for(var c in v)v.hasOwnProperty(c)&&(S[c]=v[c])})(g,y)},function(g,y){function S(){this.constructor=g}Y(g,y),g.prototype=y===null?Object.create(y):(S.prototype=y.prototype,new S)});Object.defineProperty(b,"__esModule",{value:!0}),b.CursorRenderLayer=void 0;var E=B(13),I=B(4),u=function(g){function y(S,v,c,h,m,x,T,_,R){var A=g.call(this,S,"cursor",v,!0,c,h,x,T)||this;return A._onRequestRedraw=m,A._coreService=_,A._coreBrowserService=R,A._cell=new I.CellData,A._state={x:0,y:0,isFocused:!1,style:"",width:0},A._cursorRenderers={bar:A._renderBarCursor.bind(A),block:A._renderBlockCursor.bind(A),underline:A._renderUnderlineCursor.bind(A)},A}return s(y,g),y.prototype.resize=function(S){g.prototype.resize.call(this,S),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},y.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},y.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},y.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},y.prototype.onOptionsChanged=function(){var S,v=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new d(this._coreBrowserService.isFocused,function(){v._render(!0)})):((S=this._cursorBlinkStateManager)===null||S===void 0||S.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},y.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},y.prototype.onGridChanged=function(S,v){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},y.prototype._render=function(S){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var v=this._bufferService.buffer.ybase+this._bufferService.buffer.y,c=v-this._bufferService.buffer.ydisp;if(c<0||c>=this._bufferService.rows)this._clearCursor();else{var h=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(v).loadCell(h,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var m=this._optionsService.options.cursorStyle;return m&&m!=="block"?this._cursorRenderers[m](h,c,this._cell):this._renderBlurCursor(h,c,this._cell),this._ctx.restore(),this._state.x=h,this._state.y=c,this._state.isFocused=!1,this._state.style=m,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===h&&this._state.y===c&&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"](h,c,this._cell),this._ctx.restore(),this._state.x=h,this._state.y=c,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},y.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})},y.prototype._renderBarCursor=function(S,v,c){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(S,v,this._optionsService.options.cursorWidth),this._ctx.restore()},y.prototype._renderBlockCursor=function(S,v,c){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(S,v,c.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(c,S,v),this._ctx.restore()},y.prototype._renderUnderlineCursor=function(S,v,c){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(S,v),this._ctx.restore()},y.prototype._renderBlurCursor=function(S,v,c){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(S,v,c.getWidth(),1),this._ctx.restore()},y}(E.BaseRenderLayer);b.CursorRenderLayer=u;var d=function(){function g(y,S){this._renderCallback=S,this.isCursorVisible=!0,y&&this._restartInterval()}return Object.defineProperty(g.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),g.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)},g.prototype.restartBlinkAnimation=function(){var y=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){y._renderCallback(),y._animationFrame=void 0})))},g.prototype._restartInterval=function(y){var S=this;y===void 0&&(y=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(S._animationTimeRestarted){var v=600-(Date.now()-S._animationTimeRestarted);if(S._animationTimeRestarted=void 0,v>0)return void S._restartInterval(v)}S.isCursorVisible=!1,S._animationFrame=window.requestAnimationFrame(function(){S._renderCallback(),S._animationFrame=void 0}),S._blinkInterval=window.setInterval(function(){if(S._animationTimeRestarted){var c=600-(Date.now()-S._animationTimeRestarted);return S._animationTimeRestarted=void 0,void S._restartInterval(c)}S.isCursorVisible=!S.isCursorVisible,S._animationFrame=window.requestAnimationFrame(function(){S._renderCallback(),S._animationFrame=void 0})},600)},y)},g.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)},g.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},g}()},function(Z,b,B){"use strict";var Y,s=this&&this.__extends||(Y=function(g,y){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,v){S.__proto__=v}||function(S,v){for(var c in v)v.hasOwnProperty(c)&&(S[c]=v[c])})(g,y)},function(g,y){function S(){this.constructor=g}Y(g,y),g.prototype=y===null?Object.create(y):(S.prototype=y.prototype,new S)});Object.defineProperty(b,"__esModule",{value:!0}),b.LinkRenderLayer=void 0;var E=B(13),I=B(9),u=B(26),d=function(g){function y(S,v,c,h,m,x,T,_){var R=g.call(this,S,"link",v,!0,c,h,T,_)||this;return m.onShowLinkUnderline(function(A){return R._onShowLinkUnderline(A)}),m.onHideLinkUnderline(function(A){return R._onHideLinkUnderline(A)}),x.onShowLinkUnderline(function(A){return R._onShowLinkUnderline(A)}),x.onHideLinkUnderline(function(A){return R._onHideLinkUnderline(A)}),R}return s(y,g),y.prototype.resize=function(S){g.prototype.resize.call(this,S),this._state=void 0},y.prototype.reset=function(){this._clearCurrentLink()},y.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var S=this._state.y2-this._state.y1-1;S>0&&this._clearCells(0,this._state.y1+1,this._state.cols,S),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},y.prototype._onShowLinkUnderline=function(S){if(S.fg===I.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:S.fg&&u.is256Color(S.fg)?this._ctx.fillStyle=this._colors.ansi[S.fg].css:this._ctx.fillStyle=this._colors.foreground.css,S.y1===S.y2)this._fillBottomLineAtCells(S.x1,S.y1,S.x2-S.x1);else{this._fillBottomLineAtCells(S.x1,S.y1,S.cols-S.x1);for(var v=S.y1+1;v<S.y2;v++)this._fillBottomLineAtCells(0,v,S.cols);this._fillBottomLineAtCells(0,S.y2,S.x2)}this._state=S},y.prototype._onHideLinkUnderline=function(S){this._clearCurrentLink()},y}(E.BaseRenderLayer);b.LinkRenderLayer=d},function(Z,b,B){"use strict";var Y=this&&this.__decorate||function(g,y,S,v){var c,h=arguments.length,m=h<3?y:v===null?v=Object.getOwnPropertyDescriptor(y,S):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(g,y,S,v);else for(var x=g.length-1;x>=0;x--)(c=g[x])&&(m=(h<3?c(m):h>3?c(y,S,m):c(y,S))||m);return h>3&&m&&Object.defineProperty(y,S,m),m},s=this&&this.__param||function(g,y){return function(S,v){y(S,v,g)}};Object.defineProperty(b,"__esModule",{value:!0}),b.MouseZone=b.Linkifier=void 0;var E=B(0),I=B(1),u=function(){function g(y,S,v){this._bufferService=y,this._logService=S,this._unicodeService=v,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new E.EventEmitter,this._onHideLinkUnderline=new E.EventEmitter,this._onLinkTooltip=new E.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(g.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),g.prototype.attachToDom=function(y,S){this._element=y,this._mouseZoneManager=S},g.prototype.linkifyRows=function(y,S){var v=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=y,this._rowsToLinkify.end=S):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,y),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,S)),this._mouseZoneManager.clearAll(y,S),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return v._linkifyRows()},g._timeBeforeLatency))},g.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var y=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var S=y.ydisp+this._rowsToLinkify.start;if(!(S>=y.lines.length)){for(var v=y.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,c=Math.ceil(2e3/this._bufferService.cols),h=this._bufferService.buffer.iterator(!1,S,v,c,c);h.hasNext();)for(var m=h.next(),x=0;x<this._linkMatchers.length;x++)this._doLinkifyRow(m.range.first,m.content,this._linkMatchers[x]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},g.prototype.registerLinkMatcher=function(y,S,v){if(v===void 0&&(v={}),!S)throw new Error("handler must be defined");var c={id:this._nextLinkMatcherId++,regex:y,handler:S,matchIndex:v.matchIndex,validationCallback:v.validationCallback,hoverTooltipCallback:v.tooltipCallback,hoverLeaveCallback:v.leaveCallback,willLinkActivate:v.willLinkActivate,priority:v.priority||0};return this._addLinkMatcherToList(c),c.id},g.prototype._addLinkMatcherToList=function(y){if(this._linkMatchers.length!==0){for(var S=this._linkMatchers.length-1;S>=0;S--)if(y.priority<=this._linkMatchers[S].priority)return void this._linkMatchers.splice(S+1,0,y);this._linkMatchers.splice(0,0,y)}else this._linkMatchers.push(y)},g.prototype.deregisterLinkMatcher=function(y){for(var S=0;S<this._linkMatchers.length;S++)if(this._linkMatchers[S].id===y)return this._linkMatchers.splice(S,1),!0;return!1},g.prototype._doLinkifyRow=function(y,S,v){for(var c,h=this,m=new RegExp(v.regex.source,(v.regex.flags||"")+"g"),x=-1,T=function(){var R=c[typeof v.matchIndex!="number"?0:v.matchIndex];if(!R)return _._logService.debug("match found without corresponding matchIndex",c,v),"break";if(x=S.indexOf(R,x+1),m.lastIndex=x+R.length,x<0)return"break";var A=_._bufferService.buffer.stringIndexToBufferIndex(y,x);if(A[0]<0)return"break";var N=_._bufferService.buffer.lines.get(A[0]);if(!N)return"break";var L=N.getFg(A[1]),M=L?L>>9&511:void 0;v.validationCallback?v.validationCallback(R,function(F){h._rowsTimeoutId||F&&h._addLink(A[1],A[0]-h._bufferService.buffer.ydisp,R,v,M)}):_._addLink(A[1],A[0]-_._bufferService.buffer.ydisp,R,v,M)},_=this;(c=m.exec(S))!==null&&T()!=="break";);},g.prototype._addLink=function(y,S,v,c,h){var m=this;if(this._mouseZoneManager&&this._element){var x=this._unicodeService.getStringCellWidth(v),T=y%this._bufferService.cols,_=S+Math.floor(y/this._bufferService.cols),R=(T+x)%this._bufferService.cols,A=_+Math.floor((T+x)/this._bufferService.cols);R===0&&(R=this._bufferService.cols,A--),this._mouseZoneManager.add(new d(T+1,_+1,R+1,A+1,function(N){if(c.handler)return c.handler(N,v);var L=window.open();L?(L.opener=null,L.location.href=v):console.warn("Opening link blocked as opener could not be cleared")},function(){m._onShowLinkUnderline.fire(m._createLinkHoverEvent(T,_,R,A,h)),m._element.classList.add("xterm-cursor-pointer")},function(N){m._onLinkTooltip.fire(m._createLinkHoverEvent(T,_,R,A,h)),c.hoverTooltipCallback&&c.hoverTooltipCallback(N,v,{start:{x:T,y:_},end:{x:R,y:A}})},function(){m._onHideLinkUnderline.fire(m._createLinkHoverEvent(T,_,R,A,h)),m._element.classList.remove("xterm-cursor-pointer"),c.hoverLeaveCallback&&c.hoverLeaveCallback()},function(N){return!c.willLinkActivate||c.willLinkActivate(N,v)}))}},g.prototype._createLinkHoverEvent=function(y,S,v,c,h){return{x1:y,y1:S,x2:v,y2:c,cols:this._bufferService.cols,fg:h}},g._timeBeforeLatency=200,g=Y([s(0,I.IBufferService),s(1,I.ILogService),s(2,I.IUnicodeService)],g)}();b.Linkifier=u;var d=function(g,y,S,v,c,h,m,x,T){this.x1=g,this.y1=y,this.x2=S,this.y2=v,this.clickCallback=c,this.hoverCallback=h,this.tooltipCallback=m,this.leaveCallback=x,this.willLinkActivate=T};b.MouseZone=d},function(Z,b,B){"use strict";var Y,s=this&&this.__extends||(Y=function(R,A){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,L){N.__proto__=L}||function(N,L){for(var M in L)L.hasOwnProperty(M)&&(N[M]=L[M])})(R,A)},function(R,A){function N(){this.constructor=R}Y(R,A),R.prototype=A===null?Object.create(A):(N.prototype=A.prototype,new N)}),E=this&&this.__decorate||function(R,A,N,L){var M,F=arguments.length,H=F<3?A:L===null?L=Object.getOwnPropertyDescriptor(A,N):L;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")H=Reflect.decorate(R,A,N,L);else for(var P=R.length-1;P>=0;P--)(M=R[P])&&(H=(F<3?M(H):F>3?M(A,N,H):M(A,N))||H);return F>3&&H&&Object.defineProperty(A,N,H),H},I=this&&this.__param||function(R,A){return function(N,L){A(N,L,R)}};Object.defineProperty(b,"__esModule",{value:!0}),b.SelectionService=void 0;var u=B(11),d=B(52),g=B(4),y=B(0),S=B(5),v=B(1),c=B(30),h=B(53),m=B(2),x="\xA0",T=new RegExp(x,"g"),_=function(R){function A(N,L,M,F,H,P,V){var G=R.call(this)||this;return G._element=N,G._screenElement=L,G._bufferService=M,G._coreService=F,G._mouseService=H,G._optionsService=P,G._renderService=V,G._dragScrollAmount=0,G._enabled=!0,G._workCell=new g.CellData,G._mouseDownTimeStamp=0,G._onLinuxMouseSelection=G.register(new y.EventEmitter),G._onRedrawRequest=G.register(new y.EventEmitter),G._onSelectionChange=G.register(new y.EventEmitter),G._onRequestScrollLines=G.register(new y.EventEmitter),G._mouseMoveListener=function(Q){return G._onMouseMove(Q)},G._mouseUpListener=function(Q){return G._onMouseUp(Q)},G._coreService.onUserInput(function(){G.hasSelection&&G.clearSelection()}),G._trimListener=G._bufferService.buffer.lines.onTrim(function(Q){return G._onTrim(Q)}),G.register(G._bufferService.buffers.onBufferActivate(function(Q){return G._onBufferActivate(Q)})),G.enable(),G._model=new d.SelectionModel(G._bufferService),G._activeSelectionMode=0,G}return s(A,R),Object.defineProperty(A.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),A.prototype.dispose=function(){this._removeMouseDownListeners()},A.prototype.reset=function(){this.clearSelection()},A.prototype.disable=function(){this.clearSelection(),this._enabled=!1},A.prototype.enable=function(){this._enabled=!0},Object.defineProperty(A.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"hasSelection",{get:function(){var N=this._model.finalSelectionStart,L=this._model.finalSelectionEnd;return!(!N||!L)&&(N[0]!==L[0]||N[1]!==L[1])},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"selectionText",{get:function(){var N=this._model.finalSelectionStart,L=this._model.finalSelectionEnd;if(!N||!L)return"";var M=this._bufferService.buffer,F=[];if(this._activeSelectionMode===3){if(N[0]===L[0])return"";for(var H=N[1];H<=L[1];H++){var P=M.translateBufferLineToString(H,!0,N[0],L[0]);F.push(P)}}else{var V=N[1]===L[1]?L[0]:void 0;for(F.push(M.translateBufferLineToString(N[1],!0,N[0],V)),H=N[1]+1;H<=L[1]-1;H++){var G=M.lines.get(H);P=M.translateBufferLineToString(H,!0),G&&G.isWrapped?F[F.length-1]+=P:F.push(P)}N[1]!==L[1]&&(G=M.lines.get(L[1]),P=M.translateBufferLineToString(L[1],!0,0,L[0]),G&&G.isWrapped?F[F.length-1]+=P:F.push(P))}return F.map(function(Q){return Q.replace(T," ")}).join(u.isWindows?`\r
`:`
`)},enumerable:!1,configurable:!0}),A.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},A.prototype.refresh=function(N){var L=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return L._refresh()})),u.isLinux&&N&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},A.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})},A.prototype.isClickInSelection=function(N){var L=this._getMouseBufferCoords(N),M=this._model.finalSelectionStart,F=this._model.finalSelectionEnd;return!!(M&&F&&L)&&this._areCoordsInSelection(L,M,F)},A.prototype._areCoordsInSelection=function(N,L,M){return N[1]>L[1]&&N[1]<M[1]||L[1]===M[1]&&N[1]===L[1]&&N[0]>=L[0]&&N[0]<M[0]||L[1]<M[1]&&N[1]===M[1]&&N[0]<M[0]||L[1]<M[1]&&N[1]===L[1]&&N[0]>=L[0]},A.prototype.selectWordAtCursor=function(N){var L=this._getMouseBufferCoords(N);L&&(this._selectWordAt(L,!1),this._model.selectionEnd=void 0,this.refresh(!0))},A.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},A.prototype.selectLines=function(N,L){this._model.clearSelection(),N=Math.max(N,0),L=Math.min(L,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,N],this._model.selectionEnd=[this._bufferService.cols,L],this.refresh(),this._onSelectionChange.fire()},A.prototype._onTrim=function(N){this._model.onTrim(N)&&this.refresh()},A.prototype._getMouseBufferCoords=function(N){var L=this._mouseService.getCoords(N,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(L)return L[0]--,L[1]--,L[1]+=this._bufferService.buffer.ydisp,L},A.prototype._getMouseEventScrollAmount=function(N){var L=c.getCoordsRelativeToElement(N,this._screenElement)[1],M=this._renderService.dimensions.canvasHeight;return L>=0&&L<=M?0:(L>M&&(L-=M),L=Math.min(Math.max(L,-50),50),(L/=50)/Math.abs(L)+Math.round(14*L))},A.prototype.shouldForceSelection=function(N){return u.isMac?N.altKey&&this._optionsService.options.macOptionClickForcesSelection:N.shiftKey},A.prototype.onMouseDown=function(N){if(this._mouseDownTimeStamp=N.timeStamp,(N.button!==2||!this.hasSelection)&&N.button===0){if(!this._enabled){if(!this.shouldForceSelection(N))return;N.stopPropagation()}N.preventDefault(),this._dragScrollAmount=0,this._enabled&&N.shiftKey?this._onIncrementalClick(N):N.detail===1?this._onSingleClick(N):N.detail===2?this._onDoubleClick(N):N.detail===3&&this._onTripleClick(N),this._addMouseDownListeners(),this.refresh(!0)}},A.prototype._addMouseDownListeners=function(){var N=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return N._dragScroll()},50)},A.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},A.prototype._onIncrementalClick=function(N){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(N))},A.prototype._onSingleClick=function(N){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(N)?3:0,this._model.selectionStart=this._getMouseBufferCoords(N),this._model.selectionStart){this._model.selectionEnd=void 0;var L=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);L&&L.length!==this._model.selectionStart[0]&&L.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}},A.prototype._onDoubleClick=function(N){var L=this._getMouseBufferCoords(N);L&&(this._activeSelectionMode=1,this._selectWordAt(L,!0))},A.prototype._onTripleClick=function(N){var L=this._getMouseBufferCoords(N);L&&(this._activeSelectionMode=2,this._selectLineAt(L[1]))},A.prototype.shouldColumnSelect=function(N){return N.altKey&&!(u.isMac&&this._optionsService.options.macOptionClickForcesSelection)},A.prototype._onMouseMove=function(N){if(N.stopImmediatePropagation(),this._model.selectionStart){var L=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(N),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(N),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var M=this._bufferService.buffer;if(this._model.selectionEnd[1]<M.lines.length){var F=M.lines.get(this._model.selectionEnd[1]);F&&F.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]++}L&&L[0]===this._model.selectionEnd[0]&&L[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}},A.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var N=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(N.ydisp+this._bufferService.rows,N.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=N.ydisp),this.refresh()}},A.prototype._onMouseUp=function(N){var L=N.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&L<500&&N.altKey){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var M=this._mouseService.getCoords(N,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(M&&M[0]!==void 0&&M[1]!==void 0){var F=h.moveToCellSequence(M[0]-1,M[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(F,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},A.prototype._onBufferActivate=function(N){var L=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=N.activeBuffer.lines.onTrim(function(M){return L._onTrim(M)})},A.prototype._convertViewportColToCharacterIndex=function(N,L){for(var M=L[0],F=0;L[0]>=F;F++){var H=N.loadCell(F,this._workCell).getChars().length;this._workCell.getWidth()===0?M--:H>1&&L[0]!==F&&(M+=H-1)}return M},A.prototype.setSelection=function(N,L,M){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[N,L],this._model.selectionStartLength=M,this.refresh()},A.prototype._getWordAt=function(N,L,M,F){if(M===void 0&&(M=!0),F===void 0&&(F=!0),!(N[0]>=this._bufferService.cols)){var H=this._bufferService.buffer,P=H.lines.get(N[1]);if(P){var V=H.translateBufferLineToString(N[1],!1),G=this._convertViewportColToCharacterIndex(P,N),Q=G,ne=N[0]-G,ue=0,ae=0,he=0,ce=0;if(V.charAt(G)===" "){for(;G>0&&V.charAt(G-1)===" ";)G--;for(;Q<V.length&&V.charAt(Q+1)===" ";)Q++}else{var we=N[0],me=N[0];P.getWidth(we)===0&&(ue++,we--),P.getWidth(me)===2&&(ae++,me++);var Le=P.getString(me).length;for(Le>1&&(ce+=Le-1,Q+=Le-1);we>0&&G>0&&!this._isCharWordSeparator(P.loadCell(we-1,this._workCell));){P.loadCell(we-1,this._workCell);var ee=this._workCell.getChars().length;this._workCell.getWidth()===0?(ue++,we--):ee>1&&(he+=ee-1,G-=ee-1),G--,we--}for(;me<P.length&&Q+1<V.length&&!this._isCharWordSeparator(P.loadCell(me+1,this._workCell));){P.loadCell(me+1,this._workCell);var se=this._workCell.getChars().length;this._workCell.getWidth()===2?(ae++,me++):se>1&&(ce+=se-1,Q+=se-1),Q++,me++}}Q++;var le=G+ne-ue+he,ke=Math.min(this._bufferService.cols,Q-G+ue+ae-he-ce);if(L||V.slice(G,Q).trim()!==""){if(M&&le===0&&P.getCodePoint(0)!==32){var De=H.lines.get(N[1]-1);if(De&&P.isWrapped&&De.getCodePoint(this._bufferService.cols-1)!==32){var Be=this._getWordAt([this._bufferService.cols-1,N[1]-1],!1,!0,!1);if(Be){var He=this._bufferService.cols-Be.start;le-=He,ke+=He}}}if(F&&le+ke===this._bufferService.cols&&P.getCodePoint(this._bufferService.cols-1)!==32){var Fe=H.lines.get(N[1]+1);if(Fe&&Fe.isWrapped&&Fe.getCodePoint(0)!==32){var Je=this._getWordAt([0,N[1]+1],!1,!1,!0);Je&&(ke+=Je.length)}}return{start:le,length:ke}}}}},A.prototype._selectWordAt=function(N,L){var M=this._getWordAt(N,L);if(M){for(;M.start<0;)M.start+=this._bufferService.cols,N[1]--;this._model.selectionStart=[M.start,N[1]],this._model.selectionStartLength=M.length}},A.prototype._selectToWordAt=function(N){var L=this._getWordAt(N,!0);if(L){for(var M=N[1];L.start<0;)L.start+=this._bufferService.cols,M--;if(!this._model.areSelectionValuesReversed())for(;L.start+L.length>this._bufferService.cols;)L.length-=this._bufferService.cols,M++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?L.start:L.start+L.length,M]}},A.prototype._isCharWordSeparator=function(N){return N.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(N.getChars())>=0},A.prototype._selectLineAt=function(N){var L=this._bufferService.buffer.getWrappedRangeForLine(N);this._model.selectionStart=[0,L.first],this._model.selectionEnd=[this._bufferService.cols,L.last],this._model.selectionStartLength=0},A=E([I(2,v.IBufferService),I(3,v.ICoreService),I(4,S.IMouseService),I(5,v.IOptionsService),I(6,S.IRenderService)],A)}(m.Disposable);b.SelectionService=_},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.SelectionModel=void 0;var Y=function(){function s(E){this._bufferService=E,this.isSelectAllActive=!1,this.selectionStartLength=0}return s.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(s.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"finalSelectionEnd",{get:function(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){var E=this.selectionStart[0]+this.selectionStartLength;return E>this._bufferService.cols?[E%this._bufferService.cols,this.selectionStart[1]+Math.floor(E/this._bufferService.cols)]:[E,this.selectionStart[1]]}return this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd}},enumerable:!1,configurable:!0}),s.prototype.areSelectionValuesReversed=function(){var E=this.selectionStart,I=this.selectionEnd;return!(!E||!I)&&(E[1]>I[1]||E[1]===I[1]&&E[0]>I[0])},s.prototype.onTrim=function(E){return this.selectionStart&&(this.selectionStart[1]-=E),this.selectionEnd&&(this.selectionEnd[1]-=E),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},s}();b.SelectionModel=Y},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.moveToCellSequence=void 0;var Y=B(12);function s(y,S,v,c){var h=y-E(v,y),m=S-E(v,S);return g(Math.abs(h-m)-function(x,T,_){for(var R=0,A=x-E(_,x),N=T-E(_,T),L=0;L<Math.abs(A-N);L++){var M=I(x,T)==="A"?-1:1,F=_.buffer.lines.get(A+M*L);F&&F.isWrapped&&R++}return R}(y,S,v),d(I(y,S),c))}function E(y,S){for(var v=0,c=y.buffer.lines.get(S),h=c&&c.isWrapped;h&&S>=0&&S<y.rows;)v++,h=(c=y.buffer.lines.get(--S))&&c.isWrapped;return v}function I(y,S){return y>S?"A":"B"}function u(y,S,v,c,h,m){for(var x=y,T=S,_="";x!==v||T!==c;)x+=h?1:-1,h&&x>m.cols-1?(_+=m.buffer.translateBufferLineToString(T,!1,y,x),x=0,y=0,T++):!h&&x<0&&(_+=m.buffer.translateBufferLineToString(T,!1,0,y+1),y=x=m.cols-1,T--);return _+m.buffer.translateBufferLineToString(T,!1,y,x)}function d(y,S){var v=S?"O":"[";return Y.C0.ESC+v+y}function g(y,S){y=Math.floor(y);for(var v="",c=0;c<y;c++)v+=S;return v}b.moveToCellSequence=function(y,S,v,c){var h,m=v.buffer.x,x=v.buffer.y;if(!v.buffer.hasScrollback)return function(_,R,A,N,L,M){return s(R,N,L,M).length===0?"":g(u(_,R,_,R-E(L,R),!1,L).length,d("D",M))}(m,x,0,S,v,c)+s(x,S,v,c)+function(_,R,A,N,L,M){var F;F=s(R,N,L,M).length>0?N-E(L,N):R;var H=N,P=function(V,G,Q,ne,ue,ae){var he;return he=s(Q,ne,ue,ae).length>0?ne-E(ue,ne):G,V<Q&&he<=ne||V>=Q&&he<ne?"C":"D"}(_,R,A,N,L,M);return g(u(_,F,A,H,P==="C",L).length,d(P,M))}(m,x,y,S,v,c);if(x===S)return h=m>y?"D":"C",g(Math.abs(m-y),d(h,c));h=x>S?"D":"C";var T=Math.abs(x-S);return g(function(_,R){return R.cols-_}(x>S?y:m,v)+(T-1)*v.cols+1+((x>S?m:y)-1),d(h,c))}},function(Z,b,B){"use strict";var Y=this&&this.__decorate||function(u,d,g,y){var S,v=arguments.length,c=v<3?d:y===null?y=Object.getOwnPropertyDescriptor(d,g):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(u,d,g,y);else for(var h=u.length-1;h>=0;h--)(S=u[h])&&(c=(v<3?S(c):v>3?S(d,g,c):S(d,g))||c);return v>3&&c&&Object.defineProperty(d,g,c),c},s=this&&this.__param||function(u,d){return function(g,y){d(g,y,u)}};Object.defineProperty(b,"__esModule",{value:!0}),b.SoundService=void 0;var E=B(1),I=function(){function u(d){this._optionsService=d}return Object.defineProperty(u,"audioContext",{get:function(){if(!u._audioContext){var d=window.AudioContext||window.webkitAudioContext;if(!d)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;u._audioContext=new d}return u._audioContext},enumerable:!1,configurable:!0}),u.prototype.playBellSound=function(){var d=u.audioContext;if(d){var g=d.createBufferSource();d.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(y){g.buffer=y,g.connect(d.destination),g.start(0)})}},u.prototype._base64ToArrayBuffer=function(d){for(var g=window.atob(d),y=g.length,S=new Uint8Array(y),v=0;v<y;v++)S[v]=g.charCodeAt(v);return S.buffer},u.prototype._removeMimeType=function(d){return d.split(",")[1]},u=Y([s(0,E.IOptionsService)],u)}();b.SoundService=I},function(Z,b,B){"use strict";var Y,s=this&&this.__extends||(Y=function(v,c){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var x in m)m.hasOwnProperty(x)&&(h[x]=m[x])})(v,c)},function(v,c){function h(){this.constructor=v}Y(v,c),v.prototype=c===null?Object.create(c):(h.prototype=c.prototype,new h)}),E=this&&this.__decorate||function(v,c,h,m){var x,T=arguments.length,_=T<3?c:m===null?m=Object.getOwnPropertyDescriptor(c,h):m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(v,c,h,m);else for(var R=v.length-1;R>=0;R--)(x=v[R])&&(_=(T<3?x(_):T>3?x(c,h,_):x(c,h))||_);return T>3&&_&&Object.defineProperty(c,h,_),_},I=this&&this.__param||function(v,c){return function(h,m){c(h,m,v)}};Object.defineProperty(b,"__esModule",{value:!0}),b.MouseZoneManager=void 0;var u=B(2),d=B(7),g=B(5),y=B(1),S=function(v){function c(h,m,x,T,_,R){var A=v.call(this)||this;return A._element=h,A._screenElement=m,A._bufferService=x,A._mouseService=T,A._selectionService=_,A._optionsService=R,A._zones=[],A._areZonesActive=!1,A._lastHoverCoords=[void 0,void 0],A._initialSelectionLength=0,A.register(d.addDisposableDomListener(A._element,"mousedown",function(N){return A._onMouseDown(N)})),A._mouseMoveListener=function(N){return A._onMouseMove(N)},A._mouseLeaveListener=function(N){return A._onMouseLeave(N)},A._clickListener=function(N){return A._onClick(N)},A}return s(c,v),c.prototype.dispose=function(){v.prototype.dispose.call(this),this._deactivate()},c.prototype.add=function(h){this._zones.push(h),this._zones.length===1&&this._activate()},c.prototype.clearAll=function(h,m){if(this._zones.length!==0){h&&m||(h=0,m=this._bufferService.rows-1);for(var x=0;x<this._zones.length;x++){var T=this._zones[x];(T.y1>h&&T.y1<=m+1||T.y2>h&&T.y2<=m+1||T.y1<h&&T.y2>m+1)&&(this._currentZone&&this._currentZone===T&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(x--,1))}this._zones.length===0&&this._deactivate()}},c.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))},c.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))},c.prototype._onMouseMove=function(h){this._lastHoverCoords[0]===h.pageX&&this._lastHoverCoords[1]===h.pageY||(this._onHover(h),this._lastHoverCoords=[h.pageX,h.pageY])},c.prototype._onHover=function(h){var m=this,x=this._findZoneEventAt(h);x!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),x&&(this._currentZone=x,x.hoverCallback&&x.hoverCallback(h),this._tooltipTimeout=window.setTimeout(function(){return m._onTooltip(h)},this._optionsService.options.linkTooltipHoverDuration)))},c.prototype._onTooltip=function(h){this._tooltipTimeout=void 0;var m=this._findZoneEventAt(h);m&&m.tooltipCallback&&m.tooltipCallback(h)},c.prototype._onMouseDown=function(h){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var m=this._findZoneEventAt(h);m!=null&&m.willLinkActivate(h)&&(h.preventDefault(),h.stopImmediatePropagation())}},c.prototype._onMouseLeave=function(h){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},c.prototype._onClick=function(h){var m=this._findZoneEventAt(h),x=this._getSelectionLength();m&&x===this._initialSelectionLength&&(m.clickCallback(h),h.preventDefault(),h.stopImmediatePropagation())},c.prototype._getSelectionLength=function(){var h=this._selectionService.selectionText;return h?h.length:0},c.prototype._findZoneEventAt=function(h){var m=this._mouseService.getCoords(h,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(m)for(var x=m[0],T=m[1],_=0;_<this._zones.length;_++){var R=this._zones[_];if(R.y1===R.y2){if(T===R.y1&&x>=R.x1&&x<R.x2)return R}else if(T===R.y1&&x>=R.x1||T===R.y2&&x<R.x2||T>R.y1&&T<R.y2)return R}},c=E([I(2,y.IBufferService),I(3,g.IMouseService),I(4,g.ISelectionService),I(5,y.IOptionsService)],c)}(u.Disposable);b.MouseZoneManager=S},function(Z,b,B){"use strict";var Y,s=this&&this.__extends||(Y=function(c,h){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,x){m.__proto__=x}||function(m,x){for(var T in x)x.hasOwnProperty(T)&&(m[T]=x[T])})(c,h)},function(c,h){function m(){this.constructor=c}Y(c,h),c.prototype=h===null?Object.create(h):(m.prototype=h.prototype,new m)});Object.defineProperty(b,"__esModule",{value:!0}),b.AccessibilityManager=void 0;var E=B(18),I=B(11),u=B(31),d=B(7),g=B(2),y=B(32),S=B(17),v=function(c){function h(m,x){var T=c.call(this)||this;T._terminal=m,T._renderService=x,T._liveRegionLineCount=0,T._charsToConsume=[],T._charsToAnnounce="",T._accessibilityTreeRoot=document.createElement("div"),T._accessibilityTreeRoot.classList.add("xterm-accessibility"),T._rowContainer=document.createElement("div"),T._rowContainer.classList.add("xterm-accessibility-tree"),T._rowContainer.setAttribute("role","list"),T._rowElements=[];for(var _=0;_<T._terminal.rows;_++)T._rowElements[_]=T._createAccessibilityTreeNode(),T._rowContainer.appendChild(T._rowElements[_]);if(T._topBoundaryFocusListener=function(R){return T._onBoundaryFocus(R,0)},T._bottomBoundaryFocusListener=function(R){return T._onBoundaryFocus(R,1)},T._rowElements[0].addEventListener("focus",T._topBoundaryFocusListener),T._rowElements[T._rowElements.length-1].addEventListener("focus",T._bottomBoundaryFocusListener),T._refreshRowsDimensions(),T._accessibilityTreeRoot.appendChild(T._rowContainer),T._renderRowsDebouncer=new u.RenderDebouncer(T._renderRows.bind(T)),T._refreshRows(),T._liveRegion=document.createElement("div"),T._liveRegion.classList.add("live-region"),T._liveRegion.setAttribute("aria-live","assertive"),T._accessibilityTreeRoot.appendChild(T._liveRegion),!T._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return T._terminal.element.insertAdjacentElement("afterbegin",T._accessibilityTreeRoot),T.register(T._renderRowsDebouncer),T.register(T._terminal.onResize(function(R){return T._onResize(R.rows)})),T.register(T._terminal.onRender(function(R){return T._refreshRows(R.start,R.end)})),T.register(T._terminal.onScroll(function(){return T._refreshRows()})),T.register(T._terminal.onA11yChar(function(R){return T._onChar(R)})),T.register(T._terminal.onLineFeed(function(){return T._onChar(`
`)})),T.register(T._terminal.onA11yTab(function(R){return T._onTab(R)})),T.register(T._terminal.onKey(function(R){return T._onKey(R.key)})),T.register(T._terminal.onBlur(function(){return T._clearLiveRegion()})),T.register(T._renderService.onDimensionsChange(function(){return T._refreshRowsDimensions()})),T._screenDprMonitor=new y.ScreenDprMonitor,T.register(T._screenDprMonitor),T._screenDprMonitor.setListener(function(){return T._refreshRowsDimensions()}),T.register(d.addDisposableDomListener(window,"resize",function(){return T._refreshRowsDimensions()})),T}return s(h,c),h.prototype.dispose=function(){c.prototype.dispose.call(this),S.removeElementFromParent(this._accessibilityTreeRoot),this._rowElements.length=0},h.prototype._onBoundaryFocus=function(m,x){var T=m.target,_=this._rowElements[x===0?1:this._rowElements.length-2];if(T.getAttribute("aria-posinset")!==(x===0?"1":""+this._terminal.buffer.lines.length)&&m.relatedTarget===_){var R,A;if(x===0?(R=T,A=this._rowElements.pop(),this._rowContainer.removeChild(A)):(R=this._rowElements.shift(),A=T,this._rowContainer.removeChild(R)),R.removeEventListener("focus",this._topBoundaryFocusListener),A.removeEventListener("focus",this._bottomBoundaryFocusListener),x===0){var N=this._createAccessibilityTreeNode();this._rowElements.unshift(N),this._rowContainer.insertAdjacentElement("afterbegin",N)}else N=this._createAccessibilityTreeNode(),this._rowElements.push(N),this._rowContainer.appendChild(N);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(x===0?-1:1),this._rowElements[x===0?1:this._rowElements.length-2].focus(),m.preventDefault(),m.stopImmediatePropagation()}},h.prototype._onResize=function(m){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var x=this._rowContainer.children.length;x<this._terminal.rows;x++)this._rowElements[x]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[x]);for(;this._rowElements.length>m;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},h.prototype._createAccessibilityTreeNode=function(){var m=document.createElement("div");return m.setAttribute("role","listitem"),m.tabIndex=-1,this._refreshRowDimensions(m),m},h.prototype._onTab=function(m){for(var x=0;x<m;x++)this._onChar(" ")},h.prototype._onChar=function(m){var x=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==m&&(this._charsToAnnounce+=m):this._charsToAnnounce+=m,m===`
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=E.tooMuchOutput)),I.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){x._accessibilityTreeRoot.appendChild(x._liveRegion)},0))},h.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,I.isMac&&S.removeElementFromParent(this._liveRegion)},h.prototype._onKey=function(m){this._clearLiveRegion(),this._charsToConsume.push(m)},h.prototype._refreshRows=function(m,x){this._renderRowsDebouncer.refresh(m,x,this._terminal.rows)},h.prototype._renderRows=function(m,x){for(var T=this._terminal.buffer,_=T.lines.length.toString(),R=m;R<=x;R++){var A=T.translateBufferLineToString(T.ydisp+R,!0),N=(T.ydisp+R+1).toString(),L=this._rowElements[R];L&&(A.length===0?L.innerHTML="&nbsp;":L.textContent=A,L.setAttribute("aria-posinset",N),L.setAttribute("aria-setsize",_))}this._announceCharacters()},h.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var m=0;m<this._terminal.rows;m++)this._refreshRowDimensions(this._rowElements[m])}},h.prototype._refreshRowDimensions=function(m){m.style.height=this._renderService.dimensions.actualCellHeight+"px"},h.prototype._announceCharacters=function(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},h}(g.Disposable);b.AccessibilityManager=v},function(Z,b,B){"use strict";var Y,s=this&&this.__extends||(Y=function(T,_){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,A){R.__proto__=A}||function(R,A){for(var N in A)A.hasOwnProperty(N)&&(R[N]=A[N])})(T,_)},function(T,_){function R(){this.constructor=T}Y(T,_),T.prototype=_===null?Object.create(_):(R.prototype=_.prototype,new R)}),E=this&&this.__decorate||function(T,_,R,A){var N,L=arguments.length,M=L<3?_:A===null?A=Object.getOwnPropertyDescriptor(_,R):A;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")M=Reflect.decorate(T,_,R,A);else for(var F=T.length-1;F>=0;F--)(N=T[F])&&(M=(L<3?N(M):L>3?N(_,R,M):N(_,R))||M);return L>3&&M&&Object.defineProperty(_,R,M),M},I=this&&this.__param||function(T,_){return function(R,A){_(R,A,T)}};Object.defineProperty(b,"__esModule",{value:!0}),b.DomRenderer=void 0;var u=B(58),d=B(9),g=B(2),y=B(5),S=B(1),v=B(0),c=B(10),h=B(17),m=1,x=function(T){function _(R,A,N,L,M,F,H,P,V){var G=T.call(this)||this;return G._colors=R,G._element=A,G._screenElement=N,G._viewportElement=L,G._linkifier=M,G._linkifier2=F,G._charSizeService=H,G._optionsService=P,G._bufferService=V,G._terminalClass=m++,G._rowElements=[],G._rowContainer=document.createElement("div"),G._rowContainer.classList.add("xterm-rows"),G._rowContainer.style.lineHeight="normal",G._rowContainer.setAttribute("aria-hidden","true"),G._refreshRowElements(G._bufferService.cols,G._bufferService.rows),G._selectionContainer=document.createElement("div"),G._selectionContainer.classList.add("xterm-selection"),G._selectionContainer.setAttribute("aria-hidden","true"),G.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},G._updateDimensions(),G._injectCss(),G._rowFactory=new u.DomRendererRowFactory(document,G._optionsService,G._colors),G._element.classList.add("xterm-dom-renderer-owner-"+G._terminalClass),G._screenElement.appendChild(G._rowContainer),G._screenElement.appendChild(G._selectionContainer),G._linkifier.onShowLinkUnderline(function(Q){return G._onLinkHover(Q)}),G._linkifier.onHideLinkUnderline(function(Q){return G._onLinkLeave(Q)}),G._linkifier2.onShowLinkUnderline(function(Q){return G._onLinkHover(Q)}),G._linkifier2.onHideLinkUnderline(function(Q){return G._onLinkLeave(Q)}),G}return s(_,T),Object.defineProperty(_.prototype,"onRequestRedraw",{get:function(){return new v.EventEmitter().event},enumerable:!1,configurable:!0}),_.prototype.dispose=function(){this._element.classList.remove("xterm-dom-renderer-owner-"+this._terminalClass),h.removeElementFromParent(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),T.prototype.dispose.call(this)},_.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 R=0,A=this._rowElements;R<A.length;R++){var N=A[R];N.style.width=this.dimensions.canvasWidth+"px",N.style.height=this.dimensions.actualCellHeight+"px",N.style.lineHeight=this.dimensions.actualCellHeight+"px",N.style.overflow="hidden"}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var L=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.innerHTML=L,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},_.prototype.setColors=function(R){this._colors=R,this._injectCss()},_.prototype._injectCss=function(){var R=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var A=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.options.fontFamily+"; font-size: "+this._optionsService.options.fontSize+"px;}";A+=this._terminalSelector+" span:not(."+u.BOLD_CLASS+") { font-weight: "+this._optionsService.options.fontWeight+";}"+this._terminalSelector+" span."+u.BOLD_CLASS+" { font-weight: "+this._optionsService.options.fontWeightBold+";}"+this._terminalSelector+" span."+u.ITALIC_CLASS+" { font-style: italic;}",A+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",A+="@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+"; }}",A+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+u.CURSOR_CLASS+"."+u.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+u.CURSOR_CLASS+"."+u.CURSOR_BLINK_CLASS+":not(."+u.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+u.CURSOR_CLASS+"."+u.CURSOR_BLINK_CLASS+"."+u.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+u.CURSOR_CLASS+"."+u.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+u.CURSOR_CLASS+"."+u.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.options.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+u.CURSOR_CLASS+"."+u.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",A+=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(N,L){A+=R._terminalSelector+" .xterm-fg-"+L+" { color: "+N.css+"; }"+R._terminalSelector+" .xterm-bg-"+L+" { background-color: "+N.css+"; }"}),A+=this._terminalSelector+" .xterm-fg-"+d.INVERTED_DEFAULT_COLOR+" { color: "+c.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" .xterm-bg-"+d.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.innerHTML=A},_.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},_.prototype._refreshRowElements=function(R,A){for(var N=this._rowElements.length;N<=A;N++){var L=document.createElement("div");this._rowContainer.appendChild(L),this._rowElements.push(L)}for(;this._rowElements.length>A;)this._rowContainer.removeChild(this._rowElements.pop())},_.prototype.onResize=function(R,A){this._refreshRowElements(R,A),this._updateDimensions()},_.prototype.onCharSizeChanged=function(){this._updateDimensions()},_.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},_.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},_.prototype.onSelectionChanged=function(R,A,N){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(R&&A){var L=R[1]-this._bufferService.buffer.ydisp,M=A[1]-this._bufferService.buffer.ydisp,F=Math.max(L,0),H=Math.min(M,this._bufferService.rows-1);if(!(F>=this._bufferService.rows||H<0)){var P=document.createDocumentFragment();if(N)P.appendChild(this._createSelectionElement(F,R[0],A[0],H-F+1));else{var V=L===F?R[0]:0,G=F===H?A[0]:this._bufferService.cols;P.appendChild(this._createSelectionElement(F,V,G));var Q=H-F-1;if(P.appendChild(this._createSelectionElement(F+1,0,this._bufferService.cols,Q)),F!==H){var ne=M===H?A[0]:this._bufferService.cols;P.appendChild(this._createSelectionElement(H,0,ne))}}this._selectionContainer.appendChild(P)}}},_.prototype._createSelectionElement=function(R,A,N,L){L===void 0&&(L=1);var M=document.createElement("div");return M.style.height=L*this.dimensions.actualCellHeight+"px",M.style.top=R*this.dimensions.actualCellHeight+"px",M.style.left=A*this.dimensions.actualCellWidth+"px",M.style.width=this.dimensions.actualCellWidth*(N-A)+"px",M},_.prototype.onCursorMove=function(){},_.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},_.prototype.clear=function(){for(var R=0,A=this._rowElements;R<A.length;R++)A[R].innerHTML=""},_.prototype.renderRows=function(R,A){for(var N=this._bufferService.buffer.ybase+this._bufferService.buffer.y,L=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),M=this._optionsService.options.cursorBlink,F=R;F<=A;F++){var H=this._rowElements[F];H.innerHTML="";var P=F+this._bufferService.buffer.ydisp,V=this._bufferService.buffer.lines.get(P),G=this._optionsService.options.cursorStyle;H.appendChild(this._rowFactory.createRow(V,P===N,G,L,M,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(_.prototype,"_terminalSelector",{get:function(){return".xterm-dom-renderer-owner-"+this._terminalClass},enumerable:!1,configurable:!0}),_.prototype.registerCharacterJoiner=function(R){return-1},_.prototype.deregisterCharacterJoiner=function(R){return!1},_.prototype._onLinkHover=function(R){this._setCellUnderline(R.x1,R.x2,R.y1,R.y2,R.cols,!0)},_.prototype._onLinkLeave=function(R){this._setCellUnderline(R.x1,R.x2,R.y1,R.y2,R.cols,!1)},_.prototype._setCellUnderline=function(R,A,N,L,M,F){for(;R!==A||N!==L;){var H=this._rowElements[N];if(!H)return;var P=H.children[R];P&&(P.style.textDecoration=F?"underline":"none"),++R>=M&&(R=0,N++)}},_=E([I(6,y.ICharSizeService),I(7,S.IOptionsService),I(8,S.IBufferService)],_)}(g.Disposable);b.DomRenderer=x},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.DomRendererRowFactory=b.CURSOR_STYLE_UNDERLINE_CLASS=b.CURSOR_STYLE_BAR_CLASS=b.CURSOR_STYLE_BLOCK_CLASS=b.CURSOR_BLINK_CLASS=b.CURSOR_CLASS=b.UNDERLINE_CLASS=b.ITALIC_CLASS=b.DIM_CLASS=b.BOLD_CLASS=void 0;var Y=B(9),s=B(3),E=B(4),I=B(10);b.BOLD_CLASS="xterm-bold",b.DIM_CLASS="xterm-dim",b.ITALIC_CLASS="xterm-italic",b.UNDERLINE_CLASS="xterm-underline",b.CURSOR_CLASS="xterm-cursor",b.CURSOR_BLINK_CLASS="xterm-cursor-blink",b.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",b.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",b.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var u=function(){function g(y,S,v){this._document=y,this._optionsService=S,this._colors=v,this._workCell=new E.CellData}return g.prototype.setColors=function(y){this._colors=y},g.prototype.createRow=function(y,S,v,c,h,m,x){for(var T=this._document.createDocumentFragment(),_=0,R=Math.min(y.length,x)-1;R>=0;R--)if(y.loadCell(R,this._workCell).getCode()!==s.NULL_CELL_CODE||S&&R===c){_=R+1;break}for(R=0;R<_;R++){y.loadCell(R,this._workCell);var A=this._workCell.getWidth();if(A!==0){var N=this._document.createElement("span");if(A>1&&(N.style.width=m*A+"px"),S&&R===c)switch(N.classList.add(b.CURSOR_CLASS),h&&N.classList.add(b.CURSOR_BLINK_CLASS),v){case"bar":N.classList.add(b.CURSOR_STYLE_BAR_CLASS);break;case"underline":N.classList.add(b.CURSOR_STYLE_UNDERLINE_CLASS);break;default:N.classList.add(b.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&N.classList.add(b.BOLD_CLASS),this._workCell.isItalic()&&N.classList.add(b.ITALIC_CLASS),this._workCell.isDim()&&N.classList.add(b.DIM_CLASS),this._workCell.isUnderline()&&N.classList.add(b.UNDERLINE_CLASS),this._workCell.isInvisible()?N.textContent=s.WHITESPACE_CELL_CHAR:N.textContent=this._workCell.getChars()||s.WHITESPACE_CELL_CHAR;var L=this._workCell.getFgColor(),M=this._workCell.getFgColorMode(),F=this._workCell.getBgColor(),H=this._workCell.getBgColorMode(),P=!!this._workCell.isInverse();if(P){var V=L;L=F,F=V;var G=M;M=H,H=G}switch(M){case 16777216:case 33554432:this._workCell.isBold()&&L<8&&this._optionsService.options.drawBoldTextInBrightColors&&(L+=8),this._applyMinimumContrast(N,this._colors.background,this._colors.ansi[L])||N.classList.add("xterm-fg-"+L);break;case 50331648:var Q=I.rgba.toColor(L>>16&255,L>>8&255,255&L);this._applyMinimumContrast(N,this._colors.background,Q)||this._addStyle(N,"color:#"+d(L.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(N,this._colors.background,this._colors.foreground)||P&&N.classList.add("xterm-fg-"+Y.INVERTED_DEFAULT_COLOR)}switch(H){case 16777216:case 33554432:N.classList.add("xterm-bg-"+F);break;case 50331648:this._addStyle(N,"background-color:#"+d(F.toString(16),"0",6));break;case 0:default:P&&N.classList.add("xterm-bg-"+Y.INVERTED_DEFAULT_COLOR)}T.appendChild(N)}}return T},g.prototype._applyMinimumContrast=function(y,S,v){if(this._optionsService.options.minimumContrastRatio===1)return!1;var c=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return c===void 0&&(c=I.color.ensureContrastRatio(S,v,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,c!=null?c:null)),!!c&&(this._addStyle(y,"color:"+c.css),!0)},g.prototype._addStyle=function(y,S){y.setAttribute("style",""+(y.getAttribute("style")||"")+S+";")},g}();function d(g,y,S){for(;g.length<S;)g=y+g;return g}b.DomRendererRowFactory=u},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.evaluateKeyboardEvent=void 0;var Y=B(12),s={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};b.evaluateKeyboardEvent=function(E,I,u,d){var g={type:0,cancel:!1,key:void 0},y=(E.shiftKey?1:0)|(E.altKey?2:0)|(E.ctrlKey?4:0)|(E.metaKey?8:0);switch(E.keyCode){case 0:E.key==="UIKeyInputUpArrow"?g.key=I?Y.C0.ESC+"OA":Y.C0.ESC+"[A":E.key==="UIKeyInputLeftArrow"?g.key=I?Y.C0.ESC+"OD":Y.C0.ESC+"[D":E.key==="UIKeyInputRightArrow"?g.key=I?Y.C0.ESC+"OC":Y.C0.ESC+"[C":E.key==="UIKeyInputDownArrow"&&(g.key=I?Y.C0.ESC+"OB":Y.C0.ESC+"[B");break;case 8:if(E.shiftKey){g.key=Y.C0.BS;break}if(E.altKey){g.key=Y.C0.ESC+Y.C0.DEL;break}g.key=Y.C0.DEL;break;case 9:if(E.shiftKey){g.key=Y.C0.ESC+"[Z";break}g.key=Y.C0.HT,g.cancel=!0;break;case 13:g.key=E.altKey?Y.C0.ESC+Y.C0.CR:Y.C0.CR,g.cancel=!0;break;case 27:g.key=Y.C0.ESC,E.altKey&&(g.key=Y.C0.ESC+Y.C0.ESC),g.cancel=!0;break;case 37:if(E.metaKey)break;y?(g.key=Y.C0.ESC+"[1;"+(y+1)+"D",g.key===Y.C0.ESC+"[1;3D"&&(g.key=Y.C0.ESC+(u?"b":"[1;5D"))):g.key=I?Y.C0.ESC+"OD":Y.C0.ESC+"[D";break;case 39:if(E.metaKey)break;y?(g.key=Y.C0.ESC+"[1;"+(y+1)+"C",g.key===Y.C0.ESC+"[1;3C"&&(g.key=Y.C0.ESC+(u?"f":"[1;5C"))):g.key=I?Y.C0.ESC+"OC":Y.C0.ESC+"[C";break;case 38:if(E.metaKey)break;y?(g.key=Y.C0.ESC+"[1;"+(y+1)+"A",u||g.key!==Y.C0.ESC+"[1;3A"||(g.key=Y.C0.ESC+"[1;5A")):g.key=I?Y.C0.ESC+"OA":Y.C0.ESC+"[A";break;case 40:if(E.metaKey)break;y?(g.key=Y.C0.ESC+"[1;"+(y+1)+"B",u||g.key!==Y.C0.ESC+"[1;3B"||(g.key=Y.C0.ESC+"[1;5B")):g.key=I?Y.C0.ESC+"OB":Y.C0.ESC+"[B";break;case 45:E.shiftKey||E.ctrlKey||(g.key=Y.C0.ESC+"[2~");break;case 46:g.key=y?Y.C0.ESC+"[3;"+(y+1)+"~":Y.C0.ESC+"[3~";break;case 36:g.key=y?Y.C0.ESC+"[1;"+(y+1)+"H":I?Y.C0.ESC+"OH":Y.C0.ESC+"[H";break;case 35:g.key=y?Y.C0.ESC+"[1;"+(y+1)+"F":I?Y.C0.ESC+"OF":Y.C0.ESC+"[F";break;case 33:E.shiftKey?g.type=2:g.key=Y.C0.ESC+"[5~";break;case 34:E.shiftKey?g.type=3:g.key=Y.C0.ESC+"[6~";break;case 112:g.key=y?Y.C0.ESC+"[1;"+(y+1)+"P":Y.C0.ESC+"OP";break;case 113:g.key=y?Y.C0.ESC+"[1;"+(y+1)+"Q":Y.C0.ESC+"OQ";break;case 114:g.key=y?Y.C0.ESC+"[1;"+(y+1)+"R":Y.C0.ESC+"OR";break;case 115:g.key=y?Y.C0.ESC+"[1;"+(y+1)+"S":Y.C0.ESC+"OS";break;case 116:g.key=y?Y.C0.ESC+"[15;"+(y+1)+"~":Y.C0.ESC+"[15~";break;case 117:g.key=y?Y.C0.ESC+"[17;"+(y+1)+"~":Y.C0.ESC+"[17~";break;case 118:g.key=y?Y.C0.ESC+"[18;"+(y+1)+"~":Y.C0.ESC+"[18~";break;case 119:g.key=y?Y.C0.ESC+"[19;"+(y+1)+"~":Y.C0.ESC+"[19~";break;case 120:g.key=y?Y.C0.ESC+"[20;"+(y+1)+"~":Y.C0.ESC+"[20~";break;case 121:g.key=y?Y.C0.ESC+"[21;"+(y+1)+"~":Y.C0.ESC+"[21~";break;case 122:g.key=y?Y.C0.ESC+"[23;"+(y+1)+"~":Y.C0.ESC+"[23~";break;case 123:g.key=y?Y.C0.ESC+"[24;"+(y+1)+"~":Y.C0.ESC+"[24~";break;default:if(!E.ctrlKey||E.shiftKey||E.altKey||E.metaKey)if(u&&!d||!E.altKey||E.metaKey)u&&!E.altKey&&!E.ctrlKey&&E.metaKey?E.keyCode===65&&(g.type=1):E.key&&!E.ctrlKey&&!E.altKey&&!E.metaKey&&E.keyCode>=48&&E.key.length===1?g.key=E.key:E.key&&E.ctrlKey&&E.key==="_"&&(g.key=Y.C0.US);else{var S=s[E.keyCode],v=S&&S[E.shiftKey?1:0];if(v)g.key=Y.C0.ESC+v;else if(E.keyCode>=65&&E.keyCode<=90){var c=E.ctrlKey?E.keyCode-64:E.keyCode+32;g.key=Y.C0.ESC+String.fromCharCode(c)}}else E.keyCode>=65&&E.keyCode<=90?g.key=String.fromCharCode(E.keyCode-64):E.keyCode===32?g.key=Y.C0.NUL:E.keyCode>=51&&E.keyCode<=55?g.key=String.fromCharCode(E.keyCode-51+27):E.keyCode===56?g.key=Y.C0.DEL:E.keyCode===219?g.key=Y.C0.ESC:E.keyCode===220?g.key=Y.C0.FS:E.keyCode===221&&(g.key=Y.C0.GS)}return g}},function(Z,b,B){"use strict";var Y,s=this&&this.__extends||(Y=function(m,x){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,_){T.__proto__=_}||function(T,_){for(var R in _)_.hasOwnProperty(R)&&(T[R]=_[R])})(m,x)},function(m,x){function T(){this.constructor=m}Y(m,x),m.prototype=x===null?Object.create(x):(T.prototype=x.prototype,new T)}),E=this&&this.__decorate||function(m,x,T,_){var R,A=arguments.length,N=A<3?x:_===null?_=Object.getOwnPropertyDescriptor(x,T):_;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(m,x,T,_);else for(var L=m.length-1;L>=0;L--)(R=m[L])&&(N=(A<3?R(N):A>3?R(x,T,N):R(x,T))||N);return A>3&&N&&Object.defineProperty(x,T,N),N},I=this&&this.__param||function(m,x){return function(T,_){x(T,_,m)}};Object.defineProperty(b,"__esModule",{value:!0}),b.RenderService=void 0;var u=B(31),d=B(0),g=B(2),y=B(32),S=B(7),v=B(1),c=B(5),h=function(m){function x(T,_,R,A,N,L){var M=m.call(this)||this;if(M._renderer=T,M._rowCount=_,M._isPaused=!1,M._needsFullRefresh=!1,M._isNextRenderRedrawOnly=!0,M._needsSelectionRefresh=!1,M._canvasWidth=0,M._canvasHeight=0,M._selectionState={start:void 0,end:void 0,columnSelectMode:!1},M._onDimensionsChange=new d.EventEmitter,M._onRender=new d.EventEmitter,M._onRefreshRequest=new d.EventEmitter,M.register({dispose:function(){return M._renderer.dispose()}}),M._renderDebouncer=new u.RenderDebouncer(function(H,P){return M._renderRows(H,P)}),M.register(M._renderDebouncer),M._screenDprMonitor=new y.ScreenDprMonitor,M._screenDprMonitor.setListener(function(){return M.onDevicePixelRatioChange()}),M.register(M._screenDprMonitor),M.register(L.onResize(function(H){return M._fullRefresh()})),M.register(A.onOptionChange(function(){return M._renderer.onOptionsChanged()})),M.register(N.onCharSizeChange(function(){return M.onCharSizeChanged()})),M._renderer.onRequestRedraw(function(H){return M.refreshRows(H.start,H.end,!0)}),M.register(S.addDisposableDomListener(window,"resize",function(){return M.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var F=new IntersectionObserver(function(H){return M._onIntersectionChange(H[H.length-1])},{threshold:0});F.observe(R),M.register({dispose:function(){return F.disconnect()}})}return M}return s(x,m),Object.defineProperty(x.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),x.prototype._onIntersectionChange=function(T){this._isPaused=T.intersectionRatio===0,!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},x.prototype.refreshRows=function(T,_,R){R===void 0&&(R=!1),this._isPaused?this._needsFullRefresh=!0:(R||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(T,_,this._rowCount))},x.prototype._renderRows=function(T,_){this._renderer.renderRows(T,_),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:T,end:_}),this._isNextRenderRedrawOnly=!0},x.prototype.resize=function(T,_){this._rowCount=_,this._fireOnCanvasResize()},x.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},x.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},x.prototype.dispose=function(){m.prototype.dispose.call(this)},x.prototype.setRenderer=function(T){var _=this;this._renderer.dispose(),this._renderer=T,this._renderer.onRequestRedraw(function(R){return _.refreshRows(R.start,R.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},x.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},x.prototype.setColors=function(T){this._renderer.setColors(T),this._fullRefresh()},x.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},x.prototype.onResize=function(T,_){this._renderer.onResize(T,_),this._fullRefresh()},x.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},x.prototype.onBlur=function(){this._renderer.onBlur()},x.prototype.onFocus=function(){this._renderer.onFocus()},x.prototype.onSelectionChanged=function(T,_,R){this._selectionState.start=T,this._selectionState.end=_,this._selectionState.columnSelectMode=R,this._renderer.onSelectionChanged(T,_,R)},x.prototype.onCursorMove=function(){this._renderer.onCursorMove()},x.prototype.clear=function(){this._renderer.clear()},x.prototype.registerCharacterJoiner=function(T){return this._renderer.registerCharacterJoiner(T)},x.prototype.deregisterCharacterJoiner=function(T){return this._renderer.deregisterCharacterJoiner(T)},x=E([I(3,v.IOptionsService),I(4,c.ICharSizeService),I(5,v.IBufferService)],x)}(g.Disposable);b.RenderService=h},function(Z,b,B){"use strict";var Y=this&&this.__decorate||function(g,y,S,v){var c,h=arguments.length,m=h<3?y:v===null?v=Object.getOwnPropertyDescriptor(y,S):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(g,y,S,v);else for(var x=g.length-1;x>=0;x--)(c=g[x])&&(m=(h<3?c(m):h>3?c(y,S,m):c(y,S))||m);return h>3&&m&&Object.defineProperty(y,S,m),m},s=this&&this.__param||function(g,y){return function(S,v){y(S,v,g)}};Object.defineProperty(b,"__esModule",{value:!0}),b.CharSizeService=void 0;var E=B(1),I=B(0),u=function(){function g(y,S,v){this._optionsService=v,this.width=0,this.height=0,this._onCharSizeChange=new I.EventEmitter,this._measureStrategy=new d(y,S,this._optionsService)}return Object.defineProperty(g.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),g.prototype.measure=function(){var y=this._measureStrategy.measure();y.width===this.width&&y.height===this.height||(this.width=y.width,this.height=y.height,this._onCharSizeChange.fire())},g=Y([s(2,E.IOptionsService)],g)}();b.CharSizeService=u;var d=function(){function g(y,S,v){this._document=y,this._parentElement=S,this._optionsService=v,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 g.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var y=this._measureElement.getBoundingClientRect();return y.width!==0&&y.height!==0&&(this._result.width=y.width,this._result.height=Math.ceil(y.height)),this._result},g}()},function(Z,b,B){"use strict";var Y=this&&this.__decorate||function(d,g,y,S){var v,c=arguments.length,h=c<3?g:S===null?S=Object.getOwnPropertyDescriptor(g,y):S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(d,g,y,S);else for(var m=d.length-1;m>=0;m--)(v=d[m])&&(h=(c<3?v(h):c>3?v(g,y,h):v(g,y))||h);return c>3&&h&&Object.defineProperty(g,y,h),h},s=this&&this.__param||function(d,g){return function(y,S){g(y,S,d)}};Object.defineProperty(b,"__esModule",{value:!0}),b.MouseService=void 0;var E=B(5),I=B(30),u=function(){function d(g,y){this._renderService=g,this._charSizeService=y}return d.prototype.getCoords=function(g,y,S,v,c){return I.getCoords(g,y,S,v,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,c)},d.prototype.getRawByteCoords=function(g,y,S,v){var c=this.getCoords(g,y,S,v);return I.getRawByteCoords(c)},d=Y([s(0,E.IRenderService),s(1,E.ICharSizeService)],d)}();b.MouseService=u},function(Z,b,B){"use strict";var Y,s=this&&this.__extends||(Y=function(v,c){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var x in m)m.hasOwnProperty(x)&&(h[x]=m[x])})(v,c)},function(v,c){function h(){this.constructor=v}Y(v,c),v.prototype=c===null?Object.create(c):(h.prototype=c.prototype,new h)}),E=this&&this.__decorate||function(v,c,h,m){var x,T=arguments.length,_=T<3?c:m===null?m=Object.getOwnPropertyDescriptor(c,h):m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(v,c,h,m);else for(var R=v.length-1;R>=0;R--)(x=v[R])&&(_=(T<3?x(_):T>3?x(c,h,_):x(c,h))||_);return T>3&&_&&Object.defineProperty(c,h,_),_},I=this&&this.__param||function(v,c){return function(h,m){c(h,m,v)}};Object.defineProperty(b,"__esModule",{value:!0}),b.Linkifier2=void 0;var u=B(1),d=B(0),g=B(2),y=B(7),S=function(v){function c(h){var m=v.call(this)||this;return m._bufferService=h,m._linkProviders=[],m._linkCacheDisposables=[],m._isMouseOut=!0,m._activeLine=-1,m._onShowLinkUnderline=m.register(new d.EventEmitter),m._onHideLinkUnderline=m.register(new d.EventEmitter),m.register(g.getDisposeArrayDisposable(m._linkCacheDisposables)),m}return s(c,v),Object.defineProperty(c.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),c.prototype.registerLinkProvider=function(h){var m=this;return this._linkProviders.push(h),{dispose:function(){var x=m._linkProviders.indexOf(h);x!==-1&&m._linkProviders.splice(x,1)}}},c.prototype.attachToDom=function(h,m,x){var T=this;this._element=h,this._mouseService=m,this._renderService=x,this.register(y.addDisposableDomListener(this._element,"mouseleave",function(){T._isMouseOut=!0,T._clearCurrentLink()})),this.register(y.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(y.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},c.prototype._onMouseMove=function(h){if(this._lastMouseEvent=h,this._element&&this._mouseService){var m=this._positionFromMouseEvent(h,this._element,this._mouseService);if(m){this._isMouseOut=!1;for(var x=h.composedPath(),T=0;T<x.length;T++){var _=x[T];if(_.classList.contains("xterm"))break;if(_.classList.contains("xterm-hover"))return}this._lastBufferCell&&m.x===this._lastBufferCell.x&&m.y===this._lastBufferCell.y||(this._onHover(m),this._lastBufferCell=m)}}},c.prototype._onHover=function(h){if(this._activeLine!==h.y)return this._clearCurrentLink(),void this._askForLink(h,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,h)||(this._clearCurrentLink(),this._askForLink(h,!0))},c.prototype._askForLink=function(h,m){var x=this;this._activeProviderReplies&&m||(this._activeProviderReplies=new Map,this._activeLine=h.y);var T=!1;this._linkProviders.forEach(function(_,R){var A;m?!((A=x._activeProviderReplies)===null||A===void 0)&&A.get(R)&&(T=x._checkLinkProviderResult(R,h,T)):_.provideLinks(h.y,function(N){var L,M;if(!x._isMouseOut){var F=N==null?void 0:N.map(function(H){return{link:H}});(L=x._activeProviderReplies)===null||L===void 0||L.set(R,F),T=x._checkLinkProviderResult(R,h,T),((M=x._activeProviderReplies)===null||M===void 0?void 0:M.size)===x._linkProviders.length&&x._removeIntersectingLinks(h.y,x._activeProviderReplies)}})})},c.prototype._removeIntersectingLinks=function(h,m){for(var x=new Set,T=0;T<m.size;T++){var _=m.get(T);if(_)for(var R=0;R<_.length;R++)for(var A=_[R],N=A.link.range.start.y<h?0:A.link.range.start.x,L=A.link.range.end.y>h?this._bufferService.cols:A.link.range.end.x,M=N;M<=L;M++){if(x.has(M)){_.splice(R--,1);break}x.add(M)}}},c.prototype._checkLinkProviderResult=function(h,m,x){var T,_=this;if(!this._activeProviderReplies)return x;for(var R=this._activeProviderReplies.get(h),A=!1,N=0;N<h;N++)this._activeProviderReplies.has(N)&&!this._activeProviderReplies.get(N)||(A=!0);if(!A&&R){var L=R.find(function(F){return _._linkAtPosition(F.link,m)});L&&(x=!0,this._handleNewLink(L))}if(this._activeProviderReplies.size===this._linkProviders.length&&!x)for(N=0;N<this._activeProviderReplies.size;N++){var M=(T=this._activeProviderReplies.get(N))===null||T===void 0?void 0:T.find(function(F){return _._linkAtPosition(F.link,m)});if(M){x=!0,this._handleNewLink(M);break}}return x},c.prototype._onClick=function(h){if(this._element&&this._mouseService&&this._currentLink){var m=this._positionFromMouseEvent(h,this._element,this._mouseService);m&&this._linkAtPosition(this._currentLink.link,m)&&this._currentLink.link.activate(h,this._currentLink.link.text)}},c.prototype._clearCurrentLink=function(h,m){this._element&&this._currentLink&&this._lastMouseEvent&&(!h||!m||this._currentLink.link.range.start.y>=h&&this._currentLink.link.range.end.y<=m)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,g.disposeArray(this._linkCacheDisposables))},c.prototype._handleNewLink=function(h){var m=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var x=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);x&&this._linkAtPosition(h.link,x)&&(this._currentLink=h,this._currentLink.state={decorations:{underline:h.link.decorations===void 0||h.link.decorations.underline,pointerCursor:h.link.decorations===void 0||h.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,h.link,this._lastMouseEvent),h.link.decorations={},Object.defineProperties(h.link.decorations,{pointerCursor:{get:function(){var T,_;return(_=(T=m._currentLink)===null||T===void 0?void 0:T.state)===null||_===void 0?void 0:_.decorations.pointerCursor},set:function(T){var _,R;!((_=m._currentLink)===null||_===void 0)&&_.state&&m._currentLink.state.decorations.pointerCursor!==T&&(m._currentLink.state.decorations.pointerCursor=T,m._currentLink.state.isHovered&&((R=m._element)===null||R===void 0||R.classList.toggle("xterm-cursor-pointer",T)))}},underline:{get:function(){var T,_;return(_=(T=m._currentLink)===null||T===void 0?void 0:T.state)===null||_===void 0?void 0:_.decorations.underline},set:function(T){var _,R,A;!((_=m._currentLink)===null||_===void 0)&&_.state&&((A=(R=m._currentLink)===null||R===void 0?void 0:R.state)===null||A===void 0?void 0:A.decorations.underline)!==T&&(m._currentLink.state.decorations.underline=T,m._currentLink.state.isHovered&&m._fireUnderlineEvent(h.link,T))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(T){var _=T.start===0?0:T.start+1+m._bufferService.buffer.ydisp;m._clearCurrentLink(_,T.end+1+m._bufferService.buffer.ydisp)})))}},c.prototype._linkHover=function(h,m,x){var T;!((T=this._currentLink)===null||T===void 0)&&T.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(m,!0),this._currentLink.state.decorations.pointerCursor&&h.classList.add("xterm-cursor-pointer")),m.hover&&m.hover(x,m.text)},c.prototype._fireUnderlineEvent=function(h,m){var x=h.range,T=this._bufferService.buffer.ydisp,_=this._createLinkUnderlineEvent(x.start.x-1,x.start.y-T-1,x.end.x,x.end.y-T-1,void 0);(m?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(_)},c.prototype._linkLeave=function(h,m,x){var T;!((T=this._currentLink)===null||T===void 0)&&T.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(m,!1),this._currentLink.state.decorations.pointerCursor&&h.classList.remove("xterm-cursor-pointer")),m.leave&&m.leave(x,m.text)},c.prototype._linkAtPosition=function(h,m){var x=h.range.start.y===h.range.end.y,T=h.range.start.y<m.y,_=h.range.end.y>m.y;return(x&&h.range.start.x<=m.x&&h.range.end.x>=m.x||T&&h.range.end.x>=m.x||_&&h.range.start.x<=m.x||T&&_)&&h.range.start.y<=m.y&&h.range.end.y>=m.y},c.prototype._positionFromMouseEvent=function(h,m,x){var T=x.getCoords(h,m,this._bufferService.cols,this._bufferService.rows);if(T)return{x:T[0],y:T[1]+this._bufferService.buffer.ydisp}},c.prototype._createLinkUnderlineEvent=function(h,m,x,T,_){return{x1:h,y1:m,x2:x,y2:T,cols:this._bufferService.cols,fg:_}},c=E([I(0,u.IBufferService)],c)}(g.Disposable);b.Linkifier2=S},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.CoreBrowserService=void 0;var Y=function(){function s(E){this._textarea=E}return Object.defineProperty(s.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),s}();b.CoreBrowserService=Y},function(Z,b,B){"use strict";var Y,s=this&&this.__extends||(Y=function(N,L){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,F){M.__proto__=F}||function(M,F){for(var H in F)F.hasOwnProperty(H)&&(M[H]=F[H])})(N,L)},function(N,L){function M(){this.constructor=N}Y(N,L),N.prototype=L===null?Object.create(L):(M.prototype=L.prototype,new M)});Object.defineProperty(b,"__esModule",{value:!0}),b.CoreTerminal=void 0;var E=B(2),I=B(1),u=B(66),d=B(67),g=B(68),y=B(74),S=B(75),v=B(0),c=B(76),h=B(77),m=B(78),x=B(80),T=B(81),_=B(19),R=B(82),A=function(N){function L(M){var F=N.call(this)||this;return F._onBinary=new v.EventEmitter,F._onData=new v.EventEmitter,F._onLineFeed=new v.EventEmitter,F._onResize=new v.EventEmitter,F._onScroll=new v.EventEmitter,F._instantiationService=new u.InstantiationService,F.optionsService=new y.OptionsService(M),F._instantiationService.setService(I.IOptionsService,F.optionsService),F._bufferService=F.register(F._instantiationService.createInstance(g.BufferService)),F._instantiationService.setService(I.IBufferService,F._bufferService),F._logService=F._instantiationService.createInstance(d.LogService),F._instantiationService.setService(I.ILogService,F._logService),F._coreService=F.register(F._instantiationService.createInstance(S.CoreService,function(){return F.scrollToBottom()})),F._instantiationService.setService(I.ICoreService,F._coreService),F._coreMouseService=F._instantiationService.createInstance(c.CoreMouseService),F._instantiationService.setService(I.ICoreMouseService,F._coreMouseService),F._dirtyRowService=F._instantiationService.createInstance(h.DirtyRowService),F._instantiationService.setService(I.IDirtyRowService,F._dirtyRowService),F.unicodeService=F._instantiationService.createInstance(m.UnicodeService),F._instantiationService.setService(I.IUnicodeService,F.unicodeService),F._charsetService=F._instantiationService.createInstance(x.CharsetService),F._instantiationService.setService(I.ICharsetService,F._charsetService),F._inputHandler=new _.InputHandler(F._bufferService,F._charsetService,F._coreService,F._dirtyRowService,F._logService,F.optionsService,F._coreMouseService,F.unicodeService),F.register(v.forwardEvent(F._inputHandler.onLineFeed,F._onLineFeed)),F.register(F._inputHandler),F.register(v.forwardEvent(F._bufferService.onResize,F._onResize)),F.register(v.forwardEvent(F._coreService.onData,F._onData)),F.register(v.forwardEvent(F._coreService.onBinary,F._onBinary)),F.register(F.optionsService.onOptionChange(function(H){return F._updateOptions(H)})),F._writeBuffer=new R.WriteBuffer(function(H){return F._inputHandler.parse(H)}),F}return s(L,N),Object.defineProperty(L.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),L.prototype.dispose=function(){var M;this._isDisposed||(N.prototype.dispose.call(this),(M=this._windowsMode)===null||M===void 0||M.dispose(),this._windowsMode=void 0)},L.prototype.write=function(M,F){this._writeBuffer.write(M,F)},L.prototype.writeSync=function(M){this._writeBuffer.writeSync(M)},L.prototype.resize=function(M,F){isNaN(M)||isNaN(F)||(M=Math.max(M,g.MINIMUM_COLS),F=Math.max(F,g.MINIMUM_ROWS),this._bufferService.resize(M,F))},L.prototype.scroll=function(M,F){F===void 0&&(F=!1);var H,P=this._bufferService.buffer;(H=this._cachedBlankLine)&&H.length===this.cols&&H.getFg(0)===M.fg&&H.getBg(0)===M.bg||(H=P.getBlankLine(M,F),this._cachedBlankLine=H),H.isWrapped=F;var V=P.ybase+P.scrollTop,G=P.ybase+P.scrollBottom;if(P.scrollTop===0){var Q=P.lines.isFull;G===P.lines.length-1?Q?P.lines.recycle().copyFrom(H):P.lines.push(H.clone()):P.lines.splice(G+1,0,H.clone()),Q?this._bufferService.isUserScrolling&&(P.ydisp=Math.max(P.ydisp-1,0)):(P.ybase++,this._bufferService.isUserScrolling||P.ydisp++)}else{var ne=G-V+1;P.lines.shiftElements(V+1,ne-1,-1),P.lines.set(G,H.clone())}this._bufferService.isUserScrolling||(P.ydisp=P.ybase),this._dirtyRowService.markRangeDirty(P.scrollTop,P.scrollBottom),this._onScroll.fire(P.ydisp)},L.prototype.scrollLines=function(M,F){var H=this._bufferService.buffer;if(M<0){if(H.ydisp===0)return;this._bufferService.isUserScrolling=!0}else M+H.ydisp>=H.ybase&&(this._bufferService.isUserScrolling=!1);var P=H.ydisp;H.ydisp=Math.max(Math.min(H.ydisp+M,H.ybase),0),P!==H.ydisp&&(F||this._onScroll.fire(H.ydisp))},L.prototype.scrollPages=function(M){this.scrollLines(M*(this.rows-1))},L.prototype.scrollToTop=function(){this.scrollLines(-this._bufferService.buffer.ydisp)},L.prototype.scrollToBottom=function(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)},L.prototype.scrollToLine=function(M){var F=M-this._bufferService.buffer.ydisp;F!==0&&this.scrollLines(F)},L.prototype.addEscHandler=function(M,F){return this._inputHandler.addEscHandler(M,F)},L.prototype.addDcsHandler=function(M,F){return this._inputHandler.addDcsHandler(M,F)},L.prototype.addCsiHandler=function(M,F){return this._inputHandler.addCsiHandler(M,F)},L.prototype.addOscHandler=function(M,F){return this._inputHandler.addOscHandler(M,F)},L.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},L.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset()},L.prototype._updateOptions=function(M){var F;switch(M){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((F=this._windowsMode)===null||F===void 0||F.dispose(),this._windowsMode=void 0)}},L.prototype._enableWindowsMode=function(){var M=this;if(!this._windowsMode){var F=[];F.push(this.onLineFeed(T.updateWindowsModeWrappedState.bind(null,this._bufferService))),F.push(this.addCsiHandler({final:"H"},function(){return T.updateWindowsModeWrappedState(M._bufferService),!1})),this._windowsMode={dispose:function(){for(var H=0,P=F;H<P.length;H++)P[H].dispose()}}}},L}(E.Disposable);b.CoreTerminal=A},function(Z,b,B){"use strict";var Y=this&&this.__spreadArrays||function(){for(var d=0,g=0,y=arguments.length;g<y;g++)d+=arguments[g].length;var S=Array(d),v=0;for(g=0;g<y;g++)for(var c=arguments[g],h=0,m=c.length;h<m;h++,v++)S[v]=c[h];return S};Object.defineProperty(b,"__esModule",{value:!0}),b.InstantiationService=b.ServiceCollection=void 0;var s=B(1),E=B(14),I=function(){function d(){for(var g=[],y=0;y<arguments.length;y++)g[y]=arguments[y];this._entries=new Map;for(var S=0,v=g;S<v.length;S++){var c=v[S],h=c[0],m=c[1];this.set(h,m)}}return d.prototype.set=function(g,y){var S=this._entries.get(g);return this._entries.set(g,y),S},d.prototype.forEach=function(g){this._entries.forEach(function(y,S){return g(S,y)})},d.prototype.has=function(g){return this._entries.has(g)},d.prototype.get=function(g){return this._entries.get(g)},d}();b.ServiceCollection=I;var u=function(){function d(){this._services=new I,this._services.set(s.IInstantiationService,this)}return d.prototype.setService=function(g,y){this._services.set(g,y)},d.prototype.getService=function(g){return this._services.get(g)},d.prototype.createInstance=function(g){for(var y=[],S=1;S<arguments.length;S++)y[S-1]=arguments[S];for(var v=E.getServiceDependencies(g).sort(function(R,A){return R.index-A.index}),c=[],h=0,m=v;h<m.length;h++){var x=m[h],T=this._services.get(x.id);if(!T)throw new Error("[createInstance] "+g.name+" depends on UNKNOWN service "+x.id+".");c.push(T)}var _=v.length>0?v[0].index:y.length;if(y.length!==_)throw new Error("[createInstance] First service dependency of "+g.name+" at position "+(_+1)+" conflicts with "+y.length+" static arguments");return new(g.bind.apply(g,Y([void 0],Y(y,c))))},d}();b.InstantiationService=u},function(Z,b,B){"use strict";var Y=this&&this.__decorate||function(y,S,v,c){var h,m=arguments.length,x=m<3?S:c===null?c=Object.getOwnPropertyDescriptor(S,v):c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(y,S,v,c);else for(var T=y.length-1;T>=0;T--)(h=y[T])&&(x=(m<3?h(x):m>3?h(S,v,x):h(S,v))||x);return m>3&&x&&Object.defineProperty(S,v,x),x},s=this&&this.__param||function(y,S){return function(v,c){S(v,c,y)}},E=this&&this.__spreadArrays||function(){for(var y=0,S=0,v=arguments.length;S<v;S++)y+=arguments[S].length;var c=Array(y),h=0;for(S=0;S<v;S++)for(var m=arguments[S],x=0,T=m.length;x<T;x++,h++)c[h]=m[x];return c};Object.defineProperty(b,"__esModule",{value:!0}),b.LogService=b.LogLevel=void 0;var I,u=B(1);(function(y){y[y.DEBUG=0]="DEBUG",y[y.INFO=1]="INFO",y[y.WARN=2]="WARN",y[y.ERROR=3]="ERROR",y[y.OFF=4]="OFF"})(I=b.LogLevel||(b.LogLevel={}));var d={debug:I.DEBUG,info:I.INFO,warn:I.WARN,error:I.ERROR,off:I.OFF},g=function(){function y(S){var v=this;this._optionsService=S,this._updateLogLevel(),this._optionsService.onOptionChange(function(c){c==="logLevel"&&v._updateLogLevel()})}return y.prototype._updateLogLevel=function(){this._logLevel=d[this._optionsService.options.logLevel]},y.prototype._evalLazyOptionalParams=function(S){for(var v=0;v<S.length;v++)typeof S[v]=="function"&&(S[v]=S[v]())},y.prototype._log=function(S,v,c){this._evalLazyOptionalParams(c),S.call.apply(S,E([console,"xterm.js: "+v],c))},y.prototype.debug=function(S){for(var v=[],c=1;c<arguments.length;c++)v[c-1]=arguments[c];this._logLevel<=I.DEBUG&&this._log(console.log,S,v)},y.prototype.info=function(S){for(var v=[],c=1;c<arguments.length;c++)v[c-1]=arguments[c];this._logLevel<=I.INFO&&this._log(console.info,S,v)},y.prototype.warn=function(S){for(var v=[],c=1;c<arguments.length;c++)v[c-1]=arguments[c];this._logLevel<=I.WARN&&this._log(console.warn,S,v)},y.prototype.error=function(S){for(var v=[],c=1;c<arguments.length;c++)v[c-1]=arguments[c];this._logLevel<=I.ERROR&&this._log(console.error,S,v)},y=Y([s(0,u.IOptionsService)],y)}();b.LogService=g},function(Z,b,B){"use strict";var Y,s=this&&this.__extends||(Y=function(v,c){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var x in m)m.hasOwnProperty(x)&&(h[x]=m[x])})(v,c)},function(v,c){function h(){this.constructor=v}Y(v,c),v.prototype=c===null?Object.create(c):(h.prototype=c.prototype,new h)}),E=this&&this.__decorate||function(v,c,h,m){var x,T=arguments.length,_=T<3?c:m===null?m=Object.getOwnPropertyDescriptor(c,h):m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(v,c,h,m);else for(var R=v.length-1;R>=0;R--)(x=v[R])&&(_=(T<3?x(_):T>3?x(c,h,_):x(c,h))||_);return T>3&&_&&Object.defineProperty(c,h,_),_},I=this&&this.__param||function(v,c){return function(h,m){c(h,m,v)}};Object.defineProperty(b,"__esModule",{value:!0}),b.BufferService=b.MINIMUM_ROWS=b.MINIMUM_COLS=void 0;var u=B(1),d=B(69),g=B(0),y=B(2);b.MINIMUM_COLS=2,b.MINIMUM_ROWS=1;var S=function(v){function c(h){var m=v.call(this)||this;return m._optionsService=h,m.isUserScrolling=!1,m._onResize=new g.EventEmitter,m.cols=Math.max(h.options.cols,b.MINIMUM_COLS),m.rows=Math.max(h.options.rows,b.MINIMUM_ROWS),m.buffers=new d.BufferSet(h,m),m}return s(c,v),Object.defineProperty(c.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),c.prototype.dispose=function(){v.prototype.dispose.call(this),this.buffers.dispose()},c.prototype.resize=function(h,m){this.cols=h,this.rows=m,this.buffers.resize(h,m),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:h,rows:m})},c.prototype.reset=function(){this.buffers.dispose(),this.buffers=new d.BufferSet(this._optionsService,this),this.isUserScrolling=!1},c=E([I(0,u.IOptionsService)],c)}(y.Disposable);b.BufferService=S},function(Z,b,B){"use strict";var Y,s=this&&this.__extends||(Y=function(d,g){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,S){y.__proto__=S}||function(y,S){for(var v in S)S.hasOwnProperty(v)&&(y[v]=S[v])})(d,g)},function(d,g){function y(){this.constructor=d}Y(d,g),d.prototype=g===null?Object.create(g):(y.prototype=g.prototype,new y)});Object.defineProperty(b,"__esModule",{value:!0}),b.BufferSet=void 0;var E=B(70),I=B(0),u=function(d){function g(y,S){var v=d.call(this)||this;return v._onBufferActivate=v.register(new I.EventEmitter),v._normal=new E.Buffer(!0,y,S),v._normal.fillViewportRows(),v._alt=new E.Buffer(!1,y,S),v._activeBuffer=v._normal,v.setupTabStops(),v}return s(g,d),Object.defineProperty(g.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),g.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}))},g.prototype.activateAltBuffer=function(y){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(y),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}))},g.prototype.resize=function(y,S){this._normal.resize(y,S),this._alt.resize(y,S)},g.prototype.setupTabStops=function(y){this._normal.setupTabStops(y),this._alt.setupTabStops(y)},g}(B(2).Disposable);b.BufferSet=u},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.BufferStringIterator=b.Buffer=b.MAX_BUFFER_SIZE=void 0;var Y=B(71),s=B(16),E=B(4),I=B(3),u=B(72),d=B(73),g=B(20),y=B(6);b.MAX_BUFFER_SIZE=4294967295;var S=function(){function c(h,m,x){this._hasScrollback=h,this._optionsService=m,this._bufferService=x,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=s.DEFAULT_ATTR_DATA.clone(),this.savedCharset=g.DEFAULT_CHARSET,this.markers=[],this._nullCell=E.CellData.fromCharData([0,I.NULL_CELL_CHAR,I.NULL_CELL_WIDTH,I.NULL_CELL_CODE]),this._whitespaceCell=E.CellData.fromCharData([0,I.WHITESPACE_CELL_CHAR,I.WHITESPACE_CELL_WIDTH,I.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new Y.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return c.prototype.getNullCell=function(h){return h?(this._nullCell.fg=h.fg,this._nullCell.bg=h.bg,this._nullCell.extended=h.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new y.ExtendedAttrs),this._nullCell},c.prototype.getWhitespaceCell=function(h){return h?(this._whitespaceCell.fg=h.fg,this._whitespaceCell.bg=h.bg,this._whitespaceCell.extended=h.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new y.ExtendedAttrs),this._whitespaceCell},c.prototype.getBlankLine=function(h,m){return new s.BufferLine(this._bufferService.cols,this.getNullCell(h),m)},Object.defineProperty(c.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"isCursorInViewport",{get:function(){var h=this.ybase+this.y-this.ydisp;return h>=0&&h<this._rows},enumerable:!1,configurable:!0}),c.prototype._getCorrectBufferLength=function(h){if(!this._hasScrollback)return h;var m=h+this._optionsService.options.scrollback;return m>b.MAX_BUFFER_SIZE?b.MAX_BUFFER_SIZE:m},c.prototype.fillViewportRows=function(h){if(this.lines.length===0){h===void 0&&(h=s.DEFAULT_ATTR_DATA);for(var m=this._rows;m--;)this.lines.push(this.getBlankLine(h))}},c.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new Y.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},c.prototype.resize=function(h,m){var x=this.getNullCell(s.DEFAULT_ATTR_DATA),T=this._getCorrectBufferLength(m);if(T>this.lines.maxLength&&(this.lines.maxLength=T),this.lines.length>0){if(this._cols<h)for(var _=0;_<this.lines.length;_++)this.lines.get(_).resize(h,x);var R=0;if(this._rows<m)for(var A=this._rows;A<m;A++)this.lines.length<m+this.ybase&&(this._optionsService.options.windowsMode?this.lines.push(new s.BufferLine(h,x)):this.ybase>0&&this.lines.length<=this.ybase+this.y+R+1?(this.ybase--,R++,this.ydisp>0&&this.ydisp--):this.lines.push(new s.BufferLine(h,x)));else for(A=this._rows;A>m;A--)this.lines.length>m+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(T<this.lines.maxLength){var N=this.lines.length-T;N>0&&(this.lines.trimStart(N),this.ybase=Math.max(this.ybase-N,0),this.ydisp=Math.max(this.ydisp-N,0),this.savedY=Math.max(this.savedY-N,0)),this.lines.maxLength=T}this.x=Math.min(this.x,h-1),this.y=Math.min(this.y,m-1),R&&(this.y+=R),this.savedX=Math.min(this.savedX,h-1),this.scrollTop=0}if(this.scrollBottom=m-1,this._isReflowEnabled&&(this._reflow(h,m),this._cols>h))for(_=0;_<this.lines.length;_++)this.lines.get(_).resize(h,x);this._cols=h,this._rows=m},Object.defineProperty(c.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.options.windowsMode},enumerable:!1,configurable:!0}),c.prototype._reflow=function(h,m){this._cols!==h&&(h>this._cols?this._reflowLarger(h,m):this._reflowSmaller(h,m))},c.prototype._reflowLarger=function(h,m){var x=u.reflowLargerGetLinesToRemove(this.lines,this._cols,h,this.ybase+this.y,this.getNullCell(s.DEFAULT_ATTR_DATA));if(x.length>0){var T=u.reflowLargerCreateNewLayout(this.lines,x);u.reflowLargerApplyNewLayout(this.lines,T.layout),this._reflowLargerAdjustViewport(h,m,T.countRemoved)}},c.prototype._reflowLargerAdjustViewport=function(h,m,x){for(var T=this.getNullCell(s.DEFAULT_ATTR_DATA),_=x;_-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<m&&this.lines.push(new s.BufferLine(h,T))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-x,0)},c.prototype._reflowSmaller=function(h,m){for(var x=this.getNullCell(s.DEFAULT_ATTR_DATA),T=[],_=0,R=this.lines.length-1;R>=0;R--){var A=this.lines.get(R);if(!(!A||!A.isWrapped&&A.getTrimmedLength()<=h)){for(var N=[A];A.isWrapped&&R>0;)A=this.lines.get(--R),N.unshift(A);var L=this.ybase+this.y;if(!(L>=R&&L<R+N.length)){var M=N[N.length-1].getTrimmedLength(),F=u.reflowSmallerGetNewLineLengths(N,this._cols,h),H=F.length-N.length,P=void 0;P=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+H):Math.max(0,this.lines.length-this.lines.maxLength+H);for(var V=[],G=0;G<H;G++){var Q=this.getBlankLine(s.DEFAULT_ATTR_DATA,!0);V.push(Q)}V.length>0&&(T.push({start:R+N.length+_,newLines:V}),_+=V.length),N.push.apply(N,V);var ne=F.length-1,ue=F[ne];ue===0&&(ue=F[--ne]);for(var ae=N.length-H-1,he=M;ae>=0;){var ce=Math.min(he,ue);if(N[ne].copyCellsFrom(N[ae],he-ce,ue-ce,ce,!0),(ue-=ce)===0&&(ue=F[--ne]),(he-=ce)===0){ae--;var we=Math.max(ae,0);he=u.getWrappedLineTrimmedLength(N,we,this._cols)}}for(G=0;G<N.length;G++)F[G]<h&&N[G].setCell(F[G],x);for(var me=H-P;me-- >0;)this.ybase===0?this.y<m-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+_)-m&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+H,this.ybase+m-1)}}}if(T.length>0){var Le=[],ee=[];for(G=0;G<this.lines.length;G++)ee.push(this.lines.get(G));var se=this.lines.length,le=se-1,ke=0,De=T[ke];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+_);var Be=0;for(G=Math.min(this.lines.maxLength-1,se+_-1);G>=0;G--)if(De&&De.start>le+Be){for(var He=De.newLines.length-1;He>=0;He--)this.lines.set(G--,De.newLines[He]);G++,Le.push({index:le+1,amount:De.newLines.length}),Be+=De.newLines.length,De=T[++ke]}else this.lines.set(G,ee[le--]);var Fe=0;for(G=Le.length-1;G>=0;G--)Le[G].index+=Fe,this.lines.onInsertEmitter.fire(Le[G]),Fe+=Le[G].amount;var Je=Math.max(0,se+_-this.lines.maxLength);Je>0&&this.lines.onTrimEmitter.fire(Je)}},c.prototype.stringIndexToBufferIndex=function(h,m,x){for(x===void 0&&(x=!1);m;){var T=this.lines.get(h);if(!T)return[-1,-1];for(var _=x?T.getTrimmedLength():T.length,R=0;R<_;++R)if(T.get(R)[I.CHAR_DATA_WIDTH_INDEX]&&(m-=T.get(R)[I.CHAR_DATA_CHAR_INDEX].length||1),m<0)return[h,R];h++}return[h,0]},c.prototype.translateBufferLineToString=function(h,m,x,T){x===void 0&&(x=0);var _=this.lines.get(h);return _?_.translateToString(m,x,T):""},c.prototype.getWrappedRangeForLine=function(h){for(var m=h,x=h;m>0&&this.lines.get(m).isWrapped;)m--;for(;x+1<this.lines.length&&this.lines.get(x+1).isWrapped;)x++;return{first:m,last:x}},c.prototype.setupTabStops=function(h){for(h!=null?this.tabs[h]||(h=this.prevStop(h)):(this.tabs={},h=0);h<this._cols;h+=this._optionsService.options.tabStopWidth)this.tabs[h]=!0},c.prototype.prevStop=function(h){for(h==null&&(h=this.x);!this.tabs[--h]&&h>0;);return h>=this._cols?this._cols-1:h<0?0:h},c.prototype.nextStop=function(h){for(h==null&&(h=this.x);!this.tabs[++h]&&h<this._cols;);return h>=this._cols?this._cols-1:h<0?0:h},c.prototype.addMarker=function(h){var m=this,x=new d.Marker(h);return this.markers.push(x),x.register(this.lines.onTrim(function(T){x.line-=T,x.line<0&&x.dispose()})),x.register(this.lines.onInsert(function(T){x.line>=T.index&&(x.line+=T.amount)})),x.register(this.lines.onDelete(function(T){x.line>=T.index&&x.line<T.index+T.amount&&x.dispose(),x.line>T.index&&(x.line-=T.amount)})),x.register(x.onDispose(function(){return m._removeMarker(x)})),x},c.prototype._removeMarker=function(h){this.markers.splice(this.markers.indexOf(h),1)},c.prototype.iterator=function(h,m,x,T,_){return new v(this,h,m,x,T,_)},c}();b.Buffer=S;var v=function(){function c(h,m,x,T,_,R){x===void 0&&(x=0),T===void 0&&(T=h.lines.length),_===void 0&&(_=0),R===void 0&&(R=0),this._buffer=h,this._trimRight=m,this._startIndex=x,this._endIndex=T,this._startOverscan=_,this._endOverscan=R,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return c.prototype.hasNext=function(){return this._current<this._endIndex},c.prototype.next=function(){var h=this._buffer.getWrappedRangeForLine(this._current);h.first<this._startIndex-this._startOverscan&&(h.first=this._startIndex-this._startOverscan),h.last>this._endIndex+this._endOverscan&&(h.last=this._endIndex+this._endOverscan),h.first=Math.max(h.first,0),h.last=Math.min(h.last,this._buffer.lines.length);for(var m="",x=h.first;x<=h.last;++x)m+=this._buffer.translateBufferLineToString(x,this._trimRight);return this._current=h.last+1,{range:h,content:m}},c}();b.BufferStringIterator=v},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.CircularList=void 0;var Y=B(0),s=function(){function E(I){this._maxLength=I,this.onDeleteEmitter=new Y.EventEmitter,this.onInsertEmitter=new Y.EventEmitter,this.onTrimEmitter=new Y.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(E.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"maxLength",{get:function(){return this._maxLength},set:function(I){if(this._maxLength!==I){for(var u=new Array(I),d=0;d<Math.min(I,this.length);d++)u[d]=this._array[this._getCyclicIndex(d)];this._array=u,this._maxLength=I,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"length",{get:function(){return this._length},set:function(I){if(I>this._length)for(var u=this._length;u<I;u++)this._array[u]=void 0;this._length=I},enumerable:!1,configurable:!0}),E.prototype.get=function(I){return this._array[this._getCyclicIndex(I)]},E.prototype.set=function(I,u){this._array[this._getCyclicIndex(I)]=u},E.prototype.push=function(I){this._array[this._getCyclicIndex(this._length)]=I,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},E.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(E.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),E.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},E.prototype.splice=function(I,u){for(var d=[],g=2;g<arguments.length;g++)d[g-2]=arguments[g];if(u){for(var y=I;y<this._length-u;y++)this._array[this._getCyclicIndex(y)]=this._array[this._getCyclicIndex(y+u)];this._length-=u}for(y=this._length-1;y>=I;y--)this._array[this._getCyclicIndex(y+d.length)]=this._array[this._getCyclicIndex(y)];for(y=0;y<d.length;y++)this._array[this._getCyclicIndex(I+y)]=d[y];if(this._length+d.length>this._maxLength){var S=this._length+d.length-this._maxLength;this._startIndex+=S,this._length=this._maxLength,this.onTrimEmitter.fire(S)}else this._length+=d.length},E.prototype.trimStart=function(I){I>this._length&&(I=this._length),this._startIndex+=I,this._length-=I,this.onTrimEmitter.fire(I)},E.prototype.shiftElements=function(I,u,d){if(!(u<=0)){if(I<0||I>=this._length)throw new Error("start argument out of range");if(I+d<0)throw new Error("Cannot shift elements in list beyond index 0");if(d>0){for(var g=u-1;g>=0;g--)this.set(I+g+d,this.get(I+g));var y=I+u+d-this._length;if(y>0)for(this._length+=y;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(g=0;g<u;g++)this.set(I+g+d,this.get(I+g))}},E.prototype._getCyclicIndex=function(I){return(this._startIndex+I)%this._maxLength},E}();b.CircularList=s},function(Z,b,B){"use strict";function Y(s,E,I){if(E===s.length-1)return s[E].getTrimmedLength();var u=!s[E].hasContent(I-1)&&s[E].getWidth(I-1)===1,d=s[E+1].getWidth(0)===2;return u&&d?I-1:I}Object.defineProperty(b,"__esModule",{value:!0}),b.getWrappedLineTrimmedLength=b.reflowSmallerGetNewLineLengths=b.reflowLargerApplyNewLayout=b.reflowLargerCreateNewLayout=b.reflowLargerGetLinesToRemove=void 0,b.reflowLargerGetLinesToRemove=function(s,E,I,u,d){for(var g=[],y=0;y<s.length-1;y++){var S=y,v=s.get(++S);if(v.isWrapped){for(var c=[s.get(y)];S<s.length&&v.isWrapped;)c.push(v),v=s.get(++S);if(u>=y&&u<S)y+=c.length-1;else{for(var h=0,m=Y(c,h,E),x=1,T=0;x<c.length;){var _=Y(c,x,E),R=_-T,A=I-m,N=Math.min(R,A);c[h].copyCellsFrom(c[x],T,m,N,!1),(m+=N)===I&&(h++,m=0),(T+=N)===_&&(x++,T=0),m===0&&h!==0&&c[h-1].getWidth(I-1)===2&&(c[h].copyCellsFrom(c[h-1],I-1,m++,1,!1),c[h-1].setCell(I-1,d))}c[h].replaceCells(m,I,d);for(var L=0,M=c.length-1;M>0&&(M>h||c[M].getTrimmedLength()===0);M--)L++;L>0&&(g.push(y+c.length-L),g.push(L)),y+=c.length-1}}}return g},b.reflowLargerCreateNewLayout=function(s,E){for(var I=[],u=0,d=E[u],g=0,y=0;y<s.length;y++)if(d===y){var S=E[++u];s.onDeleteEmitter.fire({index:y-g,amount:S}),y+=S-1,g+=S,d=E[++u]}else I.push(y);return{layout:I,countRemoved:g}},b.reflowLargerApplyNewLayout=function(s,E){for(var I=[],u=0;u<E.length;u++)I.push(s.get(E[u]));for(u=0;u<I.length;u++)s.set(u,I[u]);s.length=E.length},b.reflowSmallerGetNewLineLengths=function(s,E,I){for(var u=[],d=s.map(function(m,x){return Y(s,x,E)}).reduce(function(m,x){return m+x}),g=0,y=0,S=0;S<d;){if(d-S<I){u.push(d-S);break}g+=I;var v=Y(s,y,E);g>v&&(g-=v,y++);var c=s[y].getWidth(g-1)===2;c&&g--;var h=c?I-1:I;u.push(h),S+=h}return u},b.getWrappedLineTrimmedLength=Y},function(Z,b,B){"use strict";var Y,s=this&&this.__extends||(Y=function(u,d){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,y){g.__proto__=y}||function(g,y){for(var S in y)y.hasOwnProperty(S)&&(g[S]=y[S])})(u,d)},function(u,d){function g(){this.constructor=u}Y(u,d),u.prototype=d===null?Object.create(d):(g.prototype=d.prototype,new g)});Object.defineProperty(b,"__esModule",{value:!0}),b.Marker=void 0;var E=B(0),I=function(u){function d(g){var y=u.call(this)||this;return y.line=g,y._id=d._nextId++,y.isDisposed=!1,y._onDispose=new E.EventEmitter,y}return s(d,u),Object.defineProperty(d.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),d.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},d._nextId=1,d}(B(2).Disposable);b.Marker=I},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.OptionsService=b.DEFAULT_OPTIONS=b.DEFAULT_BELL_SOUND=void 0;var Y=B(0),s=B(11),E=B(33);b.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",b.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:b.DEFAULT_BELL_SOUND,bellStyle:"none",drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,linkTooltipHoverDuration:500,letterSpacing:0,logLevel:"info",scrollback:1e3,scrollSensitivity:1,screenReaderMode:!1,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!0,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:s.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",convertEol:!1,termName:"xterm",cancelEvents:!1});var I=["cols","rows"],u=function(){function d(g){this._onOptionChange=new Y.EventEmitter,this.options=E.clone(b.DEFAULT_OPTIONS);for(var y=0,S=Object.keys(g);y<S.length;y++){var v=S[y];if(v in this.options){var c=g[v];this.options[v]=c}}}return Object.defineProperty(d.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),d.prototype.setOption=function(g,y){if(!(g in b.DEFAULT_OPTIONS))throw new Error('No option with key "'+g+'"');if(I.indexOf(g)!==-1)throw new Error('Option "'+g+'" can only be set in the constructor');this.options[g]!==y&&(y=this._sanitizeAndValidateOption(g,y),this.options[g]!==y&&(this.options[g]=y,this._onOptionChange.fire(g)))},d.prototype._sanitizeAndValidateOption=function(g,y){switch(g){case"bellStyle":case"cursorStyle":case"fontWeight":case"fontWeightBold":case"rendererType":case"wordSeparator":y||(y=b.DEFAULT_OPTIONS[g]);break;case"cursorWidth":y=Math.floor(y);case"lineHeight":case"tabStopWidth":if(y<1)throw new Error(g+" cannot be less than 1, value: "+y);break;case"minimumContrastRatio":y=Math.max(1,Math.min(21,Math.round(10*y)/10));break;case"scrollback":if((y=Math.min(y,4294967295))<0)throw new Error(g+" cannot be less than 0, value: "+y);break;case"fastScrollSensitivity":case"scrollSensitivity":if(y<=0)throw new Error(g+" cannot be less than or equal to 0, value: "+y)}return y},d.prototype.getOption=function(g){if(!(g in b.DEFAULT_OPTIONS))throw new Error('No option with key "'+g+'"');return this.options[g]},d}();b.OptionsService=u},function(Z,b,B){"use strict";var Y,s=this&&this.__extends||(Y=function(h,m){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,T){x.__proto__=T}||function(x,T){for(var _ in T)T.hasOwnProperty(_)&&(x[_]=T[_])})(h,m)},function(h,m){function x(){this.constructor=h}Y(h,m),h.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}),E=this&&this.__decorate||function(h,m,x,T){var _,R=arguments.length,A=R<3?m:T===null?T=Object.getOwnPropertyDescriptor(m,x):T;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")A=Reflect.decorate(h,m,x,T);else for(var N=h.length-1;N>=0;N--)(_=h[N])&&(A=(R<3?_(A):R>3?_(m,x,A):_(m,x))||A);return R>3&&A&&Object.defineProperty(m,x,A),A},I=this&&this.__param||function(h,m){return function(x,T){m(x,T,h)}};Object.defineProperty(b,"__esModule",{value:!0}),b.CoreService=void 0;var u=B(1),d=B(0),g=B(33),y=B(2),S=Object.freeze({insertMode:!1}),v=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),c=function(h){function m(x,T,_,R){var A=h.call(this)||this;return A._bufferService=T,A._logService=_,A._optionsService=R,A.isCursorInitialized=!1,A.isCursorHidden=!1,A._onData=A.register(new d.EventEmitter),A._onUserInput=A.register(new d.EventEmitter),A._onBinary=A.register(new d.EventEmitter),A._scrollToBottom=x,A.register({dispose:function(){return A._scrollToBottom=void 0}}),A.modes=g.clone(S),A.decPrivateModes=g.clone(v),A}return s(m,h),Object.defineProperty(m.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),m.prototype.reset=function(){this.modes=g.clone(S),this.decPrivateModes=g.clone(v)},m.prototype.triggerDataEvent=function(x,T){if(T===void 0&&(T=!1),!this._optionsService.options.disableStdin){var _=this._bufferService.buffer;_.ybase!==_.ydisp&&this._scrollToBottom(),T&&this._onUserInput.fire(),this._logService.debug('sending data "'+x+'"',function(){return x.split("").map(function(R){return R.charCodeAt(0)})}),this._onData.fire(x)}},m.prototype.triggerBinaryEvent=function(x){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+x+'"',function(){return x.split("").map(function(T){return T.charCodeAt(0)})}),this._onBinary.fire(x))},m=E([I(1,u.IBufferService),I(2,u.ILogService),I(3,u.IOptionsService)],m)}(y.Disposable);b.CoreService=c},function(Z,b,B){"use strict";var Y=this&&this.__decorate||function(v,c,h,m){var x,T=arguments.length,_=T<3?c:m===null?m=Object.getOwnPropertyDescriptor(c,h):m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(v,c,h,m);else for(var R=v.length-1;R>=0;R--)(x=v[R])&&(_=(T<3?x(_):T>3?x(c,h,_):x(c,h))||_);return T>3&&_&&Object.defineProperty(c,h,_),_},s=this&&this.__param||function(v,c){return function(h,m){c(h,m,v)}};Object.defineProperty(b,"__esModule",{value:!0}),b.CoreMouseService=void 0;var E=B(1),I=B(0),u={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(v){return v.button!==4&&v.action===1&&(v.ctrl=!1,v.alt=!1,v.shift=!1,!0)}},VT200:{events:19,restrict:function(v){return v.action!==32}},DRAG:{events:23,restrict:function(v){return v.action!==32||v.button!==3}},ANY:{events:31,restrict:function(v){return!0}}};function d(v,c){var h=(v.ctrl?16:0)|(v.shift?4:0)|(v.alt?8:0);return v.button===4?(h|=64,h|=v.action):(h|=3&v.button,4&v.button&&(h|=64),8&v.button&&(h|=128),v.action===32?h|=32:v.action!==0||c||(h|=3)),h}var g=String.fromCharCode,y={DEFAULT:function(v){var c=[d(v,!1)+32,v.col+32,v.row+32];return c[0]>255||c[1]>255||c[2]>255?"":"\x1B[M"+g(c[0])+g(c[1])+g(c[2])},SGR:function(v){var c=v.action===0&&v.button!==4?"m":"M";return"\x1B[<"+d(v,!0)+";"+v.col+";"+v.row+c}},S=function(){function v(c,h){this._bufferService=c,this._coreService=h,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new I.EventEmitter,this._lastEvent=null;for(var m=0,x=Object.keys(u);m<x.length;m++){var T=x[m];this.addProtocol(T,u[T])}for(var _=0,R=Object.keys(y);_<R.length;_++){var A=R[_];this.addEncoding(A,y[A])}this.reset()}return v.prototype.addProtocol=function(c,h){this._protocols[c]=h},v.prototype.addEncoding=function(c,h){this._encodings[c]=h},Object.defineProperty(v.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(c){if(!this._protocols[c])throw new Error('unknown protocol "'+c+'"');this._activeProtocol=c,this._onProtocolChange.fire(this._protocols[c].events)},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"areMouseEventsActive",{get:function(){return this._protocols[this._activeProtocol].events!==0},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(c){if(!this._encodings[c])throw new Error('unknown encoding "'+c+'"');this._activeEncoding=c},enumerable:!1,configurable:!0}),v.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(v.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),v.prototype.triggerMouseEvent=function(c){if(c.col<0||c.col>=this._bufferService.cols||c.row<0||c.row>=this._bufferService.rows||c.button===4&&c.action===32||c.button===3&&c.action!==32||c.button!==4&&(c.action===2||c.action===3)||(c.col++,c.row++,c.action===32&&this._lastEvent&&this._compareEvents(this._lastEvent,c))||!this._protocols[this._activeProtocol].restrict(c))return!1;var h=this._encodings[this._activeEncoding](c);return h&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(h):this._coreService.triggerDataEvent(h,!0)),this._lastEvent=c,!0},v.prototype.explainEvents=function(c){return{down:!!(1&c),up:!!(2&c),drag:!!(4&c),move:!!(8&c),wheel:!!(16&c)}},v.prototype._compareEvents=function(c,h){return c.col===h.col&&c.row===h.row&&c.button===h.button&&c.action===h.action&&c.ctrl===h.ctrl&&c.alt===h.alt&&c.shift===h.shift},v=Y([s(0,E.IBufferService),s(1,E.ICoreService)],v)}();b.CoreMouseService=S},function(Z,b,B){"use strict";var Y=this&&this.__decorate||function(u,d,g,y){var S,v=arguments.length,c=v<3?d:y===null?y=Object.getOwnPropertyDescriptor(d,g):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(u,d,g,y);else for(var h=u.length-1;h>=0;h--)(S=u[h])&&(c=(v<3?S(c):v>3?S(d,g,c):S(d,g))||c);return v>3&&c&&Object.defineProperty(d,g,c),c},s=this&&this.__param||function(u,d){return function(g,y){d(g,y,u)}};Object.defineProperty(b,"__esModule",{value:!0}),b.DirtyRowService=void 0;var E=B(1),I=function(){function u(d){this._bufferService=d,this.clearRange()}return Object.defineProperty(u.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),u.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},u.prototype.markDirty=function(d){d<this._start?this._start=d:d>this._end&&(this._end=d)},u.prototype.markRangeDirty=function(d,g){if(d>g){var y=d;d=g,g=y}d<this._start&&(this._start=d),g>this._end&&(this._end=g)},u.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},u=Y([s(0,E.IBufferService)],u)}();b.DirtyRowService=I},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.UnicodeService=void 0;var Y=B(0),s=B(79),E=function(){function I(){this._providers=Object.create(null),this._active="",this._onChange=new Y.EventEmitter;var u=new s.UnicodeV6;this.register(u),this._active=u.version,this._activeProvider=u}return Object.defineProperty(I.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"activeVersion",{get:function(){return this._active},set:function(u){if(!this._providers[u])throw new Error('unknown Unicode version "'+u+'"');this._active=u,this._activeProvider=this._providers[u],this._onChange.fire(u)},enumerable:!1,configurable:!0}),I.prototype.register=function(u){this._providers[u.version]=u},I.prototype.wcwidth=function(u){return this._activeProvider.wcwidth(u)},I.prototype.getStringCellWidth=function(u){for(var d=0,g=u.length,y=0;y<g;++y){var S=u.charCodeAt(y);if(55296<=S&&S<=56319){if(++y>=g)return d+this.wcwidth(S);var v=u.charCodeAt(y);56320<=v&&v<=57343?S=1024*(S-55296)+v-56320+65536:d+=this.wcwidth(v)}d+=this.wcwidth(S)}return d},I}();b.UnicodeService=E},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.UnicodeV6=void 0;var Y,s=B(15),E=[[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]],I=[[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]],u=function(){function d(){if(this.version="6",!Y){Y=new Uint8Array(65536),s.fill(Y,1),Y[0]=0,s.fill(Y,0,1,32),s.fill(Y,0,127,160),s.fill(Y,2,4352,4448),Y[9001]=2,Y[9002]=2,s.fill(Y,2,11904,42192),Y[12351]=1,s.fill(Y,2,44032,55204),s.fill(Y,2,63744,64256),s.fill(Y,2,65040,65050),s.fill(Y,2,65072,65136),s.fill(Y,2,65280,65377),s.fill(Y,2,65504,65511);for(var g=0;g<E.length;++g)s.fill(Y,0,E[g][0],E[g][1]+1)}}return d.prototype.wcwidth=function(g){return g<32?0:g<127?1:g<65536?Y[g]:function(y,S){var v,c=0,h=S.length-1;if(y<S[0][0]||y>S[h][1])return!1;for(;h>=c;)if(y>S[v=c+h>>1][1])c=v+1;else{if(!(y<S[v][0]))return!0;h=v-1}return!1}(g,I)?0:g>=131072&&g<=196605||g>=196608&&g<=262141?2:1},d}();b.UnicodeV6=u},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.CharsetService=void 0;var Y=function(){function s(){this.glevel=0,this._charsets=[]}return s.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},s.prototype.setgLevel=function(E){this.glevel=E,this.charset=this._charsets[E]},s.prototype.setgCharset=function(E,I){this._charsets[E]=I,this.glevel===E&&(this.charset=I)},s}();b.CharsetService=Y},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.updateWindowsModeWrappedState=void 0;var Y=B(3);b.updateWindowsModeWrappedState=function(s){var E=s.buffer.lines.get(s.buffer.ybase+s.buffer.y-1),I=E==null?void 0:E.get(s.cols-1),u=s.buffer.lines.get(s.buffer.ybase+s.buffer.y);u&&I&&(u.isWrapped=I[Y.CHAR_DATA_CODE_INDEX]!==Y.NULL_CELL_CODE&&I[Y.CHAR_DATA_CODE_INDEX]!==Y.WHITESPACE_CELL_CODE)}},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.WriteBuffer=void 0;var Y=function(){function s(E){this._action=E,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return s.prototype.writeSync=function(E){if(this._writeBuffer.length){for(var I=this._bufferOffset;I<this._writeBuffer.length;++I){var u=this._writeBuffer[I],d=this._callbacks[I];this._action(u),d&&d()}this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=2147483647}this._action(E)},s.prototype.write=function(E,I){var u=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 u._innerWrite()})),this._pendingData+=E.length,this._writeBuffer.push(E),this._callbacks.push(I)},s.prototype._innerWrite=function(){for(var E=this,I=Date.now();this._writeBuffer.length>this._bufferOffset;){var u=this._writeBuffer[this._bufferOffset],d=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(u),this._pendingData-=u.length,d&&d(),Date.now()-I>=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 E._innerWrite()},0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},s}();b.WriteBuffer=Y},function(Z,b,B){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.AddonManager=void 0;var Y=function(){function s(){this._addons=[]}return s.prototype.dispose=function(){for(var E=this._addons.length-1;E>=0;E--)this._addons[E].instance.dispose()},s.prototype.loadAddon=function(E,I){var u=this,d={instance:I,dispose:I.dispose,isDisposed:!1};this._addons.push(d),I.dispose=function(){return u._wrappedAddonDispose(d)},I.activate(E)},s.prototype._wrappedAddonDispose=function(E){if(!E.isDisposed){for(var I=-1,u=0;u<this._addons.length;u++)if(this._addons[u]===E){I=u;break}if(I===-1)throw new Error("Could not dispose an addon that has not been loaded");E.isDisposed=!0,E.dispose.apply(E.instance),this._addons.splice(I,1)}},s}();b.AddonManager=Y}])})},52835:function(Ie,Z,b){"use strict";b.d(Z,{ZP:function(){return L}});const B=-1,Y=0,s=1,E=2,I=3,u=4,d=5,g=6,y=7,S=8,v=typeof self=="object"?self:globalThis,c=(M,F)=>{const H=(V,G)=>(M.set(G,V),V),P=V=>{if(M.has(V))return M.get(V);const[G,Q]=F[V];switch(G){case Y:case B:return H(Q,V);case s:{const ne=H([],V);for(const ue of Q)ne.push(P(ue));return ne}case E:{const ne=H({},V);for(const[ue,ae]of Q)ne[P(ue)]=P(ae);return ne}case I:return H(new Date(Q),V);case u:{const{source:ne,flags:ue}=Q;return H(new RegExp(ne,ue),V)}case d:{const ne=H(new Map,V);for(const[ue,ae]of Q)ne.set(P(ue),P(ae));return ne}case g:{const ne=H(new Set,V);for(const ue of Q)ne.add(P(ue));return ne}case y:{const{name:ne,message:ue}=Q;return H(new v[ne](ue),V)}case S:return H(BigInt(Q),V);case"BigInt":return H(Object(BigInt(Q)),V)}return H(new v[G](Q),V)};return P},h=M=>c(new Map,M)(0),m="",{toString:x}={},{keys:T}=Object,_=M=>{const F=typeof M;if(F!=="object"||!M)return[Y,F];const H=x.call(M).slice(8,-1);switch(H){case"Array":return[s,m];case"Object":return[E,m];case"Date":return[I,m];case"RegExp":return[u,m];case"Map":return[d,m];case"Set":return[g,m]}return H.includes("Array")?[s,H]:H.includes("Error")?[y,H]:[E,H]},R=([M,F])=>M===Y&&(F==="function"||F==="symbol"),A=(M,F,H,P)=>{const V=(Q,ne)=>{const ue=P.push(Q)-1;return H.set(ne,ue),ue},G=Q=>{if(H.has(Q))return H.get(Q);let[ne,ue]=_(Q);switch(ne){case Y:{let he=Q;switch(ue){case"bigint":ne=S,he=Q.toString();break;case"function":case"symbol":if(M)throw new TypeError("unable to serialize "+ue);he=null;break;case"undefined":return V([B],Q)}return V([ne,he],Q)}case s:{if(ue)return V([ue,[...Q]],Q);const he=[],ce=V([ne,he],Q);for(const we of Q)he.push(G(we));return ce}case E:{if(ue)switch(ue){case"BigInt":return V([ue,Q.toString()],Q);case"Boolean":case"Number":case"String":return V([ue,Q.valueOf()],Q)}if(F&&"toJSON"in Q)return G(Q.toJSON());const he=[],ce=V([ne,he],Q);for(const we of T(Q))(M||!R(_(Q[we])))&&he.push([G(we),G(Q[we])]);return ce}case I:return V([ne,Q.toISOString()],Q);case u:{const{source:he,flags:ce}=Q;return V([ne,{source:he,flags:ce}],Q)}case d:{const he=[],ce=V([ne,he],Q);for(const[we,me]of Q)(M||!(R(_(we))||R(_(me))))&&he.push([G(we),G(me)]);return ce}case g:{const he=[],ce=V([ne,he],Q);for(const we of Q)(M||!R(_(we)))&&he.push(G(we));return ce}}const{message:ae}=Q;return V([ne,{name:ue,message:ae}],Q)};return G},N=(M,{json:F,lossy:H}={})=>{const P=[];return A(!(F||H),!!F,new Map,P)(M),P};var L=typeof structuredClone=="function"?(M,F)=>F&&("json"in F||"lossy"in F)?h(N(M,F)):structuredClone(M):(M,F)=>h(N(M,F))},25668:function(Ie,Z,b){"use strict";b.d(Z,{P:function(){return Y},Q:function(){return B}});function B(s){const E=[],I=String(s||"");let u=I.indexOf(","),d=0,g=!1;for(;!g;){u===-1&&(u=I.length,g=!0);const y=I.slice(d,u).trim();(y||!g)&&E.push(y),d=u+1,u=I.indexOf(",",d)}return E}function Y(s,E){const I=E||{};return(s[s.length-1]===""?[...s,""]:s).join((I.padRight?" ":"")+","+(I.padLeft===!1?"":" ")).trim()}},24345:function(Ie,Z,b){"use strict";b.d(Z,{ok:function(){return s},t1:function(){return E}});function B(I){return I}function Y(){}function s(){}function E(){}},11748:function(Ie,Z,b){"use strict";b.d(Z,{N:function(){return h}});var B=b(55316),Y=b(49911);function s(x,T){return E(x,T||{})||{type:"root",children:[]}}function E(x,T){const _=I(x,T);return _&&T.afterTransform&&T.afterTransform(x,_),_}function I(x,T){switch(x.nodeType){case 1:return S(x,T);case 3:return g(x);case 8:return y(x);case 9:return u(x,T);case 10:return d();case 11:return u(x,T);default:return}}function u(x,T){return{type:"root",children:v(x,T)}}function d(){return{type:"doctype"}}function g(x){return{type:"text",value:x.nodeValue||""}}function y(x){return{type:"comment",value:x.nodeValue||""}}function S(x,T){const _=x.namespaceURI,R=_===Y.t.svg?B.s:B.h,A=_===Y.t.html?x.tagName.toLowerCase():x.tagName,N=_===Y.t.html&&A==="template"?x.content:x,L=x.getAttributeNames(),M={};let F=-1;for(;++F<L.length;)M[L[F]]=x.getAttribute(L[F])||"";return R(A,M,v(N,T))}function v(x,T){const _=x.childNodes,R=[];let A=-1;for(;++A<_.length;){const N=E(_[A],T);N!==void 0&&R.push(N)}return R}const c=new DOMParser;function h(x,T){const _=T!=null&&T.fragment?m(x):c.parseFromString(x,"text/html");return s(_)}function m(x){const T=document.createElement("template");return T.innerHTML=x,T.content}},91891:function(Ie,Z,b){"use strict";b.d(Z,{l:function(){return R}});var B=b(96093);const Y=function(Q,ne,ue){const ae=(0,B.O)(ue);if(!Q||!Q.type||!Q.children)throw new Error("Expected parent node");if(typeof ne=="number"){if(ne<0||ne===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(ne=Q.children.indexOf(ne),ne<0)throw new Error("Expected child node or index");for(;++ne<Q.children.length;)if(ae(Q.children[ne],ne,Q))return Q.children[ne]},s=function(Q,ne,ue,ae,he){const ce=E(ne);if(ue!=null&&(typeof ue!="number"||ue<0||ue===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite `index`");if(ae!=null&&(!ae.type||!ae.children))throw new Error("Expected valid `parent`");if(ue==null!=(ae==null))throw new Error("Expected both `index` and `parent`");return y(Q)?ce.call(he,Q,ue,ae):!1},E=function(Q){if(Q==null)return g;if(typeof Q=="string")return u(Q);if(typeof Q=="object")return I(Q);if(typeof Q=="function")return d(Q);throw new Error("Expected function, string, or array as `test`")};function I(Q){const ne=[];let ue=-1;for(;++ue<Q.length;)ne[ue]=E(Q[ue]);return d(ae);function ae(...he){let ce=-1;for(;++ce<ne.length;)if(ne[ce].apply(this,he))return!0;return!1}}function u(Q){return d(ne);function ne(ue){return ue.tagName===Q}}function d(Q){return ne;function ne(ue,ae,he){return!!(y(ue)&&Q.call(this,ue,typeof ae=="number"?ae:void 0,he||void 0))}}function g(Q){return!!(Q&&typeof Q=="object"&&"type"in Q&&Q.type==="element"&&"tagName"in Q&&typeof Q.tagName=="string")}function y(Q){return Q!==null&&typeof Q=="object"&&"type"in Q&&"tagName"in Q}const S=/\n/g,v=/[\t ]+/g,c=E("br"),h=E(V),m=E("p"),x=E("tr"),T=E(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",P,G]),_=E(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function R(Q,ne){const ue=ne||{},ae="children"in Q?Q.children:[],he=_(Q),ce=H(Q,{whitespace:ue.whitespace||"normal",breakBefore:!1,breakAfter:!1}),we=[];(Q.type==="text"||Q.type==="comment")&&we.push(...L(Q,{whitespace:ce,breakBefore:!0,breakAfter:!0}));let me=-1;for(;++me<ae.length;)we.push(...A(ae[me],Q,{whitespace:ce,breakBefore:me?void 0:he,breakAfter:me<ae.length-1?c(ae[me+1]):he}));const Le=[];let ee;for(me=-1;++me<we.length;){const se=we[me];typeof se=="number"?ee!==void 0&&se>ee&&(ee=se):se&&(ee!==void 0&&ee>-1&&Le.push(`
`.repeat(ee)||" "),ee=-1,Le.push(se))}return Le.join("")}function A(Q,ne,ue){return Q.type==="element"?N(Q,ne,ue):Q.type==="text"?ue.whitespace==="normal"?L(Q,ue):M(Q):[]}function N(Q,ne,ue){const ae=H(Q,ue),he=Q.children||[];let ce=-1,we=[];if(T(Q))return we;let me,Le;for(c(Q)||x(Q)&&Y(ne,Q,x)?Le=`
`:m(Q)?(me=2,Le=2):_(Q)&&(me=1,Le=1);++ce<he.length;)we=we.concat(A(he[ce],Q,{whitespace:ae,breakBefore:ce?void 0:me,breakAfter:ce<he.length-1?c(he[ce+1]):Le}));return h(Q)&&Y(ne,Q,h)&&we.push(" "),me&&we.unshift(me),Le&&we.push(Le),we}function L(Q,ne){const ue=String(Q.value),ae=[],he=[];let ce=0;for(;ce<=ue.length;){S.lastIndex=ce;const Le=S.exec(ue),ee=Le&&"index"in Le?Le.index:ue.length;ae.push(F(ue.slice(ce,ee).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),ce===0?ne.breakBefore:!0,ee===ue.length?ne.breakAfter:!0)),ce=ee+1}let we=-1,me;for(;++we<ae.length;)ae[we].charCodeAt(ae[we].length-1)===8203||we<ae.length-1&&ae[we+1].charCodeAt(0)===8203?(he.push(ae[we]),me=void 0):ae[we]?(typeof me=="number"&&he.push(me),he.push(ae[we]),me=0):(we===0||we===ae.length-1)&&he.push(0);return he}function M(Q){return[String(Q.value)]}function F(Q,ne,ue){const ae=[];let he=0,ce;for(;he<Q.length;){v.lastIndex=he;const we=v.exec(Q);ce=we?we.index:Q.length,!he&&!ce&&we&&!ne&&ae.push(""),he!==ce&&ae.push(Q.slice(he,ce)),he=we?ce+we[0].length:ce}return he!==ce&&!ue&&ae.push(""),ae.join(" ")}function H(Q,ne){if(Q.type==="element"){const ue=Q.properties||{};switch(Q.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return ue.wrap?"pre-wrap":"pre";case"td":case"th":return ue.noWrap?"nowrap":ne.whitespace;case"textarea":return"pre-wrap";default:}}return ne.whitespace}function P(Q){return!!(Q.properties||{}).hidden}function V(Q){return Q.tagName==="td"||Q.tagName==="th"}function G(Q){return Q.tagName==="dialog"&&!(Q.properties||{}).open}},55316:function(Ie,Z,b){"use strict";b.d(Z,{h:function(){return _},s:function(){return R}});var B=b(91634),Y=b(25668);const s=/[#.]/g;function E(A,N){const L=A||"",M={};let F=0,H,P;for(;F<L.length;){s.lastIndex=F;const V=s.exec(L),G=L.slice(F,V?V.index:L.length);G&&(H?H==="#"?M.id=G:Array.isArray(M.className)?M.className.push(G):M.className=[G]:P=G,F+=G.length),V&&(H=V[0],F++)}return{type:"element",tagName:P||N||"div",properties:M,children:[]}}var I=b(26103),u=b(93859),d=b(50342);const g={}.hasOwnProperty;function y(A,N,L){const M=L&&x(L);function F(H,P,...V){let G=-1,Q;if(H==null){Q={type:"root",children:[]};const ne=P;V.unshift(ne)}else if(Q=E(H,N),Q.tagName=Q.tagName.toLowerCase(),M&&g.call(M,Q.tagName)&&(Q.tagName=M[Q.tagName]),S(P))V.unshift(P);else{let ne;for(ne in P)g.call(P,ne)&&v(A,Q.properties,ne,P[ne])}for(;++G<V.length;)c(Q.children,V[G]);return Q.type==="element"&&Q.tagName==="template"&&(Q.content={type:"root",children:Q.children},Q.children=[]),Q}return F}function S(A){if(A===null||typeof A!="object"||Array.isArray(A))return!0;if(typeof A.type!="string")return!1;const N=A,L=Object.keys(A);for(const M of L){const F=N[M];if(F&&typeof F=="object"){if(!Array.isArray(F))return!0;const H=F;for(const P of H)if(typeof P!="number"&&typeof P!="string")return!0}}return!!("children"in A&&Array.isArray(A.children))}function v(A,N,L,M){const F=(0,I.s)(A,L);let H=-1,P;if(M!=null){if(typeof M=="number"){if(Number.isNaN(M))return;P=M}else typeof M=="boolean"?P=M:typeof M=="string"?F.spaceSeparated?P=(0,d.Q)(M):F.commaSeparated?P=(0,Y.Q)(M):F.commaOrSpaceSeparated?P=(0,d.Q)((0,Y.Q)(M).join(" ")):P=h(F,F.property,M):Array.isArray(M)?P=M.concat():P=F.property==="style"?m(M):String(M);if(Array.isArray(P)){const V=[];for(;++H<P.length;){const G=h(F,F.property,P[H]);V[H]=G}P=V}if(F.property==="className"&&Array.isArray(N.className)){const V=P;P=N.className.concat(V)}N[F.property]=P}}function c(A,N){let L=-1;if(N!=null)if(typeof N=="string"||typeof N=="number")A.push({type:"text",value:String(N)});else if(Array.isArray(N))for(;++L<N.length;)c(A,N[L]);else if(typeof N=="object"&&"type"in N)N.type==="root"?c(A,N.children):A.push(N);else throw new Error("Expected node, nodes, or string, got `"+N+"`")}function h(A,N,L){if(typeof L=="string"){if(A.number&&L&&!Number.isNaN(Number(L)))return Number(L);if((A.boolean||A.overloadedBoolean)&&(L===""||(0,u.F)(L)===(0,u.F)(N)))return!0}return L}function m(A){const N=[];let L;for(L in A)g.call(A,L)&&N.push([L,A[L]].join(": "));return N.join("; ")}function x(A){const N={};let L=-1;for(;++L<A.length;)N[A[L].toLowerCase()]=A[L];return N}const T=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],_=y(B.dy,"div"),R=y(B.YP,"g",T)},42761:function(Ie,Z,b){"use strict";b.d(Z,{f:function(){return Y}});var B=b(15459);function Y(s,E,I,u){const d=u?u-1:Number.POSITIVE_INFINITY;let g=0;return y;function y(v){return(0,B.xz)(v)?(s.enter(I),S(v)):E(v)}function S(v){return(0,B.xz)(v)&&g++<d?(s.consume(v),S):(s.exit(I),E(v))}}},15459:function(Ie,Z,b){"use strict";b.d(Z,{AF:function(){return u},Av:function(){return E},B8:function(){return c},Ch:function(){return g},H$:function(){return Y},Xh:function(){return v},jv:function(){return B},n9:function(){return s},pY:function(){return I},sR:function(){return d},xz:function(){return S},z3:function(){return y}});const B=h(/[A-Za-z]/),Y=h(/[\dA-Za-z]/),s=h(/[#-'*+\--9=?A-Z^-~]/);function E(m){return m!==null&&(m<32||m===127)}const I=h(/\d/),u=h(/[\dA-Fa-f]/),d=h(/[!-/:-@[-`{-~]/);function g(m){return m!==null&&m<-2}function y(m){return m!==null&&(m<0||m===32)}function S(m){return m===-2||m===-1||m===32}const v=h(new RegExp("\\p{P}|\\p{S}","u")),c=h(/\s/);function h(m){return x;function x(T){return T!==null&&T>-1&&m.test(String.fromCharCode(T))}}},91634:function(Ie,Z,b){"use strict";b.d(Z,{dy:function(){return T},YP:function(){return _}});class B{constructor(A,N,L){this.property=A,this.normal=N,L&&(this.space=L)}}B.prototype.property={},B.prototype.normal={},B.prototype.space=null;function Y(R,A){const N={},L={};let M=-1;for(;++M<R.length;)Object.assign(N,R[M].property),Object.assign(L,R[M].normal);return new B(N,L,A)}var s=b(93859),E=b(75729);const I={}.hasOwnProperty;function u(R){const A={},N={};let L;for(L in R.properties)if(I.call(R.properties,L)){const M=R.properties[L],F=new E.I(L,R.transform(R.attributes||{},L),M,R.space);R.mustUseProperty&&R.mustUseProperty.includes(L)&&(F.mustUseProperty=!0),A[L]=F,N[(0,s.F)(L)]=L,N[(0,s.F)(F.attribute)]=L}return new B(A,N,R.space)}const d=u({space:"xlink",transform(R,A){return"xlink:"+A.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),g=u({space:"xml",transform(R,A){return"xml:"+A.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function y(R,A){return A in R?R[A]:A}function S(R,A){return y(R,A.toLowerCase())}const v=u({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:S,properties:{xmlns:null,xmlnsXLink:null}});var c=b(47312);const h=u({transform(R,A){return A==="role"?A:"aria-"+A.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:c.booleanish,ariaAutoComplete:null,ariaBusy:c.booleanish,ariaChecked:c.booleanish,ariaColCount:c.number,ariaColIndex:c.number,ariaColSpan:c.number,ariaControls:c.spaceSeparated,ariaCurrent:null,ariaDescribedBy:c.spaceSeparated,ariaDetails:null,ariaDisabled:c.booleanish,ariaDropEffect:c.spaceSeparated,ariaErrorMessage:null,ariaExpanded:c.booleanish,ariaFlowTo:c.spaceSeparated,ariaGrabbed:c.booleanish,ariaHasPopup:null,ariaHidden:c.booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:c.spaceSeparated,ariaLevel:c.number,ariaLive:null,ariaModal:c.booleanish,ariaMultiLine:c.booleanish,ariaMultiSelectable:c.booleanish,ariaOrientation:null,ariaOwns:c.spaceSeparated,ariaPlaceholder:null,ariaPosInSet:c.number,ariaPressed:c.booleanish,ariaReadOnly:c.booleanish,ariaRelevant:null,ariaRequired:c.booleanish,ariaRoleDescription:c.spaceSeparated,ariaRowCount:c.number,ariaRowIndex:c.number,ariaRowSpan:c.number,ariaSelected:c.booleanish,ariaSetSize:c.number,ariaSort:null,ariaValueMax:c.number,ariaValueMin:c.number,ariaValueNow:c.number,ariaValueText:null,role:null}}),m=u({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:S,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:c.commaSeparated,acceptCharset:c.spaceSeparated,accessKey:c.spaceSeparated,action:null,allow:null,allowFullScreen:c.boolean,allowPaymentRequest:c.boolean,allowUserMedia:c.boolean,alt:null,as:null,async:c.boolean,autoCapitalize:null,autoComplete:c.spaceSeparated,autoFocus:c.boolean,autoPlay:c.boolean,blocking:c.spaceSeparated,capture:null,charSet:null,checked:c.boolean,cite:null,className:c.spaceSeparated,cols:c.number,colSpan:null,content:null,contentEditable:c.booleanish,controls:c.boolean,controlsList:c.spaceSeparated,coords:c.number|c.commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:c.boolean,defer:c.boolean,dir:null,dirName:null,disabled:c.boolean,download:c.overloadedBoolean,draggable:c.booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:c.boolean,formTarget:null,headers:c.spaceSeparated,height:c.number,hidden:c.boolean,high:c.number,href:null,hrefLang:null,htmlFor:c.spaceSeparated,httpEquiv:c.spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:c.boolean,inputMode:null,integrity:null,is:null,isMap:c.boolean,itemId:null,itemProp:c.spaceSeparated,itemRef:c.spaceSeparated,itemScope:c.boolean,itemType:c.spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:c.boolean,low:c.number,manifest:null,max:null,maxLength:c.number,media:null,method:null,min:null,minLength:c.number,multiple:c.boolean,muted:c.boolean,name:null,nonce:null,noModule:c.boolean,noValidate:c.boolean,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:c.boolean,optimum:c.number,pattern:null,ping:c.spaceSeparated,placeholder:null,playsInline:c.boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:c.boolean,referrerPolicy:null,rel:c.spaceSeparated,required:c.boolean,reversed:c.boolean,rows:c.number,rowSpan:c.number,sandbox:c.spaceSeparated,scope:null,scoped:c.boolean,seamless:c.boolean,selected:c.boolean,shadowRootClonable:c.boolean,shadowRootDelegatesFocus:c.boolean,shadowRootMode:null,shape:null,size:c.number,sizes:null,slot:null,span:c.number,spellCheck:c.booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:c.number,step:null,style:null,tabIndex:c.number,target:null,title:null,translate:null,type:null,typeMustMatch:c.boolean,useMap:null,value:c.booleanish,width:c.number,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:c.spaceSeparated,axis:null,background:null,bgColor:null,border:c.number,borderColor:null,bottomMargin:c.number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:c.boolean,declare:c.boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:c.number,leftMargin:c.number,link:null,longDesc:null,lowSrc:null,marginHeight:c.number,marginWidth:c.number,noResize:c.boolean,noHref:c.boolean,noShade:c.boolean,noWrap:c.boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:c.number,rules:null,scheme:null,scrolling:c.booleanish,standby:null,summary:null,text:null,topMargin:c.number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:c.number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:c.boolean,disableRemotePlayback:c.boolean,prefix:null,property:null,results:c.number,security:null,unselectable:null}}),x=u({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:y,properties:{about:c.commaOrSpaceSeparated,accentHeight:c.number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:c.number,amplitude:c.number,arabicForm:null,ascent:c.number,attributeName:null,attributeType:null,azimuth:c.number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:c.number,by:null,calcMode:null,capHeight:c.number,className:c.spaceSeparated,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:c.number,diffuseConstant:c.number,direction:null,display:null,dur:null,divisor:c.number,dominantBaseline:null,download:c.boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:c.number,enableBackground:null,end:null,event:null,exponent:c.number,externalResourcesRequired:null,fill:null,fillOpacity:c.number,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:c.commaSeparated,g2:c.commaSeparated,glyphName:c.commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:c.number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:c.number,horizOriginX:c.number,horizOriginY:c.number,id:null,ideographic:c.number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:c.number,k:c.number,k1:c.number,k2:c.number,k3:c.number,k4:c.number,kernelMatrix:c.commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:c.number,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:c.number,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:c.number,overlineThickness:c.number,paintOrder:null,panose1:null,path:null,pathLength:c.number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:c.spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:c.number,pointsAtY:c.number,pointsAtZ:c.number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:c.commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:c.commaOrSpaceSeparated,rev:c.commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:c.commaOrSpaceSeparated,requiredFeatures:c.commaOrSpaceSeparated,requiredFonts:c.commaOrSpaceSeparated,requiredFormats:c.commaOrSpaceSeparated,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:c.number,specularExponent:c.number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:c.number,strikethroughThickness:c.number,string:null,stroke:null,strokeDashArray:c.commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:c.number,strokeOpacity:c.number,strokeWidth:null,style:null,surfaceScale:c.number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:c.commaOrSpaceSeparated,tabIndex:c.number,tableValues:null,target:null,targetX:c.number,targetY:c.number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:c.commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:c.number,underlineThickness:c.number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:c.number,values:null,vAlphabetic:c.number,vMathematical:c.number,vectorEffect:null,vHanging:c.number,vIdeographic:c.number,version:null,vertAdvY:c.number,vertOriginX:c.number,vertOriginY:c.number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:c.number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),T=Y([g,d,v,h,m],"html"),_=Y([g,d,v,h,x],"svg")},26103:function(Ie,Z,b){"use strict";b.d(Z,{s:function(){return d}});var B=b(93859),Y=b(75729),s=b(49255);const E=/^data[-\w.:]+$/i,I=/-[a-z]/g,u=/[A-Z]/g;function d(S,v){const c=(0,B.F)(v);let h=v,m=s.k;if(c in S.normal)return S.property[S.normal[c]];if(c.length>4&&c.slice(0,4)==="data"&&E.test(v)){if(v.charAt(4)==="-"){const x=v.slice(5).replace(I,y);h="data"+x.charAt(0).toUpperCase()+x.slice(1)}else{const x=v.slice(4);if(!I.test(x)){let T=x.replace(u,g);T.charAt(0)!=="-"&&(T="-"+T),v="data"+T}}m=Y.I}return new m(h,v)}function g(S){return"-"+S.toLowerCase()}function y(S){return S.charAt(1).toUpperCase()}},93859:function(Ie,Z,b){"use strict";b.d(Z,{F:function(){return B}});function B(Y){return Y.toLowerCase()}},75729:function(Ie,Z,b){"use strict";b.d(Z,{I:function(){return E}});var B=b(49255),Y=b(47312);const s=Object.keys(Y);class E extends B.k{constructor(d,g,y,S){let v=-1;if(super(d,g),I(this,"space",S),typeof y=="number")for(;++v<s.length;){const c=s[v];I(this,s[v],(y&Y[c])===Y[c])}}}E.prototype.defined=!0;function I(u,d,g){g&&(u[d]=g)}},49255:function(Ie,Z,b){"use strict";b.d(Z,{k:function(){return B}});class B{constructor(s,E){this.property=s,this.attribute=E}}B.prototype.space=null,B.prototype.boolean=!1,B.prototype.booleanish=!1,B.prototype.overloadedBoolean=!1,B.prototype.number=!1,B.prototype.commaSeparated=!1,B.prototype.spaceSeparated=!1,B.prototype.commaOrSpaceSeparated=!1,B.prototype.mustUseProperty=!1,B.prototype.defined=!1},47312:function(Ie,Z,b){"use strict";b.r(Z),b.d(Z,{boolean:function(){return Y},booleanish:function(){return s},commaOrSpaceSeparated:function(){return g},commaSeparated:function(){return d},number:function(){return I},overloadedBoolean:function(){return E},spaceSeparated:function(){return u}});let B=0;const Y=y(),s=y(),E=y(),I=y(),u=y(),d=y(),g=y();function y(){return I1(2,++B)}},94668:function(Ie,Z,b){"use strict";b.d(Z,{U:function(){return ni}});var B={};b.r(B),b.d(B,{attentionMarkers:function(){return So},contentInitial:function(){return mo},disable:function(){return No},document:function(){return Wn},flow:function(){return fo},flowInitial:function(){return ao},insideSpan:function(){return Nn},string:function(){return ns},text:function(){return fs}});var Y=b(24345),s=b(25668);const E=/[$_\p{ID_Start}]/u,I=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,u=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,d=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,g=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,y={};function S(te){return te?E.test(String.fromCodePoint(te)):!1}function v(te,Ee){const Pe=(Ee||y).jsx?u:I;return te?Pe.test(String.fromCodePoint(te)):!1}function c(te,Ee){return((Ee||y).jsx?g:d).test(te)}const h=/[ \t\n\f\r]/g;function m(te){return typeof te=="object"?te.type==="text"?x(te.value):!1:x(te)}function x(te){return te.replace(h,"")===""}var T=b(91634),_=b(26103);const R={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var A=b(50342),N=b(5174),L=N.default||N,M=b(3980);function F(te){return!te||typeof te!="object"?"":"position"in te||"type"in te?P(te.position):"start"in te||"end"in te?P(te):"line"in te||"column"in te?H(te):""}function H(te){return V(te&&te.line)+":"+V(te&&te.column)}function P(te){return H(te&&te.start)+"-"+H(te&&te.end)}function V(te){return te&&typeof te=="number"?te:1}class G extends Error{constructor(Ee,Ae,Pe){super(),typeof Ae=="string"&&(Pe=Ae,Ae=void 0);let Ye="",Qe={},nt=!1;if(Ae&&("line"in Ae&&"column"in Ae?Qe={place:Ae}:"start"in Ae&&"end"in Ae?Qe={place:Ae}:"type"in Ae?Qe={ancestors:[Ae],place:Ae.position}:Qe=ls({},Ae)),typeof Ee=="string"?Ye=Ee:!Qe.cause&&Ee&&(nt=!0,Ye=Ee.message,Qe.cause=Ee),!Qe.ruleId&&!Qe.source&&typeof Pe=="string"){const Ft=Pe.indexOf(":");Ft===-1?Qe.ruleId=Pe:(Qe.source=Pe.slice(0,Ft),Qe.ruleId=Pe.slice(Ft+1))}if(!Qe.place&&Qe.ancestors&&Qe.ancestors){const Ft=Qe.ancestors[Qe.ancestors.length-1];Ft&&(Qe.place=Ft.position)}const bt=Qe.place&&"start"in Qe.place?Qe.place.start:Qe.place;this.ancestors=Qe.ancestors||void 0,this.cause=Qe.cause||void 0,this.column=bt?bt.column:void 0,this.fatal=void 0,this.file,this.message=Ye,this.line=bt?bt.line:void 0,this.name=F(Qe.place)||"1:1",this.place=Qe.place||void 0,this.reason=this.message,this.ruleId=Qe.ruleId||void 0,this.source=Qe.source||void 0,this.stack=nt&&Qe.cause&&typeof Qe.cause.stack=="string"?Qe.cause.stack:"",this.actual,this.expected,this.note,this.url}}G.prototype.file="",G.prototype.name="",G.prototype.reason="",G.prototype.message="",G.prototype.stack="",G.prototype.column=void 0,G.prototype.line=void 0,G.prototype.ancestors=void 0,G.prototype.cause=void 0,G.prototype.fatal=void 0,G.prototype.place=void 0,G.prototype.ruleId=void 0,G.prototype.source=void 0;const Q={}.hasOwnProperty,ne=new Map,ue=/[A-Z]/g,ae=/-([a-z])/g,he=new Set(["table","tbody","thead","tfoot","tr"]),ce=new Set(["td","th"]),we="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function me(te,Ee){if(!Ee||Ee.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const Ae=Ee.filePath||void 0;let Pe;if(Ee.development){if(typeof Ee.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");Pe=Me(Ae,Ee.jsxDEV)}else{if(typeof Ee.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof Ee.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");Pe=Je(Ae,Ee.jsx,Ee.jsxs)}const Ye={Fragment:Ee.Fragment,ancestors:[],components:Ee.components||{},create:Pe,elementAttributeNameCase:Ee.elementAttributeNameCase||"react",evaluater:Ee.createEvaluater?Ee.createEvaluater():void 0,filePath:Ae,ignoreInvalidStyle:Ee.ignoreInvalidStyle||!1,passKeys:Ee.passKeys!==!1,passNode:Ee.passNode||!1,schema:Ee.space==="svg"?T.YP:T.dy,stylePropertyNameCase:Ee.stylePropertyNameCase||"dom",tableCellAlignToStyle:Ee.tableCellAlignToStyle!==!1},Qe=Le(Ye,te,void 0);return Qe&&typeof Qe!="string"?Qe:Ye.create(te,Ye.Fragment,{children:Qe||void 0},void 0)}function Le(te,Ee,Ae){if(Ee.type==="element")return ee(te,Ee,Ae);if(Ee.type==="mdxFlowExpression"||Ee.type==="mdxTextExpression")return se(te,Ee);if(Ee.type==="mdxJsxFlowElement"||Ee.type==="mdxJsxTextElement")return ke(te,Ee,Ae);if(Ee.type==="mdxjsEsm")return le(te,Ee);if(Ee.type==="root")return De(te,Ee,Ae);if(Ee.type==="text")return Be(te,Ee)}function ee(te,Ee,Ae){const Pe=te.schema;let Ye=Pe;Ee.tagName.toLowerCase()==="svg"&&Pe.space==="html"&&(Ye=T.YP,te.schema=Ye),te.ancestors.push(Ee);const Qe=z(te,Ee.tagName,!1),nt=lt(te,Ee);let bt=Oe(te,Ee);return he.has(Ee.tagName)&&(bt=bt.filter(function(Ft){return typeof Ft=="string"?!m(Ft):!0})),He(te,nt,Qe,Ee),Fe(nt,bt),te.ancestors.pop(),te.schema=Pe,te.create(Ee,Qe,nt,Ae)}function se(te,Ee){if(Ee.data&&Ee.data.estree&&te.evaluater){const Pe=Ee.data.estree.body[0];return(0,Y.ok)(Pe.type==="ExpressionStatement"),te.evaluater.evaluateExpression(Pe.expression)}J(te,Ee.position)}function le(te,Ee){if(Ee.data&&Ee.data.estree&&te.evaluater)return te.evaluater.evaluateProgram(Ee.data.estree);J(te,Ee.position)}function ke(te,Ee,Ae){const Pe=te.schema;let Ye=Pe;Ee.name==="svg"&&Pe.space==="html"&&(Ye=T.YP,te.schema=Ye),te.ancestors.push(Ee);const Qe=Ee.name===null?te.Fragment:z(te,Ee.name,!0),nt=Re(te,Ee),bt=Oe(te,Ee);return He(te,nt,Qe,Ee),Fe(nt,bt),te.ancestors.pop(),te.schema=Pe,te.create(Ee,Qe,nt,Ae)}function De(te,Ee,Ae){const Pe={};return Fe(Pe,Oe(te,Ee)),te.create(Ee,te.Fragment,Pe,Ae)}function Be(te,Ee){return Ee.value}function He(te,Ee,Ae,Pe){typeof Ae!="string"&&Ae!==te.Fragment&&te.passNode&&(Ee.node=Pe)}function Fe(te,Ee){if(Ee.length>0){const Ae=Ee.length>1?Ee:Ee[0];Ae&&(te.children=Ae)}}function Je(te,Ee,Ae){return Pe;function Pe(Ye,Qe,nt,bt){const Bt=Array.isArray(nt.children)?Ae:Ee;return bt?Bt(Qe,nt,bt):Bt(Qe,nt)}}function Me(te,Ee){return Ae;function Ae(Pe,Ye,Qe,nt){const bt=Array.isArray(Qe.children),Ft=(0,M.Pk)(Pe);return Ee(Ye,Qe,nt,bt,{columnNumber:Ft?Ft.column-1:void 0,fileName:te,lineNumber:Ft?Ft.line:void 0},void 0)}}function lt(te,Ee){const Ae={};let Pe,Ye;for(Ye in Ee.properties)if(Ye!=="children"&&Q.call(Ee.properties,Ye)){const Qe=pe(te,Ye,Ee.properties[Ye]);if(Qe){const[nt,bt]=Qe;te.tableCellAlignToStyle&&nt==="align"&&typeof bt=="string"&&ce.has(Ee.tagName)?Pe=bt:Ae[nt]=bt}}if(Pe){const Qe=Ae.style||(Ae.style={});Qe[te.stylePropertyNameCase==="css"?"text-align":"textAlign"]=Pe}return Ae}function Re(te,Ee){const Ae={};for(const Pe of Ee.attributes)if(Pe.type==="mdxJsxExpressionAttribute")if(Pe.data&&Pe.data.estree&&te.evaluater){const Qe=Pe.data.estree.body[0];(0,Y.ok)(Qe.type==="ExpressionStatement");const nt=Qe.expression;(0,Y.ok)(nt.type==="ObjectExpression");const bt=nt.properties[0];(0,Y.ok)(bt.type==="SpreadElement"),Object.assign(Ae,te.evaluater.evaluateExpression(bt.argument))}else J(te,Ee.position);else{const Ye=Pe.name;let Qe;if(Pe.value&&typeof Pe.value=="object")if(Pe.value.data&&Pe.value.data.estree&&te.evaluater){const bt=Pe.value.data.estree.body[0];(0,Y.ok)(bt.type==="ExpressionStatement"),Qe=te.evaluater.evaluateExpression(bt.expression)}else J(te,Ee.position);else Qe=Pe.value===null?!0:Pe.value;Ae[Ye]=Qe}return Ae}function Oe(te,Ee){const Ae=[];let Pe=-1;const Ye=te.passKeys?new Map:ne;for(;++Pe<Ee.children.length;){const Qe=Ee.children[Pe];let nt;if(te.passKeys){const Ft=Qe.type==="element"?Qe.tagName:Qe.type==="mdxJsxFlowElement"||Qe.type==="mdxJsxTextElement"?Qe.name:void 0;if(Ft){const Bt=Ye.get(Ft)||0;nt=Ft+"-"+Bt,Ye.set(Ft,Bt+1)}}const bt=Le(te,Qe,nt);bt!==void 0&&Ae.push(bt)}return Ae}function pe(te,Ee,Ae){const Pe=(0,_.s)(te.schema,Ee);if(!(Ae==null||typeof Ae=="number"&&Number.isNaN(Ae))){if(Array.isArray(Ae)&&(Ae=Pe.commaSeparated?(0,s.P)(Ae):(0,A.P)(Ae)),Pe.property==="style"){let Ye=typeof Ae=="object"?Ae:fe(te,String(Ae));return te.stylePropertyNameCase==="css"&&(Ye=be(Ye)),["style",Ye]}return[te.elementAttributeNameCase==="react"&&Pe.space?R[Pe.property]||Pe.property:Pe.attribute,Ae]}}function fe(te,Ee){const Ae={};try{L(Ee,Pe)}catch(Ye){if(!te.ignoreInvalidStyle){const Qe=Ye,nt=new G("Cannot parse `style` attribute",{ancestors:te.ancestors,cause:Qe,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw nt.file=te.filePath||void 0,nt.url=we+"#cannot-parse-style-attribute",nt}}return Ae;function Pe(Ye,Qe){let nt=Ye;nt.slice(0,2)!=="--"&&(nt.slice(0,4)==="-ms-"&&(nt="ms-"+nt.slice(4)),nt=nt.replace(ae,oe)),Ae[nt]=Qe}}function z(te,Ee,Ae){let Pe;if(!Ae)Pe={type:"Literal",value:Ee};else if(Ee.includes(".")){const Ye=Ee.split(".");let Qe=-1,nt;for(;++Qe<Ye.length;){const bt=c(Ye[Qe])?{type:"Identifier",name:Ye[Qe]}:{type:"Literal",value:Ye[Qe]};nt=nt?{type:"MemberExpression",object:nt,property:bt,computed:!!(Qe&&bt.type==="Literal"),optional:!1}:bt}(0,Y.ok)(nt,"always a result"),Pe=nt}else Pe=c(Ee)&&!/^[a-z]/.test(Ee)?{type:"Identifier",name:Ee}:{type:"Literal",value:Ee};if(Pe.type==="Literal"){const Ye=Pe.value;return Q.call(te.components,Ye)?te.components[Ye]:Ye}if(te.evaluater)return te.evaluater.evaluateExpression(Pe);J(te)}function J(te,Ee){const Ae=new G("Cannot handle MDX estrees without `createEvaluater`",{ancestors:te.ancestors,place:Ee,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw Ae.file=te.filePath||void 0,Ae.url=we+"#cannot-handle-mdx-estrees-without-createevaluater",Ae}function be(te){const Ee={};let Ae;for(Ae in te)Q.call(te,Ae)&&(Ee[_e(Ae)]=te[Ae]);return Ee}function _e(te){let Ee=te.replace(ue,ie);return Ee.slice(0,3)==="ms-"&&(Ee="-"+Ee),Ee}function oe(te,Ee){return Ee.toUpperCase()}function ie(te){return"-"+te.toLowerCase()}const ve={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var Ne=b(85893);const ze={};function Ve(te,Ee){const Ae=Ee||ze,Pe=typeof Ae.includeImageAlt=="boolean"?Ae.includeImageAlt:!0,Ye=typeof Ae.includeHtml=="boolean"?Ae.includeHtml:!0;return yt(te,Pe,Ye)}function yt(te,Ee,Ae){if(St(te)){if("value"in te)return te.type==="html"&&!Ae?"":te.value;if(Ee&&"alt"in te&&te.alt)return te.alt;if("children"in te)return ct(te.children,Ee,Ae)}return Array.isArray(te)?ct(te,Ee,Ae):""}function ct(te,Ee,Ae){const Pe=[];let Ye=-1;for(;++Ye<te.length;)Pe[Ye]=yt(te[Ye],Ee,Ae);return Pe.join("")}function St(te){return!!(te&&typeof te=="object")}function _t(te,Ee,Ae,Pe){const Ye=te.length;let Qe=0,nt;if(Ee<0?Ee=-Ee>Ye?0:Ye+Ee:Ee=Ee>Ye?Ye:Ee,Ae=Ae>0?Ae:0,Pe.length<1e4)nt=Array.from(Pe),nt.unshift(Ee,Ae),te.splice(...nt);else for(Ae&&te.splice(Ee,Ae);Qe<Pe.length;)nt=Pe.slice(Qe,Qe+1e4),nt.unshift(Ee,0),te.splice(...nt),Qe+=1e4,Ee+=1e4}function At(te,Ee){return te.length>0?(_t(te,te.length,0,Ee),te):Ee}class ht{constructor(Ee){this.left=Ee?[...Ee]:[],this.right=[]}get(Ee){if(Ee<0||Ee>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+Ee+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return Ee<this.left.length?this.left[Ee]:this.right[this.right.length-Ee+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(Ee,Ae){const Pe=Ae==null?Number.POSITIVE_INFINITY:Ae;return Pe<this.left.length?this.left.slice(Ee,Pe):Ee>this.left.length?this.right.slice(this.right.length-Pe+this.left.length,this.right.length-Ee+this.left.length).reverse():this.left.slice(Ee).concat(this.right.slice(this.right.length-Pe+this.left.length).reverse())}splice(Ee,Ae,Pe){const Ye=Ae||0;this.setCursor(Math.trunc(Ee));const Qe=this.right.splice(this.right.length-Ye,Number.POSITIVE_INFINITY);return Pe&&wt(this.left,Pe),Qe.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(Ee){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(Ee)}pushMany(Ee){this.setCursor(Number.POSITIVE_INFINITY),wt(this.left,Ee)}unshift(Ee){this.setCursor(0),this.right.push(Ee)}unshiftMany(Ee){this.setCursor(0),wt(this.right,Ee.reverse())}setCursor(Ee){if(!(Ee===this.left.length||Ee>this.left.length&&this.right.length===0||Ee<0&&this.left.length===0))if(Ee<this.left.length){const Ae=this.left.splice(Ee,Number.POSITIVE_INFINITY);wt(this.right,Ae.reverse())}else{const Ae=this.right.splice(this.left.length+this.right.length-Ee,Number.POSITIVE_INFINITY);wt(this.left,Ae.reverse())}}}function wt(te,Ee){let Ae=0;if(Ee.length<1e4)te.push(...Ee);else for(;Ae<Ee.length;)te.push(...Ee.slice(Ae,Ae+1e4)),Ae+=1e4}function jt(te){const Ee={};let Ae=-1,Pe,Ye,Qe,nt,bt,Ft,Bt;const Rt=new ht(te);for(;++Ae<Rt.length;){for(;Ae in Ee;)Ae=Ee[Ae];if(Pe=Rt.get(Ae),Ae&&Pe[1].type==="chunkFlow"&&Rt.get(Ae-1)[1].type==="listItemPrefix"&&(Ft=Pe[1]._tokenizer.events,Qe=0,Qe<Ft.length&&Ft[Qe][1].type==="lineEndingBlank"&&(Qe+=2),Qe<Ft.length&&Ft[Qe][1].type==="content"))for(;++Qe<Ft.length&&Ft[Qe][1].type!=="content";)Ft[Qe][1].type==="chunkText"&&(Ft[Qe][1]._isInFirstContentOfListItem=!0,Qe++);if(Pe[0]==="enter")Pe[1].contentType&&(Object.assign(Ee,st(Rt,Ae)),Ae=Ee[Ae],Bt=!0);else if(Pe[1]._container){for(Qe=Ae,Ye=void 0;Qe--&&(nt=Rt.get(Qe),nt[1].type==="lineEnding"||nt[1].type==="lineEndingBlank");)nt[0]==="enter"&&(Ye&&(Rt.get(Ye)[1].type="lineEndingBlank"),nt[1].type="lineEnding",Ye=Qe);Ye&&(Pe[1].end=Object.assign({},Rt.get(Ye)[1].start),bt=Rt.slice(Ye,Ae),bt.unshift(Pe),Rt.splice(Ye,Ae-Ye+1,bt))}}return _t(te,0,Number.POSITIVE_INFINITY,Rt.slice(0)),!Bt}function st(te,Ee){const Ae=te.get(Ee)[1],Pe=te.get(Ee)[2];let Ye=Ee-1;const Qe=[],nt=Ae._tokenizer||Pe.parser[Ae.contentType](Ae.start),bt=nt.events,Ft=[],Bt={};let Rt,Zt,Jt=-1,zt=Ae,k=0,U=0;const Ce=[U];for(;zt;){for(;te.get(++Ye)[1]!==zt;);Qe.push(Ye),zt._tokenizer||(Rt=Pe.sliceStream(zt),zt.next||Rt.push(null),Zt&&nt.defineSkip(zt.start),zt._isInFirstContentOfListItem&&(nt._gfmTasklistFirstContentOfListItem=!0),nt.write(Rt),zt._isInFirstContentOfListItem&&(nt._gfmTasklistFirstContentOfListItem=void 0)),Zt=zt,zt=zt.next}for(zt=Ae;++Jt<bt.length;)bt[Jt][0]==="exit"&&bt[Jt-1][0]==="enter"&&bt[Jt][1].type===bt[Jt-1][1].type&&bt[Jt][1].start.line!==bt[Jt][1].end.line&&(U=Jt+1,Ce.push(U),zt._tokenizer=void 0,zt.previous=void 0,zt=zt.next);for(nt.events=[],zt?(zt._tokenizer=void 0,zt.previous=void 0):Ce.pop(),Jt=Ce.length;Jt--;){const et=bt.slice(Ce[Jt],Ce[Jt+1]),It=Qe.pop();Ft.push([It,It+et.length-1]),te.splice(It,2,et)}for(Ft.reverse(),Jt=-1;++Jt<Ft.length;)Bt[k+Ft[Jt][0]]=k+Ft[Jt][1],k+=Ft[Jt][1]-Ft[Jt][0]-1;return Bt}function ge(te){for(;!jt(te););return te}const on={}.hasOwnProperty;function mn(te){const Ee={};let Ae=-1;for(;++Ae<te.length;)Mt(Ee,te[Ae]);return Ee}function Mt(te,Ee){let Ae;for(Ae in Ee){const Ye=(on.call(te,Ae)?te[Ae]:void 0)||(te[Ae]={}),Qe=Ee[Ae];let nt;if(Qe)for(nt in Qe){on.call(Ye,nt)||(Ye[nt]=[]);const bt=Qe[nt];On(Ye[nt],Array.isArray(bt)?bt:bt?[bt]:[])}}}function On(te,Ee){let Ae=-1;const Pe=[];for(;++Ae<Ee.length;)(Ee[Ae].add==="after"?te:Pe).push(Ee[Ae]);_t(te,0,0,Pe)}function Vn(te){const Ee={};let Ae=-1;for(;++Ae<te.length;)Fn(Ee,te[Ae]);return Ee}function Fn(te,Ee){let Ae;for(Ae in Ee){const Ye=(on.call(te,Ae)?te[Ae]:void 0)||(te[Ae]={}),Qe=Ee[Ae];let nt;if(Qe)for(nt in Qe)Ye[nt]=Qe[nt]}}var Gn=b(42761),sn=b(15459);const xt={tokenize:gr};function gr(te){const Ee=te.attempt(this.parser.constructs.contentInitial,Pe,Ye);let Ae;return Ee;function Pe(bt){if(bt===null){te.consume(bt);return}return te.enter("lineEnding"),te.consume(bt),te.exit("lineEnding"),(0,Gn.f)(te,Ee,"linePrefix")}function Ye(bt){return te.enter("paragraph"),Qe(bt)}function Qe(bt){const Ft=te.enter("chunkText",{contentType:"text",previous:Ae});return Ae&&(Ae.next=Ft),Ae=Ft,nt(bt)}function nt(bt){if(bt===null){te.exit("chunkText"),te.exit("paragraph"),te.consume(bt);return}return(0,sn.Ch)(bt)?(te.consume(bt),te.exit("chunkText"),Qe):(te.consume(bt),nt)}}const Pr={tokenize:ii},tr={tokenize:Ar};function ii(te){const Ee=this,Ae=[];let Pe=0,Ye,Qe,nt;return bt;function bt(Ut){if(Pe<Ae.length){const pn=Ae[Pe];return Ee.containerState=pn[1],te.attempt(pn[0].continuation,Ft,Bt)(Ut)}return Bt(Ut)}function Ft(Ut){if(Pe++,Ee.containerState._closeFlow){Ee.containerState._closeFlow=void 0,Ye&&It();const pn=Ee.events.length;let wn=pn,fn;for(;wn--;)if(Ee.events[wn][0]==="exit"&&Ee.events[wn][1].type==="chunkFlow"){fn=Ee.events[wn][1].end;break}et(Pe);let Tr=pn;for(;Tr<Ee.events.length;)Ee.events[Tr][1].end=Object.assign({},fn),Tr++;return _t(Ee.events,wn+1,0,Ee.events.slice(pn)),Ee.events.length=Tr,Bt(Ut)}return bt(Ut)}function Bt(Ut){if(Pe===Ae.length){if(!Ye)return Jt(Ut);if(Ye.currentConstruct&&Ye.currentConstruct.concrete)return k(Ut);Ee.interrupt=!!(Ye.currentConstruct&&!Ye._gfmTableDynamicInterruptHack)}return Ee.containerState={},te.check(tr,Rt,Zt)(Ut)}function Rt(Ut){return Ye&&It(),et(Pe),Jt(Ut)}function Zt(Ut){return Ee.parser.lazy[Ee.now().line]=Pe!==Ae.length,nt=Ee.now().offset,k(Ut)}function Jt(Ut){return Ee.containerState={},te.attempt(tr,zt,k)(Ut)}function zt(Ut){return Pe++,Ae.push([Ee.currentConstruct,Ee.containerState]),Jt(Ut)}function k(Ut){if(Ut===null){Ye&&It(),et(0),te.consume(Ut);return}return Ye=Ye||Ee.parser.flow(Ee.now()),te.enter("chunkFlow",{contentType:"flow",previous:Qe,_tokenizer:Ye}),U(Ut)}function U(Ut){if(Ut===null){Ce(te.exit("chunkFlow"),!0),et(0),te.consume(Ut);return}return(0,sn.Ch)(Ut)?(te.consume(Ut),Ce(te.exit("chunkFlow")),Pe=0,Ee.interrupt=void 0,bt):(te.consume(Ut),U)}function Ce(Ut,pn){const wn=Ee.sliceStream(Ut);if(pn&&wn.push(null),Ut.previous=Qe,Qe&&(Qe.next=Ut),Qe=Ut,Ye.defineSkip(Ut.start),Ye.write(wn),Ee.parser.lazy[Ut.start.line]){let fn=Ye.events.length;for(;fn--;)if(Ye.events[fn][1].start.offset<nt&&(!Ye.events[fn][1].end||Ye.events[fn][1].end.offset>nt))return;const Tr=Ee.events.length;let Li=Tr,ci,qi;for(;Li--;)if(Ee.events[Li][0]==="exit"&&Ee.events[Li][1].type==="chunkFlow"){if(ci){qi=Ee.events[Li][1].end;break}ci=!0}for(et(Pe),fn=Tr;fn<Ee.events.length;)Ee.events[fn][1].end=Object.assign({},qi),fn++;_t(Ee.events,Li+1,0,Ee.events.slice(Tr)),Ee.events.length=fn}}function et(Ut){let pn=Ae.length;for(;pn-- >Ut;){const wn=Ae[pn];Ee.containerState=wn[1],wn[0].exit.call(Ee,te)}Ae.length=Ut}function It(){Ye.write([null]),Qe=void 0,Ye=void 0,Ee.containerState._closeFlow=void 0}}function Ar(te,Ee,Ae){return(0,Gn.f)(te,te.attempt(this.parser.constructs.document,Ee,Ae),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const Kt={tokenize:ye,partial:!0};function ye(te,Ee,Ae){return Pe;function Pe(Qe){return(0,sn.xz)(Qe)?(0,Gn.f)(te,Ye,"linePrefix")(Qe):Ye(Qe)}function Ye(Qe){return Qe===null||(0,sn.Ch)(Qe)?Ee(Qe):Ae(Qe)}}const Vt={tokenize:Zn,resolve:Xn},rn={tokenize:ir,partial:!0};function Xn(te){return jt(te),te}function Zn(te,Ee){let Ae;return Pe;function Pe(bt){return te.enter("content"),Ae=te.enter("chunkContent",{contentType:"content"}),Ye(bt)}function Ye(bt){return bt===null?Qe(bt):(0,sn.Ch)(bt)?te.check(rn,nt,Qe)(bt):(te.consume(bt),Ye)}function Qe(bt){return te.exit("chunkContent"),te.exit("content"),Ee(bt)}function nt(bt){return te.consume(bt),te.exit("chunkContent"),Ae.next=te.enter("chunkContent",{contentType:"content",previous:Ae}),Ae=Ae.next,Ye}}function ir(te,Ee,Ae){const Pe=this;return Ye;function Ye(nt){return te.exit("chunkContent"),te.enter("lineEnding"),te.consume(nt),te.exit("lineEnding"),(0,Gn.f)(te,Qe,"linePrefix")}function Qe(nt){if(nt===null||(0,sn.Ch)(nt))return Ae(nt);const bt=Pe.events[Pe.events.length-1];return!Pe.parser.constructs.disable.null.includes("codeIndented")&&bt&&bt[1].type==="linePrefix"&&bt[2].sliceSerialize(bt[1],!0).length>=4?Ee(nt):te.interrupt(Pe.parser.constructs.flow,Ae,Ee)(nt)}}const Dr={tokenize:ai};function ai(te){const Ee=this,Ae=te.attempt(Kt,Pe,te.attempt(this.parser.constructs.flowInitial,Ye,(0,Gn.f)(te,te.attempt(this.parser.constructs.flow,Ye,te.attempt(Vt,Ye)),"linePrefix")));return Ae;function Pe(Qe){if(Qe===null){te.consume(Qe);return}return te.enter("lineEndingBlank"),te.consume(Qe),te.exit("lineEndingBlank"),Ee.currentConstruct=void 0,Ae}function Ye(Qe){if(Qe===null){te.consume(Qe);return}return te.enter("lineEnding"),te.consume(Qe),te.exit("lineEnding"),Ee.currentConstruct=void 0,Ae}}const li={resolveAll:Vr()},Zr=kn("string"),Tn=kn("text");function kn(te){return{tokenize:Ee,resolveAll:Vr(te==="text"?di:void 0)};function Ee(Ae){const Pe=this,Ye=this.parser.constructs[te],Qe=Ae.attempt(Ye,nt,bt);return nt;function nt(Rt){return Bt(Rt)?Qe(Rt):bt(Rt)}function bt(Rt){if(Rt===null){Ae.consume(Rt);return}return Ae.enter("data"),Ae.consume(Rt),Ft}function Ft(Rt){return Bt(Rt)?(Ae.exit("data"),Qe(Rt)):(Ae.consume(Rt),Ft)}function Bt(Rt){if(Rt===null)return!0;const Zt=Ye[Rt];let Jt=-1;if(Zt)for(;++Jt<Zt.length;){const zt=Zt[Jt];if(!zt.previous||zt.previous.call(Pe,Pe.previous))return!0}return!1}}}function Vr(te){return Ee;function Ee(Ae,Pe){let Ye=-1,Qe;for(;++Ye<=Ae.length;)Qe===void 0?Ae[Ye]&&Ae[Ye][1].type==="data"&&(Qe=Ye,Ye++):(!Ae[Ye]||Ae[Ye][1].type!=="data")&&(Ye!==Qe+2&&(Ae[Qe][1].end=Ae[Ye-1][1].end,Ae.splice(Qe+2,Ye-Qe-2),Ye=Qe+2),Qe=void 0);return te?te(Ae,Pe):Ae}}function di(te,Ee){let Ae=0;for(;++Ae<=te.length;)if((Ae===te.length||te[Ae][1].type==="lineEnding")&&te[Ae-1][1].type==="data"){const Pe=te[Ae-1][1],Ye=Ee.sliceStream(Pe);let Qe=Ye.length,nt=-1,bt=0,Ft;for(;Qe--;){const Bt=Ye[Qe];if(typeof Bt=="string"){for(nt=Bt.length;Bt.charCodeAt(nt-1)===32;)bt++,nt--;if(nt)break;nt=-1}else if(Bt===-2)Ft=!0,bt++;else if(Bt!==-1){Qe++;break}}if(bt){const Bt={type:Ae===te.length||Ft||bt<2?"lineSuffix":"hardBreakTrailing",start:{line:Pe.end.line,column:Pe.end.column-bt,offset:Pe.end.offset-bt,_index:Pe.start._index+Qe,_bufferIndex:Qe?nt:Pe.start._bufferIndex+nt},end:Object.assign({},Pe.end)};Pe.end=Object.assign({},Bt.start),Pe.start.offset===Pe.end.offset?Object.assign(Pe,Bt):(te.splice(Ae,0,["enter",Bt,Ee],["exit",Bt,Ee]),Ae+=2)}Ae++}return te}function nr(te,Ee,Ae){const Pe=[];let Ye=-1;for(;++Ye<te.length;){const Qe=te[Ye].resolveAll;Qe&&!Pe.includes(Qe)&&(Ee=Qe(Ee,Ae),Pe.push(Qe))}return Ee}function vn(te,Ee,Ae){let Pe=Object.assign(Ae?Object.assign({},Ae):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const Ye={},Qe=[];let nt=[],bt=[],Ft=!0;const Bt={consume:pn,enter:wn,exit:fn,attempt:ci(Tr),check:ci(Li),interrupt:ci(Li,{interrupt:!0})},Rt={previous:null,code:null,containerState:{},events:[],parser:te,sliceStream:U,sliceSerialize:k,now:Ce,defineSkip:et,write:zt};let Zt=Ee.tokenize.call(Rt,Bt),Jt;return Ee.resolveAll&&Qe.push(Ee),Rt;function zt($n){return nt=At(nt,$n),It(),nt[nt.length-1]!==null?[]:(qi(Ee,0),Rt.events=nr(Qe,Rt.events,Rt),Rt.events)}function k($n,Mi){return bi(U($n),Mi)}function U($n){return Jn(nt,$n)}function Ce(){const{line:$n,column:Mi,offset:Ur,_index:uo,_bufferIndex:Eo}=Pe;return{line:$n,column:Mi,offset:Ur,_index:uo,_bufferIndex:Eo}}function et($n){Ye[$n.line]=$n.column,lo()}function It(){let $n;for(;Pe._index<nt.length;){const Mi=nt[Pe._index];if(typeof Mi=="string")for($n=Pe._index,Pe._bufferIndex<0&&(Pe._bufferIndex=0);Pe._index===$n&&Pe._bufferIndex<Mi.length;)Ut(Mi.charCodeAt(Pe._bufferIndex));else Ut(Mi)}}function Ut($n){Ft=void 0,Jt=$n,Zt=Zt($n)}function pn($n){(0,sn.Ch)($n)?(Pe.line++,Pe.column=1,Pe.offset+=$n===-3?2:1,lo()):$n!==-1&&(Pe.column++,Pe.offset++),Pe._bufferIndex<0?Pe._index++:(Pe._bufferIndex++,Pe._bufferIndex===nt[Pe._index].length&&(Pe._bufferIndex=-1,Pe._index++)),Rt.previous=$n,Ft=!0}function wn($n,Mi){const Ur=Mi||{};return Ur.type=$n,Ur.start=Ce(),Rt.events.push(["enter",Ur,Rt]),bt.push(Ur),Ur}function fn($n){const Mi=bt.pop();return Mi.end=Ce(),Rt.events.push(["exit",Mi,Rt]),Mi}function Tr($n,Mi){qi($n,Mi.from)}function Li($n,Mi){Mi.restore()}function ci($n,Mi){return Ur;function Ur(uo,Eo,Mo){let Qs,$t,Rs,Ao;return Array.isArray(uo)?Is(uo):"tokenize"in uo?Is([uo]):en(uo);function en(Do){return Va;function Va(ss){const ra=ss!==null&&Do[ss],Pa=ss!==null&&Do.null,rl=[...Array.isArray(ra)?ra:ra?[ra]:[],...Array.isArray(Pa)?Pa:Pa?[Pa]:[]];return Is(rl)(ss)}}function Is(Do){return Qs=Do,$t=0,Do.length===0?Mo:Wa(Do[$t])}function Wa(Do){return Va;function Va(ss){return Ao=Uo(),Rs=Do,Do.partial||(Rt.currentConstruct=Do),Do.name&&Rt.parser.constructs.disable.null.includes(Do.name)?Ol(ss):Do.tokenize.call(Mi?Object.assign(Object.create(Rt),Mi):Rt,Bt,wu,Ol)(ss)}}function wu(Do){return Ft=!0,$n(Rs,Ao),Eo}function Ol(Do){return Ft=!0,Ao.restore(),++$t<Qs.length?Wa(Qs[$t]):Mo}}}function qi($n,Mi){$n.resolveAll&&!Qe.includes($n)&&Qe.push($n),$n.resolve&&_t(Rt.events,Mi,Rt.events.length-Mi,$n.resolve(Rt.events.slice(Mi),Rt)),$n.resolveTo&&(Rt.events=$n.resolveTo(Rt.events,Rt))}function Uo(){const $n=Ce(),Mi=Rt.previous,Ur=Rt.currentConstruct,uo=Rt.events.length,Eo=Array.from(bt);return{restore:Mo,from:uo};function Mo(){Pe=$n,Rt.previous=Mi,Rt.currentConstruct=Ur,Rt.events.length=uo,bt=Eo,lo()}}function lo(){Pe.line in Ye&&Pe.column<2&&(Pe.column=Ye[Pe.line],Pe.offset+=Ye[Pe.line]-1)}}function Jn(te,Ee){const Ae=Ee.start._index,Pe=Ee.start._bufferIndex,Ye=Ee.end._index,Qe=Ee.end._bufferIndex;let nt;if(Ae===Ye)nt=[te[Ae].slice(Pe,Qe)];else{if(nt=te.slice(Ae,Ye),Pe>-1){const bt=nt[0];typeof bt=="string"?nt[0]=bt.slice(Pe):nt.shift()}Qe>0&&nt.push(te[Ye].slice(0,Qe))}return nt}function bi(te,Ee){let Ae=-1;const Pe=[];let Ye;for(;++Ae<te.length;){const Qe=te[Ae];let nt;if(typeof Qe=="string")nt=Qe;else switch(Qe){case-5:{nt="\r";break}case-4:{nt=`
`;break}case-3:{nt=`\r
`;break}case-2:{nt=Ee?" ":" ";break}case-1:{if(!Ee&&Ye)continue;nt=" ";break}default:nt=String.fromCharCode(Qe)}Ye=Qe===-2,Pe.push(nt)}return Pe.join("")}const gi={name:"thematicBreak",tokenize:mi};function mi(te,Ee,Ae){let Pe=0,Ye;return Qe;function Qe(Bt){return te.enter("thematicBreak"),nt(Bt)}function nt(Bt){return Ye=Bt,bt(Bt)}function bt(Bt){return Bt===Ye?(te.enter("thematicBreakSequence"),Ft(Bt)):Pe>=3&&(Bt===null||(0,sn.Ch)(Bt))?(te.exit("thematicBreak"),Ee(Bt)):Ae(Bt)}function Ft(Bt){return Bt===Ye?(te.consume(Bt),Pe++,Ft):(te.exit("thematicBreakSequence"),(0,sn.xz)(Bt)?(0,Gn.f)(te,bt,"whitespace")(Bt):bt(Bt))}}const Lt={name:"list",tokenize:zi,continuation:{tokenize:bn},exit:Ei},Yn={tokenize:Co,partial:!0},hr={tokenize:or,partial:!0};function zi(te,Ee,Ae){const Pe=this,Ye=Pe.events[Pe.events.length-1];let Qe=Ye&&Ye[1].type==="linePrefix"?Ye[2].sliceSerialize(Ye[1],!0).length:0,nt=0;return bt;function bt(zt){const k=Pe.containerState.type||(zt===42||zt===43||zt===45?"listUnordered":"listOrdered");if(k==="listUnordered"?!Pe.containerState.marker||zt===Pe.containerState.marker:(0,sn.pY)(zt)){if(Pe.containerState.type||(Pe.containerState.type=k,te.enter(k,{_container:!0})),k==="listUnordered")return te.enter("listItemPrefix"),zt===42||zt===45?te.check(gi,Ae,Bt)(zt):Bt(zt);if(!Pe.interrupt||zt===49)return te.enter("listItemPrefix"),te.enter("listItemValue"),Ft(zt)}return Ae(zt)}function Ft(zt){return(0,sn.pY)(zt)&&++nt<10?(te.consume(zt),Ft):(!Pe.interrupt||nt<2)&&(Pe.containerState.marker?zt===Pe.containerState.marker:zt===41||zt===46)?(te.exit("listItemValue"),Bt(zt)):Ae(zt)}function Bt(zt){return te.enter("listItemMarker"),te.consume(zt),te.exit("listItemMarker"),Pe.containerState.marker=Pe.containerState.marker||zt,te.check(Kt,Pe.interrupt?Ae:Rt,te.attempt(Yn,Jt,Zt))}function Rt(zt){return Pe.containerState.initialBlankLine=!0,Qe++,Jt(zt)}function Zt(zt){return(0,sn.xz)(zt)?(te.enter("listItemPrefixWhitespace"),te.consume(zt),te.exit("listItemPrefixWhitespace"),Jt):Ae(zt)}function Jt(zt){return Pe.containerState.size=Qe+Pe.sliceSerialize(te.exit("listItemPrefix"),!0).length,Ee(zt)}}function bn(te,Ee,Ae){const Pe=this;return Pe.containerState._closeFlow=void 0,te.check(Kt,Ye,Qe);function Ye(bt){return Pe.containerState.furtherBlankLines=Pe.containerState.furtherBlankLines||Pe.containerState.initialBlankLine,(0,Gn.f)(te,Ee,"listItemIndent",Pe.containerState.size+1)(bt)}function Qe(bt){return Pe.containerState.furtherBlankLines||!(0,sn.xz)(bt)?(Pe.containerState.furtherBlankLines=void 0,Pe.containerState.initialBlankLine=void 0,nt(bt)):(Pe.containerState.furtherBlankLines=void 0,Pe.containerState.initialBlankLine=void 0,te.attempt(hr,Ee,nt)(bt))}function nt(bt){return Pe.containerState._closeFlow=!0,Pe.interrupt=void 0,(0,Gn.f)(te,te.attempt(Lt,Ee,Ae),"linePrefix",Pe.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(bt)}}function or(te,Ee,Ae){const Pe=this;return(0,Gn.f)(te,Ye,"listItemIndent",Pe.containerState.size+1);function Ye(Qe){const nt=Pe.events[Pe.events.length-1];return nt&&nt[1].type==="listItemIndent"&&nt[2].sliceSerialize(nt[1],!0).length===Pe.containerState.size?Ee(Qe):Ae(Qe)}}function Ei(te){te.exit(this.containerState.type)}function Co(te,Ee,Ae){const Pe=this;return(0,Gn.f)(te,Ye,"listItemPrefixWhitespace",Pe.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function Ye(Qe){const nt=Pe.events[Pe.events.length-1];return!(0,sn.xz)(Qe)&&nt&&nt[1].type==="listItemPrefixWhitespace"?Ee(Qe):Ae(Qe)}}const ki={name:"blockQuote",tokenize:yr,continuation:{tokenize:Mr},exit:Fr};function yr(te,Ee,Ae){const Pe=this;return Ye;function Ye(nt){if(nt===62){const bt=Pe.containerState;return bt.open||(te.enter("blockQuote",{_container:!0}),bt.open=!0),te.enter("blockQuotePrefix"),te.enter("blockQuoteMarker"),te.consume(nt),te.exit("blockQuoteMarker"),Qe}return Ae(nt)}function Qe(nt){return(0,sn.xz)(nt)?(te.enter("blockQuotePrefixWhitespace"),te.consume(nt),te.exit("blockQuotePrefixWhitespace"),te.exit("blockQuotePrefix"),Ee):(te.exit("blockQuotePrefix"),Ee(nt))}}function Mr(te,Ee,Ae){const Pe=this;return Ye;function Ye(nt){return(0,sn.xz)(nt)?(0,Gn.f)(te,Qe,"linePrefix",Pe.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(nt):Qe(nt)}function Qe(nt){return te.attempt(ki,Ee,Ae)(nt)}}function Fr(te){te.exit("blockQuote")}function Di(te,Ee,Ae,Pe,Ye,Qe,nt,bt,Ft){const Bt=Ft||Number.POSITIVE_INFINITY;let Rt=0;return Zt;function Zt(et){return et===60?(te.enter(Pe),te.enter(Ye),te.enter(Qe),te.consume(et),te.exit(Qe),Jt):et===null||et===32||et===41||(0,sn.Av)(et)?Ae(et):(te.enter(Pe),te.enter(nt),te.enter(bt),te.enter("chunkString",{contentType:"string"}),U(et))}function Jt(et){return et===62?(te.enter(Qe),te.consume(et),te.exit(Qe),te.exit(Ye),te.exit(Pe),Ee):(te.enter(bt),te.enter("chunkString",{contentType:"string"}),zt(et))}function zt(et){return et===62?(te.exit("chunkString"),te.exit(bt),Jt(et)):et===null||et===60||(0,sn.Ch)(et)?Ae(et):(te.consume(et),et===92?k:zt)}function k(et){return et===60||et===62||et===92?(te.consume(et),zt):zt(et)}function U(et){return!Rt&&(et===null||et===41||(0,sn.z3)(et))?(te.exit("chunkString"),te.exit(bt),te.exit(nt),te.exit(Pe),Ee(et)):Rt<Bt&&et===40?(te.consume(et),Rt++,U):et===41?(te.consume(et),Rt--,U):et===null||et===32||et===40||(0,sn.Av)(et)?Ae(et):(te.consume(et),et===92?Ce:U)}function Ce(et){return et===40||et===41||et===92?(te.consume(et),U):U(et)}}function so(te,Ee,Ae,Pe,Ye,Qe){const nt=this;let bt=0,Ft;return Bt;function Bt(zt){return te.enter(Pe),te.enter(Ye),te.consume(zt),te.exit(Ye),te.enter(Qe),Rt}function Rt(zt){return bt>999||zt===null||zt===91||zt===93&&!Ft||zt===94&&!bt&&"_hiddenFootnoteSupport"in nt.parser.constructs?Ae(zt):zt===93?(te.exit(Qe),te.enter(Ye),te.consume(zt),te.exit(Ye),te.exit(Pe),Ee):(0,sn.Ch)(zt)?(te.enter("lineEnding"),te.consume(zt),te.exit("lineEnding"),Rt):(te.enter("chunkString",{contentType:"string"}),Zt(zt))}function Zt(zt){return zt===null||zt===91||zt===93||(0,sn.Ch)(zt)||bt++>999?(te.exit("chunkString"),Rt(zt)):(te.consume(zt),Ft||(Ft=!(0,sn.xz)(zt)),zt===92?Jt:Zt)}function Jt(zt){return zt===91||zt===92||zt===93?(te.consume(zt),bt++,Zt):Zt(zt)}}function Gi(te,Ee,Ae,Pe,Ye,Qe){let nt;return bt;function bt(Jt){return Jt===34||Jt===39||Jt===40?(te.enter(Pe),te.enter(Ye),te.consume(Jt),te.exit(Ye),nt=Jt===40?41:Jt,Ft):Ae(Jt)}function Ft(Jt){return Jt===nt?(te.enter(Ye),te.consume(Jt),te.exit(Ye),te.exit(Pe),Ee):(te.enter(Qe),Bt(Jt))}function Bt(Jt){return Jt===nt?(te.exit(Qe),Ft(nt)):Jt===null?Ae(Jt):(0,sn.Ch)(Jt)?(te.enter("lineEnding"),te.consume(Jt),te.exit("lineEnding"),(0,Gn.f)(te,Bt,"linePrefix")):(te.enter("chunkString",{contentType:"string"}),Rt(Jt))}function Rt(Jt){return Jt===nt||Jt===null||(0,sn.Ch)(Jt)?(te.exit("chunkString"),Bt(Jt)):(te.consume(Jt),Jt===92?Zt:Rt)}function Zt(Jt){return Jt===nt||Jt===92?(te.consume(Jt),Rt):Rt(Jt)}}function sr(te,Ee){let Ae;return Pe;function Pe(Ye){return(0,sn.Ch)(Ye)?(te.enter("lineEnding"),te.consume(Ye),te.exit("lineEnding"),Ae=!0,Pe):(0,sn.xz)(Ye)?(0,Gn.f)(te,Pe,Ae?"linePrefix":"lineSuffix")(Ye):Ee(Ye)}}function ys(te){return te.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Wo={name:"definition",tokenize:hn},Ro={tokenize:us,partial:!0};function hn(te,Ee,Ae){const Pe=this;let Ye;return Qe;function Qe(zt){return te.enter("definition"),nt(zt)}function nt(zt){return so.call(Pe,te,bt,Ae,"definitionLabel","definitionLabelMarker","definitionLabelString")(zt)}function bt(zt){return Ye=ys(Pe.sliceSerialize(Pe.events[Pe.events.length-1][1]).slice(1,-1)),zt===58?(te.enter("definitionMarker"),te.consume(zt),te.exit("definitionMarker"),Ft):Ae(zt)}function Ft(zt){return(0,sn.z3)(zt)?sr(te,Bt)(zt):Bt(zt)}function Bt(zt){return Di(te,Rt,Ae,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(zt)}function Rt(zt){return te.attempt(Ro,Zt,Zt)(zt)}function Zt(zt){return(0,sn.xz)(zt)?(0,Gn.f)(te,Jt,"whitespace")(zt):Jt(zt)}function Jt(zt){return zt===null||(0,sn.Ch)(zt)?(te.exit("definition"),Pe.parser.defined.push(Ye),Ee(zt)):Ae(zt)}}function us(te,Ee,Ae){return Pe;function Pe(bt){return(0,sn.z3)(bt)?sr(te,Ye)(bt):Ae(bt)}function Ye(bt){return Gi(te,Qe,Ae,"definitionTitle","definitionTitleMarker","definitionTitleString")(bt)}function Qe(bt){return(0,sn.xz)(bt)?(0,Gn.f)(te,nt,"whitespace")(bt):nt(bt)}function nt(bt){return bt===null||(0,sn.Ch)(bt)?Ee(bt):Ae(bt)}}const cs={name:"codeIndented",tokenize:Bs},yo={tokenize:Yi,partial:!0};function Bs(te,Ee,Ae){const Pe=this;return Ye;function Ye(Bt){return te.enter("codeIndented"),(0,Gn.f)(te,Qe,"linePrefix",5)(Bt)}function Qe(Bt){const Rt=Pe.events[Pe.events.length-1];return Rt&&Rt[1].type==="linePrefix"&&Rt[2].sliceSerialize(Rt[1],!0).length>=4?nt(Bt):Ae(Bt)}function nt(Bt){return Bt===null?Ft(Bt):(0,sn.Ch)(Bt)?te.attempt(yo,nt,Ft)(Bt):(te.enter("codeFlowValue"),bt(Bt))}function bt(Bt){return Bt===null||(0,sn.Ch)(Bt)?(te.exit("codeFlowValue"),nt(Bt)):(te.consume(Bt),bt)}function Ft(Bt){return te.exit("codeIndented"),Ee(Bt)}}function Yi(te,Ee,Ae){const Pe=this;return Ye;function Ye(nt){return Pe.parser.lazy[Pe.now().line]?Ae(nt):(0,sn.Ch)(nt)?(te.enter("lineEnding"),te.consume(nt),te.exit("lineEnding"),Ye):(0,Gn.f)(te,Qe,"linePrefix",5)(nt)}function Qe(nt){const bt=Pe.events[Pe.events.length-1];return bt&&bt[1].type==="linePrefix"&&bt[2].sliceSerialize(bt[1],!0).length>=4?Ee(nt):(0,sn.Ch)(nt)?Ye(nt):Ae(nt)}}const eo={name:"headingAtx",tokenize:hi,resolve:Oi};function Oi(te,Ee){let Ae=te.length-2,Pe=3,Ye,Qe;return te[Pe][1].type==="whitespace"&&(Pe+=2),Ae-2>Pe&&te[Ae][1].type==="whitespace"&&(Ae-=2),te[Ae][1].type==="atxHeadingSequence"&&(Pe===Ae-1||Ae-4>Pe&&te[Ae-2][1].type==="whitespace")&&(Ae-=Pe+1===Ae?2:4),Ae>Pe&&(Ye={type:"atxHeadingText",start:te[Pe][1].start,end:te[Ae][1].end},Qe={type:"chunkText",start:te[Pe][1].start,end:te[Ae][1].end,contentType:"text"},_t(te,Pe,Ae-Pe+1,[["enter",Ye,Ee],["enter",Qe,Ee],["exit",Qe,Ee],["exit",Ye,Ee]])),te}function hi(te,Ee,Ae){let Pe=0;return Ye;function Ye(Rt){return te.enter("atxHeading"),Qe(Rt)}function Qe(Rt){return te.enter("atxHeadingSequence"),nt(Rt)}function nt(Rt){return Rt===35&&Pe++<6?(te.consume(Rt),nt):Rt===null||(0,sn.z3)(Rt)?(te.exit("atxHeadingSequence"),bt(Rt)):Ae(Rt)}function bt(Rt){return Rt===35?(te.enter("atxHeadingSequence"),Ft(Rt)):Rt===null||(0,sn.Ch)(Rt)?(te.exit("atxHeading"),Ee(Rt)):(0,sn.xz)(Rt)?(0,Gn.f)(te,bt,"whitespace")(Rt):(te.enter("atxHeadingText"),Bt(Rt))}function Ft(Rt){return Rt===35?(te.consume(Rt),Ft):(te.exit("atxHeadingSequence"),bt(Rt))}function Bt(Rt){return Rt===null||Rt===35||(0,sn.z3)(Rt)?(te.exit("atxHeadingText"),bt(Rt)):(te.consume(Rt),Bt)}}const Ni={name:"setextUnderline",tokenize:_i,resolveTo:tn};function tn(te,Ee){let Ae=te.length,Pe,Ye,Qe;for(;Ae--;)if(te[Ae][0]==="enter"){if(te[Ae][1].type==="content"){Pe=Ae;break}te[Ae][1].type==="paragraph"&&(Ye=Ae)}else te[Ae][1].type==="content"&&te.splice(Ae,1),!Qe&&te[Ae][1].type==="definition"&&(Qe=Ae);const nt={type:"setextHeading",start:Object.assign({},te[Ye][1].start),end:Object.assign({},te[te.length-1][1].end)};return te[Ye][1].type="setextHeadingText",Qe?(te.splice(Ye,0,["enter",nt,Ee]),te.splice(Qe+1,0,["exit",te[Pe][1],Ee]),te[Pe][1].end=Object.assign({},te[Qe][1].end)):te[Pe][1]=nt,te.push(["exit",nt,Ee]),te}function _i(te,Ee,Ae){const Pe=this;let Ye;return Qe;function Qe(Bt){let Rt=Pe.events.length,Zt;for(;Rt--;)if(Pe.events[Rt][1].type!=="lineEnding"&&Pe.events[Rt][1].type!=="linePrefix"&&Pe.events[Rt][1].type!=="content"){Zt=Pe.events[Rt][1].type==="paragraph";break}return!Pe.parser.lazy[Pe.now().line]&&(Pe.interrupt||Zt)?(te.enter("setextHeadingLine"),Ye=Bt,nt(Bt)):Ae(Bt)}function nt(Bt){return te.enter("setextHeadingLineSequence"),bt(Bt)}function bt(Bt){return Bt===Ye?(te.consume(Bt),bt):(te.exit("setextHeadingLineSequence"),(0,sn.xz)(Bt)?(0,Gn.f)(te,Ft,"lineSuffix")(Bt):Ft(Bt))}function Ft(Bt){return Bt===null||(0,sn.Ch)(Bt)?(te.exit("setextHeadingLine"),Ee(Bt)):Ae(Bt)}}const ut=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Ge=["pre","script","style","textarea"],an={name:"htmlFlow",tokenize:Dt,resolveTo:Et,concrete:!0},it={tokenize:Mn,partial:!0},dt={tokenize:gn,partial:!0};function Et(te){let Ee=te.length;for(;Ee--&&!(te[Ee][0]==="enter"&&te[Ee][1].type==="htmlFlow"););return Ee>1&&te[Ee-2][1].type==="linePrefix"&&(te[Ee][1].start=te[Ee-2][1].start,te[Ee+1][1].start=te[Ee-2][1].start,te.splice(Ee-2,2)),te}function Dt(te,Ee,Ae){const Pe=this;let Ye,Qe,nt,bt,Ft;return Bt;function Bt(en){return Rt(en)}function Rt(en){return te.enter("htmlFlow"),te.enter("htmlFlowData"),te.consume(en),Zt}function Zt(en){return en===33?(te.consume(en),Jt):en===47?(te.consume(en),Qe=!0,U):en===63?(te.consume(en),Ye=3,Pe.interrupt?Ee:$t):(0,sn.jv)(en)?(te.consume(en),nt=String.fromCharCode(en),Ce):Ae(en)}function Jt(en){return en===45?(te.consume(en),Ye=2,zt):en===91?(te.consume(en),Ye=5,bt=0,k):(0,sn.jv)(en)?(te.consume(en),Ye=4,Pe.interrupt?Ee:$t):Ae(en)}function zt(en){return en===45?(te.consume(en),Pe.interrupt?Ee:$t):Ae(en)}function k(en){const Is="CDATA[";return en===Is.charCodeAt(bt++)?(te.consume(en),bt===Is.length?Pe.interrupt?Ee:lo:k):Ae(en)}function U(en){return(0,sn.jv)(en)?(te.consume(en),nt=String.fromCharCode(en),Ce):Ae(en)}function Ce(en){if(en===null||en===47||en===62||(0,sn.z3)(en)){const Is=en===47,Wa=nt.toLowerCase();return!Is&&!Qe&&Ge.includes(Wa)?(Ye=1,Pe.interrupt?Ee(en):lo(en)):ut.includes(nt.toLowerCase())?(Ye=6,Is?(te.consume(en),et):Pe.interrupt?Ee(en):lo(en)):(Ye=7,Pe.interrupt&&!Pe.parser.lazy[Pe.now().line]?Ae(en):Qe?It(en):Ut(en))}return en===45||(0,sn.H$)(en)?(te.consume(en),nt+=String.fromCharCode(en),Ce):Ae(en)}function et(en){return en===62?(te.consume(en),Pe.interrupt?Ee:lo):Ae(en)}function It(en){return(0,sn.xz)(en)?(te.consume(en),It):qi(en)}function Ut(en){return en===47?(te.consume(en),qi):en===58||en===95||(0,sn.jv)(en)?(te.consume(en),pn):(0,sn.xz)(en)?(te.consume(en),Ut):qi(en)}function pn(en){return en===45||en===46||en===58||en===95||(0,sn.H$)(en)?(te.consume(en),pn):wn(en)}function wn(en){return en===61?(te.consume(en),fn):(0,sn.xz)(en)?(te.consume(en),wn):Ut(en)}function fn(en){return en===null||en===60||en===61||en===62||en===96?Ae(en):en===34||en===39?(te.consume(en),Ft=en,Tr):(0,sn.xz)(en)?(te.consume(en),fn):Li(en)}function Tr(en){return en===Ft?(te.consume(en),Ft=null,ci):en===null||(0,sn.Ch)(en)?Ae(en):(te.consume(en),Tr)}function Li(en){return en===null||en===34||en===39||en===47||en===60||en===61||en===62||en===96||(0,sn.z3)(en)?wn(en):(te.consume(en),Li)}function ci(en){return en===47||en===62||(0,sn.xz)(en)?Ut(en):Ae(en)}function qi(en){return en===62?(te.consume(en),Uo):Ae(en)}function Uo(en){return en===null||(0,sn.Ch)(en)?lo(en):(0,sn.xz)(en)?(te.consume(en),Uo):Ae(en)}function lo(en){return en===45&&Ye===2?(te.consume(en),uo):en===60&&Ye===1?(te.consume(en),Eo):en===62&&Ye===4?(te.consume(en),Rs):en===63&&Ye===3?(te.consume(en),$t):en===93&&Ye===5?(te.consume(en),Qs):(0,sn.Ch)(en)&&(Ye===6||Ye===7)?(te.exit("htmlFlowData"),te.check(it,Ao,$n)(en)):en===null||(0,sn.Ch)(en)?(te.exit("htmlFlowData"),$n(en)):(te.consume(en),lo)}function $n(en){return te.check(dt,Mi,Ao)(en)}function Mi(en){return te.enter("lineEnding"),te.consume(en),te.exit("lineEnding"),Ur}function Ur(en){return en===null||(0,sn.Ch)(en)?$n(en):(te.enter("htmlFlowData"),lo(en))}function uo(en){return en===45?(te.consume(en),$t):lo(en)}function Eo(en){return en===47?(te.consume(en),nt="",Mo):lo(en)}function Mo(en){if(en===62){const Is=nt.toLowerCase();return Ge.includes(Is)?(te.consume(en),Rs):lo(en)}return(0,sn.jv)(en)&&nt.length<8?(te.consume(en),nt+=String.fromCharCode(en),Mo):lo(en)}function Qs(en){return en===93?(te.consume(en),$t):lo(en)}function $t(en){return en===62?(te.consume(en),Rs):en===45&&Ye===2?(te.consume(en),$t):lo(en)}function Rs(en){return en===null||(0,sn.Ch)(en)?(te.exit("htmlFlowData"),Ao(en)):(te.consume(en),Rs)}function Ao(en){return te.exit("htmlFlow"),Ee(en)}}function gn(te,Ee,Ae){const Pe=this;return Ye;function Ye(nt){return(0,sn.Ch)(nt)?(te.enter("lineEnding"),te.consume(nt),te.exit("lineEnding"),Qe):Ae(nt)}function Qe(nt){return Pe.parser.lazy[Pe.now().line]?Ae(nt):Ee(nt)}}function Mn(te,Ee,Ae){return Pe;function Pe(Ye){return te.enter("lineEnding"),te.consume(Ye),te.exit("lineEnding"),te.attempt(Kt,Ee,Ae)}}const In={tokenize:kr,partial:!0},nn={name:"codeFenced",tokenize:Ue,concrete:!0};function Ue(te,Ee,Ae){const Pe=this,Ye={tokenize:wn,partial:!0};let Qe=0,nt=0,bt;return Ft;function Ft(fn){return Bt(fn)}function Bt(fn){const Tr=Pe.events[Pe.events.length-1];return Qe=Tr&&Tr[1].type==="linePrefix"?Tr[2].sliceSerialize(Tr[1],!0).length:0,bt=fn,te.enter("codeFenced"),te.enter("codeFencedFence"),te.enter("codeFencedFenceSequence"),Rt(fn)}function Rt(fn){return fn===bt?(nt++,te.consume(fn),Rt):nt<3?Ae(fn):(te.exit("codeFencedFenceSequence"),(0,sn.xz)(fn)?(0,Gn.f)(te,Zt,"whitespace")(fn):Zt(fn))}function Zt(fn){return fn===null||(0,sn.Ch)(fn)?(te.exit("codeFencedFence"),Pe.interrupt?Ee(fn):te.check(In,U,pn)(fn)):(te.enter("codeFencedFenceInfo"),te.enter("chunkString",{contentType:"string"}),Jt(fn))}function Jt(fn){return fn===null||(0,sn.Ch)(fn)?(te.exit("chunkString"),te.exit("codeFencedFenceInfo"),Zt(fn)):(0,sn.xz)(fn)?(te.exit("chunkString"),te.exit("codeFencedFenceInfo"),(0,Gn.f)(te,zt,"whitespace")(fn)):fn===96&&fn===bt?Ae(fn):(te.consume(fn),Jt)}function zt(fn){return fn===null||(0,sn.Ch)(fn)?Zt(fn):(te.enter("codeFencedFenceMeta"),te.enter("chunkString",{contentType:"string"}),k(fn))}function k(fn){return fn===null||(0,sn.Ch)(fn)?(te.exit("chunkString"),te.exit("codeFencedFenceMeta"),Zt(fn)):fn===96&&fn===bt?Ae(fn):(te.consume(fn),k)}function U(fn){return te.attempt(Ye,pn,Ce)(fn)}function Ce(fn){return te.enter("lineEnding"),te.consume(fn),te.exit("lineEnding"),et}function et(fn){return Qe>0&&(0,sn.xz)(fn)?(0,Gn.f)(te,It,"linePrefix",Qe+1)(fn):It(fn)}function It(fn){return fn===null||(0,sn.Ch)(fn)?te.check(In,U,pn)(fn):(te.enter("codeFlowValue"),Ut(fn))}function Ut(fn){return fn===null||(0,sn.Ch)(fn)?(te.exit("codeFlowValue"),It(fn)):(te.consume(fn),Ut)}function pn(fn){return te.exit("codeFenced"),Ee(fn)}function wn(fn,Tr,Li){let ci=0;return qi;function qi(Ur){return fn.enter("lineEnding"),fn.consume(Ur),fn.exit("lineEnding"),Uo}function Uo(Ur){return fn.enter("codeFencedFence"),(0,sn.xz)(Ur)?(0,Gn.f)(fn,lo,"linePrefix",Pe.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Ur):lo(Ur)}function lo(Ur){return Ur===bt?(fn.enter("codeFencedFenceSequence"),$n(Ur)):Li(Ur)}function $n(Ur){return Ur===bt?(ci++,fn.consume(Ur),$n):ci>=nt?(fn.exit("codeFencedFenceSequence"),(0,sn.xz)(Ur)?(0,Gn.f)(fn,Mi,"whitespace")(Ur):Mi(Ur)):Li(Ur)}function Mi(Ur){return Ur===null||(0,sn.Ch)(Ur)?(fn.exit("codeFencedFence"),Tr(Ur)):Li(Ur)}}}function kr(te,Ee,Ae){const Pe=this;return Ye;function Ye(nt){return nt===null?Ae(nt):(te.enter("lineEnding"),te.consume(nt),te.exit("lineEnding"),Qe)}function Qe(nt){return Pe.parser.lazy[Pe.now().line]?Ae(nt):Ee(nt)}}const Br=document.createElement("i");function ei(te){const Ee="&"+te+";";Br.innerHTML=Ee;const Ae=Br.textContent;return Ae.charCodeAt(Ae.length-1)===59&&te!=="semi"||Ae===Ee?!1:Ae}const ti={name:"characterReference",tokenize:Jr};function Jr(te,Ee,Ae){const Pe=this;let Ye=0,Qe,nt;return bt;function bt(Zt){return te.enter("characterReference"),te.enter("characterReferenceMarker"),te.consume(Zt),te.exit("characterReferenceMarker"),Ft}function Ft(Zt){return Zt===35?(te.enter("characterReferenceMarkerNumeric"),te.consume(Zt),te.exit("characterReferenceMarkerNumeric"),Bt):(te.enter("characterReferenceValue"),Qe=31,nt=sn.H$,Rt(Zt))}function Bt(Zt){return Zt===88||Zt===120?(te.enter("characterReferenceMarkerHexadecimal"),te.consume(Zt),te.exit("characterReferenceMarkerHexadecimal"),te.enter("characterReferenceValue"),Qe=6,nt=sn.AF,Rt):(te.enter("characterReferenceValue"),Qe=7,nt=sn.pY,Rt(Zt))}function Rt(Zt){if(Zt===59&&Ye){const Jt=te.exit("characterReferenceValue");return nt===sn.H$&&!ei(Pe.sliceSerialize(Jt))?Ae(Zt):(te.enter("characterReferenceMarker"),te.consume(Zt),te.exit("characterReferenceMarker"),te.exit("characterReference"),Ee)}return nt(Zt)&&Ye++<Qe?(te.consume(Zt),Rt):Ae(Zt)}}const Wr={name:"characterEscape",tokenize:Ri};function Ri(te,Ee,Ae){return Pe;function Pe(Qe){return te.enter("characterEscape"),te.enter("escapeMarker"),te.consume(Qe),te.exit("escapeMarker"),Ye}function Ye(Qe){return(0,sn.sR)(Qe)?(te.enter("characterEscapeValue"),te.consume(Qe),te.exit("characterEscapeValue"),te.exit("characterEscape"),Ee):Ae(Qe)}}const ri={name:"lineEnding",tokenize:wr};function wr(te,Ee){return Ae;function Ae(Pe){return te.enter("lineEnding"),te.consume(Pe),te.exit("lineEnding"),(0,Gn.f)(te,Ee,"linePrefix")}}const rr={name:"labelEnd",tokenize:fr,resolveTo:Sr,resolveAll:Yt},Ir={tokenize:pi},Nr={tokenize:Pi},$r={tokenize:Ai};function Yt(te){let Ee=-1;for(;++Ee<te.length;){const Ae=te[Ee][1];(Ae.type==="labelImage"||Ae.type==="labelLink"||Ae.type==="labelEnd")&&(te.splice(Ee+1,Ae.type==="labelImage"?4:2),Ae.type="data",Ee++)}return te}function Sr(te,Ee){let Ae=te.length,Pe=0,Ye,Qe,nt,bt;for(;Ae--;)if(Ye=te[Ae][1],Qe){if(Ye.type==="link"||Ye.type==="labelLink"&&Ye._inactive)break;te[Ae][0]==="enter"&&Ye.type==="labelLink"&&(Ye._inactive=!0)}else if(nt){if(te[Ae][0]==="enter"&&(Ye.type==="labelImage"||Ye.type==="labelLink")&&!Ye._balanced&&(Qe=Ae,Ye.type!=="labelLink")){Pe=2;break}}else Ye.type==="labelEnd"&&(nt=Ae);const Ft={type:te[Qe][1].type==="labelLink"?"link":"image",start:Object.assign({},te[Qe][1].start),end:Object.assign({},te[te.length-1][1].end)},Bt={type:"label",start:Object.assign({},te[Qe][1].start),end:Object.assign({},te[nt][1].end)},Rt={type:"labelText",start:Object.assign({},te[Qe+Pe+2][1].end),end:Object.assign({},te[nt-2][1].start)};return bt=[["enter",Ft,Ee],["enter",Bt,Ee]],bt=At(bt,te.slice(Qe+1,Qe+Pe+3)),bt=At(bt,[["enter",Rt,Ee]]),bt=At(bt,nr(Ee.parser.constructs.insideSpan.null,te.slice(Qe+Pe+4,nt-3),Ee)),bt=At(bt,[["exit",Rt,Ee],te[nt-2],te[nt-1],["exit",Bt,Ee]]),bt=At(bt,te.slice(nt+1)),bt=At(bt,[["exit",Ft,Ee]]),_t(te,Qe,te.length,bt),te}function fr(te,Ee,Ae){const Pe=this;let Ye=Pe.events.length,Qe,nt;for(;Ye--;)if((Pe.events[Ye][1].type==="labelImage"||Pe.events[Ye][1].type==="labelLink")&&!Pe.events[Ye][1]._balanced){Qe=Pe.events[Ye][1];break}return bt;function bt(Jt){return Qe?Qe._inactive?Zt(Jt):(nt=Pe.parser.defined.includes(ys(Pe.sliceSerialize({start:Qe.end,end:Pe.now()}))),te.enter("labelEnd"),te.enter("labelMarker"),te.consume(Jt),te.exit("labelMarker"),te.exit("labelEnd"),Ft):Ae(Jt)}function Ft(Jt){return Jt===40?te.attempt(Ir,Rt,nt?Rt:Zt)(Jt):Jt===91?te.attempt(Nr,Rt,nt?Bt:Zt)(Jt):nt?Rt(Jt):Zt(Jt)}function Bt(Jt){return te.attempt($r,Rt,Zt)(Jt)}function Rt(Jt){return Ee(Jt)}function Zt(Jt){return Qe._balanced=!0,Ae(Jt)}}function pi(te,Ee,Ae){return Pe;function Pe(Zt){return te.enter("resource"),te.enter("resourceMarker"),te.consume(Zt),te.exit("resourceMarker"),Ye}function Ye(Zt){return(0,sn.z3)(Zt)?sr(te,Qe)(Zt):Qe(Zt)}function Qe(Zt){return Zt===41?Rt(Zt):Di(te,nt,bt,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(Zt)}function nt(Zt){return(0,sn.z3)(Zt)?sr(te,Ft)(Zt):Rt(Zt)}function bt(Zt){return Ae(Zt)}function Ft(Zt){return Zt===34||Zt===39||Zt===40?Gi(te,Bt,Ae,"resourceTitle","resourceTitleMarker","resourceTitleString")(Zt):Rt(Zt)}function Bt(Zt){return(0,sn.z3)(Zt)?sr(te,Rt)(Zt):Rt(Zt)}function Rt(Zt){return Zt===41?(te.enter("resourceMarker"),te.consume(Zt),te.exit("resourceMarker"),te.exit("resource"),Ee):Ae(Zt)}}function Pi(te,Ee,Ae){const Pe=this;return Ye;function Ye(bt){return so.call(Pe,te,Qe,nt,"reference","referenceMarker","referenceString")(bt)}function Qe(bt){return Pe.parser.defined.includes(ys(Pe.sliceSerialize(Pe.events[Pe.events.length-1][1]).slice(1,-1)))?Ee(bt):Ae(bt)}function nt(bt){return Ae(bt)}}function Ai(te,Ee,Ae){return Pe;function Pe(Qe){return te.enter("reference"),te.enter("referenceMarker"),te.consume(Qe),te.exit("referenceMarker"),Ye}function Ye(Qe){return Qe===93?(te.enter("referenceMarker"),te.consume(Qe),te.exit("referenceMarker"),te.exit("reference"),Ee):Ae(Qe)}}const Ji={name:"labelStartImage",tokenize:To,resolveAll:rr.resolveAll};function To(te,Ee,Ae){const Pe=this;return Ye;function Ye(bt){return te.enter("labelImage"),te.enter("labelImageMarker"),te.consume(bt),te.exit("labelImageMarker"),Qe}function Qe(bt){return bt===91?(te.enter("labelMarker"),te.consume(bt),te.exit("labelMarker"),te.exit("labelImage"),nt):Ae(bt)}function nt(bt){return bt===94&&"_hiddenFootnoteSupport"in Pe.parser.constructs?Ae(bt):Ee(bt)}}function _o(te){if(te===null||(0,sn.z3)(te)||(0,sn.B8)(te))return 1;if((0,sn.Xh)(te))return 2}const bo={name:"attention",tokenize:Nt,resolveAll:Vo};function Vo(te,Ee){let Ae=-1,Pe,Ye,Qe,nt,bt,Ft,Bt,Rt;for(;++Ae<te.length;)if(te[Ae][0]==="enter"&&te[Ae][1].type==="attentionSequence"&&te[Ae][1]._close){for(Pe=Ae;Pe--;)if(te[Pe][0]==="exit"&&te[Pe][1].type==="attentionSequence"&&te[Pe][1]._open&&Ee.sliceSerialize(te[Pe][1]).charCodeAt(0)===Ee.sliceSerialize(te[Ae][1]).charCodeAt(0)){if((te[Pe][1]._close||te[Ae][1]._open)&&(te[Ae][1].end.offset-te[Ae][1].start.offset)%3&&!((te[Pe][1].end.offset-te[Pe][1].start.offset+te[Ae][1].end.offset-te[Ae][1].start.offset)%3))continue;Ft=te[Pe][1].end.offset-te[Pe][1].start.offset>1&&te[Ae][1].end.offset-te[Ae][1].start.offset>1?2:1;const Zt=Object.assign({},te[Pe][1].end),Jt=Object.assign({},te[Ae][1].start);no(Zt,-Ft),no(Jt,Ft),nt={type:Ft>1?"strongSequence":"emphasisSequence",start:Zt,end:Object.assign({},te[Pe][1].end)},bt={type:Ft>1?"strongSequence":"emphasisSequence",start:Object.assign({},te[Ae][1].start),end:Jt},Qe={type:Ft>1?"strongText":"emphasisText",start:Object.assign({},te[Pe][1].end),end:Object.assign({},te[Ae][1].start)},Ye={type:Ft>1?"strong":"emphasis",start:Object.assign({},nt.start),end:Object.assign({},bt.end)},te[Pe][1].end=Object.assign({},nt.start),te[Ae][1].start=Object.assign({},bt.end),Bt=[],te[Pe][1].end.offset-te[Pe][1].start.offset&&(Bt=At(Bt,[["enter",te[Pe][1],Ee],["exit",te[Pe][1],Ee]])),Bt=At(Bt,[["enter",Ye,Ee],["enter",nt,Ee],["exit",nt,Ee],["enter",Qe,Ee]]),Bt=At(Bt,nr(Ee.parser.constructs.insideSpan.null,te.slice(Pe+1,Ae),Ee)),Bt=At(Bt,[["exit",Qe,Ee],["enter",bt,Ee],["exit",bt,Ee],["exit",Ye,Ee]]),te[Ae][1].end.offset-te[Ae][1].start.offset?(Rt=2,Bt=At(Bt,[["enter",te[Ae][1],Ee],["exit",te[Ae][1],Ee]])):Rt=0,_t(te,Pe-1,Ae-Pe+3,Bt),Ae=Pe+Bt.length-Rt-2;break}}for(Ae=-1;++Ae<te.length;)te[Ae][1].type==="attentionSequence"&&(te[Ae][1].type="data");return te}function Nt(te,Ee){const Ae=this.parser.constructs.attentionMarkers.null,Pe=this.previous,Ye=_o(Pe);let Qe;return nt;function nt(Ft){return Qe=Ft,te.enter("attentionSequence"),bt(Ft)}function bt(Ft){if(Ft===Qe)return te.consume(Ft),bt;const Bt=te.exit("attentionSequence"),Rt=_o(Ft),Zt=!Rt||Rt===2&&Ye||Ae.includes(Ft),Jt=!Ye||Ye===2&&Rt||Ae.includes(Pe);return Bt._open=!!(Qe===42?Zt:Zt&&(Ye||!Jt)),Bt._close=!!(Qe===42?Jt:Jt&&(Rt||!Zt)),Ee(Ft)}}function no(te,Ee){te.column+=Ee,te.offset+=Ee,te._bufferIndex+=Ee}const Fo={name:"autolink",tokenize:Xo};function Xo(te,Ee,Ae){let Pe=0;return Ye;function Ye(zt){return te.enter("autolink"),te.enter("autolinkMarker"),te.consume(zt),te.exit("autolinkMarker"),te.enter("autolinkProtocol"),Qe}function Qe(zt){return(0,sn.jv)(zt)?(te.consume(zt),nt):zt===64?Ae(zt):Bt(zt)}function nt(zt){return zt===43||zt===45||zt===46||(0,sn.H$)(zt)?(Pe=1,bt(zt)):Bt(zt)}function bt(zt){return zt===58?(te.consume(zt),Pe=0,Ft):(zt===43||zt===45||zt===46||(0,sn.H$)(zt))&&Pe++<32?(te.consume(zt),bt):(Pe=0,Bt(zt))}function Ft(zt){return zt===62?(te.exit("autolinkProtocol"),te.enter("autolinkMarker"),te.consume(zt),te.exit("autolinkMarker"),te.exit("autolink"),Ee):zt===null||zt===32||zt===60||(0,sn.Av)(zt)?Ae(zt):(te.consume(zt),Ft)}function Bt(zt){return zt===64?(te.consume(zt),Rt):(0,sn.n9)(zt)?(te.consume(zt),Bt):Ae(zt)}function Rt(zt){return(0,sn.H$)(zt)?Zt(zt):Ae(zt)}function Zt(zt){return zt===46?(te.consume(zt),Pe=0,Rt):zt===62?(te.exit("autolinkProtocol").type="autolinkEmail",te.enter("autolinkMarker"),te.consume(zt),te.exit("autolinkMarker"),te.exit("autolink"),Ee):Jt(zt)}function Jt(zt){if((zt===45||(0,sn.H$)(zt))&&Pe++<63){const k=zt===45?Jt:Zt;return te.consume(zt),k}return Ae(zt)}}const ho={name:"htmlText",tokenize:Zo};function Zo(te,Ee,Ae){const Pe=this;let Ye,Qe,nt;return bt;function bt($t){return te.enter("htmlText"),te.enter("htmlTextData"),te.consume($t),Ft}function Ft($t){return $t===33?(te.consume($t),Bt):$t===47?(te.consume($t),wn):$t===63?(te.consume($t),Ut):(0,sn.jv)($t)?(te.consume($t),Li):Ae($t)}function Bt($t){return $t===45?(te.consume($t),Rt):$t===91?(te.consume($t),Qe=0,k):(0,sn.jv)($t)?(te.consume($t),It):Ae($t)}function Rt($t){return $t===45?(te.consume($t),zt):Ae($t)}function Zt($t){return $t===null?Ae($t):$t===45?(te.consume($t),Jt):(0,sn.Ch)($t)?(nt=Zt,Eo($t)):(te.consume($t),Zt)}function Jt($t){return $t===45?(te.consume($t),zt):Zt($t)}function zt($t){return $t===62?uo($t):$t===45?Jt($t):Zt($t)}function k($t){const Rs="CDATA[";return $t===Rs.charCodeAt(Qe++)?(te.consume($t),Qe===Rs.length?U:k):Ae($t)}function U($t){return $t===null?Ae($t):$t===93?(te.consume($t),Ce):(0,sn.Ch)($t)?(nt=U,Eo($t)):(te.consume($t),U)}function Ce($t){return $t===93?(te.consume($t),et):U($t)}function et($t){return $t===62?uo($t):$t===93?(te.consume($t),et):U($t)}function It($t){return $t===null||$t===62?uo($t):(0,sn.Ch)($t)?(nt=It,Eo($t)):(te.consume($t),It)}function Ut($t){return $t===null?Ae($t):$t===63?(te.consume($t),pn):(0,sn.Ch)($t)?(nt=Ut,Eo($t)):(te.consume($t),Ut)}function pn($t){return $t===62?uo($t):Ut($t)}function wn($t){return(0,sn.jv)($t)?(te.consume($t),fn):Ae($t)}function fn($t){return $t===45||(0,sn.H$)($t)?(te.consume($t),fn):Tr($t)}function Tr($t){return(0,sn.Ch)($t)?(nt=Tr,Eo($t)):(0,sn.xz)($t)?(te.consume($t),Tr):uo($t)}function Li($t){return $t===45||(0,sn.H$)($t)?(te.consume($t),Li):$t===47||$t===62||(0,sn.z3)($t)?ci($t):Ae($t)}function ci($t){return $t===47?(te.consume($t),uo):$t===58||$t===95||(0,sn.jv)($t)?(te.consume($t),qi):(0,sn.Ch)($t)?(nt=ci,Eo($t)):(0,sn.xz)($t)?(te.consume($t),ci):uo($t)}function qi($t){return $t===45||$t===46||$t===58||$t===95||(0,sn.H$)($t)?(te.consume($t),qi):Uo($t)}function Uo($t){return $t===61?(te.consume($t),lo):(0,sn.Ch)($t)?(nt=Uo,Eo($t)):(0,sn.xz)($t)?(te.consume($t),Uo):ci($t)}function lo($t){return $t===null||$t===60||$t===61||$t===62||$t===96?Ae($t):$t===34||$t===39?(te.consume($t),Ye=$t,$n):(0,sn.Ch)($t)?(nt=lo,Eo($t)):(0,sn.xz)($t)?(te.consume($t),lo):(te.consume($t),Mi)}function $n($t){return $t===Ye?(te.consume($t),Ye=void 0,Ur):$t===null?Ae($t):(0,sn.Ch)($t)?(nt=$n,Eo($t)):(te.consume($t),$n)}function Mi($t){return $t===null||$t===34||$t===39||$t===60||$t===61||$t===96?Ae($t):$t===47||$t===62||(0,sn.z3)($t)?ci($t):(te.consume($t),Mi)}function Ur($t){return $t===47||$t===62||(0,sn.z3)($t)?ci($t):Ae($t)}function uo($t){return $t===62?(te.consume($t),te.exit("htmlTextData"),te.exit("htmlText"),Ee):Ae($t)}function Eo($t){return te.exit("htmlTextData"),te.enter("lineEnding"),te.consume($t),te.exit("lineEnding"),Mo}function Mo($t){return(0,sn.xz)($t)?(0,Gn.f)(te,Qs,"linePrefix",Pe.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($t):Qs($t)}function Qs($t){return te.enter("htmlTextData"),nt($t)}}const ko={name:"labelStartLink",tokenize:hs,resolveAll:rr.resolveAll};function hs(te,Ee,Ae){const Pe=this;return Ye;function Ye(nt){return te.enter("labelLink"),te.enter("labelMarker"),te.consume(nt),te.exit("labelMarker"),te.exit("labelLink"),Qe}function Qe(nt){return nt===94&&"_hiddenFootnoteSupport"in Pe.parser.constructs?Ae(nt):Ee(nt)}}const fi={name:"hardBreakEscape",tokenize:$i};function $i(te,Ee,Ae){return Pe;function Pe(Qe){return te.enter("hardBreakEscape"),te.consume(Qe),Ye}function Ye(Qe){return(0,sn.Ch)(Qe)?(te.exit("hardBreakEscape"),Ee(Qe)):Ae(Qe)}}const Rr={name:"codeText",tokenize:ji,resolve:Yr,previous:ui};function Yr(te){let Ee=te.length-4,Ae=3,Pe,Ye;if((te[Ae][1].type==="lineEnding"||te[Ae][1].type==="space")&&(te[Ee][1].type==="lineEnding"||te[Ee][1].type==="space")){for(Pe=Ae;++Pe<Ee;)if(te[Pe][1].type==="codeTextData"){te[Ae][1].type="codeTextPadding",te[Ee][1].type="codeTextPadding",Ae+=2,Ee-=2;break}}for(Pe=Ae-1,Ee++;++Pe<=Ee;)Ye===void 0?Pe!==Ee&&te[Pe][1].type!=="lineEnding"&&(Ye=Pe):(Pe===Ee||te[Pe][1].type==="lineEnding")&&(te[Ye][1].type="codeTextData",Pe!==Ye+2&&(te[Ye][1].end=te[Pe-1][1].end,te.splice(Ye+2,Pe-Ye-2),Ee-=Pe-Ye-2,Pe=Ye+2),Ye=void 0);return te}function ui(te){return te!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ji(te,Ee,Ae){const Pe=this;let Ye=0,Qe,nt;return bt;function bt(Jt){return te.enter("codeText"),te.enter("codeTextSequence"),Ft(Jt)}function Ft(Jt){return Jt===96?(te.consume(Jt),Ye++,Ft):(te.exit("codeTextSequence"),Bt(Jt))}function Bt(Jt){return Jt===null?Ae(Jt):Jt===32?(te.enter("space"),te.consume(Jt),te.exit("space"),Bt):Jt===96?(nt=te.enter("codeTextSequence"),Qe=0,Zt(Jt)):(0,sn.Ch)(Jt)?(te.enter("lineEnding"),te.consume(Jt),te.exit("lineEnding"),Bt):(te.enter("codeTextData"),Rt(Jt))}function Rt(Jt){return Jt===null||Jt===32||Jt===96||(0,sn.Ch)(Jt)?(te.exit("codeTextData"),Bt(Jt)):(te.consume(Jt),Rt)}function Zt(Jt){return Jt===96?(te.consume(Jt),Qe++,Zt):Qe===Ye?(te.exit("codeTextSequence"),te.exit("codeText"),Ee(Jt)):(nt.type="codeTextData",Rt(Jt))}}const Wn={42:Lt,43:Lt,45:Lt,48:Lt,49:Lt,50:Lt,51:Lt,52:Lt,53:Lt,54:Lt,55:Lt,56:Lt,57:Lt,62:ki},mo={91:Wo},ao={[-2]:cs,[-1]:cs,32:cs},fo={35:eo,42:gi,45:[Ni,gi],60:an,61:Ni,95:gi,96:nn,126:nn},ns={38:ti,92:Wr},fs={[-5]:ri,[-4]:ri,[-3]:ri,33:Ji,38:ti,42:bo,60:[Fo,ho],91:ko,92:[fi,Wr],93:rr,95:bo,96:Rr},Nn={null:[bo,li]},So={null:[42,95]},No={null:[]};function Es(te){const Ae=mn([B,...(te||{}).extensions||[]]),Pe={defined:[],lazy:{},constructs:Ae,content:Ye(xt),document:Ye(Pr),flow:Ye(Dr),string:Ye(Zr),text:Ye(Tn)};return Pe;function Ye(Qe){return nt;function nt(bt){return vn(Pe,Qe,bt)}}}const go=/[\0\t\n\r]/g;function bs(){let te=1,Ee="",Ae=!0,Pe;return Ye;function Ye(Qe,nt,bt){const Ft=[];let Bt,Rt,Zt,Jt,zt;for(Qe=Ee+(typeof Qe=="string"?Qe.toString():new TextDecoder(nt||void 0).decode(Qe)),Zt=0,Ee="",Ae&&(Qe.charCodeAt(0)===65279&&Zt++,Ae=void 0);Zt<Qe.length;){if(go.lastIndex=Zt,Bt=go.exec(Qe),Jt=Bt&&Bt.index!==void 0?Bt.index:Qe.length,zt=Qe.charCodeAt(Jt),!Bt){Ee=Qe.slice(Zt);break}if(zt===10&&Zt===Jt&&Pe)Ft.push(-3),Pe=void 0;else switch(Pe&&(Ft.push(-5),Pe=void 0),Zt<Jt&&(Ft.push(Qe.slice(Zt,Jt)),te+=Jt-Zt),zt){case 0:{Ft.push(65533),te++;break}case 9:{for(Rt=Math.ceil(te/4)*4,Ft.push(-2);te++<Rt;)Ft.push(-1);break}case 10:{Ft.push(-4),te=1;break}default:Pe=!0,te=1}Zt=Jt+1}return bt&&(Pe&&Ft.push(-5),Ee&&Ft.push(Ee),Ft.push(null)),Ft}}function jr(te,Ee){const Ae=Number.parseInt(te,Ee);return Ae<9||Ae===11||Ae>13&&Ae<32||Ae>126&&Ae<160||Ae>55295&&Ae<57344||Ae>64975&&Ae<65008||(Ae&65535)===65535||(Ae&65535)===65534||Ae>1114111?"\uFFFD":String.fromCodePoint(Ae)}const Zs=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Jo(te){return te.replace(Zs,Qo)}function Qo(te,Ee,Ae){if(Ee)return Ee;if(Ae.charCodeAt(0)===35){const Ye=Ae.charCodeAt(1),Qe=Ye===120||Ye===88;return jr(Ae.slice(Qe?2:1),Qe?16:10)}return ei(Ae)||te}const ks={}.hasOwnProperty;function Ma(te,Ee,Ae){return typeof Ee!="string"&&(Ae=Ee,Ee=void 0),tl(Ae)(ge(Es(Ae).document().write(bs()(te,Ee,!0))))}function tl(te){const Ee={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:Qe(Ka),autolinkProtocol:ci,autolinkEmail:ci,atxHeading:Qe(Cu),blockQuote:Qe(Va),characterEscape:ci,characterReference:ci,codeFenced:Qe(ss),codeFencedFenceInfo:nt,codeFencedFenceMeta:nt,codeIndented:Qe(ss,nt),codeText:Qe(ra,nt),codeTextData:ci,data:ci,codeFlowValue:ci,definition:Qe(Pa),definitionDestinationString:nt,definitionLabelString:nt,definitionTitleString:nt,emphasis:Qe(rl),hardBreakEscape:Qe(uu),hardBreakTrailing:Qe(uu),htmlFlow:Qe(zu,nt),htmlFlowData:ci,htmlText:Qe(zu,nt),htmlTextData:ci,image:Qe($l),label:nt,link:Qe(Ka),listItem:Qe(Xl),listItemValue:Jt,listOrdered:Qe(cu,Zt),listUnordered:Qe(cu),paragraph:Qe(Ko),reference:en,referenceString:nt,resourceDestinationString:nt,resourceTitleString:nt,setextHeading:Qe(Cu),strong:Qe(ia),thematicBreak:Qe(Ll)},exit:{atxHeading:Ft(),atxHeadingSequence:wn,autolink:Ft(),autolinkEmail:Do,autolinkProtocol:Ol,blockQuote:Ft(),characterEscapeValue:qi,characterReferenceMarkerHexadecimal:Wa,characterReferenceMarkerNumeric:Wa,characterReferenceValue:wu,codeFenced:Ft(Ce),codeFencedFence:U,codeFencedFenceInfo:zt,codeFencedFenceMeta:k,codeFlowValue:qi,codeIndented:Ft(et),codeText:Ft(Ur),codeTextData:qi,data:qi,definition:Ft(),definitionDestinationString:pn,definitionLabelString:It,definitionTitleString:Ut,emphasis:Ft(),hardBreakEscape:Ft(lo),hardBreakTrailing:Ft(lo),htmlFlow:Ft($n),htmlFlowData:qi,htmlText:Ft(Mi),htmlTextData:qi,image:Ft(Eo),label:Qs,labelText:Mo,lineEnding:Uo,link:Ft(uo),listItem:Ft(),listOrdered:Ft(),listUnordered:Ft(),paragraph:Ft(),referenceString:Is,resourceDestinationString:$t,resourceTitleString:Rs,resource:Ao,setextHeading:Ft(Li),setextHeadingLineSequence:Tr,setextHeadingText:fn,strong:Ft(),thematicBreak:Ft()}};Bo(Ee,(te||{}).mdastExtensions||[]);const Ae={};return Pe;function Pe(Un){let pr={type:"root",children:[]};const Ui={stack:[pr],tokenStack:[],config:Ee,enter:bt,exit:Bt,buffer:nt,resume:Rt,data:Ae},po=[];let Ii=-1;for(;++Ii<Un.length;)if(Un[Ii][1].type==="listOrdered"||Un[Ii][1].type==="listUnordered")if(Un[Ii][0]==="enter")po.push(Ii);else{const ha=po.pop();Ii=Ye(Un,ha,Ii)}for(Ii=-1;++Ii<Un.length;){const ha=Ee[Un[Ii][0]];ks.call(ha,Un[Ii][1].type)&&ha[Un[Ii][1].type].call(Object.assign({sliceSerialize:Un[Ii][2].sliceSerialize},Ui),Un[Ii][1])}if(Ui.tokenStack.length>0){const ha=Ui.tokenStack[Ui.tokenStack.length-1];(ha[1]||Eu).call(Ui,void 0,ha[0])}for(pr.position={start:rs(Un.length>0?Un[0][1].start:{line:1,column:1,offset:0}),end:rs(Un.length>0?Un[Un.length-2][1].end:{line:1,column:1,offset:0})},Ii=-1;++Ii<Ee.transforms.length;)pr=Ee.transforms[Ii](pr)||pr;return pr}function Ye(Un,pr,Ui){let po=pr-1,Ii=-1,ha=!1,fa,as,xa,yl;for(;++po<=Ui;){const Os=Un[po];switch(Os[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Os[0]==="enter"?Ii++:Ii--,yl=void 0;break}case"lineEndingBlank":{Os[0]==="enter"&&(fa&&!yl&&!Ii&&!xa&&(xa=po),yl=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:yl=void 0}if(!Ii&&Os[0]==="enter"&&Os[1].type==="listItemPrefix"||Ii===-1&&Os[0]==="exit"&&(Os[1].type==="listUnordered"||Os[1].type==="listOrdered")){if(fa){let Ml=po;for(as=void 0;Ml--;){const oa=Un[Ml];if(oa[1].type==="lineEnding"||oa[1].type==="lineEndingBlank"){if(oa[0]==="exit")continue;as&&(Un[as][1].type="lineEndingBlank",ha=!0),oa[1].type="lineEnding",as=Ml}else if(!(oa[1].type==="linePrefix"||oa[1].type==="blockQuotePrefix"||oa[1].type==="blockQuotePrefixWhitespace"||oa[1].type==="blockQuoteMarker"||oa[1].type==="listItemIndent"))break}xa&&(!as||xa<as)&&(fa._spread=!0),fa.end=Object.assign({},as?Un[as][1].start:Os[1].end),Un.splice(as||po,0,["exit",fa,Os[2]]),po++,Ui++}if(Os[1].type==="listItemPrefix"){const Ml={type:"listItem",_spread:!1,start:Object.assign({},Os[1].start),end:void 0};fa=Ml,Un.splice(po,0,["enter",Ml,Os[2]]),po++,Ui++,xa=void 0,yl=!0}}}return Un[pr][1]._spread=ha,Ui}function Qe(Un,pr){return Ui;function Ui(po){bt.call(this,Un(po),po),pr&&pr.call(this,po)}}function nt(){this.stack.push({type:"fragment",children:[]})}function bt(Un,pr,Ui){this.stack[this.stack.length-1].children.push(Un),this.stack.push(Un),this.tokenStack.push([pr,Ui]),Un.position={start:rs(pr.start),end:void 0}}function Ft(Un){return pr;function pr(Ui){Un&&Un.call(this,Ui),Bt.call(this,Ui)}}function Bt(Un,pr){const Ui=this.stack.pop(),po=this.tokenStack.pop();if(po)po[0].type!==Un.type&&(pr?pr.call(this,Un,po[0]):(po[1]||Eu).call(this,Un,po[0]));else throw new Error("Cannot close `"+Un.type+"` ("+F({start:Un.start,end:Un.end})+"): it\u2019s not open");Ui.position.end=rs(Un.end)}function Rt(){return Ve(this.stack.pop())}function Zt(){this.data.expectingFirstListItemValue=!0}function Jt(Un){if(this.data.expectingFirstListItemValue){const pr=this.stack[this.stack.length-2];pr.start=Number.parseInt(this.sliceSerialize(Un),10),this.data.expectingFirstListItemValue=void 0}}function zt(){const Un=this.resume(),pr=this.stack[this.stack.length-1];pr.lang=Un}function k(){const Un=this.resume(),pr=this.stack[this.stack.length-1];pr.meta=Un}function U(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function Ce(){const Un=this.resume(),pr=this.stack[this.stack.length-1];pr.value=Un.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function et(){const Un=this.resume(),pr=this.stack[this.stack.length-1];pr.value=Un.replace(/(\r?\n|\r)$/g,"")}function It(Un){const pr=this.resume(),Ui=this.stack[this.stack.length-1];Ui.label=pr,Ui.identifier=ys(this.sliceSerialize(Un)).toLowerCase()}function Ut(){const Un=this.resume(),pr=this.stack[this.stack.length-1];pr.title=Un}function pn(){const Un=this.resume(),pr=this.stack[this.stack.length-1];pr.url=Un}function wn(Un){const pr=this.stack[this.stack.length-1];if(!pr.depth){const Ui=this.sliceSerialize(Un).length;pr.depth=Ui}}function fn(){this.data.setextHeadingSlurpLineEnding=!0}function Tr(Un){const pr=this.stack[this.stack.length-1];pr.depth=this.sliceSerialize(Un).codePointAt(0)===61?1:2}function Li(){this.data.setextHeadingSlurpLineEnding=void 0}function ci(Un){const Ui=this.stack[this.stack.length-1].children;let po=Ui[Ui.length-1];(!po||po.type!=="text")&&(po=vl(),po.position={start:rs(Un.start),end:void 0},Ui.push(po)),this.stack.push(po)}function qi(Un){const pr=this.stack.pop();pr.value+=this.sliceSerialize(Un),pr.position.end=rs(Un.end)}function Uo(Un){const pr=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ui=pr.children[pr.children.length-1];Ui.position.end=rs(Un.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&Ee.canContainEols.includes(pr.type)&&(ci.call(this,Un),qi.call(this,Un))}function lo(){this.data.atHardBreak=!0}function $n(){const Un=this.resume(),pr=this.stack[this.stack.length-1];pr.value=Un}function Mi(){const Un=this.resume(),pr=this.stack[this.stack.length-1];pr.value=Un}function Ur(){const Un=this.resume(),pr=this.stack[this.stack.length-1];pr.value=Un}function uo(){const Un=this.stack[this.stack.length-1];if(this.data.inReference){const pr=this.data.referenceType||"shortcut";Un.type+="Reference",Un.referenceType=pr,delete Un.url,delete Un.title}else delete Un.identifier,delete Un.label;this.data.referenceType=void 0}function Eo(){const Un=this.stack[this.stack.length-1];if(this.data.inReference){const pr=this.data.referenceType||"shortcut";Un.type+="Reference",Un.referenceType=pr,delete Un.url,delete Un.title}else delete Un.identifier,delete Un.label;this.data.referenceType=void 0}function Mo(Un){const pr=this.sliceSerialize(Un),Ui=this.stack[this.stack.length-2];Ui.label=Jo(pr),Ui.identifier=ys(pr).toLowerCase()}function Qs(){const Un=this.stack[this.stack.length-1],pr=this.resume(),Ui=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ui.type==="link"){const po=Un.children;Ui.children=po}else Ui.alt=pr}function $t(){const Un=this.resume(),pr=this.stack[this.stack.length-1];pr.url=Un}function Rs(){const Un=this.resume(),pr=this.stack[this.stack.length-1];pr.title=Un}function Ao(){this.data.inReference=void 0}function en(){this.data.referenceType="collapsed"}function Is(Un){const pr=this.resume(),Ui=this.stack[this.stack.length-1];Ui.label=pr,Ui.identifier=ys(this.sliceSerialize(Un)).toLowerCase(),this.data.referenceType="full"}function Wa(Un){this.data.characterReferenceType=Un.type}function wu(Un){const pr=this.sliceSerialize(Un),Ui=this.data.characterReferenceType;let po;Ui?(po=jr(pr,Ui==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):po=ei(pr);const Ii=this.stack.pop();Ii.value+=po,Ii.position.end=rs(Un.end)}function Ol(Un){qi.call(this,Un);const pr=this.stack[this.stack.length-1];pr.url=this.sliceSerialize(Un)}function Do(Un){qi.call(this,Un);const pr=this.stack[this.stack.length-1];pr.url="mailto:"+this.sliceSerialize(Un)}function Va(){return{type:"blockquote",children:[]}}function ss(){return{type:"code",lang:null,meta:null,value:""}}function ra(){return{type:"inlineCode",value:""}}function Pa(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function rl(){return{type:"emphasis",children:[]}}function Cu(){return{type:"heading",depth:0,children:[]}}function uu(){return{type:"break"}}function zu(){return{type:"html",value:""}}function $l(){return{type:"image",title:null,url:"",alt:null}}function Ka(){return{type:"link",title:null,url:"",children:[]}}function cu(Un){return{type:"list",ordered:Un.type==="listOrdered",start:null,spread:Un._spread,children:[]}}function Xl(Un){return{type:"listItem",spread:Un._spread,checked:null,children:[]}}function Ko(){return{type:"paragraph",children:[]}}function ia(){return{type:"strong",children:[]}}function vl(){return{type:"text",value:""}}function Ll(){return{type:"thematicBreak"}}}function rs(te){return{line:te.line,column:te.column,offset:te.offset}}function Bo(te,Ee){let Ae=-1;for(;++Ae<Ee.length;){const Pe=Ee[Ae];Array.isArray(Pe)?Bo(te,Pe):ou(te,Pe)}}function ou(te,Ee){let Ae;for(Ae in Ee)if(ks.call(Ee,Ae))switch(Ae){case"canContainEols":{const Pe=Ee[Ae];Pe&&te[Ae].push(...Pe);break}case"transforms":{const Pe=Ee[Ae];Pe&&te[Ae].push(...Pe);break}case"enter":case"exit":{const Pe=Ee[Ae];Pe&&Object.assign(te[Ae],Pe);break}}}function Eu(te,Ee){throw te?new Error("Cannot close `"+te.type+"` ("+F({start:te.start,end:te.end})+"): a different token (`"+Ee.type+"`, "+F({start:Ee.start,end:Ee.end})+") is open"):new Error("Cannot close document, a token (`"+Ee.type+"`, "+F({start:Ee.start,end:Ee.end})+") is still open")}function su(te){const Ee=this;Ee.parser=Ae;function Ae(Pe){return Ma(Pe,Vh(ls(ls({},Ee.data("settings")),te),{extensions:Ee.data("micromarkExtensions")||[],mdastExtensions:Ee.data("fromMarkdownExtensions")||[]}))}}var Al=b(52835);function Js(te,Ee){const Ae=encode(Ns(te||""));if(!Ee)return Ae;const Pe=Ae.indexOf(":"),Ye=Ae.indexOf("?"),Qe=Ae.indexOf("#"),nt=Ae.indexOf("/");return Pe<0||nt>-1&&Pe>nt||Ye>-1&&Pe>Ye||Qe>-1&&Pe>Qe||Ee.test(Ae.slice(0,Pe))?Ae:""}function Ns(te){const Ee=[];let Ae=-1,Pe=0,Ye=0;for(;++Ae<te.length;){const Qe=te.charCodeAt(Ae);let nt="";if(Qe===37&&(0,sn.H$)(te.charCodeAt(Ae+1))&&(0,sn.H$)(te.charCodeAt(Ae+2)))Ye=2;else if(Qe<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(Qe))||(nt=String.fromCharCode(Qe));else if(Qe>55295&&Qe<57344){const bt=te.charCodeAt(Ae+1);Qe<56320&&bt>56319&&bt<57344?(nt=String.fromCharCode(Qe,bt),Ye=1):nt="\uFFFD"}else nt=String.fromCharCode(Qe);nt&&(Ee.push(te.slice(Pe,Ae),encodeURIComponent(nt)),Pe=Ae+Ye+1,nt=""),Ye&&(Ae+=Ye,Ye=0)}return Ee.join("")+te.slice(Pe)}function Da(te,Ee){const Ae=[{type:"text",value:"\u21A9"}];return Ee>1&&Ae.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(Ee)}]}),Ae}function nl(te,Ee){return"Back to reference "+(te+1)+(Ee>1?"-"+Ee:"")}function Pu(te){const Ee=typeof te.options.clobberPrefix=="string"?te.options.clobberPrefix:"user-content-",Ae=te.options.footnoteBackContent||Da,Pe=te.options.footnoteBackLabel||nl,Ye=te.options.footnoteLabel||"Footnotes",Qe=te.options.footnoteLabelTagName||"h2",nt=te.options.footnoteLabelProperties||{className:["sr-only"]},bt=[];let Ft=-1;for(;++Ft<te.footnoteOrder.length;){const Bt=te.footnoteById.get(te.footnoteOrder[Ft]);if(!Bt)continue;const Rt=te.all(Bt),Zt=String(Bt.identifier).toUpperCase(),Jt=Ns(Zt.toLowerCase());let zt=0;const k=[],U=te.footnoteCounts.get(Zt);for(;U!==void 0&&++zt<=U;){k.length>0&&k.push({type:"text",value:" "});let It=typeof Ae=="string"?Ae:Ae(Ft,zt);typeof It=="string"&&(It={type:"text",value:It}),k.push({type:"element",tagName:"a",properties:{href:"#"+Ee+"fnref-"+Jt+(zt>1?"-"+zt:""),dataFootnoteBackref:"",ariaLabel:typeof Pe=="string"?Pe:Pe(Ft,zt),className:["data-footnote-backref"]},children:Array.isArray(It)?It:[It]})}const Ce=Rt[Rt.length-1];if(Ce&&Ce.type==="element"&&Ce.tagName==="p"){const It=Ce.children[Ce.children.length-1];It&&It.type==="text"?It.value+=" ":Ce.children.push({type:"text",value:" "}),Ce.children.push(...k)}else Rt.push(...k);const et={type:"element",tagName:"li",properties:{id:Ee+"fn-"+Jt},children:te.wrap(Rt,!0)};te.patch(Bt,et),bt.push(et)}if(bt.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:Qe,properties:Vh(ls({},(0,Al.ZP)(nt)),{id:"footnote-label"}),children:[{type:"text",value:Ye}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:te.wrap(bt,!0)},{type:"text",value:`
`}]}}var Fu=b(21623);function tc(te,Ee){const Ae={type:"element",tagName:"blockquote",properties:{},children:te.wrap(te.all(Ee),!0)};return te.patch(Ee,Ae),te.applyData(Ee,Ae)}function is(te,Ee){const Ae={type:"element",tagName:"br",properties:{},children:[]};return te.patch(Ee,Ae),[te.applyData(Ee,Ae),{type:"text",value:`
`}]}function Uc(te,Ee){const Ae=Ee.value?Ee.value+`
`:"",Pe={};Ee.lang&&(Pe.className=["language-"+Ee.lang]);let Ye={type:"element",tagName:"code",properties:Pe,children:[{type:"text",value:Ae}]};return Ee.meta&&(Ye.data={meta:Ee.meta}),te.patch(Ee,Ye),Ye=te.applyData(Ee,Ye),Ye={type:"element",tagName:"pre",properties:{},children:[Ye]},te.patch(Ee,Ye),Ye}function yc(te,Ee){const Ae={type:"element",tagName:"del",properties:{},children:te.all(Ee)};return te.patch(Ee,Ae),te.applyData(Ee,Ae)}function Bu(te,Ee){const Ae={type:"element",tagName:"em",properties:{},children:te.all(Ee)};return te.patch(Ee,Ae),te.applyData(Ee,Ae)}function kl(te,Ee){const Ae=typeof te.options.clobberPrefix=="string"?te.options.clobberPrefix:"user-content-",Pe=String(Ee.identifier).toUpperCase(),Ye=Ns(Pe.toLowerCase()),Qe=te.footnoteOrder.indexOf(Pe);let nt,bt=te.footnoteCounts.get(Pe);bt===void 0?(bt=0,te.footnoteOrder.push(Pe),nt=te.footnoteOrder.length):nt=Qe+1,bt+=1,te.footnoteCounts.set(Pe,bt);const Ft={type:"element",tagName:"a",properties:{href:"#"+Ae+"fn-"+Ye,id:Ae+"fnref-"+Ye+(bt>1?"-"+bt:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(nt)}]};te.patch(Ee,Ft);const Bt={type:"element",tagName:"sup",properties:{},children:[Ft]};return te.patch(Ee,Bt),te.applyData(Ee,Bt)}function Vs(te,Ee){const Ae={type:"element",tagName:"h"+Ee.depth,properties:{},children:te.all(Ee)};return te.patch(Ee,Ae),te.applyData(Ee,Ae)}function Ks(te,Ee){if(te.options.allowDangerousHtml){const Ae={type:"raw",value:Ee.value};return te.patch(Ee,Ae),te.applyData(Ee,Ae)}}function ws(te,Ee){const Ae=Ee.referenceType;let Pe="]";if(Ae==="collapsed"?Pe+="[]":Ae==="full"&&(Pe+="["+(Ee.label||Ee.identifier)+"]"),Ee.type==="imageReference")return[{type:"text",value:"!["+Ee.alt+Pe}];const Ye=te.all(Ee),Qe=Ye[0];Qe&&Qe.type==="text"?Qe.value="["+Qe.value:Ye.unshift({type:"text",value:"["});const nt=Ye[Ye.length-1];return nt&&nt.type==="text"?nt.value+=Pe:Ye.push({type:"text",value:Pe}),Ye}function js(te,Ee){const Ae=String(Ee.identifier).toUpperCase(),Pe=te.definitionById.get(Ae);if(!Pe)return ws(te,Ee);const Ye={src:Ns(Pe.url||""),alt:Ee.alt};Pe.title!==null&&Pe.title!==void 0&&(Ye.title=Pe.title);const Qe={type:"element",tagName:"img",properties:Ye,children:[]};return te.patch(Ee,Qe),te.applyData(Ee,Qe)}function ju(te,Ee){const Ae={src:Ns(Ee.url)};Ee.alt!==null&&Ee.alt!==void 0&&(Ae.alt=Ee.alt),Ee.title!==null&&Ee.title!==void 0&&(Ae.title=Ee.title);const Pe={type:"element",tagName:"img",properties:Ae,children:[]};return te.patch(Ee,Pe),te.applyData(Ee,Pe)}function ba(te,Ee){const Ae={type:"text",value:Ee.value.replace(/\r?\n|\r/g," ")};te.patch(Ee,Ae);const Pe={type:"element",tagName:"code",properties:{},children:[Ae]};return te.patch(Ee,Pe),te.applyData(Ee,Pe)}function os(te,Ee){const Ae=String(Ee.identifier).toUpperCase(),Pe=te.definitionById.get(Ae);if(!Pe)return ws(te,Ee);const Ye={href:Ns(Pe.url||"")};Pe.title!==null&&Pe.title!==void 0&&(Ye.title=Pe.title);const Qe={type:"element",tagName:"a",properties:Ye,children:te.all(Ee)};return te.patch(Ee,Qe),te.applyData(Ee,Qe)}function Uu(te,Ee){const Ae={href:Ns(Ee.url)};Ee.title!==null&&Ee.title!==void 0&&(Ae.title=Ee.title);const Pe={type:"element",tagName:"a",properties:Ae,children:te.all(Ee)};return te.patch(Ee,Pe),te.applyData(Ee,Pe)}function dl(te,Ee,Ae){const Pe=te.all(Ee),Ye=Ae?Wl(Ae):dr(Ee),Qe={},nt=[];if(typeof Ee.checked=="boolean"){const Rt=Pe[0];let Zt;Rt&&Rt.type==="element"&&Rt.tagName==="p"?Zt=Rt:(Zt={type:"element",tagName:"p",properties:{},children:[]},Pe.unshift(Zt)),Zt.children.length>0&&Zt.children.unshift({type:"text",value:" "}),Zt.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:Ee.checked,disabled:!0},children:[]}),Qe.className=["task-list-item"]}let bt=-1;for(;++bt<Pe.length;){const Rt=Pe[bt];(Ye||bt!==0||Rt.type!=="element"||Rt.tagName!=="p")&&nt.push({type:"text",value:`
`}),Rt.type==="element"&&Rt.tagName==="p"&&!Ye?nt.push(...Rt.children):nt.push(Rt)}const Ft=Pe[Pe.length-1];Ft&&(Ye||Ft.type!=="element"||Ft.tagName!=="p")&&nt.push({type:"text",value:`
`});const Bt={type:"element",tagName:"li",properties:Qe,children:nt};return te.patch(Ee,Bt),te.applyData(Ee,Bt)}function Wl(te){let Ee=!1;if(te.type==="list"){Ee=te.spread||!1;const Ae=te.children;let Pe=-1;for(;!Ee&&++Pe<Ae.length;)Ee=dr(Ae[Pe])}return Ee}function dr(te){const Ee=te.spread;return Ee==null?te.children.length>1:Ee}function nc(te,Ee){const Ae={},Pe=te.all(Ee);let Ye=-1;for(typeof Ee.start=="number"&&Ee.start!==1&&(Ae.start=Ee.start);++Ye<Pe.length;){const nt=Pe[Ye];if(nt.type==="element"&&nt.tagName==="li"&&nt.properties&&Array.isArray(nt.properties.className)&&nt.properties.className.includes("task-list-item")){Ae.className=["contains-task-list"];break}}const Qe={type:"element",tagName:Ee.ordered?"ol":"ul",properties:Ae,children:te.wrap(Pe,!0)};return te.patch(Ee,Qe),te.applyData(Ee,Qe)}function vt(te,Ee){const Ae={type:"element",tagName:"p",properties:{},children:te.all(Ee)};return te.patch(Ee,Ae),te.applyData(Ee,Ae)}function un(te,Ee){const Ae={type:"root",children:te.wrap(te.all(Ee))};return te.patch(Ee,Ae),te.applyData(Ee,Ae)}function bc(te,Ee){const Ae={type:"element",tagName:"strong",properties:{},children:te.all(Ee)};return te.patch(Ee,Ae),te.applyData(Ee,Ae)}function Sc(te,Ee){const Ae=te.all(Ee),Pe=Ae.shift(),Ye=[];if(Pe){const nt={type:"element",tagName:"thead",properties:{},children:te.wrap([Pe],!0)};te.patch(Ee.children[0],nt),Ye.push(nt)}if(Ae.length>0){const nt={type:"element",tagName:"tbody",properties:{},children:te.wrap(Ae,!0)},bt=(0,M.Pk)(Ee.children[1]),Ft=(0,M.rb)(Ee.children[Ee.children.length-1]);bt&&Ft&&(nt.position={start:bt,end:Ft}),Ye.push(nt)}const Qe={type:"element",tagName:"table",properties:{},children:te.wrap(Ye,!0)};return te.patch(Ee,Qe),te.applyData(Ee,Qe)}function Nl(te,Ee,Ae){const Pe=Ae?Ae.children:void 0,Qe=(Pe?Pe.indexOf(Ee):1)===0?"th":"td",nt=Ae&&Ae.type==="table"?Ae.align:void 0,bt=nt?nt.length:Ee.children.length;let Ft=-1;const Bt=[];for(;++Ft<bt;){const Zt=Ee.children[Ft],Jt={},zt=nt?nt[Ft]:void 0;zt&&(Jt.align=zt);let k={type:"element",tagName:Qe,properties:Jt,children:[]};Zt&&(k.children=te.all(Zt),te.patch(Zt,k),k=te.applyData(Zt,k)),Bt.push(k)}const Rt={type:"element",tagName:"tr",properties:{},children:te.wrap(Bt,!0)};return te.patch(Ee,Rt),te.applyData(Ee,Rt)}function Ga(te,Ee){const Ae={type:"element",tagName:"td",properties:{},children:te.all(Ee)};return te.patch(Ee,Ae),te.applyData(Ee,Ae)}const Vl=9,Rl=32;function pl(te){const Ee=String(te),Ae=/\r?\n|\r/g;let Pe=Ae.exec(Ee),Ye=0;const Qe=[];for(;Pe;)Qe.push(jo(Ee.slice(Ye,Pe.index),Ye>0,!0),Pe[0]),Ye=Pe.index+Pe[0].length,Pe=Ae.exec(Ee);return Qe.push(jo(Ee.slice(Ye),Ye>0,!1)),Qe.join("")}function jo(te,Ee,Ae){let Pe=0,Ye=te.length;if(Ee){let Qe=te.codePointAt(Pe);for(;Qe===Vl||Qe===Rl;)Pe++,Qe=te.codePointAt(Pe)}if(Ae){let Qe=te.codePointAt(Ye-1);for(;Qe===Vl||Qe===Rl;)Ye--,Qe=te.codePointAt(Ye-1)}return Ye>Pe?te.slice(Pe,Ye):""}function zr(te,Ee){const Ae={type:"text",value:pl(String(Ee.value))};return te.patch(Ee,Ae),te.applyData(Ee,Ae)}function Ys(te,Ee){const Ae={type:"element",tagName:"hr",properties:{},children:[]};return te.patch(Ee,Ae),te.applyData(Ee,Ae)}const Sa={blockquote:tc,break:is,code:Uc,delete:yc,emphasis:Bu,footnoteReference:kl,heading:Vs,html:Ks,imageReference:js,image:ju,inlineCode:ba,linkReference:os,link:Uu,listItem:dl,list:nc,paragraph:vt,root:un,strong:bc,table:Sc,tableCell:Ga,tableRow:Nl,text:zr,thematicBreak:Ys,toml:Io,yaml:Io,definition:Io,footnoteDefinition:Io};function Io(){}const Ci={}.hasOwnProperty,ds={};function na(te,Ee){const Ae=Ee||ds,Pe=new Map,Ye=new Map,Qe=new Map,nt=ls(ls({},Sa),Ae.handlers),bt={all:Bt,applyData:ca,definitionById:Pe,footnoteById:Ye,footnoteCounts:Qe,footnoteOrder:[],handlers:nt,one:Ft,options:Ae,patch:Oo,wrap:gl};return(0,Fu.Vn)(te,function(Rt){if(Rt.type==="definition"||Rt.type==="footnoteDefinition"){const Zt=Rt.type==="definition"?Pe:Ye,Jt=String(Rt.identifier).toUpperCase();Zt.has(Jt)||Zt.set(Jt,Rt)}}),bt;function Ft(Rt,Zt){const Jt=Rt.type,zt=bt.handlers[Jt];if(Ci.call(bt.handlers,Jt)&&zt)return zt(bt,Rt,Zt);if(bt.options.passThrough&&bt.options.passThrough.includes(Jt)){if("children"in Rt){const U=Rt,{children:Ce}=U,et=o0(U,["children"]),It=(0,Al.ZP)(et);return It.children=bt.all(Rt),It}return(0,Al.ZP)(Rt)}return(bt.options.unknownHandler||Ds)(bt,Rt,Zt)}function Bt(Rt){const Zt=[];if("children"in Rt){const Jt=Rt.children;let zt=-1;for(;++zt<Jt.length;){const k=bt.one(Jt[zt],Rt);if(k){if(zt&&Jt[zt-1].type==="break"&&(!Array.isArray(k)&&k.type==="text"&&(k.value=Qi(k.value)),!Array.isArray(k)&&k.type==="element")){const U=k.children[0];U&&U.type==="text"&&(U.value=Qi(U.value))}Array.isArray(k)?Zt.push(...k):Zt.push(k)}}}return Zt}}function Oo(te,Ee){te.position&&(Ee.position=(0,M.FK)(te))}function ca(te,Ee){let Ae=Ee;if(te&&te.data){const Pe=te.data.hName,Ye=te.data.hChildren,Qe=te.data.hProperties;if(typeof Pe=="string")if(Ae.type==="element")Ae.tagName=Pe;else{const nt="children"in Ae?Ae.children:[Ae];Ae={type:"element",tagName:Pe,properties:{},children:nt}}Ae.type==="element"&&Qe&&Object.assign(Ae.properties,(0,Al.ZP)(Qe)),"children"in Ae&&Ae.children&&Ye!==null&&Ye!==void 0&&(Ae.children=Ye)}return Ae}function Ds(te,Ee){const Ae=Ee.data||{},Pe="value"in Ee&&!(Ci.call(Ae,"hProperties")||Ci.call(Ae,"hChildren"))?{type:"text",value:Ee.value}:{type:"element",tagName:"div",properties:{},children:te.all(Ee)};return te.patch(Ee,Pe),te.applyData(Ee,Pe)}function gl(te,Ee){const Ae=[];let Pe=-1;for(Ee&&Ae.push({type:"text",value:`
`});++Pe<te.length;)Pe&&Ae.push({type:"text",value:`
`}),Ae.push(te[Pe]);return Ee&&te.length>0&&Ae.push({type:"text",value:`
`}),Ae}function Qi(te){let Ee=0,Ae=te.charCodeAt(Ee);for(;Ae===9||Ae===32;)Ee++,Ae=te.charCodeAt(Ee);return te.slice(Ee)}function Gs(te,Ee){const Ae=na(te,Ee),Pe=Ae.one(te,void 0),Ye=Pu(Ae),Qe=Array.isArray(Pe)?{type:"root",children:Pe}:Pe||{type:"root",children:[]};return Ye&&((0,Y.ok)("children"in Qe),Qe.children.push({type:"text",value:`
`},Ye)),Qe}function Fi(te,Ee){return te&&"run"in te?function(Ae,Pe){return O1(this,null,function*(){const Ye=Gs(Ae,ls({file:Pe},Ee));yield te.run(Ye,Pe)})}:function(Ae,Pe){return Gs(Ae,ls({file:Pe},Ee||te))}}function xo(te){if(te)throw te}var Lo=b(94470);function Go(te){if(typeof te!="object"||te===null)return!1;const Ee=Object.getPrototypeOf(te);return(Ee===null||Ee===Object.prototype||Object.getPrototypeOf(Ee)===null)&&!(Symbol.toStringTag in te)&&!(Symbol.iterator in te)}function ro(){const te=[],Ee={run:Ae,use:Pe};return Ee;function Ae(...Ye){let Qe=-1;const nt=Ye.pop();if(typeof nt!="function")throw new TypeError("Expected function as last argument, not "+nt);bt(null,...Ye);function bt(Ft,...Bt){const Rt=te[++Qe];let Zt=-1;if(Ft){nt(Ft);return}for(;++Zt<Ye.length;)(Bt[Zt]===null||Bt[Zt]===void 0)&&(Bt[Zt]=Ye[Zt]);Ye=Bt,Rt?au(Rt,bt)(...Bt):nt(null,...Bt)}}function Pe(Ye){if(typeof Ye!="function")throw new TypeError("Expected `middelware` to be a function, not "+Ye);return te.push(Ye),Ee}}function au(te,Ee){let Ae;return Pe;function Pe(...nt){const bt=te.length>nt.length;let Ft;bt&&nt.push(Ye);try{Ft=te.apply(this,nt)}catch(Bt){const Rt=Bt;if(bt&&Ae)throw Rt;return Ye(Rt)}bt||(Ft&&Ft.then&&typeof Ft.then=="function"?Ft.then(Qe,Ye):Ft instanceof Error?Ye(Ft):Qe(Ft))}function Ye(nt,...bt){Ae||(Ae=!0,Ee(nt,...bt))}function Qe(nt){Ye(null,nt)}}const xr={basename:Hc,dirname:Wi,extname:zc,join:lu,sep:"/"};function Hc(te,Ee){if(Ee!==void 0&&typeof Ee!="string")throw new TypeError('"ext" argument must be a string');Il(te);let Ae=0,Pe=-1,Ye=te.length,Qe;if(Ee===void 0||Ee.length===0||Ee.length>te.length){for(;Ye--;)if(te.codePointAt(Ye)===47){if(Qe){Ae=Ye+1;break}}else Pe<0&&(Qe=!0,Pe=Ye+1);return Pe<0?"":te.slice(Ae,Pe)}if(Ee===te)return"";let nt=-1,bt=Ee.length-1;for(;Ye--;)if(te.codePointAt(Ye)===47){if(Qe){Ae=Ye+1;break}}else nt<0&&(Qe=!0,nt=Ye+1),bt>-1&&(te.codePointAt(Ye)===Ee.codePointAt(bt--)?bt<0&&(Pe=Ye):(bt=-1,Pe=nt));return Ae===Pe?Pe=nt:Pe<0&&(Pe=te.length),te.slice(Ae,Pe)}function Wi(te){if(Il(te),te.length===0)return".";let Ee=-1,Ae=te.length,Pe;for(;--Ae;)if(te.codePointAt(Ae)===47){if(Pe){Ee=Ae;break}}else Pe||(Pe=!0);return Ee<0?te.codePointAt(0)===47?"/":".":Ee===1&&te.codePointAt(0)===47?"//":te.slice(0,Ee)}function zc(te){Il(te);let Ee=te.length,Ae=-1,Pe=0,Ye=-1,Qe=0,nt;for(;Ee--;){const bt=te.codePointAt(Ee);if(bt===47){if(nt){Pe=Ee+1;break}continue}Ae<0&&(nt=!0,Ae=Ee+1),bt===46?Ye<0?Ye=Ee:Qe!==1&&(Qe=1):Ye>-1&&(Qe=-1)}return Ye<0||Ae<0||Qe===0||Qe===1&&Ye===Ae-1&&Ye===Pe+1?"":te.slice(Ye,Ae)}function lu(...te){let Ee=-1,Ae;for(;++Ee<te.length;)Il(te[Ee]),te[Ee]&&(Ae=Ae===void 0?te[Ee]:Ae+"/"+te[Ee]);return Ae===void 0?".":Hu(Ae)}function Hu(te){Il(te);const Ee=te.codePointAt(0)===47;let Ae=xc(te,!Ee);return Ae.length===0&&!Ee&&(Ae="."),Ae.length>0&&te.codePointAt(te.length-1)===47&&(Ae+="/"),Ee?"/"+Ae:Ae}function xc(te,Ee){let Ae="",Pe=0,Ye=-1,Qe=0,nt=-1,bt,Ft;for(;++nt<=te.length;){if(nt<te.length)bt=te.codePointAt(nt);else{if(bt===47)break;bt=47}if(bt===47){if(!(Ye===nt-1||Qe===1))if(Ye!==nt-1&&Qe===2){if(Ae.length<2||Pe!==2||Ae.codePointAt(Ae.length-1)!==46||Ae.codePointAt(Ae.length-2)!==46){if(Ae.length>2){if(Ft=Ae.lastIndexOf("/"),Ft!==Ae.length-1){Ft<0?(Ae="",Pe=0):(Ae=Ae.slice(0,Ft),Pe=Ae.length-1-Ae.lastIndexOf("/")),Ye=nt,Qe=0;continue}}else if(Ae.length>0){Ae="",Pe=0,Ye=nt,Qe=0;continue}}Ee&&(Ae=Ae.length>0?Ae+"/..":"..",Pe=2)}else Ae.length>0?Ae+="/"+te.slice(Ye+1,nt):Ae=te.slice(Ye+1,nt),Pe=nt-Ye-1;Ye=nt,Qe=0}else bt===46&&Qe>-1?Qe++:Qe=-1}return Ae}function Il(te){if(typeof te!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(te))}const ml={cwd:Kl};function Kl(){return"/"}function io(te){return!!(te!==null&&typeof te=="object"&&"href"in te&&te.href&&"protocol"in te&&te.protocol&&te.auth===void 0)}function Yl(te){if(typeof te=="string")te=new URL(te);else if(!io(te)){const Ee=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+te+"`");throw Ee.code="ERR_INVALID_ARG_TYPE",Ee}if(te.protocol!=="file:"){const Ee=new TypeError("The URL must be of scheme file");throw Ee.code="ERR_INVALID_URL_SCHEME",Ee}return Ke(te)}function Ke(te){if(te.hostname!==""){const Pe=new TypeError('File URL host must be "localhost" or empty on darwin');throw Pe.code="ERR_INVALID_FILE_URL_HOST",Pe}const Ee=te.pathname;let Ae=-1;for(;++Ae<Ee.length;)if(Ee.codePointAt(Ae)===37&&Ee.codePointAt(Ae+1)===50){const Pe=Ee.codePointAt(Ae+2);if(Pe===70||Pe===102){const Ye=new TypeError("File URL path must not include encoded / characters");throw Ye.code="ERR_INVALID_FILE_URL_PATH",Ye}}return decodeURIComponent(Ee)}const at=["history","path","basename","stem","extname","dirname"];class pt{constructor(Ee){let Ae;Ee?io(Ee)?Ae={path:Ee}:typeof Ee=="string"||Ht(Ee)?Ae={value:Ee}:Ae=Ee:Ae={},this.cwd=ml.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let Pe=-1;for(;++Pe<at.length;){const Qe=at[Pe];Qe in Ae&&Ae[Qe]!==void 0&&Ae[Qe]!==null&&(this[Qe]=Qe==="history"?[...Ae[Qe]]:Ae[Qe])}let Ye;for(Ye in Ae)at.includes(Ye)||(this[Ye]=Ae[Ye])}get basename(){return typeof this.path=="string"?xr.basename(this.path):void 0}set basename(Ee){kt(Ee,"basename"),mt(Ee,"basename"),this.path=xr.join(this.dirname||"",Ee)}get dirname(){return typeof this.path=="string"?xr.dirname(this.path):void 0}set dirname(Ee){Pt(this.basename,"dirname"),this.path=xr.join(Ee||"",this.basename)}get extname(){return typeof this.path=="string"?xr.extname(this.path):void 0}set extname(Ee){if(mt(Ee,"extname"),Pt(this.dirname,"extname"),Ee){if(Ee.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(Ee.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=xr.join(this.dirname,this.stem+(Ee||""))}get path(){return this.history[this.history.length-1]}set path(Ee){io(Ee)&&(Ee=Yl(Ee)),kt(Ee,"path"),this.path!==Ee&&this.history.push(Ee)}get stem(){return typeof this.path=="string"?xr.basename(this.path,this.extname):void 0}set stem(Ee){kt(Ee,"stem"),mt(Ee,"stem"),this.path=xr.join(this.dirname||"",Ee+(this.extname||""))}fail(Ee,Ae,Pe){const Ye=this.message(Ee,Ae,Pe);throw Ye.fatal=!0,Ye}info(Ee,Ae,Pe){const Ye=this.message(Ee,Ae,Pe);return Ye.fatal=void 0,Ye}message(Ee,Ae,Pe){const Ye=new G(Ee,Ae,Pe);return this.path&&(Ye.name=this.path+":"+Ye.name,Ye.file=this.path),Ye.fatal=!1,this.messages.push(Ye),Ye}toString(Ee){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(Ee||void 0).decode(this.value)}}function mt(te,Ee){if(te&&te.includes(xr.sep))throw new Error("`"+Ee+"` cannot be a path: did not expect `"+xr.sep+"`")}function kt(te,Ee){if(!te)throw new Error("`"+Ee+"` cannot be empty")}function Pt(te,Ee){if(!te)throw new Error("Setting `"+Ee+"` requires `path` to be set too")}function Ht(te){return!!(te&&typeof te=="object"&&"byteLength"in te&&"byteOffset"in te)}const Qt=function(te){const Pe=this.constructor.prototype,Ye=Pe[te],Qe=function(){return Ye.apply(Qe,arguments)};Object.setPrototypeOf(Qe,Pe);const nt=Object.getOwnPropertyNames(Ye);for(const bt of nt){const Ft=Object.getOwnPropertyDescriptor(Ye,bt);Ft&&Object.defineProperty(Qe,bt,Ft)}return Qe},xn={}.hasOwnProperty;class dn extends Qt{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=ro()}copy(){const Ee=new dn;let Ae=-1;for(;++Ae<this.attachers.length;){const Pe=this.attachers[Ae];Ee.use(...Pe)}return Ee.data(Lo(!0,{},this.namespace)),Ee}data(Ee,Ae){return typeof Ee=="string"?arguments.length===2?(Cn("data",this.frozen),this.namespace[Ee]=Ae,this):xn.call(this.namespace,Ee)&&this.namespace[Ee]||void 0:Ee?(Cn("data",this.frozen),this.namespace=Ee,this):this.namespace}freeze(){if(this.frozen)return this;const Ee=this;for(;++this.freezeIndex<this.attachers.length;){const[Ae,...Pe]=this.attachers[this.freezeIndex];if(Pe[0]===!1)continue;Pe[0]===!0&&(Pe[0]=void 0);const Ye=Ae.call(Ee,...Pe);typeof Ye=="function"&&this.transformers.use(Ye)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(Ee){this.freeze();const Ae=mr(Ee),Pe=this.parser||this.Parser;return yn("parse",Pe),Pe(String(Ae),Ae)}process(Ee,Ae){const Pe=this;return this.freeze(),yn("process",this.parser||this.Parser),An("process",this.compiler||this.Compiler),Ae?Ye(void 0,Ae):new Promise(Ye);function Ye(Qe,nt){const bt=mr(Ee),Ft=Pe.parse(bt);Pe.run(Ft,bt,function(Rt,Zt,Jt){if(Rt||!Zt||!Jt)return Bt(Rt);const zt=Zt,k=Pe.stringify(zt,Jt);Hn(k)?Jt.value=k:Jt.result=k,Bt(Rt,Jt)});function Bt(Rt,Zt){Rt||!Zt?nt(Rt):Qe?Qe(Zt):((0,Y.ok)(Ae,"`done` is defined if `resolve` is not"),Ae(void 0,Zt))}}}processSync(Ee){let Ae=!1,Pe;return this.freeze(),yn("processSync",this.parser||this.Parser),An("processSync",this.compiler||this.Compiler),this.process(Ee,Ye),qn("processSync","process",Ae),(0,Y.ok)(Pe,"we either bailed on an error or have a tree"),Pe;function Ye(Qe,nt){Ae=!0,xo(Qe),Pe=nt}}run(Ee,Ae,Pe){jn(Ee),this.freeze();const Ye=this.transformers;return!Pe&&typeof Ae=="function"&&(Pe=Ae,Ae=void 0),Pe?Qe(void 0,Pe):new Promise(Qe);function Qe(nt,bt){(0,Y.ok)(typeof Ae!="function","`file` can\u2019t be a `done` anymore, we checked");const Ft=mr(Ae);Ye.run(Ee,Ft,Bt);function Bt(Rt,Zt,Jt){const zt=Zt||Ee;Rt?bt(Rt):nt?nt(zt):((0,Y.ok)(Pe,"`done` is defined if `resolve` is not"),Pe(void 0,zt,Jt))}}}runSync(Ee,Ae){let Pe=!1,Ye;return this.run(Ee,Ae,Qe),qn("runSync","run",Pe),(0,Y.ok)(Ye,"we either bailed on an error or have a tree"),Ye;function Qe(nt,bt){xo(nt),Ye=bt,Pe=!0}}stringify(Ee,Ae){this.freeze();const Pe=mr(Ae),Ye=this.compiler||this.Compiler;return An("stringify",Ye),jn(Ee),Ye(Ee,Pe)}use(Ee,...Ae){const Pe=this.attachers,Ye=this.namespace;if(Cn("use",this.frozen),Ee!=null)if(typeof Ee=="function")Ft(Ee,Ae);else if(typeof Ee=="object")Array.isArray(Ee)?bt(Ee):nt(Ee);else throw new TypeError("Expected usable value, not `"+Ee+"`");return this;function Qe(Bt){if(typeof Bt=="function")Ft(Bt,[]);else if(typeof Bt=="object")if(Array.isArray(Bt)){const[Rt,...Zt]=Bt;Ft(Rt,Zt)}else nt(Bt);else throw new TypeError("Expected usable value, not `"+Bt+"`")}function nt(Bt){if(!("plugins"in Bt)&&!("settings"in Bt))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");bt(Bt.plugins),Bt.settings&&(Ye.settings=Lo(!0,Ye.settings,Bt.settings))}function bt(Bt){let Rt=-1;if(Bt!=null)if(Array.isArray(Bt))for(;++Rt<Bt.length;){const Zt=Bt[Rt];Qe(Zt)}else throw new TypeError("Expected a list of plugins, not `"+Bt+"`")}function Ft(Bt,Rt){let Zt=-1,Jt=-1;for(;++Zt<Pe.length;)if(Pe[Zt][0]===Bt){Jt=Zt;break}if(Jt===-1)Pe.push([Bt,...Rt]);else if(Rt.length>0){let[zt,...k]=Rt;const U=Pe[Jt][1];Go(U)&&Go(zt)&&(zt=Lo(!0,U,zt)),Pe[Jt]=[Bt,zt,...k]}}}}const Ln=new dn().freeze();function yn(te,Ee){if(typeof Ee!="function")throw new TypeError("Cannot `"+te+"` without `parser`")}function An(te,Ee){if(typeof Ee!="function")throw new TypeError("Cannot `"+te+"` without `compiler`")}function Cn(te,Ee){if(Ee)throw new Error("Cannot call `"+te+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function jn(te){if(!Go(te)||typeof te.type!="string")throw new TypeError("Expected node, got `"+te+"`")}function qn(te,Ee,Ae){if(!Ae)throw new Error("`"+te+"` finished async. Use `"+Ee+"` instead")}function mr(te){return Or(te)?te:new pt(te)}function Or(te){return!!(te&&typeof te=="object"&&"message"in te&&"messages"in te)}function Hn(te){return typeof te=="string"||ur(te)}function ur(te){return!!(te&&typeof te=="object"&&"byteLength"in te&&"byteOffset"in te)}const Qn="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",_r=[],Xr={allowDangerousHtml:!0},Cr=/^(https?|ircs?|mailto|xmpp)$/i,wi=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function ni(te){const Ee=te.allowedElements,Ae=te.allowElement,Pe=te.children||"",Ye=te.className,Qe=te.components,nt=te.disallowedElements,bt=te.rehypePlugins||_r,Ft=te.remarkPlugins||_r,Bt=te.remarkRehypeOptions?ls(ls({},te.remarkRehypeOptions),Xr):Xr,Rt=te.skipHtml,Zt=te.unwrapDisallowed,Jt=te.urlTransform||Bi,zt=Ln().use(su).use(Ft).use(Fi,Bt).use(bt),k=new pt;typeof Pe=="string"?k.value=Pe:(0,Y.t1)("Unexpected value `"+Pe+"` for `children` prop, expected `string`"),Ee&&nt&&(0,Y.t1)("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other");for(const It of wi)Object.hasOwn(te,It.from)&&(0,Y.t1)("Unexpected `"+It.from+"` prop, "+(It.to?"use `"+It.to+"` instead":"remove it")+" (see <"+Qn+"#"+It.id+"> for more info)");const U=zt.parse(k);let Ce=zt.runSync(U,k);return Ye&&(Ce={type:"element",tagName:"div",properties:{className:Ye},children:Ce.type==="root"?Ce.children:[Ce]}),(0,Fu.Vn)(Ce,et),me(Ce,{Fragment:Ne.Fragment,components:Qe,ignoreInvalidStyle:!0,jsx:Ne.jsx,jsxs:Ne.jsxs,passKeys:!0,passNode:!0});function et(It,Ut,pn){if(It.type==="raw"&&pn&&typeof Ut=="number")return Rt?pn.children.splice(Ut,1):pn.children[Ut]={type:"text",value:It.value},Ut;if(It.type==="element"){let wn;for(wn in ve)if(Object.hasOwn(ve,wn)&&Object.hasOwn(It.properties,wn)){const fn=It.properties[wn],Tr=ve[wn];(Tr===null||Tr.includes(It.tagName))&&(It.properties[wn]=Jt(String(fn||""),wn,It))}}if(It.type==="element"){let wn=Ee?!Ee.includes(It.tagName):nt?nt.includes(It.tagName):!1;if(!wn&&Ae&&typeof Ut=="number"&&(wn=!Ae(It,Ut,pn)),wn&&pn&&typeof Ut=="number")return Zt&&It.children?pn.children.splice(Ut,1,...It.children):pn.children.splice(Ut,1),Ut}}}function Bi(te){const Ee=te.indexOf(":"),Ae=te.indexOf("?"),Pe=te.indexOf("#"),Ye=te.indexOf("/");return Ee<0||Ye>-1&&Ee>Ye||Ae>-1&&Ee>Ae||Pe>-1&&Ee>Pe||Cr.test(te.slice(0,Ee))?te:""}},17274:function(Ie,Z,b){"use strict";b.d(Z,{Z:function(){return zt}});var B=b(52835),Y=b(24345),s=b(55316),E=b(91634),I=b(26103);function u(k){const U=String(k),Ce=[];return{toOffset:It,toPoint:et};function et(Ut){if(typeof Ut=="number"&&Ut>-1&&Ut<=U.length){let pn=0;for(;;){let wn=Ce[pn];if(wn===void 0){const fn=d(U,Ce[pn-1]);wn=fn===-1?U.length+1:fn+1,Ce[pn]=wn}if(wn>Ut)return{line:pn+1,column:Ut-(pn>0?Ce[pn-1]:0)+1,offset:Ut};pn++}}}function It(Ut){if(Ut&&typeof Ut.line=="number"&&typeof Ut.column=="number"&&!Number.isNaN(Ut.line)&&!Number.isNaN(Ut.column)){for(;Ce.length<Ut.line;){const wn=Ce[Ce.length-1],fn=d(U,wn),Tr=fn===-1?U.length+1:fn+1;if(wn===Tr)break;Ce.push(Tr)}const pn=(Ut.line>1?Ce[Ut.line-2]:0)+Ut.column-1;if(pn<Ce[Ut.line-1])return pn}}}function d(k,U){const Ce=k.indexOf("\r",U),et=k.indexOf(`
`,U);return et===-1?Ce:Ce===-1||Ce+1===et?et:Ce<et?Ce:et}var g=b(49911);const y={}.hasOwnProperty,S=Object.prototype;function v(k,U){const Ce=U||{};return c({file:Ce.file||void 0,location:!1,schema:Ce.space==="svg"?E.YP:E.dy,verbose:Ce.verbose||!1},k)}function c(k,U){let Ce;switch(U.nodeName){case"#comment":{const et=U;return Ce={type:"comment",value:et.data},x(k,et,Ce),Ce}case"#document":case"#document-fragment":{const et=U,It="mode"in et?et.mode==="quirks"||et.mode==="limited-quirks":!1;if(Ce={type:"root",children:h(k,U.childNodes),data:{quirksMode:It}},k.file&&k.location){const Ut=String(k.file),pn=u(Ut),wn=pn.toPoint(0),fn=pn.toPoint(Ut.length);(0,Y.ok)(wn,"expected `start`"),(0,Y.ok)(fn,"expected `end`"),Ce.position={start:wn,end:fn}}return Ce}case"#documentType":{const et=U;return Ce={type:"doctype"},x(k,et,Ce),Ce}case"#text":{const et=U;return Ce={type:"text",value:et.value},x(k,et,Ce),Ce}default:return Ce=m(k,U),Ce}}function h(k,U){let Ce=-1;const et=[];for(;++Ce<U.length;){const It=c(k,U[Ce]);et.push(It)}return et}function m(k,U){const Ce=k.schema;k.schema=U.namespaceURI===g.t.svg?E.YP:E.dy;let et=-1;const It={};for(;++et<U.attrs.length;){const wn=U.attrs[et],fn=(wn.prefix?wn.prefix+":":"")+wn.name;y.call(S,fn)||(It[fn]=wn.value)}const pn=(k.schema.space==="svg"?s.s:s.h)(U.tagName,It,h(k,U.childNodes));if(x(k,U,pn),pn.tagName==="template"){const wn=U,fn=wn.sourceCodeLocation,Tr=fn&&fn.startTag&&_(fn.startTag),Li=fn&&fn.endTag&&_(fn.endTag),ci=c(k,wn.content);Tr&&Li&&k.file&&(ci.position={start:Tr.end,end:Li.start}),pn.content=ci}return k.schema=Ce,pn}function x(k,U,Ce){if("sourceCodeLocation"in U&&U.sourceCodeLocation&&k.file){const et=T(k,Ce,U.sourceCodeLocation);et&&(k.location=!0,Ce.position=et)}}function T(k,U,Ce){const et=_(Ce);if(U.type==="element"){const It=U.children[U.children.length-1];if(et&&!Ce.endTag&&It&&It.position&&It.position.end&&(et.end=Object.assign({},It.position.end)),k.verbose){const Ut={};let pn;if(Ce.attrs)for(pn in Ce.attrs)y.call(Ce.attrs,pn)&&(Ut[(0,I.s)(k.schema,pn).property]=_(Ce.attrs[pn]));(0,Y.ok)(Ce.startTag,"a start tag should exist");const wn=_(Ce.startTag),fn=Ce.endTag?_(Ce.endTag):void 0,Tr={opening:wn};fn&&(Tr.closing=fn),Tr.properties=Ut,U.data={position:Tr}}}return et}function _(k){const U=R({line:k.startLine,column:k.startCol,offset:k.startOffset}),Ce=R({line:k.endLine,column:k.endCol,offset:k.endOffset});return U||Ce?{start:U,end:Ce}:void 0}function R(k){return k.line&&k.column?k:void 0}var A=b(25668),N=b(50342);const L={}.hasOwnProperty;function M(k,U){const Ce=U||{};function et(It,...Ut){let pn=et.invalid;const wn=et.handlers;if(It&&L.call(It,k)){const fn=String(It[k]);pn=L.call(wn,fn)?wn[fn]:et.unknown}if(pn)return pn.call(this,It,...Ut)}return et.handlers=Ce.handlers||{},et.invalid=Ce.invalid,et.unknown=Ce.unknown,et}const F={},H={}.hasOwnProperty,P=M("type",{handlers:{root:G,element:he,text:ue,comment:ae,doctype:ne}});function V(k,U){const et=(U||F).space;return P(k,et==="svg"?E.YP:E.dy)}function G(k,U){const Ce={nodeName:"#document",mode:(k.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return Ce.childNodes=we(k.children,Ce,U),me(k,Ce),Ce}function Q(k,U){const Ce={nodeName:"#document-fragment",childNodes:[]};return Ce.childNodes=we(k.children,Ce,U),me(k,Ce),Ce}function ne(k){const U={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return me(k,U),U}function ue(k){const U={nodeName:"#text",value:k.value,parentNode:null};return me(k,U),U}function ae(k){const U={nodeName:"#comment",data:k.value,parentNode:null};return me(k,U),U}function he(k,U){const Ce=U;let et=Ce;k.type==="element"&&k.tagName.toLowerCase()==="svg"&&Ce.space==="html"&&(et=E.YP);const It=[];let Ut;if(k.properties){for(Ut in k.properties)if(Ut!=="children"&&H.call(k.properties,Ut)){const fn=ce(et,Ut,k.properties[Ut]);fn&&It.push(fn)}}const pn=et.space;(0,Y.ok)(pn);const wn={nodeName:k.tagName,tagName:k.tagName,attrs:It,namespaceURI:g.t[pn],childNodes:[],parentNode:null};return wn.childNodes=we(k.children,wn,et),me(k,wn),k.tagName==="template"&&k.content&&(wn.content=Q(k.content,et)),wn}function ce(k,U,Ce){const et=(0,I.s)(k,U);if(Ce===!1||Ce===null||Ce===void 0||typeof Ce=="number"&&Number.isNaN(Ce)||!Ce&&et.boolean)return;Array.isArray(Ce)&&(Ce=et.commaSeparated?(0,A.P)(Ce):(0,N.P)(Ce));const It={name:et.attribute,value:Ce===!0?"":String(Ce)};if(et.space&&et.space!=="html"&&et.space!=="svg"){const Ut=It.name.indexOf(":");Ut<0?It.prefix="":(It.name=It.name.slice(Ut+1),It.prefix=et.attribute.slice(0,Ut)),It.namespace=g.t[et.space]}return It}function we(k,U,Ce){let et=-1;const It=[];if(k)for(;++et<k.length;){const Ut=P(k[et],Ce);Ut.parentNode=U,It.push(Ut)}return It}function me(k,U){const Ce=k.position;Ce&&Ce.start&&Ce.end&&((0,Y.ok)(typeof Ce.start.offset=="number"),(0,Y.ok)(typeof Ce.end.offset=="number"),U.sourceCodeLocation={startLine:Ce.start.line,startCol:Ce.start.column,startOffset:Ce.start.offset,endLine:Ce.end.line,endCol:Ce.end.column,endOffset:Ce.end.offset})}const Le=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],ee=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),se="\uFFFD";var le;(function(k){k[k.EOF=-1]="EOF",k[k.NULL=0]="NULL",k[k.TABULATION=9]="TABULATION",k[k.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",k[k.LINE_FEED=10]="LINE_FEED",k[k.FORM_FEED=12]="FORM_FEED",k[k.SPACE=32]="SPACE",k[k.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",k[k.QUOTATION_MARK=34]="QUOTATION_MARK",k[k.NUMBER_SIGN=35]="NUMBER_SIGN",k[k.AMPERSAND=38]="AMPERSAND",k[k.APOSTROPHE=39]="APOSTROPHE",k[k.HYPHEN_MINUS=45]="HYPHEN_MINUS",k[k.SOLIDUS=47]="SOLIDUS",k[k.DIGIT_0=48]="DIGIT_0",k[k.DIGIT_9=57]="DIGIT_9",k[k.SEMICOLON=59]="SEMICOLON",k[k.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",k[k.EQUALS_SIGN=61]="EQUALS_SIGN",k[k.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",k[k.QUESTION_MARK=63]="QUESTION_MARK",k[k.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",k[k.LATIN_CAPITAL_F=70]="LATIN_CAPITAL_F",k[k.LATIN_CAPITAL_X=88]="LATIN_CAPITAL_X",k[k.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",k[k.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",k[k.GRAVE_ACCENT=96]="GRAVE_ACCENT",k[k.LATIN_SMALL_A=97]="LATIN_SMALL_A",k[k.LATIN_SMALL_F=102]="LATIN_SMALL_F",k[k.LATIN_SMALL_X=120]="LATIN_SMALL_X",k[k.LATIN_SMALL_Z=122]="LATIN_SMALL_Z",k[k.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"})(le=le||(le={}));const ke={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function De(k){return k>=55296&&k<=57343}function Be(k){return k>=56320&&k<=57343}function He(k,U){return(k-55296)*1024+9216+U}function Fe(k){return k!==32&&k!==10&&k!==13&&k!==9&&k!==12&&k>=1&&k<=31||k>=127&&k<=159}function Je(k){return k>=64976&&k<=65007||ee.has(k)}var Me;(function(k){k.controlCharacterInInputStream="control-character-in-input-stream",k.noncharacterInInputStream="noncharacter-in-input-stream",k.surrogateInInputStream="surrogate-in-input-stream",k.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",k.endTagWithAttributes="end-tag-with-attributes",k.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",k.unexpectedSolidusInTag="unexpected-solidus-in-tag",k.unexpectedNullCharacter="unexpected-null-character",k.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",k.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",k.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",k.missingEndTagName="missing-end-tag-name",k.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",k.unknownNamedCharacterReference="unknown-named-character-reference",k.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",k.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",k.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",k.eofBeforeTagName="eof-before-tag-name",k.eofInTag="eof-in-tag",k.missingAttributeValue="missing-attribute-value",k.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",k.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",k.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",k.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",k.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",k.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",k.missingDoctypePublicIdentifier="missing-doctype-public-identifier",k.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",k.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",k.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",k.cdataInHtmlContent="cdata-in-html-content",k.incorrectlyOpenedComment="incorrectly-opened-comment",k.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",k.eofInDoctype="eof-in-doctype",k.nestedComment="nested-comment",k.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",k.eofInComment="eof-in-comment",k.incorrectlyClosedComment="incorrectly-closed-comment",k.eofInCdata="eof-in-cdata",k.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",k.nullCharacterReference="null-character-reference",k.surrogateCharacterReference="surrogate-character-reference",k.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",k.controlCharacterReference="control-character-reference",k.noncharacterCharacterReference="noncharacter-character-reference",k.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",k.missingDoctypeName="missing-doctype-name",k.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",k.duplicateAttribute="duplicate-attribute",k.nonConformingDoctype="non-conforming-doctype",k.missingDoctype="missing-doctype",k.misplacedDoctype="misplaced-doctype",k.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",k.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",k.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",k.openElementsLeftAfterEof="open-elements-left-after-eof",k.abandonedHeadElementChild="abandoned-head-element-child",k.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",k.nestedNoscriptInHead="nested-noscript-in-head",k.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(Me=Me||(Me={}));const lt=65536;class Re{constructor(U){this.handler=U,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=lt,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(U){const{line:Ce,col:et,offset:It}=this;return{code:U,startLine:Ce,endLine:Ce,startCol:et,endCol:et,startOffset:It,endOffset:It}}_err(U){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(U)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(U){if(this.pos!==this.html.length-1){const Ce=this.html.charCodeAt(this.pos+1);if(Be(Ce))return this.pos++,this._addGap(),He(U,Ce)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,le.EOF;return this._err(Me.surrogateInInputStream),U}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(U,Ce){this.html.length>0?this.html+=U:this.html=U,this.endOfChunkHit=!1,this.lastChunkWritten=Ce}insertHtmlAtCurrentPos(U){this.html=this.html.substring(0,this.pos+1)+U+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(U,Ce){if(this.pos+U.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(Ce)return this.html.startsWith(U,this.pos);for(let et=0;et<U.length;et++)if((this.html.charCodeAt(this.pos+et)|32)!==U.charCodeAt(et))return!1;return!0}peek(U){const Ce=this.pos+U;if(Ce>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,le.EOF;const et=this.html.charCodeAt(Ce);return et===le.CARRIAGE_RETURN?le.LINE_FEED:et}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,le.EOF;let U=this.html.charCodeAt(this.pos);return U===le.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,le.LINE_FEED):U===le.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,De(U)&&(U=this._processSurrogate(U)),this.handler.onParseError===null||U>31&&U<127||U===le.LINE_FEED||U===le.CARRIAGE_RETURN||U>159&&U<64976||this._checkForProblematicCharacters(U),U)}_checkForProblematicCharacters(U){Fe(U)?this._err(Me.controlCharacterInInputStream):Je(U)&&this._err(Me.noncharacterInInputStream)}retreat(U){for(this.pos-=U;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Oe;(function(k){k[k.CHARACTER=0]="CHARACTER",k[k.NULL_CHARACTER=1]="NULL_CHARACTER",k[k.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",k[k.START_TAG=3]="START_TAG",k[k.END_TAG=4]="END_TAG",k[k.COMMENT=5]="COMMENT",k[k.DOCTYPE=6]="DOCTYPE",k[k.EOF=7]="EOF",k[k.HIBERNATION=8]="HIBERNATION"})(Oe=Oe||(Oe={}));function pe(k,U){for(let Ce=k.attrs.length-1;Ce>=0;Ce--)if(k.attrs[Ce].name===U)return k.attrs[Ce].value;return null}var fe=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(k=>k.charCodeAt(0))),z=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(k=>k.charCodeAt(0))),J;const be=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),_e=(J=String.fromCodePoint)!==null&&J!==void 0?J:function(k){let U="";return k>65535&&(k-=65536,U+=String.fromCharCode(k>>>10&1023|55296),k=56320|k&1023),U+=String.fromCharCode(k),U};function oe(k){var U;return k>=55296&&k<=57343||k>1114111?65533:(U=be.get(k))!==null&&U!==void 0?U:k}function ie(k){return _e(oe(k))}var ve;(function(k){k[k.NUM=35]="NUM",k[k.SEMI=59]="SEMI",k[k.ZERO=48]="ZERO",k[k.NINE=57]="NINE",k[k.LOWER_A=97]="LOWER_A",k[k.LOWER_F=102]="LOWER_F",k[k.LOWER_X=120]="LOWER_X",k[k.To_LOWER_BIT=32]="To_LOWER_BIT"})(ve||(ve={}));var Ne;(function(k){k[k.VALUE_LENGTH=49152]="VALUE_LENGTH",k[k.BRANCH_LENGTH=16256]="BRANCH_LENGTH",k[k.JUMP_TABLE=127]="JUMP_TABLE"})(Ne||(Ne={}));function ze(k){return function(Ce,et){let It="",Ut=0,pn=0;for(;(pn=Ce.indexOf("&",pn))>=0;){if(It+=Ce.slice(Ut,pn),Ut=pn,pn+=1,Ce.charCodeAt(pn)===ve.NUM){let ci=pn+1,qi=10,Uo=Ce.charCodeAt(ci);(Uo|ve.To_LOWER_BIT)===ve.LOWER_X&&(qi=16,pn+=1,ci+=1);do Uo=Ce.charCodeAt(++pn);while(Uo>=ve.ZERO&&Uo<=ve.NINE||qi===16&&(Uo|ve.To_LOWER_BIT)>=ve.LOWER_A&&(Uo|ve.To_LOWER_BIT)<=ve.LOWER_F);if(ci!==pn){const lo=Ce.substring(ci,pn),$n=parseInt(lo,qi);if(Ce.charCodeAt(pn)===ve.SEMI)pn+=1;else if(et)continue;It+=ie($n),Ut=pn}continue}let wn=0,fn=1,Tr=0,Li=k[Tr];for(;pn<Ce.length&&(Tr=Ve(k,Li,Tr+1,Ce.charCodeAt(pn)),!(Tr<0));pn++,fn++){Li=k[Tr];const ci=Li&Ne.VALUE_LENGTH;if(ci){(!et||Ce.charCodeAt(pn)===ve.SEMI)&&(wn=Tr,fn=0);const qi=(ci>>14)-1;if(qi===0)break;Tr+=qi}}if(wn!==0){const ci=(k[wn]&Ne.VALUE_LENGTH)>>14;It+=ci===1?String.fromCharCode(k[wn]&~Ne.VALUE_LENGTH):ci===2?String.fromCharCode(k[wn+1]):String.fromCharCode(k[wn+1],k[wn+2]),Ut=pn-fn+1}}return It+Ce.slice(Ut)}}function Ve(k,U,Ce,et){const It=(U&Ne.BRANCH_LENGTH)>>7,Ut=U&Ne.JUMP_TABLE;if(It===0)return Ut!==0&&et===Ut?Ce:-1;if(Ut){const fn=et-Ut;return fn<0||fn>=It?-1:k[Ce+fn]-1}let pn=Ce,wn=pn+It-1;for(;pn<=wn;){const fn=pn+wn>>>1,Tr=k[fn];if(Tr<et)pn=fn+1;else if(Tr>et)wn=fn-1;else return k[fn+It]}return-1}const yt=ze(fe),ct=ze(z);function St(k){return yt(k,!1)}function _t(k){return yt(k,!0)}function At(k){return ct(k,!0)}var ht;(function(k){k.HTML="http://www.w3.org/1999/xhtml",k.MATHML="http://www.w3.org/1998/Math/MathML",k.SVG="http://www.w3.org/2000/svg",k.XLINK="http://www.w3.org/1999/xlink",k.XML="http://www.w3.org/XML/1998/namespace",k.XMLNS="http://www.w3.org/2000/xmlns/"})(ht=ht||(ht={}));var wt;(function(k){k.TYPE="type",k.ACTION="action",k.ENCODING="encoding",k.PROMPT="prompt",k.NAME="name",k.COLOR="color",k.FACE="face",k.SIZE="size"})(wt=wt||(wt={}));var jt;(function(k){k.NO_QUIRKS="no-quirks",k.QUIRKS="quirks",k.LIMITED_QUIRKS="limited-quirks"})(jt=jt||(jt={}));var st;(function(k){k.A="a",k.ADDRESS="address",k.ANNOTATION_XML="annotation-xml",k.APPLET="applet",k.AREA="area",k.ARTICLE="article",k.ASIDE="aside",k.B="b",k.BASE="base",k.BASEFONT="basefont",k.BGSOUND="bgsound",k.BIG="big",k.BLOCKQUOTE="blockquote",k.BODY="body",k.BR="br",k.BUTTON="button",k.CAPTION="caption",k.CENTER="center",k.CODE="code",k.COL="col",k.COLGROUP="colgroup",k.DD="dd",k.DESC="desc",k.DETAILS="details",k.DIALOG="dialog",k.DIR="dir",k.DIV="div",k.DL="dl",k.DT="dt",k.EM="em",k.EMBED="embed",k.FIELDSET="fieldset",k.FIGCAPTION="figcaption",k.FIGURE="figure",k.FONT="font",k.FOOTER="footer",k.FOREIGN_OBJECT="foreignObject",k.FORM="form",k.FRAME="frame",k.FRAMESET="frameset",k.H1="h1",k.H2="h2",k.H3="h3",k.H4="h4",k.H5="h5",k.H6="h6",k.HEAD="head",k.HEADER="header",k.HGROUP="hgroup",k.HR="hr",k.HTML="html",k.I="i",k.IMG="img",k.IMAGE="image",k.INPUT="input",k.IFRAME="iframe",k.KEYGEN="keygen",k.LABEL="label",k.LI="li",k.LINK="link",k.LISTING="listing",k.MAIN="main",k.MALIGNMARK="malignmark",k.MARQUEE="marquee",k.MATH="math",k.MENU="menu",k.META="meta",k.MGLYPH="mglyph",k.MI="mi",k.MO="mo",k.MN="mn",k.MS="ms",k.MTEXT="mtext",k.NAV="nav",k.NOBR="nobr",k.NOFRAMES="noframes",k.NOEMBED="noembed",k.NOSCRIPT="noscript",k.OBJECT="object",k.OL="ol",k.OPTGROUP="optgroup",k.OPTION="option",k.P="p",k.PARAM="param",k.PLAINTEXT="plaintext",k.PRE="pre",k.RB="rb",k.RP="rp",k.RT="rt",k.RTC="rtc",k.RUBY="ruby",k.S="s",k.SCRIPT="script",k.SECTION="section",k.SELECT="select",k.SOURCE="source",k.SMALL="small",k.SPAN="span",k.STRIKE="strike",k.STRONG="strong",k.STYLE="style",k.SUB="sub",k.SUMMARY="summary",k.SUP="sup",k.TABLE="table",k.TBODY="tbody",k.TEMPLATE="template",k.TEXTAREA="textarea",k.TFOOT="tfoot",k.TD="td",k.TH="th",k.THEAD="thead",k.TITLE="title",k.TR="tr",k.TRACK="track",k.TT="tt",k.U="u",k.UL="ul",k.SVG="svg",k.VAR="var",k.WBR="wbr",k.XMP="xmp"})(st=st||(st={}));var ge;(function(k){k[k.UNKNOWN=0]="UNKNOWN",k[k.A=1]="A",k[k.ADDRESS=2]="ADDRESS",k[k.ANNOTATION_XML=3]="ANNOTATION_XML",k[k.APPLET=4]="APPLET",k[k.AREA=5]="AREA",k[k.ARTICLE=6]="ARTICLE",k[k.ASIDE=7]="ASIDE",k[k.B=8]="B",k[k.BASE=9]="BASE",k[k.BASEFONT=10]="BASEFONT",k[k.BGSOUND=11]="BGSOUND",k[k.BIG=12]="BIG",k[k.BLOCKQUOTE=13]="BLOCKQUOTE",k[k.BODY=14]="BODY",k[k.BR=15]="BR",k[k.BUTTON=16]="BUTTON",k[k.CAPTION=17]="CAPTION",k[k.CENTER=18]="CENTER",k[k.CODE=19]="CODE",k[k.COL=20]="COL",k[k.COLGROUP=21]="COLGROUP",k[k.DD=22]="DD",k[k.DESC=23]="DESC",k[k.DETAILS=24]="DETAILS",k[k.DIALOG=25]="DIALOG",k[k.DIR=26]="DIR",k[k.DIV=27]="DIV",k[k.DL=28]="DL",k[k.DT=29]="DT",k[k.EM=30]="EM",k[k.EMBED=31]="EMBED",k[k.FIELDSET=32]="FIELDSET",k[k.FIGCAPTION=33]="FIGCAPTION",k[k.FIGURE=34]="FIGURE",k[k.FONT=35]="FONT",k[k.FOOTER=36]="FOOTER",k[k.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",k[k.FORM=38]="FORM",k[k.FRAME=39]="FRAME",k[k.FRAMESET=40]="FRAMESET",k[k.H1=41]="H1",k[k.H2=42]="H2",k[k.H3=43]="H3",k[k.H4=44]="H4",k[k.H5=45]="H5",k[k.H6=46]="H6",k[k.HEAD=47]="HEAD",k[k.HEADER=48]="HEADER",k[k.HGROUP=49]="HGROUP",k[k.HR=50]="HR",k[k.HTML=51]="HTML",k[k.I=52]="I",k[k.IMG=53]="IMG",k[k.IMAGE=54]="IMAGE",k[k.INPUT=55]="INPUT",k[k.IFRAME=56]="IFRAME",k[k.KEYGEN=57]="KEYGEN",k[k.LABEL=58]="LABEL",k[k.LI=59]="LI",k[k.LINK=60]="LINK",k[k.LISTING=61]="LISTING",k[k.MAIN=62]="MAIN",k[k.MALIGNMARK=63]="MALIGNMARK",k[k.MARQUEE=64]="MARQUEE",k[k.MATH=65]="MATH",k[k.MENU=66]="MENU",k[k.META=67]="META",k[k.MGLYPH=68]="MGLYPH",k[k.MI=69]="MI",k[k.MO=70]="MO",k[k.MN=71]="MN",k[k.MS=72]="MS",k[k.MTEXT=73]="MTEXT",k[k.NAV=74]="NAV",k[k.NOBR=75]="NOBR",k[k.NOFRAMES=76]="NOFRAMES",k[k.NOEMBED=77]="NOEMBED",k[k.NOSCRIPT=78]="NOSCRIPT",k[k.OBJECT=79]="OBJECT",k[k.OL=80]="OL",k[k.OPTGROUP=81]="OPTGROUP",k[k.OPTION=82]="OPTION",k[k.P=83]="P",k[k.PARAM=84]="PARAM",k[k.PLAINTEXT=85]="PLAINTEXT",k[k.PRE=86]="PRE",k[k.RB=87]="RB",k[k.RP=88]="RP",k[k.RT=89]="RT",k[k.RTC=90]="RTC",k[k.RUBY=91]="RUBY",k[k.S=92]="S",k[k.SCRIPT=93]="SCRIPT",k[k.SECTION=94]="SECTION",k[k.SELECT=95]="SELECT",k[k.SOURCE=96]="SOURCE",k[k.SMALL=97]="SMALL",k[k.SPAN=98]="SPAN",k[k.STRIKE=99]="STRIKE",k[k.STRONG=100]="STRONG",k[k.STYLE=101]="STYLE",k[k.SUB=102]="SUB",k[k.SUMMARY=103]="SUMMARY",k[k.SUP=104]="SUP",k[k.TABLE=105]="TABLE",k[k.TBODY=106]="TBODY",k[k.TEMPLATE=107]="TEMPLATE",k[k.TEXTAREA=108]="TEXTAREA",k[k.TFOOT=109]="TFOOT",k[k.TD=110]="TD",k[k.TH=111]="TH",k[k.THEAD=112]="THEAD",k[k.TITLE=113]="TITLE",k[k.TR=114]="TR",k[k.TRACK=115]="TRACK",k[k.TT=116]="TT",k[k.U=117]="U",k[k.UL=118]="UL",k[k.SVG=119]="SVG",k[k.VAR=120]="VAR",k[k.WBR=121]="WBR",k[k.XMP=122]="XMP"})(ge=ge||(ge={}));const on=new Map([[st.A,ge.A],[st.ADDRESS,ge.ADDRESS],[st.ANNOTATION_XML,ge.ANNOTATION_XML],[st.APPLET,ge.APPLET],[st.AREA,ge.AREA],[st.ARTICLE,ge.ARTICLE],[st.ASIDE,ge.ASIDE],[st.B,ge.B],[st.BASE,ge.BASE],[st.BASEFONT,ge.BASEFONT],[st.BGSOUND,ge.BGSOUND],[st.BIG,ge.BIG],[st.BLOCKQUOTE,ge.BLOCKQUOTE],[st.BODY,ge.BODY],[st.BR,ge.BR],[st.BUTTON,ge.BUTTON],[st.CAPTION,ge.CAPTION],[st.CENTER,ge.CENTER],[st.CODE,ge.CODE],[st.COL,ge.COL],[st.COLGROUP,ge.COLGROUP],[st.DD,ge.DD],[st.DESC,ge.DESC],[st.DETAILS,ge.DETAILS],[st.DIALOG,ge.DIALOG],[st.DIR,ge.DIR],[st.DIV,ge.DIV],[st.DL,ge.DL],[st.DT,ge.DT],[st.EM,ge.EM],[st.EMBED,ge.EMBED],[st.FIELDSET,ge.FIELDSET],[st.FIGCAPTION,ge.FIGCAPTION],[st.FIGURE,ge.FIGURE],[st.FONT,ge.FONT],[st.FOOTER,ge.FOOTER],[st.FOREIGN_OBJECT,ge.FOREIGN_OBJECT],[st.FORM,ge.FORM],[st.FRAME,ge.FRAME],[st.FRAMESET,ge.FRAMESET],[st.H1,ge.H1],[st.H2,ge.H2],[st.H3,ge.H3],[st.H4,ge.H4],[st.H5,ge.H5],[st.H6,ge.H6],[st.HEAD,ge.HEAD],[st.HEADER,ge.HEADER],[st.HGROUP,ge.HGROUP],[st.HR,ge.HR],[st.HTML,ge.HTML],[st.I,ge.I],[st.IMG,ge.IMG],[st.IMAGE,ge.IMAGE],[st.INPUT,ge.INPUT],[st.IFRAME,ge.IFRAME],[st.KEYGEN,ge.KEYGEN],[st.LABEL,ge.LABEL],[st.LI,ge.LI],[st.LINK,ge.LINK],[st.LISTING,ge.LISTING],[st.MAIN,ge.MAIN],[st.MALIGNMARK,ge.MALIGNMARK],[st.MARQUEE,ge.MARQUEE],[st.MATH,ge.MATH],[st.MENU,ge.MENU],[st.META,ge.META],[st.MGLYPH,ge.MGLYPH],[st.MI,ge.MI],[st.MO,ge.MO],[st.MN,ge.MN],[st.MS,ge.MS],[st.MTEXT,ge.MTEXT],[st.NAV,ge.NAV],[st.NOBR,ge.NOBR],[st.NOFRAMES,ge.NOFRAMES],[st.NOEMBED,ge.NOEMBED],[st.NOSCRIPT,ge.NOSCRIPT],[st.OBJECT,ge.OBJECT],[st.OL,ge.OL],[st.OPTGROUP,ge.OPTGROUP],[st.OPTION,ge.OPTION],[st.P,ge.P],[st.PARAM,ge.PARAM],[st.PLAINTEXT,ge.PLAINTEXT],[st.PRE,ge.PRE],[st.RB,ge.RB],[st.RP,ge.RP],[st.RT,ge.RT],[st.RTC,ge.RTC],[st.RUBY,ge.RUBY],[st.S,ge.S],[st.SCRIPT,ge.SCRIPT],[st.SECTION,ge.SECTION],[st.SELECT,ge.SELECT],[st.SOURCE,ge.SOURCE],[st.SMALL,ge.SMALL],[st.SPAN,ge.SPAN],[st.STRIKE,ge.STRIKE],[st.STRONG,ge.STRONG],[st.STYLE,ge.STYLE],[st.SUB,ge.SUB],[st.SUMMARY,ge.SUMMARY],[st.SUP,ge.SUP],[st.TABLE,ge.TABLE],[st.TBODY,ge.TBODY],[st.TEMPLATE,ge.TEMPLATE],[st.TEXTAREA,ge.TEXTAREA],[st.TFOOT,ge.TFOOT],[st.TD,ge.TD],[st.TH,ge.TH],[st.THEAD,ge.THEAD],[st.TITLE,ge.TITLE],[st.TR,ge.TR],[st.TRACK,ge.TRACK],[st.TT,ge.TT],[st.U,ge.U],[st.UL,ge.UL],[st.SVG,ge.SVG],[st.VAR,ge.VAR],[st.WBR,ge.WBR],[st.XMP,ge.XMP]]);function mn(k){var U;return(U=on.get(k))!==null&&U!==void 0?U:ge.UNKNOWN}const Mt=ge,On={[ht.HTML]:new Set([Mt.ADDRESS,Mt.APPLET,Mt.AREA,Mt.ARTICLE,Mt.ASIDE,Mt.BASE,Mt.BASEFONT,Mt.BGSOUND,Mt.BLOCKQUOTE,Mt.BODY,Mt.BR,Mt.BUTTON,Mt.CAPTION,Mt.CENTER,Mt.COL,Mt.COLGROUP,Mt.DD,Mt.DETAILS,Mt.DIR,Mt.DIV,Mt.DL,Mt.DT,Mt.EMBED,Mt.FIELDSET,Mt.FIGCAPTION,Mt.FIGURE,Mt.FOOTER,Mt.FORM,Mt.FRAME,Mt.FRAMESET,Mt.H1,Mt.H2,Mt.H3,Mt.H4,Mt.H5,Mt.H6,Mt.HEAD,Mt.HEADER,Mt.HGROUP,Mt.HR,Mt.HTML,Mt.IFRAME,Mt.IMG,Mt.INPUT,Mt.LI,Mt.LINK,Mt.LISTING,Mt.MAIN,Mt.MARQUEE,Mt.MENU,Mt.META,Mt.NAV,Mt.NOEMBED,Mt.NOFRAMES,Mt.NOSCRIPT,Mt.OBJECT,Mt.OL,Mt.P,Mt.PARAM,Mt.PLAINTEXT,Mt.PRE,Mt.SCRIPT,Mt.SECTION,Mt.SELECT,Mt.SOURCE,Mt.STYLE,Mt.SUMMARY,Mt.TABLE,Mt.TBODY,Mt.TD,Mt.TEMPLATE,Mt.TEXTAREA,Mt.TFOOT,Mt.TH,Mt.THEAD,Mt.TITLE,Mt.TR,Mt.TRACK,Mt.UL,Mt.WBR,Mt.XMP]),[ht.MATHML]:new Set([Mt.MI,Mt.MO,Mt.MN,Mt.MS,Mt.MTEXT,Mt.ANNOTATION_XML]),[ht.SVG]:new Set([Mt.TITLE,Mt.FOREIGN_OBJECT,Mt.DESC]),[ht.XLINK]:new Set,[ht.XML]:new Set,[ht.XMLNS]:new Set};function Vn(k){return k===Mt.H1||k===Mt.H2||k===Mt.H3||k===Mt.H4||k===Mt.H5||k===Mt.H6}const Fn=new Set([st.STYLE,st.SCRIPT,st.XMP,st.IFRAME,st.NOEMBED,st.NOFRAMES,st.PLAINTEXT]);function Gn(k,U){return Fn.has(k)||U&&k===st.NOSCRIPT}const sn=new Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);var xt;(function(k){k[k.DATA=0]="DATA",k[k.RCDATA=1]="RCDATA",k[k.RAWTEXT=2]="RAWTEXT",k[k.SCRIPT_DATA=3]="SCRIPT_DATA",k[k.PLAINTEXT=4]="PLAINTEXT",k[k.TAG_OPEN=5]="TAG_OPEN",k[k.END_TAG_OPEN=6]="END_TAG_OPEN",k[k.TAG_NAME=7]="TAG_NAME",k[k.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",k[k.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",k[k.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",k[k.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",k[k.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",k[k.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",k[k.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",k[k.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",k[k.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",k[k.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",k[k.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",k[k.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",k[k.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",k[k.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",k[k.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",k[k.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",k[k.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",k[k.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",k[k.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",k[k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",k[k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",k[k.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",k[k.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",k[k.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",k[k.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",k[k.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",k[k.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",k[k.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",k[k.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",k[k.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",k[k.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",k[k.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",k[k.BOGUS_COMMENT=40]="BOGUS_COMMENT",k[k.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",k[k.COMMENT_START=42]="COMMENT_START",k[k.COMMENT_START_DASH=43]="COMMENT_START_DASH",k[k.COMMENT=44]="COMMENT",k[k.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",k[k.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",k[k.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",k[k.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",k[k.COMMENT_END_DASH=49]="COMMENT_END_DASH",k[k.COMMENT_END=50]="COMMENT_END",k[k.COMMENT_END_BANG=51]="COMMENT_END_BANG",k[k.DOCTYPE=52]="DOCTYPE",k[k.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",k[k.DOCTYPE_NAME=54]="DOCTYPE_NAME",k[k.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",k[k.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",k[k.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",k[k.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",k[k.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",k[k.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",k[k.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",k[k.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",k[k.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",k[k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",k[k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",k[k.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",k[k.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",k[k.CDATA_SECTION=68]="CDATA_SECTION",k[k.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",k[k.CDATA_SECTION_END=70]="CDATA_SECTION_END",k[k.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",k[k.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",k[k.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",k[k.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",k[k.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",k[k.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",k[k.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",k[k.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"})(xt||(xt={}));const gr={DATA:xt.DATA,RCDATA:xt.RCDATA,RAWTEXT:xt.RAWTEXT,SCRIPT_DATA:xt.SCRIPT_DATA,PLAINTEXT:xt.PLAINTEXT,CDATA_SECTION:xt.CDATA_SECTION};function Pr(k){return k>=le.DIGIT_0&&k<=le.DIGIT_9}function tr(k){return k>=le.LATIN_CAPITAL_A&&k<=le.LATIN_CAPITAL_Z}function ii(k){return k>=le.LATIN_SMALL_A&&k<=le.LATIN_SMALL_Z}function Ar(k){return ii(k)||tr(k)}function Kt(k){return Ar(k)||Pr(k)}function ye(k){return k>=le.LATIN_CAPITAL_A&&k<=le.LATIN_CAPITAL_F}function Vt(k){return k>=le.LATIN_SMALL_A&&k<=le.LATIN_SMALL_F}function rn(k){return Pr(k)||ye(k)||Vt(k)}function Xn(k){return k+32}function Zn(k){return k===le.SPACE||k===le.LINE_FEED||k===le.TABULATION||k===le.FORM_FEED}function ir(k){return k===le.EQUALS_SIGN||Kt(k)}function Dr(k){return Zn(k)||k===le.SOLIDUS||k===le.GREATER_THAN_SIGN}class ai{constructor(U,Ce){this.options=U,this.handler=Ce,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=xt.DATA,this.returnState=xt.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Re(Ce),this.currentLocation=this.getCurrentLocation(-1)}_err(U){var Ce,et;(et=(Ce=this.handler).onParseError)===null||et===void 0||et.call(Ce,this.preprocessor.getError(U))}getCurrentLocation(U){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-U,startOffset:this.preprocessor.offset-U,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const U=this._consume();this._ensureHibernation()||this._callState(U)}this.inLoop=!1}}pause(){this.paused=!0}resume(U){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||U==null||U())}write(U,Ce,et){this.active=!0,this.preprocessor.write(U,Ce),this._runParsingLoop(),this.paused||et==null||et()}insertHtmlAtCurrentPos(U){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(U),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(U){this.consumedAfterSnapshot-=U,this.preprocessor.retreat(U)}_reconsumeInState(U,Ce){this.state=U,this._callState(Ce)}_advanceBy(U){this.consumedAfterSnapshot+=U;for(let Ce=0;Ce<U;Ce++)this.preprocessor.advance()}_consumeSequenceIfMatch(U,Ce){return this.preprocessor.startsWith(U,Ce)?(this._advanceBy(U.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Oe.START_TAG,tagName:"",tagID:ge.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Oe.END_TAG,tagName:"",tagID:ge.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(U){this.currentToken={type:Oe.COMMENT,data:"",location:this.getCurrentLocation(U)}}_createDoctypeToken(U){this.currentToken={type:Oe.DOCTYPE,name:U,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(U,Ce){this.currentCharacterToken={type:U,chars:Ce,location:this.currentLocation}}_createAttr(U){this.currentAttr={name:U,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var U,Ce;const et=this.currentToken;if(pe(et,this.currentAttr.name)===null){if(et.attrs.push(this.currentAttr),et.location&&this.currentLocation){const It=(U=(Ce=et.location).attrs)!==null&&U!==void 0?U:Ce.attrs=Object.create(null);It[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(Me.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(U){this._emitCurrentCharacterToken(U.location),this.currentToken=null,U.location&&(U.location.endLine=this.preprocessor.line,U.location.endCol=this.preprocessor.col+1,U.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const U=this.currentToken;this.prepareToken(U),U.tagID=mn(U.tagName),U.type===Oe.START_TAG?(this.lastStartTagName=U.tagName,this.handler.onStartTag(U)):(U.attrs.length>0&&this._err(Me.endTagWithAttributes),U.selfClosing&&this._err(Me.endTagWithTrailingSolidus),this.handler.onEndTag(U)),this.preprocessor.dropParsedChunk()}emitCurrentComment(U){this.prepareToken(U),this.handler.onComment(U),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(U){this.prepareToken(U),this.handler.onDoctype(U),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(U){if(this.currentCharacterToken){switch(U&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=U.startLine,this.currentCharacterToken.location.endCol=U.startCol,this.currentCharacterToken.location.endOffset=U.startOffset),this.currentCharacterToken.type){case Oe.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Oe.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Oe.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const U=this.getCurrentLocation(0);U&&(U.endLine=U.startLine,U.endCol=U.startCol,U.endOffset=U.startOffset),this._emitCurrentCharacterToken(U),this.handler.onEof({type:Oe.EOF,location:U}),this.active=!1}_appendCharToCurrentCharacterToken(U,Ce){if(this.currentCharacterToken)if(this.currentCharacterToken.type!==U)this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();else{this.currentCharacterToken.chars+=Ce;return}this._createCharacterToken(U,Ce)}_emitCodePoint(U){const Ce=Zn(U)?Oe.WHITESPACE_CHARACTER:U===le.NULL?Oe.NULL_CHARACTER:Oe.CHARACTER;this._appendCharToCurrentCharacterToken(Ce,String.fromCodePoint(U))}_emitChars(U){this._appendCharToCurrentCharacterToken(Oe.CHARACTER,U)}_matchNamedCharacterReference(U){let Ce=null,et=0,It=!1;for(let Ut=0,pn=fe[0];Ut>=0&&(Ut=Ve(fe,pn,Ut+1,U),!(Ut<0));U=this._consume()){et+=1,pn=fe[Ut];const wn=pn&Ne.VALUE_LENGTH;if(wn){const fn=(wn>>14)-1;if(U!==le.SEMICOLON&&this._isCharacterReferenceInAttribute()&&ir(this.preprocessor.peek(1))?(Ce=[le.AMPERSAND],Ut+=fn):(Ce=fn===0?[fe[Ut]&~Ne.VALUE_LENGTH]:fn===1?[fe[++Ut]]:[fe[++Ut],fe[++Ut]],et=0,It=U!==le.SEMICOLON),fn===0){this._consume();break}}}return this._unconsume(et),It&&!this.preprocessor.endOfChunkHit&&this._err(Me.missingSemicolonAfterCharacterReference),this._unconsume(1),Ce}_isCharacterReferenceInAttribute(){return this.returnState===xt.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===xt.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===xt.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(U){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(U):this._emitCodePoint(U)}_callState(U){switch(this.state){case xt.DATA:{this._stateData(U);break}case xt.RCDATA:{this._stateRcdata(U);break}case xt.RAWTEXT:{this._stateRawtext(U);break}case xt.SCRIPT_DATA:{this._stateScriptData(U);break}case xt.PLAINTEXT:{this._statePlaintext(U);break}case xt.TAG_OPEN:{this._stateTagOpen(U);break}case xt.END_TAG_OPEN:{this._stateEndTagOpen(U);break}case xt.TAG_NAME:{this._stateTagName(U);break}case xt.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(U);break}case xt.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(U);break}case xt.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(U);break}case xt.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(U);break}case xt.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(U);break}case xt.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(U);break}case xt.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(U);break}case xt.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(U);break}case xt.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(U);break}case xt.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(U);break}case xt.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(U);break}case xt.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(U);break}case xt.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(U);break}case xt.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(U);break}case xt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(U);break}case xt.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(U);break}case xt.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(U);break}case xt.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(U);break}case xt.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(U);break}case xt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(U);break}case xt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(U);break}case xt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(U);break}case xt.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(U);break}case xt.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(U);break}case xt.ATTRIBUTE_NAME:{this._stateAttributeName(U);break}case xt.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(U);break}case xt.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(U);break}case xt.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(U);break}case xt.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(U);break}case xt.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(U);break}case xt.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(U);break}case xt.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(U);break}case xt.BOGUS_COMMENT:{this._stateBogusComment(U);break}case xt.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(U);break}case xt.COMMENT_START:{this._stateCommentStart(U);break}case xt.COMMENT_START_DASH:{this._stateCommentStartDash(U);break}case xt.COMMENT:{this._stateComment(U);break}case xt.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(U);break}case xt.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(U);break}case xt.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(U);break}case xt.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(U);break}case xt.COMMENT_END_DASH:{this._stateCommentEndDash(U);break}case xt.COMMENT_END:{this._stateCommentEnd(U);break}case xt.COMMENT_END_BANG:{this._stateCommentEndBang(U);break}case xt.DOCTYPE:{this._stateDoctype(U);break}case xt.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(U);break}case xt.DOCTYPE_NAME:{this._stateDoctypeName(U);break}case xt.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(U);break}case xt.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(U);break}case xt.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(U);break}case xt.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(U);break}case xt.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(U);break}case xt.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(U);break}case xt.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(U);break}case xt.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(U);break}case xt.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(U);break}case xt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(U);break}case xt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(U);break}case xt.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(U);break}case xt.BOGUS_DOCTYPE:{this._stateBogusDoctype(U);break}case xt.CDATA_SECTION:{this._stateCdataSection(U);break}case xt.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(U);break}case xt.CDATA_SECTION_END:{this._stateCdataSectionEnd(U);break}case xt.CHARACTER_REFERENCE:{this._stateCharacterReference(U);break}case xt.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(U);break}case xt.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(U);break}case xt.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(U);break}case xt.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(U);break}case xt.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(U);break}case xt.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(U);break}case xt.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(U);break}default:throw new Error("Unknown state")}}_stateData(U){switch(U){case le.LESS_THAN_SIGN:{this.state=xt.TAG_OPEN;break}case le.AMPERSAND:{this.returnState=xt.DATA,this.state=xt.CHARACTER_REFERENCE;break}case le.NULL:{this._err(Me.unexpectedNullCharacter),this._emitCodePoint(U);break}case le.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(U)}}_stateRcdata(U){switch(U){case le.AMPERSAND:{this.returnState=xt.RCDATA,this.state=xt.CHARACTER_REFERENCE;break}case le.LESS_THAN_SIGN:{this.state=xt.RCDATA_LESS_THAN_SIGN;break}case le.NULL:{this._err(Me.unexpectedNullCharacter),this._emitChars(se);break}case le.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(U)}}_stateRawtext(U){switch(U){case le.LESS_THAN_SIGN:{this.state=xt.RAWTEXT_LESS_THAN_SIGN;break}case le.NULL:{this._err(Me.unexpectedNullCharacter),this._emitChars(se);break}case le.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(U)}}_stateScriptData(U){switch(U){case le.LESS_THAN_SIGN:{this.state=xt.SCRIPT_DATA_LESS_THAN_SIGN;break}case le.NULL:{this._err(Me.unexpectedNullCharacter),this._emitChars(se);break}case le.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(U)}}_statePlaintext(U){switch(U){case le.NULL:{this._err(Me.unexpectedNullCharacter),this._emitChars(se);break}case le.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(U)}}_stateTagOpen(U){if(Ar(U))this._createStartTagToken(),this.state=xt.TAG_NAME,this._stateTagName(U);else switch(U){case le.EXCLAMATION_MARK:{this.state=xt.MARKUP_DECLARATION_OPEN;break}case le.SOLIDUS:{this.state=xt.END_TAG_OPEN;break}case le.QUESTION_MARK:{this._err(Me.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=xt.BOGUS_COMMENT,this._stateBogusComment(U);break}case le.EOF:{this._err(Me.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Me.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=xt.DATA,this._stateData(U)}}_stateEndTagOpen(U){if(Ar(U))this._createEndTagToken(),this.state=xt.TAG_NAME,this._stateTagName(U);else switch(U){case le.GREATER_THAN_SIGN:{this._err(Me.missingEndTagName),this.state=xt.DATA;break}case le.EOF:{this._err(Me.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(Me.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=xt.BOGUS_COMMENT,this._stateBogusComment(U)}}_stateTagName(U){const Ce=this.currentToken;switch(U){case le.SPACE:case le.LINE_FEED:case le.TABULATION:case le.FORM_FEED:{this.state=xt.BEFORE_ATTRIBUTE_NAME;break}case le.SOLIDUS:{this.state=xt.SELF_CLOSING_START_TAG;break}case le.GREATER_THAN_SIGN:{this.state=xt.DATA,this.emitCurrentTagToken();break}case le.NULL:{this._err(Me.unexpectedNullCharacter),Ce.tagName+=se;break}case le.EOF:{this._err(Me.eofInTag),this._emitEOFToken();break}default:Ce.tagName+=String.fromCodePoint(tr(U)?Xn(U):U)}}_stateRcdataLessThanSign(U){U===le.SOLIDUS?this.state=xt.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=xt.RCDATA,this._stateRcdata(U))}_stateRcdataEndTagOpen(U){Ar(U)?(this.state=xt.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(U)):(this._emitChars("</"),this.state=xt.RCDATA,this._stateRcdata(U))}handleSpecialEndTag(U){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const Ce=this.currentToken;switch(Ce.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case le.SPACE:case le.LINE_FEED:case le.TABULATION:case le.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=xt.BEFORE_ATTRIBUTE_NAME,!1;case le.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=xt.SELF_CLOSING_START_TAG,!1;case le.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=xt.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(U){this.handleSpecialEndTag(U)&&(this._emitChars("</"),this.state=xt.RCDATA,this._stateRcdata(U))}_stateRawtextLessThanSign(U){U===le.SOLIDUS?this.state=xt.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=xt.RAWTEXT,this._stateRawtext(U))}_stateRawtextEndTagOpen(U){Ar(U)?(this.state=xt.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(U)):(this._emitChars("</"),this.state=xt.RAWTEXT,this._stateRawtext(U))}_stateRawtextEndTagName(U){this.handleSpecialEndTag(U)&&(this._emitChars("</"),this.state=xt.RAWTEXT,this._stateRawtext(U))}_stateScriptDataLessThanSign(U){switch(U){case le.SOLIDUS:{this.state=xt.SCRIPT_DATA_END_TAG_OPEN;break}case le.EXCLAMATION_MARK:{this.state=xt.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=xt.SCRIPT_DATA,this._stateScriptData(U)}}_stateScriptDataEndTagOpen(U){Ar(U)?(this.state=xt.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(U)):(this._emitChars("</"),this.state=xt.SCRIPT_DATA,this._stateScriptData(U))}_stateScriptDataEndTagName(U){this.handleSpecialEndTag(U)&&(this._emitChars("</"),this.state=xt.SCRIPT_DATA,this._stateScriptData(U))}_stateScriptDataEscapeStart(U){U===le.HYPHEN_MINUS?(this.state=xt.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=xt.SCRIPT_DATA,this._stateScriptData(U))}_stateScriptDataEscapeStartDash(U){U===le.HYPHEN_MINUS?(this.state=xt.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=xt.SCRIPT_DATA,this._stateScriptData(U))}_stateScriptDataEscaped(U){switch(U){case le.HYPHEN_MINUS:{this.state=xt.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case le.LESS_THAN_SIGN:{this.state=xt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case le.NULL:{this._err(Me.unexpectedNullCharacter),this._emitChars(se);break}case le.EOF:{this._err(Me.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(U)}}_stateScriptDataEscapedDash(U){switch(U){case le.HYPHEN_MINUS:{this.state=xt.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case le.LESS_THAN_SIGN:{this.state=xt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case le.NULL:{this._err(Me.unexpectedNullCharacter),this.state=xt.SCRIPT_DATA_ESCAPED,this._emitChars(se);break}case le.EOF:{this._err(Me.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=xt.SCRIPT_DATA_ESCAPED,this._emitCodePoint(U)}}_stateScriptDataEscapedDashDash(U){switch(U){case le.HYPHEN_MINUS:{this._emitChars("-");break}case le.LESS_THAN_SIGN:{this.state=xt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case le.GREATER_THAN_SIGN:{this.state=xt.SCRIPT_DATA,this._emitChars(">");break}case le.NULL:{this._err(Me.unexpectedNullCharacter),this.state=xt.SCRIPT_DATA_ESCAPED,this._emitChars(se);break}case le.EOF:{this._err(Me.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=xt.SCRIPT_DATA_ESCAPED,this._emitCodePoint(U)}}_stateScriptDataEscapedLessThanSign(U){U===le.SOLIDUS?this.state=xt.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Ar(U)?(this._emitChars("<"),this.state=xt.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(U)):(this._emitChars("<"),this.state=xt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(U))}_stateScriptDataEscapedEndTagOpen(U){Ar(U)?(this.state=xt.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(U)):(this._emitChars("</"),this.state=xt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(U))}_stateScriptDataEscapedEndTagName(U){this.handleSpecialEndTag(U)&&(this._emitChars("</"),this.state=xt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(U))}_stateScriptDataDoubleEscapeStart(U){if(this.preprocessor.startsWith(ke.SCRIPT,!1)&&Dr(this.preprocessor.peek(ke.SCRIPT.length))){this._emitCodePoint(U);for(let Ce=0;Ce<ke.SCRIPT.length;Ce++)this._emitCodePoint(this._consume());this.state=xt.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=xt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(U))}_stateScriptDataDoubleEscaped(U){switch(U){case le.HYPHEN_MINUS:{this.state=xt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case le.LESS_THAN_SIGN:{this.state=xt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case le.NULL:{this._err(Me.unexpectedNullCharacter),this._emitChars(se);break}case le.EOF:{this._err(Me.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(U)}}_stateScriptDataDoubleEscapedDash(U){switch(U){case le.HYPHEN_MINUS:{this.state=xt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case le.LESS_THAN_SIGN:{this.state=xt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case le.NULL:{this._err(Me.unexpectedNullCharacter),this.state=xt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(se);break}case le.EOF:{this._err(Me.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=xt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(U)}}_stateScriptDataDoubleEscapedDashDash(U){switch(U){case le.HYPHEN_MINUS:{this._emitChars("-");break}case le.LESS_THAN_SIGN:{this.state=xt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case le.GREATER_THAN_SIGN:{this.state=xt.SCRIPT_DATA,this._emitChars(">");break}case le.NULL:{this._err(Me.unexpectedNullCharacter),this.state=xt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(se);break}case le.EOF:{this._err(Me.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=xt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(U)}}_stateScriptDataDoubleEscapedLessThanSign(U){U===le.SOLIDUS?(this.state=xt.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=xt.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(U))}_stateScriptDataDoubleEscapeEnd(U){if(this.preprocessor.startsWith(ke.SCRIPT,!1)&&Dr(this.preprocessor.peek(ke.SCRIPT.length))){this._emitCodePoint(U);for(let Ce=0;Ce<ke.SCRIPT.length;Ce++)this._emitCodePoint(this._consume());this.state=xt.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=xt.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(U))}_stateBeforeAttributeName(U){switch(U){case le.SPACE:case le.LINE_FEED:case le.TABULATION:case le.FORM_FEED:break;case le.SOLIDUS:case le.GREATER_THAN_SIGN:case le.EOF:{this.state=xt.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(U);break}case le.EQUALS_SIGN:{this._err(Me.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=xt.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=xt.ATTRIBUTE_NAME,this._stateAttributeName(U)}}_stateAttributeName(U){switch(U){case le.SPACE:case le.LINE_FEED:case le.TABULATION:case le.FORM_FEED:case le.SOLIDUS:case le.GREATER_THAN_SIGN:case le.EOF:{this._leaveAttrName(),this.state=xt.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(U);break}case le.EQUALS_SIGN:{this._leaveAttrName(),this.state=xt.BEFORE_ATTRIBUTE_VALUE;break}case le.QUOTATION_MARK:case le.APOSTROPHE:case le.LESS_THAN_SIGN:{this._err(Me.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(U);break}case le.NULL:{this._err(Me.unexpectedNullCharacter),this.currentAttr.name+=se;break}default:this.currentAttr.name+=String.fromCodePoint(tr(U)?Xn(U):U)}}_stateAfterAttributeName(U){switch(U){case le.SPACE:case le.LINE_FEED:case le.TABULATION:case le.FORM_FEED:break;case le.SOLIDUS:{this.state=xt.SELF_CLOSING_START_TAG;break}case le.EQUALS_SIGN:{this.state=xt.BEFORE_ATTRIBUTE_VALUE;break}case le.GREATER_THAN_SIGN:{this.state=xt.DATA,this.emitCurrentTagToken();break}case le.EOF:{this._err(Me.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=xt.ATTRIBUTE_NAME,this._stateAttributeName(U)}}_stateBeforeAttributeValue(U){switch(U){case le.SPACE:case le.LINE_FEED:case le.TABULATION:case le.FORM_FEED:break;case le.QUOTATION_MARK:{this.state=xt.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case le.APOSTROPHE:{this.state=xt.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case le.GREATER_THAN_SIGN:{this._err(Me.missingAttributeValue),this.state=xt.DATA,this.emitCurrentTagToken();break}default:this.state=xt.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(U)}}_stateAttributeValueDoubleQuoted(U){switch(U){case le.QUOTATION_MARK:{this.state=xt.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case le.AMPERSAND:{this.returnState=xt.ATTRIBUTE_VALUE_DOUBLE_QUOTED,this.state=xt.CHARACTER_REFERENCE;break}case le.NULL:{this._err(Me.unexpectedNullCharacter),this.currentAttr.value+=se;break}case le.EOF:{this._err(Me.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(U)}}_stateAttributeValueSingleQuoted(U){switch(U){case le.APOSTROPHE:{this.state=xt.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case le.AMPERSAND:{this.returnState=xt.ATTRIBUTE_VALUE_SINGLE_QUOTED,this.state=xt.CHARACTER_REFERENCE;break}case le.NULL:{this._err(Me.unexpectedNullCharacter),this.currentAttr.value+=se;break}case le.EOF:{this._err(Me.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(U)}}_stateAttributeValueUnquoted(U){switch(U){case le.SPACE:case le.LINE_FEED:case le.TABULATION:case le.FORM_FEED:{this._leaveAttrValue(),this.state=xt.BEFORE_ATTRIBUTE_NAME;break}case le.AMPERSAND:{this.returnState=xt.ATTRIBUTE_VALUE_UNQUOTED,this.state=xt.CHARACTER_REFERENCE;break}case le.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=xt.DATA,this.emitCurrentTagToken();break}case le.NULL:{this._err(Me.unexpectedNullCharacter),this.currentAttr.value+=se;break}case le.QUOTATION_MARK:case le.APOSTROPHE:case le.LESS_THAN_SIGN:case le.EQUALS_SIGN:case le.GRAVE_ACCENT:{this._err(Me.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(U);break}case le.EOF:{this._err(Me.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(U)}}_stateAfterAttributeValueQuoted(U){switch(U){case le.SPACE:case le.LINE_FEED:case le.TABULATION:case le.FORM_FEED:{this._leaveAttrValue(),this.state=xt.BEFORE_ATTRIBUTE_NAME;break}case le.SOLIDUS:{this._leaveAttrValue(),this.state=xt.SELF_CLOSING_START_TAG;break}case le.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=xt.DATA,this.emitCurrentTagToken();break}case le.EOF:{this._err(Me.eofInTag),this._emitEOFToken();break}default:this._err(Me.missingWhitespaceBetweenAttributes),this.state=xt.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(U)}}_stateSelfClosingStartTag(U){switch(U){case le.GREATER_THAN_SIGN:{const Ce=this.currentToken;Ce.selfClosing=!0,this.state=xt.DATA,this.emitCurrentTagToken();break}case le.EOF:{this._err(Me.eofInTag),this._emitEOFToken();break}default:this._err(Me.unexpectedSolidusInTag),this.state=xt.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(U)}}_stateBogusComment(U){const Ce=this.currentToken;switch(U){case le.GREATER_THAN_SIGN:{this.state=xt.DATA,this.emitCurrentComment(Ce);break}case le.EOF:{this.emitCurrentComment(Ce),this._emitEOFToken();break}case le.NULL:{this._err(Me.unexpectedNullCharacter),Ce.data+=se;break}default:Ce.data+=String.fromCodePoint(U)}}_stateMarkupDeclarationOpen(U){this._consumeSequenceIfMatch(ke.DASH_DASH,!0)?(this._createCommentToken(ke.DASH_DASH.length+1),this.state=xt.COMMENT_START):this._consumeSequenceIfMatch(ke.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(ke.DOCTYPE.length+1),this.state=xt.DOCTYPE):this._consumeSequenceIfMatch(ke.CDATA_START,!0)?this.inForeignNode?this.state=xt.CDATA_SECTION:(this._err(Me.cdataInHtmlContent),this._createCommentToken(ke.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=xt.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Me.incorrectlyOpenedComment),this._createCommentToken(2),this.state=xt.BOGUS_COMMENT,this._stateBogusComment(U))}_stateCommentStart(U){switch(U){case le.HYPHEN_MINUS:{this.state=xt.COMMENT_START_DASH;break}case le.GREATER_THAN_SIGN:{this._err(Me.abruptClosingOfEmptyComment),this.state=xt.DATA;const Ce=this.currentToken;this.emitCurrentComment(Ce);break}default:this.state=xt.COMMENT,this._stateComment(U)}}_stateCommentStartDash(U){const Ce=this.currentToken;switch(U){case le.HYPHEN_MINUS:{this.state=xt.COMMENT_END;break}case le.GREATER_THAN_SIGN:{this._err(Me.abruptClosingOfEmptyComment),this.state=xt.DATA,this.emitCurrentComment(Ce);break}case le.EOF:{this._err(Me.eofInComment),this.emitCurrentComment(Ce),this._emitEOFToken();break}default:Ce.data+="-",this.state=xt.COMMENT,this._stateComment(U)}}_stateComment(U){const Ce=this.currentToken;switch(U){case le.HYPHEN_MINUS:{this.state=xt.COMMENT_END_DASH;break}case le.LESS_THAN_SIGN:{Ce.data+="<",this.state=xt.COMMENT_LESS_THAN_SIGN;break}case le.NULL:{this._err(Me.unexpectedNullCharacter),Ce.data+=se;break}case le.EOF:{this._err(Me.eofInComment),this.emitCurrentComment(Ce),this._emitEOFToken();break}default:Ce.data+=String.fromCodePoint(U)}}_stateCommentLessThanSign(U){const Ce=this.currentToken;switch(U){case le.EXCLAMATION_MARK:{Ce.data+="!",this.state=xt.COMMENT_LESS_THAN_SIGN_BANG;break}case le.LESS_THAN_SIGN:{Ce.data+="<";break}default:this.state=xt.COMMENT,this._stateComment(U)}}_stateCommentLessThanSignBang(U){U===le.HYPHEN_MINUS?this.state=xt.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=xt.COMMENT,this._stateComment(U))}_stateCommentLessThanSignBangDash(U){U===le.HYPHEN_MINUS?this.state=xt.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=xt.COMMENT_END_DASH,this._stateCommentEndDash(U))}_stateCommentLessThanSignBangDashDash(U){U!==le.GREATER_THAN_SIGN&&U!==le.EOF&&this._err(Me.nestedComment),this.state=xt.COMMENT_END,this._stateCommentEnd(U)}_stateCommentEndDash(U){const Ce=this.currentToken;switch(U){case le.HYPHEN_MINUS:{this.state=xt.COMMENT_END;break}case le.EOF:{this._err(Me.eofInComment),this.emitCurrentComment(Ce),this._emitEOFToken();break}default:Ce.data+="-",this.state=xt.COMMENT,this._stateComment(U)}}_stateCommentEnd(U){const Ce=this.currentToken;switch(U){case le.GREATER_THAN_SIGN:{this.state=xt.DATA,this.emitCurrentComment(Ce);break}case le.EXCLAMATION_MARK:{this.state=xt.COMMENT_END_BANG;break}case le.HYPHEN_MINUS:{Ce.data+="-";break}case le.EOF:{this._err(Me.eofInComment),this.emitCurrentComment(Ce),this._emitEOFToken();break}default:Ce.data+="--",this.state=xt.COMMENT,this._stateComment(U)}}_stateCommentEndBang(U){const Ce=this.currentToken;switch(U){case le.HYPHEN_MINUS:{Ce.data+="--!",this.state=xt.COMMENT_END_DASH;break}case le.GREATER_THAN_SIGN:{this._err(Me.incorrectlyClosedComment),this.state=xt.DATA,this.emitCurrentComment(Ce);break}case le.EOF:{this._err(Me.eofInComment),this.emitCurrentComment(Ce),this._emitEOFToken();break}default:Ce.data+="--!",this.state=xt.COMMENT,this._stateComment(U)}}_stateDoctype(U){switch(U){case le.SPACE:case le.LINE_FEED:case le.TABULATION:case le.FORM_FEED:{this.state=xt.BEFORE_DOCTYPE_NAME;break}case le.GREATER_THAN_SIGN:{this.state=xt.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(U);break}case le.EOF:{this._err(Me.eofInDoctype),this._createDoctypeToken(null);const Ce=this.currentToken;Ce.forceQuirks=!0,this.emitCurrentDoctype(Ce),this._emitEOFToken();break}default:this._err(Me.missingWhitespaceBeforeDoctypeName),this.state=xt.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(U)}}_stateBeforeDoctypeName(U){if(tr(U))this._createDoctypeToken(String.fromCharCode(Xn(U))),this.state=xt.DOCTYPE_NAME;else switch(U){case le.SPACE:case le.LINE_FEED:case le.TABULATION:case le.FORM_FEED:break;case le.NULL:{this._err(Me.unexpectedNullCharacter),this._createDoctypeToken(se),this.state=xt.DOCTYPE_NAME;break}case le.GREATER_THAN_SIGN:{this._err(Me.missingDoctypeName),this._createDoctypeToken(null);const Ce=this.currentToken;Ce.forceQuirks=!0,this.emitCurrentDoctype(Ce),this.state=xt.DATA;break}case le.EOF:{this._err(Me.eofInDoctype),this._createDoctypeToken(null);const Ce=this.currentToken;Ce.forceQuirks=!0,this.emitCurrentDoctype(Ce),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(U)),this.state=xt.DOCTYPE_NAME}}_stateDoctypeName(U){const Ce=this.currentToken;switch(U){case le.SPACE:case le.LINE_FEED:case le.TABULATION:case le.FORM_FEED:{this.state=xt.AFTER_DOCTYPE_NAME;break}case le.GREATER_THAN_SIGN:{this.state=xt.DATA,this.emitCurrentDoctype(Ce);break}case le.NULL:{this._err(Me.unexpectedNullCharacter),Ce.name+=se;break}case le.EOF:{this._err(Me.eofInDoctype),Ce.forceQuirks=!0,this.emitCurrentDoctype(Ce),this._emitEOFToken();break}default:Ce.name+=String.fromCodePoint(tr(U)?Xn(U):U)}}_stateAfterDoctypeName(U){const Ce=this.currentToken;switch(U){case le.SPACE:case le.LINE_FEED:case le.TABULATION:case le.FORM_FEED:break;case le.GREATER_THAN_SIGN:{this.state=xt.DATA,this.emitCurrentDoctype(Ce);break}case le.EOF:{this._err(Me.eofInDoctype),Ce.forceQuirks=!0,this.emitCurrentDoctype(Ce),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(ke.PUBLIC,!1)?this.state=xt.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(ke.SYSTEM,!1)?this.state=xt.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(Me.invalidCharacterSequenceAfterDoctypeName),Ce.forceQuirks=!0,this.state=xt.BOGUS_DOCTYPE,this._stateBogusDoctype(U))}}_stateAfterDoctypePublicKeyword(U){const Ce=this.currentToken;switch(U){case le.SPACE:case le.LINE_FEED:case le.TABULATION:case le.FORM_FEED:{this.state=xt.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case le.QUOTATION_MARK:{this._err(Me.missingWhitespaceAfterDoctypePublicKeyword),Ce.publicId="",this.state=xt.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case le.APOSTROPHE:{this._err(Me.missingWhitespaceAfterDoctypePublicKeyword),Ce.publicId="",this.state=xt.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case le.GREATER_THAN_SIGN:{this._err(Me.missingDoctypePublicIdentifier),Ce.forceQuirks=!0,this.state=xt.DATA,this.emitCurrentDoctype(Ce);break}case le.EOF:{this._err(Me.eofInDoctype),Ce.forceQuirks=!0,this.emitCurrentDoctype(Ce),this._emitEOFToken();break}default:this._err(Me.missingQuoteBeforeDoctypePublicIdentifier),Ce.forceQuirks=!0,this.state=xt.BOGUS_DOCTYPE,this._stateBogusDoctype(U)}}_stateBeforeDoctypePublicIdentifier(U){const Ce=this.currentToken;switch(U){case le.SPACE:case le.LINE_FEED:case le.TABULATION:case le.FORM_FEED:break;case le.QUOTATION_MARK:{Ce.publicId="",this.state=xt.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case le.APOSTROPHE:{Ce.publicId="",this.state=xt.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case le.GREATER_THAN_SIGN:{this._err(Me.missingDoctypePublicIdentifier),Ce.forceQuirks=!0,this.state=xt.DATA,this.emitCurrentDoctype(Ce);break}case le.EOF:{this._err(Me.eofInDoctype),Ce.forceQuirks=!0,this.emitCurrentDoctype(Ce),this._emitEOFToken();break}default:this._err(Me.missingQuoteBeforeDoctypePublicIdentifier),Ce.forceQuirks=!0,this.state=xt.BOGUS_DOCTYPE,this._stateBogusDoctype(U)}}_stateDoctypePublicIdentifierDoubleQuoted(U){const Ce=this.currentToken;switch(U){case le.QUOTATION_MARK:{this.state=xt.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case le.NULL:{this._err(Me.unexpectedNullCharacter),Ce.publicId+=se;break}case le.GREATER_THAN_SIGN:{this._err(Me.abruptDoctypePublicIdentifier),Ce.forceQuirks=!0,this.emitCurrentDoctype(Ce),this.state=xt.DATA;break}case le.EOF:{this._err(Me.eofInDoctype),Ce.forceQuirks=!0,this.emitCurrentDoctype(Ce),this._emitEOFToken();break}default:Ce.publicId+=String.fromCodePoint(U)}}_stateDoctypePublicIdentifierSingleQuoted(U){const Ce=this.currentToken;switch(U){case le.APOSTROPHE:{this.state=xt.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case le.NULL:{this._err(Me.unexpectedNullCharacter),Ce.publicId+=se;break}case le.GREATER_THAN_SIGN:{this._err(Me.abruptDoctypePublicIdentifier),Ce.forceQuirks=!0,this.emitCurrentDoctype(Ce),this.state=xt.DATA;break}case le.EOF:{this._err(Me.eofInDoctype),Ce.forceQuirks=!0,this.emitCurrentDoctype(Ce),this._emitEOFToken();break}default:Ce.publicId+=String.fromCodePoint(U)}}_stateAfterDoctypePublicIdentifier(U){const Ce=this.currentToken;switch(U){case le.SPACE:case le.LINE_FEED:case le.TABULATION:case le.FORM_FEED:{this.state=xt.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case le.GREATER_THAN_SIGN:{this.state=xt.DATA,this.emitCurrentDoctype(Ce);break}case le.QUOTATION_MARK:{this._err(Me.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),Ce.systemId="",this.state=xt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case le.APOSTROPHE:{this._err(Me.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),Ce.systemId="",this.state=xt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case le.EOF:{this._err(Me.eofInDoctype),Ce.forceQuirks=!0,this.emitCurrentDoctype(Ce),this._emitEOFToken();break}default:this._err(Me.missingQuoteBeforeDoctypeSystemIdentifier),Ce.forceQuirks=!0,this.state=xt.BOGUS_DOCTYPE,this._stateBogusDoctype(U)}}_stateBetweenDoctypePublicAndSystemIdentifiers(U){const Ce=this.currentToken;switch(U){case le.SPACE:case le.LINE_FEED:case le.TABULATION:case le.FORM_FEED:break;case le.GREATER_THAN_SIGN:{this.emitCurrentDoctype(Ce),this.state=xt.DATA;break}case le.QUOTATION_MARK:{Ce.systemId="",this.state=xt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case le.APOSTROPHE:{Ce.systemId="",this.state=xt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case le.EOF:{this._err(Me.eofInDoctype),Ce.forceQuirks=!0,this.emitCurrentDoctype(Ce),this._emitEOFToken();break}default:this._err(Me.missingQuoteBeforeDoctypeSystemIdentifier),Ce.forceQuirks=!0,this.state=xt.BOGUS_DOCTYPE,this._stateBogusDoctype(U)}}_stateAfterDoctypeSystemKeyword(U){const Ce=this.currentToken;switch(U){case le.SPACE:case le.LINE_FEED:case le.TABULATION:case le.FORM_FEED:{this.state=xt.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case le.QUOTATION_MARK:{this._err(Me.missingWhitespaceAfterDoctypeSystemKeyword),Ce.systemId="",this.state=xt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case le.APOSTROPHE:{this._err(Me.missingWhitespaceAfterDoctypeSystemKeyword),Ce.systemId="",this.state=xt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case le.GREATER_THAN_SIGN:{this._err(Me.missingDoctypeSystemIdentifier),Ce.forceQuirks=!0,this.state=xt.DATA,this.emitCurrentDoctype(Ce);break}case le.EOF:{this._err(Me.eofInDoctype),Ce.forceQuirks=!0,this.emitCurrentDoctype(Ce),this._emitEOFToken();break}default:this._err(Me.missingQuoteBeforeDoctypeSystemIdentifier),Ce.forceQuirks=!0,this.state=xt.BOGUS_DOCTYPE,this._stateBogusDoctype(U)}}_stateBeforeDoctypeSystemIdentifier(U){const Ce=this.currentToken;switch(U){case le.SPACE:case le.LINE_FEED:case le.TABULATION:case le.FORM_FEED:break;case le.QUOTATION_MARK:{Ce.systemId="",this.state=xt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case le.APOSTROPHE:{Ce.systemId="",this.state=xt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case le.GREATER_THAN_SIGN:{this._err(Me.missingDoctypeSystemIdentifier),Ce.forceQuirks=!0,this.state=xt.DATA,this.emitCurrentDoctype(Ce);break}case le.EOF:{this._err(Me.eofInDoctype),Ce.forceQuirks=!0,this.emitCurrentDoctype(Ce),this._emitEOFToken();break}default:this._err(Me.missingQuoteBeforeDoctypeSystemIdentifier),Ce.forceQuirks=!0,this.state=xt.BOGUS_DOCTYPE,this._stateBogusDoctype(U)}}_stateDoctypeSystemIdentifierDoubleQuoted(U){const Ce=this.currentToken;switch(U){case le.QUOTATION_MARK:{this.state=xt.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case le.NULL:{this._err(Me.unexpectedNullCharacter),Ce.systemId+=se;break}case le.GREATER_THAN_SIGN:{this._err(Me.abruptDoctypeSystemIdentifier),Ce.forceQuirks=!0,this.emitCurrentDoctype(Ce),this.state=xt.DATA;break}case le.EOF:{this._err(Me.eofInDoctype),Ce.forceQuirks=!0,this.emitCurrentDoctype(Ce),this._emitEOFToken();break}default:Ce.systemId+=String.fromCodePoint(U)}}_stateDoctypeSystemIdentifierSingleQuoted(U){const Ce=this.currentToken;switch(U){case le.APOSTROPHE:{this.state=xt.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case le.NULL:{this._err(Me.unexpectedNullCharacter),Ce.systemId+=se;break}case le.GREATER_THAN_SIGN:{this._err(Me.abruptDoctypeSystemIdentifier),Ce.forceQuirks=!0,this.emitCurrentDoctype(Ce),this.state=xt.DATA;break}case le.EOF:{this._err(Me.eofInDoctype),Ce.forceQuirks=!0,this.emitCurrentDoctype(Ce),this._emitEOFToken();break}default:Ce.systemId+=String.fromCodePoint(U)}}_stateAfterDoctypeSystemIdentifier(U){const Ce=this.currentToken;switch(U){case le.SPACE:case le.LINE_FEED:case le.TABULATION:case le.FORM_FEED:break;case le.GREATER_THAN_SIGN:{this.emitCurrentDoctype(Ce),this.state=xt.DATA;break}case le.EOF:{this._err(Me.eofInDoctype),Ce.forceQuirks=!0,this.emitCurrentDoctype(Ce),this._emitEOFToken();break}default:this._err(Me.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=xt.BOGUS_DOCTYPE,this._stateBogusDoctype(U)}}_stateBogusDoctype(U){const Ce=this.currentToken;switch(U){case le.GREATER_THAN_SIGN:{this.emitCurrentDoctype(Ce),this.state=xt.DATA;break}case le.NULL:{this._err(Me.unexpectedNullCharacter);break}case le.EOF:{this.emitCurrentDoctype(Ce),this._emitEOFToken();break}default:}}_stateCdataSection(U){switch(U){case le.RIGHT_SQUARE_BRACKET:{this.state=xt.CDATA_SECTION_BRACKET;break}case le.EOF:{this._err(Me.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(U)}}_stateCdataSectionBracket(U){U===le.RIGHT_SQUARE_BRACKET?this.state=xt.CDATA_SECTION_END:(this._emitChars("]"),this.state=xt.CDATA_SECTION,this._stateCdataSection(U))}_stateCdataSectionEnd(U){switch(U){case le.GREATER_THAN_SIGN:{this.state=xt.DATA;break}case le.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=xt.CDATA_SECTION,this._stateCdataSection(U)}}_stateCharacterReference(U){U===le.NUMBER_SIGN?this.state=xt.NUMERIC_CHARACTER_REFERENCE:Kt(U)?(this.state=xt.NAMED_CHARACTER_REFERENCE,this._stateNamedCharacterReference(U)):(this._flushCodePointConsumedAsCharacterReference(le.AMPERSAND),this._reconsumeInState(this.returnState,U))}_stateNamedCharacterReference(U){const Ce=this._matchNamedCharacterReference(U);if(!this._ensureHibernation())if(Ce){for(let et=0;et<Ce.length;et++)this._flushCodePointConsumedAsCharacterReference(Ce[et]);this.state=this.returnState}else this._flushCodePointConsumedAsCharacterReference(le.AMPERSAND),this.state=xt.AMBIGUOUS_AMPERSAND}_stateAmbiguousAmpersand(U){Kt(U)?this._flushCodePointConsumedAsCharacterReference(U):(U===le.SEMICOLON&&this._err(Me.unknownNamedCharacterReference),this._reconsumeInState(this.returnState,U))}_stateNumericCharacterReference(U){this.charRefCode=0,U===le.LATIN_SMALL_X||U===le.LATIN_CAPITAL_X?this.state=xt.HEXADEMICAL_CHARACTER_REFERENCE_START:Pr(U)?(this.state=xt.DECIMAL_CHARACTER_REFERENCE,this._stateDecimalCharacterReference(U)):(this._err(Me.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(le.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(le.NUMBER_SIGN),this._reconsumeInState(this.returnState,U))}_stateHexademicalCharacterReferenceStart(U){rn(U)?(this.state=xt.HEXADEMICAL_CHARACTER_REFERENCE,this._stateHexademicalCharacterReference(U)):(this._err(Me.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(le.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(le.NUMBER_SIGN),this._unconsume(2),this.state=this.returnState)}_stateHexademicalCharacterReference(U){ye(U)?this.charRefCode=this.charRefCode*16+U-55:Vt(U)?this.charRefCode=this.charRefCode*16+U-87:Pr(U)?this.charRefCode=this.charRefCode*16+U-48:U===le.SEMICOLON?this.state=xt.NUMERIC_CHARACTER_REFERENCE_END:(this._err(Me.missingSemicolonAfterCharacterReference),this.state=xt.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(U))}_stateDecimalCharacterReference(U){Pr(U)?this.charRefCode=this.charRefCode*10+U-48:U===le.SEMICOLON?this.state=xt.NUMERIC_CHARACTER_REFERENCE_END:(this._err(Me.missingSemicolonAfterCharacterReference),this.state=xt.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(U))}_stateNumericCharacterReferenceEnd(U){if(this.charRefCode===le.NULL)this._err(Me.nullCharacterReference),this.charRefCode=le.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(Me.characterReferenceOutsideUnicodeRange),this.charRefCode=le.REPLACEMENT_CHARACTER;else if(De(this.charRefCode))this._err(Me.surrogateCharacterReference),this.charRefCode=le.REPLACEMENT_CHARACTER;else if(Je(this.charRefCode))this._err(Me.noncharacterCharacterReference);else if(Fe(this.charRefCode)||this.charRefCode===le.CARRIAGE_RETURN){this._err(Me.controlCharacterReference);const Ce=sn.get(this.charRefCode);Ce!==void 0&&(this.charRefCode=Ce)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,U)}}const li=new Set([ge.DD,ge.DT,ge.LI,ge.OPTGROUP,ge.OPTION,ge.P,ge.RB,ge.RP,ge.RT,ge.RTC]),Zr=new Set([...li,ge.CAPTION,ge.COLGROUP,ge.TBODY,ge.TD,ge.TFOOT,ge.TH,ge.THEAD,ge.TR]),Tn=new Map([[ge.APPLET,ht.HTML],[ge.CAPTION,ht.HTML],[ge.HTML,ht.HTML],[ge.MARQUEE,ht.HTML],[ge.OBJECT,ht.HTML],[ge.TABLE,ht.HTML],[ge.TD,ht.HTML],[ge.TEMPLATE,ht.HTML],[ge.TH,ht.HTML],[ge.ANNOTATION_XML,ht.MATHML],[ge.MI,ht.MATHML],[ge.MN,ht.MATHML],[ge.MO,ht.MATHML],[ge.MS,ht.MATHML],[ge.MTEXT,ht.MATHML],[ge.DESC,ht.SVG],[ge.FOREIGN_OBJECT,ht.SVG],[ge.TITLE,ht.SVG]]),kn=[ge.H1,ge.H2,ge.H3,ge.H4,ge.H5,ge.H6],Vr=[ge.TR,ge.TEMPLATE,ge.HTML],di=[ge.TBODY,ge.TFOOT,ge.THEAD,ge.TEMPLATE,ge.HTML],nr=[ge.TABLE,ge.TEMPLATE,ge.HTML],vn=[ge.TD,ge.TH];class Jn{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(U,Ce,et){this.treeAdapter=Ce,this.handler=et,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=ge.UNKNOWN,this.current=U}_indexOf(U){return this.items.lastIndexOf(U,this.stackTop)}_isInTemplate(){return this.currentTagId===ge.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===ht.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(U,Ce){this.stackTop++,this.items[this.stackTop]=U,this.current=U,this.tagIDs[this.stackTop]=Ce,this.currentTagId=Ce,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(U,Ce,!0)}pop(){const U=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(U,!0)}replace(U,Ce){const et=this._indexOf(U);this.items[et]=Ce,et===this.stackTop&&(this.current=Ce)}insertAfter(U,Ce,et){const It=this._indexOf(U)+1;this.items.splice(It,0,Ce),this.tagIDs.splice(It,0,et),this.stackTop++,It===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,It===this.stackTop)}popUntilTagNamePopped(U){let Ce=this.stackTop+1;do Ce=this.tagIDs.lastIndexOf(U,Ce-1);while(Ce>0&&this.treeAdapter.getNamespaceURI(this.items[Ce])!==ht.HTML);this.shortenToLength(Ce<0?0:Ce)}shortenToLength(U){for(;this.stackTop>=U;){const Ce=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(Ce,this.stackTop<U)}}popUntilElementPopped(U){const Ce=this._indexOf(U);this.shortenToLength(Ce<0?0:Ce)}popUntilPopped(U,Ce){const et=this._indexOfTagNames(U,Ce);this.shortenToLength(et<0?0:et)}popUntilNumberedHeaderPopped(){this.popUntilPopped(kn,ht.HTML)}popUntilTableCellPopped(){this.popUntilPopped(vn,ht.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(U,Ce){for(let et=this.stackTop;et>=0;et--)if(U.includes(this.tagIDs[et])&&this.treeAdapter.getNamespaceURI(this.items[et])===Ce)return et;return-1}clearBackTo(U,Ce){const et=this._indexOfTagNames(U,Ce);this.shortenToLength(et+1)}clearBackToTableContext(){this.clearBackTo(nr,ht.HTML)}clearBackToTableBodyContext(){this.clearBackTo(di,ht.HTML)}clearBackToTableRowContext(){this.clearBackTo(Vr,ht.HTML)}remove(U){const Ce=this._indexOf(U);Ce>=0&&(Ce===this.stackTop?this.pop():(this.items.splice(Ce,1),this.tagIDs.splice(Ce,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(U,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===ge.BODY?this.items[1]:null}contains(U){return this._indexOf(U)>-1}getCommonAncestor(U){const Ce=this._indexOf(U)-1;return Ce>=0?this.items[Ce]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===ge.HTML}hasInScope(U){for(let Ce=this.stackTop;Ce>=0;Ce--){const et=this.tagIDs[Ce],It=this.treeAdapter.getNamespaceURI(this.items[Ce]);if(et===U&&It===ht.HTML)return!0;if(Tn.get(et)===It)return!1}return!0}hasNumberedHeaderInScope(){for(let U=this.stackTop;U>=0;U--){const Ce=this.tagIDs[U],et=this.treeAdapter.getNamespaceURI(this.items[U]);if(Vn(Ce)&&et===ht.HTML)return!0;if(Tn.get(Ce)===et)return!1}return!0}hasInListItemScope(U){for(let Ce=this.stackTop;Ce>=0;Ce--){const et=this.tagIDs[Ce],It=this.treeAdapter.getNamespaceURI(this.items[Ce]);if(et===U&&It===ht.HTML)return!0;if((et===ge.UL||et===ge.OL)&&It===ht.HTML||Tn.get(et)===It)return!1}return!0}hasInButtonScope(U){for(let Ce=this.stackTop;Ce>=0;Ce--){const et=this.tagIDs[Ce],It=this.treeAdapter.getNamespaceURI(this.items[Ce]);if(et===U&&It===ht.HTML)return!0;if(et===ge.BUTTON&&It===ht.HTML||Tn.get(et)===It)return!1}return!0}hasInTableScope(U){for(let Ce=this.stackTop;Ce>=0;Ce--){const et=this.tagIDs[Ce];if(this.treeAdapter.getNamespaceURI(this.items[Ce])===ht.HTML){if(et===U)return!0;if(et===ge.TABLE||et===ge.TEMPLATE||et===ge.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let U=this.stackTop;U>=0;U--){const Ce=this.tagIDs[U];if(this.treeAdapter.getNamespaceURI(this.items[U])===ht.HTML){if(Ce===ge.TBODY||Ce===ge.THEAD||Ce===ge.TFOOT)return!0;if(Ce===ge.TABLE||Ce===ge.HTML)return!1}}return!0}hasInSelectScope(U){for(let Ce=this.stackTop;Ce>=0;Ce--){const et=this.tagIDs[Ce];if(this.treeAdapter.getNamespaceURI(this.items[Ce])===ht.HTML){if(et===U)return!0;if(et!==ge.OPTION&&et!==ge.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;li.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Zr.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(U){for(;this.currentTagId!==U&&Zr.has(this.currentTagId);)this.pop()}}const bi=3;var gi;(function(k){k[k.Marker=0]="Marker",k[k.Element=1]="Element"})(gi=gi||(gi={}));const mi={type:gi.Marker};class Lt{constructor(U){this.treeAdapter=U,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(U,Ce){const et=[],It=Ce.length,Ut=this.treeAdapter.getTagName(U),pn=this.treeAdapter.getNamespaceURI(U);for(let wn=0;wn<this.entries.length;wn++){const fn=this.entries[wn];if(fn.type===gi.Marker)break;const{element:Tr}=fn;if(this.treeAdapter.getTagName(Tr)===Ut&&this.treeAdapter.getNamespaceURI(Tr)===pn){const Li=this.treeAdapter.getAttrList(Tr);Li.length===It&&et.push({idx:wn,attrs:Li})}}return et}_ensureNoahArkCondition(U){if(this.entries.length<bi)return;const Ce=this.treeAdapter.getAttrList(U),et=this._getNoahArkConditionCandidates(U,Ce);if(et.length<bi)return;const It=new Map(Ce.map(pn=>[pn.name,pn.value]));let Ut=0;for(let pn=0;pn<et.length;pn++){const wn=et[pn];wn.attrs.every(fn=>It.get(fn.name)===fn.value)&&(Ut+=1,Ut>=bi&&this.entries.splice(wn.idx,1))}}insertMarker(){this.entries.unshift(mi)}pushElement(U,Ce){this._ensureNoahArkCondition(U),this.entries.unshift({type:gi.Element,element:U,token:Ce})}insertElementAfterBookmark(U,Ce){const et=this.entries.indexOf(this.bookmark);this.entries.splice(et,0,{type:gi.Element,element:U,token:Ce})}removeEntry(U){const Ce=this.entries.indexOf(U);Ce>=0&&this.entries.splice(Ce,1)}clearToLastMarker(){const U=this.entries.indexOf(mi);U>=0?this.entries.splice(0,U+1):this.entries.length=0}getElementEntryInScopeWithTagName(U){const Ce=this.entries.find(et=>et.type===gi.Marker||this.treeAdapter.getTagName(et.element)===U);return Ce&&Ce.type===gi.Element?Ce:null}getElementEntry(U){return this.entries.find(Ce=>Ce.type===gi.Element&&Ce.element===U)}}function Yn(k){return{nodeName:"#text",value:k,parentNode:null}}const hr={createDocument(){return{nodeName:"#document",mode:jt.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(k,U,Ce){return{nodeName:k,tagName:k,attrs:Ce,namespaceURI:U,childNodes:[],parentNode:null}},createCommentNode(k){return{nodeName:"#comment",data:k,parentNode:null}},appendChild(k,U){k.childNodes.push(U),U.parentNode=k},insertBefore(k,U,Ce){const et=k.childNodes.indexOf(Ce);k.childNodes.splice(et,0,U),U.parentNode=k},setTemplateContent(k,U){k.content=U},getTemplateContent(k){return k.content},setDocumentType(k,U,Ce,et){const It=k.childNodes.find(Ut=>Ut.nodeName==="#documentType");if(It)It.name=U,It.publicId=Ce,It.systemId=et;else{const Ut={nodeName:"#documentType",name:U,publicId:Ce,systemId:et,parentNode:null};hr.appendChild(k,Ut)}},setDocumentMode(k,U){k.mode=U},getDocumentMode(k){return k.mode},detachNode(k){if(k.parentNode){const U=k.parentNode.childNodes.indexOf(k);k.parentNode.childNodes.splice(U,1),k.parentNode=null}},insertText(k,U){if(k.childNodes.length>0){const Ce=k.childNodes[k.childNodes.length-1];if(hr.isTextNode(Ce)){Ce.value+=U;return}}hr.appendChild(k,Yn(U))},insertTextBefore(k,U,Ce){const et=k.childNodes[k.childNodes.indexOf(Ce)-1];et&&hr.isTextNode(et)?et.value+=U:hr.insertBefore(k,Yn(U),Ce)},adoptAttributes(k,U){const Ce=new Set(k.attrs.map(et=>et.name));for(let et=0;et<U.length;et++)Ce.has(U[et].name)||k.attrs.push(U[et])},getFirstChild(k){return k.childNodes[0]},getChildNodes(k){return k.childNodes},getParentNode(k){return k.parentNode},getAttrList(k){return k.attrs},getTagName(k){return k.tagName},getNamespaceURI(k){return k.namespaceURI},getTextNodeContent(k){return k.value},getCommentNodeContent(k){return k.data},getDocumentTypeNodeName(k){return k.name},getDocumentTypeNodePublicId(k){return k.publicId},getDocumentTypeNodeSystemId(k){return k.systemId},isTextNode(k){return k.nodeName==="#text"},isCommentNode(k){return k.nodeName==="#comment"},isDocumentTypeNode(k){return k.nodeName==="#documentType"},isElementNode(k){return Object.prototype.hasOwnProperty.call(k,"tagName")},setNodeSourceCodeLocation(k,U){k.sourceCodeLocation=U},getNodeSourceCodeLocation(k){return k.sourceCodeLocation},updateNodeSourceCodeLocation(k,U){k.sourceCodeLocation=ls(ls({},k.sourceCodeLocation),U)}},zi="html",bn="about:legacy-compat",or="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Ei=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],Co=[...Ei,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],ki=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),yr=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Mr=[...yr,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Fr(k,U){return U.some(Ce=>k.startsWith(Ce))}function Di(k){return k.name===zi&&k.publicId===null&&(k.systemId===null||k.systemId===bn)}function so(k){if(k.name!==zi)return jt.QUIRKS;const{systemId:U}=k;if(U&&U.toLowerCase()===or)return jt.QUIRKS;let{publicId:Ce}=k;if(Ce!==null){if(Ce=Ce.toLowerCase(),ki.has(Ce))return jt.QUIRKS;let et=U===null?Co:Ei;if(Fr(Ce,et))return jt.QUIRKS;if(et=U===null?yr:Mr,Fr(Ce,et))return jt.LIMITED_QUIRKS}return jt.NO_QUIRKS}const Gi={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},sr="definitionurl",ys="definitionURL",Wo=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(k=>[k.toLowerCase(),k])),Ro=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:ht.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:ht.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:ht.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:ht.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:ht.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:ht.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:ht.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:ht.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:ht.XML}],["xml:space",{prefix:"xml",name:"space",namespace:ht.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:ht.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:ht.XMLNS}]]),hn=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(k=>[k.toLowerCase(),k])),us=new Set([ge.B,ge.BIG,ge.BLOCKQUOTE,ge.BODY,ge.BR,ge.CENTER,ge.CODE,ge.DD,ge.DIV,ge.DL,ge.DT,ge.EM,ge.EMBED,ge.H1,ge.H2,ge.H3,ge.H4,ge.H5,ge.H6,ge.HEAD,ge.HR,ge.I,ge.IMG,ge.LI,ge.LISTING,ge.MENU,ge.META,ge.NOBR,ge.OL,ge.P,ge.PRE,ge.RUBY,ge.S,ge.SMALL,ge.SPAN,ge.STRONG,ge.STRIKE,ge.SUB,ge.SUP,ge.TABLE,ge.TT,ge.U,ge.UL,ge.VAR]);function cs(k){const U=k.tagID;return U===ge.FONT&&k.attrs.some(({name:et})=>et===wt.COLOR||et===wt.SIZE||et===wt.FACE)||us.has(U)}function yo(k){for(let U=0;U<k.attrs.length;U++)if(k.attrs[U].name===sr){k.attrs[U].name=ys;break}}function Bs(k){for(let U=0;U<k.attrs.length;U++){const Ce=Wo.get(k.attrs[U].name);Ce!=null&&(k.attrs[U].name=Ce)}}function Yi(k){for(let U=0;U<k.attrs.length;U++){const Ce=Ro.get(k.attrs[U].name);Ce&&(k.attrs[U].prefix=Ce.prefix,k.attrs[U].name=Ce.name,k.attrs[U].namespace=Ce.namespace)}}function eo(k){const U=hn.get(k.tagName);U!=null&&(k.tagName=U,k.tagID=mn(k.tagName))}function Oi(k,U){return U===ht.MATHML&&(k===ge.MI||k===ge.MO||k===ge.MN||k===ge.MS||k===ge.MTEXT)}function hi(k,U,Ce){if(U===ht.MATHML&&k===ge.ANNOTATION_XML){for(let et=0;et<Ce.length;et++)if(Ce[et].name===wt.ENCODING){const It=Ce[et].value.toLowerCase();return It===Gi.TEXT_HTML||It===Gi.APPLICATION_XML}}return U===ht.SVG&&(k===ge.FOREIGN_OBJECT||k===ge.DESC||k===ge.TITLE)}function Ni(k,U,Ce,et){return(!et||et===ht.HTML)&&hi(k,U,Ce)||(!et||et===ht.MATHML)&&Oi(k,U)}const tn="hidden",_i=8,ut=3;var Ge;(function(k){k[k.INITIAL=0]="INITIAL",k[k.BEFORE_HTML=1]="BEFORE_HTML",k[k.BEFORE_HEAD=2]="BEFORE_HEAD",k[k.IN_HEAD=3]="IN_HEAD",k[k.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",k[k.AFTER_HEAD=5]="AFTER_HEAD",k[k.IN_BODY=6]="IN_BODY",k[k.TEXT=7]="TEXT",k[k.IN_TABLE=8]="IN_TABLE",k[k.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",k[k.IN_CAPTION=10]="IN_CAPTION",k[k.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",k[k.IN_TABLE_BODY=12]="IN_TABLE_BODY",k[k.IN_ROW=13]="IN_ROW",k[k.IN_CELL=14]="IN_CELL",k[k.IN_SELECT=15]="IN_SELECT",k[k.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",k[k.IN_TEMPLATE=17]="IN_TEMPLATE",k[k.AFTER_BODY=18]="AFTER_BODY",k[k.IN_FRAMESET=19]="IN_FRAMESET",k[k.AFTER_FRAMESET=20]="AFTER_FRAMESET",k[k.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",k[k.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(Ge||(Ge={}));const an={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},it=new Set([ge.TABLE,ge.TBODY,ge.TFOOT,ge.THEAD,ge.TR]),dt={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:hr,onParseError:null};class Et{constructor(U,Ce,et=null,It=null){this.fragmentContext=et,this.scriptHandler=It,this.currentToken=null,this.stopped=!1,this.insertionMode=Ge.INITIAL,this.originalInsertionMode=Ge.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options=ls(ls({},dt),U),this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=Ce!=null?Ce:this.treeAdapter.createDocument(),this.tokenizer=new ai(this.options,this),this.activeFormattingElements=new Lt(this.treeAdapter),this.fragmentContextID=et?mn(this.treeAdapter.getTagName(et)):ge.UNKNOWN,this._setContextModes(et!=null?et:this.document,this.fragmentContextID),this.openElements=new Jn(this.document,this.treeAdapter,this)}static parse(U,Ce){const et=new this(Ce);return et.tokenizer.write(U,!0),et.document}static getFragmentParser(U,Ce){const et=ls(ls({},dt),Ce);U!=null||(U=et.treeAdapter.createElement(st.TEMPLATE,ht.HTML,[]));const It=et.treeAdapter.createElement("documentmock",ht.HTML,[]),Ut=new this(et,It,U);return Ut.fragmentContextID===ge.TEMPLATE&&Ut.tmplInsertionModeStack.unshift(Ge.IN_TEMPLATE),Ut._initTokenizerForFragmentParsing(),Ut._insertFakeRootElement(),Ut._resetInsertionMode(),Ut._findFormInFragmentContext(),Ut}getFragment(){const U=this.treeAdapter.getFirstChild(this.document),Ce=this.treeAdapter.createDocumentFragment();return this._adoptNodes(U,Ce),Ce}_err(U,Ce,et){var It;if(!this.onParseError)return;const Ut=(It=U.location)!==null&&It!==void 0?It:an,pn={code:Ce,startLine:Ut.startLine,startCol:Ut.startCol,startOffset:Ut.startOffset,endLine:et?Ut.startLine:Ut.endLine,endCol:et?Ut.startCol:Ut.endCol,endOffset:et?Ut.startOffset:Ut.endOffset};this.onParseError(pn)}onItemPush(U,Ce,et){var It,Ut;(Ut=(It=this.treeAdapter).onItemPush)===null||Ut===void 0||Ut.call(It,U),et&&this.openElements.stackTop>0&&this._setContextModes(U,Ce)}onItemPop(U,Ce){var et,It;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(U,this.currentToken),(It=(et=this.treeAdapter).onItemPop)===null||It===void 0||It.call(et,U,this.openElements.current),Ce){let Ut,pn;this.openElements.stackTop===0&&this.fragmentContext?(Ut=this.fragmentContext,pn=this.fragmentContextID):{current:Ut,currentTagId:pn}=this.openElements,this._setContextModes(Ut,pn)}}_setContextModes(U,Ce){const et=U===this.document||this.treeAdapter.getNamespaceURI(U)===ht.HTML;this.currentNotInHTML=!et,this.tokenizer.inForeignNode=!et&&!this._isIntegrationPoint(Ce,U)}_switchToTextParsing(U,Ce){this._insertElement(U,ht.HTML),this.tokenizer.state=Ce,this.originalInsertionMode=this.insertionMode,this.insertionMode=Ge.TEXT}switchToPlaintextParsing(){this.insertionMode=Ge.TEXT,this.originalInsertionMode=Ge.IN_BODY,this.tokenizer.state=gr.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let U=this.fragmentContext;for(;U;){if(this.treeAdapter.getTagName(U)===st.FORM){this.formElement=U;break}U=this.treeAdapter.getParentNode(U)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==ht.HTML))switch(this.fragmentContextID){case ge.TITLE:case ge.TEXTAREA:{this.tokenizer.state=gr.RCDATA;break}case ge.STYLE:case ge.XMP:case ge.IFRAME:case ge.NOEMBED:case ge.NOFRAMES:case ge.NOSCRIPT:{this.tokenizer.state=gr.RAWTEXT;break}case ge.SCRIPT:{this.tokenizer.state=gr.SCRIPT_DATA;break}case ge.PLAINTEXT:{this.tokenizer.state=gr.PLAINTEXT;break}default:}}_setDocumentType(U){const Ce=U.name||"",et=U.publicId||"",It=U.systemId||"";if(this.treeAdapter.setDocumentType(this.document,Ce,et,It),U.location){const pn=this.treeAdapter.getChildNodes(this.document).find(wn=>this.treeAdapter.isDocumentTypeNode(wn));pn&&this.treeAdapter.setNodeSourceCodeLocation(pn,U.location)}}_attachElementToTree(U,Ce){if(this.options.sourceCodeLocationInfo){const et=Ce&&Vh(ls({},Ce),{startTag:Ce});this.treeAdapter.setNodeSourceCodeLocation(U,et)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(U);else{const et=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(et,U)}}_appendElement(U,Ce){const et=this.treeAdapter.createElement(U.tagName,Ce,U.attrs);this._attachElementToTree(et,U.location)}_insertElement(U,Ce){const et=this.treeAdapter.createElement(U.tagName,Ce,U.attrs);this._attachElementToTree(et,U.location),this.openElements.push(et,U.tagID)}_insertFakeElement(U,Ce){const et=this.treeAdapter.createElement(U,ht.HTML,[]);this._attachElementToTree(et,null),this.openElements.push(et,Ce)}_insertTemplate(U){const Ce=this.treeAdapter.createElement(U.tagName,ht.HTML,U.attrs),et=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(Ce,et),this._attachElementToTree(Ce,U.location),this.openElements.push(Ce,U.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(et,null)}_insertFakeRootElement(){const U=this.treeAdapter.createElement(st.HTML,ht.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(U,null),this.treeAdapter.appendChild(this.openElements.current,U),this.openElements.push(U,ge.HTML)}_appendCommentNode(U,Ce){const et=this.treeAdapter.createCommentNode(U.data);this.treeAdapter.appendChild(Ce,et),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(et,U.location)}_insertCharacters(U){let Ce,et;if(this._shouldFosterParentOnInsertion()?({parent:Ce,beforeElement:et}=this._findFosterParentingLocation(),et?this.treeAdapter.insertTextBefore(Ce,U.chars,et):this.treeAdapter.insertText(Ce,U.chars)):(Ce=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(Ce,U.chars)),!U.location)return;const It=this.treeAdapter.getChildNodes(Ce),Ut=et?It.lastIndexOf(et):It.length,pn=It[Ut-1];if(this.treeAdapter.getNodeSourceCodeLocation(pn)){const{endLine:fn,endCol:Tr,endOffset:Li}=U.location;this.treeAdapter.updateNodeSourceCodeLocation(pn,{endLine:fn,endCol:Tr,endOffset:Li})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(pn,U.location)}_adoptNodes(U,Ce){for(let et=this.treeAdapter.getFirstChild(U);et;et=this.treeAdapter.getFirstChild(U))this.treeAdapter.detachNode(et),this.treeAdapter.appendChild(Ce,et)}_setEndLocation(U,Ce){if(this.treeAdapter.getNodeSourceCodeLocation(U)&&Ce.location){const et=Ce.location,It=this.treeAdapter.getTagName(U),Ut=Ce.type===Oe.END_TAG&&It===Ce.tagName?{endTag:ls({},et),endLine:et.endLine,endCol:et.endCol,endOffset:et.endOffset}:{endLine:et.startLine,endCol:et.startCol,endOffset:et.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(U,Ut)}}shouldProcessStartTagTokenInForeignContent(U){if(!this.currentNotInHTML)return!1;let Ce,et;return this.openElements.stackTop===0&&this.fragmentContext?(Ce=this.fragmentContext,et=this.fragmentContextID):{current:Ce,currentTagId:et}=this.openElements,U.tagID===ge.SVG&&this.treeAdapter.getTagName(Ce)===st.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(Ce)===ht.MATHML?!1:this.tokenizer.inForeignNode||(U.tagID===ge.MGLYPH||U.tagID===ge.MALIGNMARK)&&!this._isIntegrationPoint(et,Ce,ht.HTML)}_processToken(U){switch(U.type){case Oe.CHARACTER:{this.onCharacter(U);break}case Oe.NULL_CHARACTER:{this.onNullCharacter(U);break}case Oe.COMMENT:{this.onComment(U);break}case Oe.DOCTYPE:{this.onDoctype(U);break}case Oe.START_TAG:{this._processStartTag(U);break}case Oe.END_TAG:{this.onEndTag(U);break}case Oe.EOF:{this.onEof(U);break}case Oe.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(U);break}}}_isIntegrationPoint(U,Ce,et){const It=this.treeAdapter.getNamespaceURI(Ce),Ut=this.treeAdapter.getAttrList(Ce);return Ni(U,It,Ut,et)}_reconstructActiveFormattingElements(){const U=this.activeFormattingElements.entries.length;if(U){const Ce=this.activeFormattingElements.entries.findIndex(It=>It.type===gi.Marker||this.openElements.contains(It.element)),et=Ce<0?U-1:Ce-1;for(let It=et;It>=0;It--){const Ut=this.activeFormattingElements.entries[It];this._insertElement(Ut.token,this.treeAdapter.getNamespaceURI(Ut.element)),Ut.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Ge.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(ge.P),this.openElements.popUntilTagNamePopped(ge.P)}_resetInsertionMode(){for(let U=this.openElements.stackTop;U>=0;U--)switch(U===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[U]){case ge.TR:{this.insertionMode=Ge.IN_ROW;return}case ge.TBODY:case ge.THEAD:case ge.TFOOT:{this.insertionMode=Ge.IN_TABLE_BODY;return}case ge.CAPTION:{this.insertionMode=Ge.IN_CAPTION;return}case ge.COLGROUP:{this.insertionMode=Ge.IN_COLUMN_GROUP;return}case ge.TABLE:{this.insertionMode=Ge.IN_TABLE;return}case ge.BODY:{this.insertionMode=Ge.IN_BODY;return}case ge.FRAMESET:{this.insertionMode=Ge.IN_FRAMESET;return}case ge.SELECT:{this._resetInsertionModeForSelect(U);return}case ge.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case ge.HTML:{this.insertionMode=this.headElement?Ge.AFTER_HEAD:Ge.BEFORE_HEAD;return}case ge.TD:case ge.TH:{if(U>0){this.insertionMode=Ge.IN_CELL;return}break}case ge.HEAD:{if(U>0){this.insertionMode=Ge.IN_HEAD;return}break}}this.insertionMode=Ge.IN_BODY}_resetInsertionModeForSelect(U){if(U>0)for(let Ce=U-1;Ce>0;Ce--){const et=this.openElements.tagIDs[Ce];if(et===ge.TEMPLATE)break;if(et===ge.TABLE){this.insertionMode=Ge.IN_SELECT_IN_TABLE;return}}this.insertionMode=Ge.IN_SELECT}_isElementCausesFosterParenting(U){return it.has(U)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let U=this.openElements.stackTop;U>=0;U--){const Ce=this.openElements.items[U];switch(this.openElements.tagIDs[U]){case ge.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(Ce)===ht.HTML)return{parent:this.treeAdapter.getTemplateContent(Ce),beforeElement:null};break}case ge.TABLE:{const et=this.treeAdapter.getParentNode(Ce);return et?{parent:et,beforeElement:Ce}:{parent:this.openElements.items[U-1],beforeElement:null}}default:}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(U){const Ce=this._findFosterParentingLocation();Ce.beforeElement?this.treeAdapter.insertBefore(Ce.parent,U,Ce.beforeElement):this.treeAdapter.appendChild(Ce.parent,U)}_isSpecialElement(U,Ce){const et=this.treeAdapter.getNamespaceURI(U);return On[et].has(Ce)}onCharacter(U){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){zc(this,U);return}switch(this.insertionMode){case Ge.INITIAL:{Ri(this,U);break}case Ge.BEFORE_HTML:{rr(this,U);break}case Ge.BEFORE_HEAD:{$r(this,U);break}case Ge.IN_HEAD:{pi(this,U);break}case Ge.IN_HEAD_NO_SCRIPT:{Ji(this,U);break}case Ge.AFTER_HEAD:{bo(this,U);break}case Ge.IN_BODY:case Ge.IN_CAPTION:case Ge.IN_CELL:case Ge.IN_TEMPLATE:{no(this,U);break}case Ge.TEXT:case Ge.IN_SELECT:case Ge.IN_SELECT_IN_TABLE:{this._insertCharacters(U);break}case Ge.IN_TABLE:case Ge.IN_TABLE_BODY:case Ge.IN_ROW:{kl(this,U);break}case Ge.IN_TABLE_TEXT:{vt(this,U);break}case Ge.IN_COLUMN_GROUP:{Rl(this,U);break}case Ge.AFTER_BODY:{Fi(this,U);break}case Ge.AFTER_AFTER_BODY:{xr(this,U);break}default:}}onNullCharacter(U){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Wi(this,U);return}switch(this.insertionMode){case Ge.INITIAL:{Ri(this,U);break}case Ge.BEFORE_HTML:{rr(this,U);break}case Ge.BEFORE_HEAD:{$r(this,U);break}case Ge.IN_HEAD:{pi(this,U);break}case Ge.IN_HEAD_NO_SCRIPT:{Ji(this,U);break}case Ge.AFTER_HEAD:{bo(this,U);break}case Ge.TEXT:{this._insertCharacters(U);break}case Ge.IN_TABLE:case Ge.IN_TABLE_BODY:case Ge.IN_ROW:{kl(this,U);break}case Ge.IN_COLUMN_GROUP:{Rl(this,U);break}case Ge.AFTER_BODY:{Fi(this,U);break}case Ge.AFTER_AFTER_BODY:{xr(this,U);break}default:}}onComment(U){if(this.skipNextNewLine=!1,this.currentNotInHTML){Br(this,U);return}switch(this.insertionMode){case Ge.INITIAL:case Ge.BEFORE_HTML:case Ge.BEFORE_HEAD:case Ge.IN_HEAD:case Ge.IN_HEAD_NO_SCRIPT:case Ge.AFTER_HEAD:case Ge.IN_BODY:case Ge.IN_TABLE:case Ge.IN_CAPTION:case Ge.IN_COLUMN_GROUP:case Ge.IN_TABLE_BODY:case Ge.IN_ROW:case Ge.IN_CELL:case Ge.IN_SELECT:case Ge.IN_SELECT_IN_TABLE:case Ge.IN_TEMPLATE:case Ge.IN_FRAMESET:case Ge.AFTER_FRAMESET:{Br(this,U);break}case Ge.IN_TABLE_TEXT:{un(this,U);break}case Ge.AFTER_BODY:{ei(this,U);break}case Ge.AFTER_AFTER_BODY:case Ge.AFTER_AFTER_FRAMESET:{ti(this,U);break}default:}}onDoctype(U){switch(this.skipNextNewLine=!1,this.insertionMode){case Ge.INITIAL:{Wr(this,U);break}case Ge.BEFORE_HEAD:case Ge.IN_HEAD:case Ge.IN_HEAD_NO_SCRIPT:case Ge.AFTER_HEAD:{this._err(U,Me.misplacedDoctype);break}case Ge.IN_TABLE_TEXT:{un(this,U);break}default:}}onStartTag(U){this.skipNextNewLine=!1,this.currentToken=U,this._processStartTag(U),U.selfClosing&&!U.ackSelfClosing&&this._err(U,Me.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(U){this.shouldProcessStartTagTokenInForeignContent(U)?Hu(this,U):this._startTagOutsideForeignContent(U)}_startTagOutsideForeignContent(U){switch(this.insertionMode){case Ge.INITIAL:{Ri(this,U);break}case Ge.BEFORE_HTML:{ri(this,U);break}case Ge.BEFORE_HEAD:{Ir(this,U);break}case Ge.IN_HEAD:{Yt(this,U);break}case Ge.IN_HEAD_NO_SCRIPT:{Pi(this,U);break}case Ge.AFTER_HEAD:{To(this,U);break}case Ge.IN_BODY:{Bo(this,U);break}case Ge.IN_TABLE:{dl(this,U);break}case Ge.IN_TABLE_TEXT:{un(this,U);break}case Ge.IN_CAPTION:{Sc(this,U);break}case Ge.IN_COLUMN_GROUP:{Ga(this,U);break}case Ge.IN_TABLE_BODY:{pl(this,U);break}case Ge.IN_ROW:{zr(this,U);break}case Ge.IN_CELL:{Sa(this,U);break}case Ge.IN_SELECT:{Ci(this,U);break}case Ge.IN_SELECT_IN_TABLE:{na(this,U);break}case Ge.IN_TEMPLATE:{ca(this,U);break}case Ge.AFTER_BODY:{Qi(this,U);break}case Ge.IN_FRAMESET:{xo(this,U);break}case Ge.AFTER_FRAMESET:{Go(this,U);break}case Ge.AFTER_AFTER_BODY:{au(this,U);break}case Ge.AFTER_AFTER_FRAMESET:{Hc(this,U);break}default:}}onEndTag(U){this.skipNextNewLine=!1,this.currentToken=U,this.currentNotInHTML?xc(this,U):this._endTagOutsideForeignContent(U)}_endTagOutsideForeignContent(U){switch(this.insertionMode){case Ge.INITIAL:{Ri(this,U);break}case Ge.BEFORE_HTML:{wr(this,U);break}case Ge.BEFORE_HEAD:{Nr(this,U);break}case Ge.IN_HEAD:{Sr(this,U);break}case Ge.IN_HEAD_NO_SCRIPT:{Ai(this,U);break}case Ge.AFTER_HEAD:{_o(this,U);break}case Ge.IN_BODY:{is(this,U);break}case Ge.TEXT:{yc(this,U);break}case Ge.IN_TABLE:{Wl(this,U);break}case Ge.IN_TABLE_TEXT:{un(this,U);break}case Ge.IN_CAPTION:{Nl(this,U);break}case Ge.IN_COLUMN_GROUP:{Vl(this,U);break}case Ge.IN_TABLE_BODY:{jo(this,U);break}case Ge.IN_ROW:{Ys(this,U);break}case Ge.IN_CELL:{Io(this,U);break}case Ge.IN_SELECT:{ds(this,U);break}case Ge.IN_SELECT_IN_TABLE:{Oo(this,U);break}case Ge.IN_TEMPLATE:{Ds(this,U);break}case Ge.AFTER_BODY:{Gs(this,U);break}case Ge.IN_FRAMESET:{Lo(this,U);break}case Ge.AFTER_FRAMESET:{ro(this,U);break}case Ge.AFTER_AFTER_BODY:{xr(this,U);break}default:}}onEof(U){switch(this.insertionMode){case Ge.INITIAL:{Ri(this,U);break}case Ge.BEFORE_HTML:{rr(this,U);break}case Ge.BEFORE_HEAD:{$r(this,U);break}case Ge.IN_HEAD:{pi(this,U);break}case Ge.IN_HEAD_NO_SCRIPT:{Ji(this,U);break}case Ge.AFTER_HEAD:{bo(this,U);break}case Ge.IN_BODY:case Ge.IN_TABLE:case Ge.IN_CAPTION:case Ge.IN_COLUMN_GROUP:case Ge.IN_TABLE_BODY:case Ge.IN_ROW:case Ge.IN_CELL:case Ge.IN_SELECT:case Ge.IN_SELECT_IN_TABLE:{Uc(this,U);break}case Ge.TEXT:{Bu(this,U);break}case Ge.IN_TABLE_TEXT:{un(this,U);break}case Ge.IN_TEMPLATE:{gl(this,U);break}case Ge.AFTER_BODY:case Ge.IN_FRAMESET:case Ge.AFTER_FRAMESET:case Ge.AFTER_AFTER_BODY:case Ge.AFTER_AFTER_FRAMESET:{Jr(this,U);break}default:}}onWhitespaceCharacter(U){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,U.chars.charCodeAt(0)===le.LINE_FEED)){if(U.chars.length===1)return;U.chars=U.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(U);return}switch(this.insertionMode){case Ge.IN_HEAD:case Ge.IN_HEAD_NO_SCRIPT:case Ge.AFTER_HEAD:case Ge.TEXT:case Ge.IN_COLUMN_GROUP:case Ge.IN_SELECT:case Ge.IN_SELECT_IN_TABLE:case Ge.IN_FRAMESET:case Ge.AFTER_FRAMESET:{this._insertCharacters(U);break}case Ge.IN_BODY:case Ge.IN_CAPTION:case Ge.IN_CELL:case Ge.IN_TEMPLATE:case Ge.AFTER_BODY:case Ge.AFTER_AFTER_BODY:case Ge.AFTER_AFTER_FRAMESET:{Nt(this,U);break}case Ge.IN_TABLE:case Ge.IN_TABLE_BODY:case Ge.IN_ROW:{kl(this,U);break}case Ge.IN_TABLE_TEXT:{nc(this,U);break}default:}}}function Dt(k,U){let Ce=k.activeFormattingElements.getElementEntryInScopeWithTagName(U.tagName);return Ce?k.openElements.contains(Ce.element)?k.openElements.hasInScope(U.tagID)||(Ce=null):(k.activeFormattingElements.removeEntry(Ce),Ce=null):tc(k,U),Ce}function gn(k,U){let Ce=null,et=k.openElements.stackTop;for(;et>=0;et--){const It=k.openElements.items[et];if(It===U.element)break;k._isSpecialElement(It,k.openElements.tagIDs[et])&&(Ce=It)}return Ce||(k.openElements.shortenToLength(et<0?0:et),k.activeFormattingElements.removeEntry(U)),Ce}function Mn(k,U,Ce){let et=U,It=k.openElements.getCommonAncestor(U);for(let Ut=0,pn=It;pn!==Ce;Ut++,pn=It){It=k.openElements.getCommonAncestor(pn);const wn=k.activeFormattingElements.getElementEntry(pn),fn=wn&&Ut>=ut;!wn||fn?(fn&&k.activeFormattingElements.removeEntry(wn),k.openElements.remove(pn)):(pn=In(k,wn),et===U&&(k.activeFormattingElements.bookmark=wn),k.treeAdapter.detachNode(et),k.treeAdapter.appendChild(pn,et),et=pn)}return et}function In(k,U){const Ce=k.treeAdapter.getNamespaceURI(U.element),et=k.treeAdapter.createElement(U.token.tagName,Ce,U.token.attrs);return k.openElements.replace(U.element,et),U.element=et,et}function nn(k,U,Ce){const et=k.treeAdapter.getTagName(U),It=mn(et);if(k._isElementCausesFosterParenting(It))k._fosterParentElement(Ce);else{const Ut=k.treeAdapter.getNamespaceURI(U);It===ge.TEMPLATE&&Ut===ht.HTML&&(U=k.treeAdapter.getTemplateContent(U)),k.treeAdapter.appendChild(U,Ce)}}function Ue(k,U,Ce){const et=k.treeAdapter.getNamespaceURI(Ce.element),{token:It}=Ce,Ut=k.treeAdapter.createElement(It.tagName,et,It.attrs);k._adoptNodes(U,Ut),k.treeAdapter.appendChild(U,Ut),k.activeFormattingElements.insertElementAfterBookmark(Ut,It),k.activeFormattingElements.removeEntry(Ce),k.openElements.remove(Ce.element),k.openElements.insertAfter(U,Ut,It.tagID)}function kr(k,U){for(let Ce=0;Ce<_i;Ce++){const et=Dt(k,U);if(!et)break;const It=gn(k,et);if(!It)break;k.activeFormattingElements.bookmark=et;const Ut=Mn(k,It,et.element),pn=k.openElements.getCommonAncestor(et.element);k.treeAdapter.detachNode(Ut),pn&&nn(k,pn,Ut),Ue(k,It,et)}}function Br(k,U){k._appendCommentNode(U,k.openElements.currentTmplContentOrNode)}function ei(k,U){k._appendCommentNode(U,k.openElements.items[0])}function ti(k,U){k._appendCommentNode(U,k.document)}function Jr(k,U){if(k.stopped=!0,U.location){const Ce=k.fragmentContext?0:2;for(let et=k.openElements.stackTop;et>=Ce;et--)k._setEndLocation(k.openElements.items[et],U);if(!k.fragmentContext&&k.openElements.stackTop>=0){const et=k.openElements.items[0],It=k.treeAdapter.getNodeSourceCodeLocation(et);if(It&&!It.endTag&&(k._setEndLocation(et,U),k.openElements.stackTop>=1)){const Ut=k.openElements.items[1],pn=k.treeAdapter.getNodeSourceCodeLocation(Ut);pn&&!pn.endTag&&k._setEndLocation(Ut,U)}}}}function Wr(k,U){k._setDocumentType(U);const Ce=U.forceQuirks?jt.QUIRKS:so(U);Di(U)||k._err(U,Me.nonConformingDoctype),k.treeAdapter.setDocumentMode(k.document,Ce),k.insertionMode=Ge.BEFORE_HTML}function Ri(k,U){k._err(U,Me.missingDoctype,!0),k.treeAdapter.setDocumentMode(k.document,jt.QUIRKS),k.insertionMode=Ge.BEFORE_HTML,k._processToken(U)}function ri(k,U){U.tagID===ge.HTML?(k._insertElement(U,ht.HTML),k.insertionMode=Ge.BEFORE_HEAD):rr(k,U)}function wr(k,U){const Ce=U.tagID;(Ce===ge.HTML||Ce===ge.HEAD||Ce===ge.BODY||Ce===ge.BR)&&rr(k,U)}function rr(k,U){k._insertFakeRootElement(),k.insertionMode=Ge.BEFORE_HEAD,k._processToken(U)}function Ir(k,U){switch(U.tagID){case ge.HTML:{Bo(k,U);break}case ge.HEAD:{k._insertElement(U,ht.HTML),k.headElement=k.openElements.current,k.insertionMode=Ge.IN_HEAD;break}default:$r(k,U)}}function Nr(k,U){const Ce=U.tagID;Ce===ge.HEAD||Ce===ge.BODY||Ce===ge.HTML||Ce===ge.BR?$r(k,U):k._err(U,Me.endTagWithoutMatchingOpenElement)}function $r(k,U){k._insertFakeElement(st.HEAD,ge.HEAD),k.headElement=k.openElements.current,k.insertionMode=Ge.IN_HEAD,k._processToken(U)}function Yt(k,U){switch(U.tagID){case ge.HTML:{Bo(k,U);break}case ge.BASE:case ge.BASEFONT:case ge.BGSOUND:case ge.LINK:case ge.META:{k._appendElement(U,ht.HTML),U.ackSelfClosing=!0;break}case ge.TITLE:{k._switchToTextParsing(U,gr.RCDATA);break}case ge.NOSCRIPT:{k.options.scriptingEnabled?k._switchToTextParsing(U,gr.RAWTEXT):(k._insertElement(U,ht.HTML),k.insertionMode=Ge.IN_HEAD_NO_SCRIPT);break}case ge.NOFRAMES:case ge.STYLE:{k._switchToTextParsing(U,gr.RAWTEXT);break}case ge.SCRIPT:{k._switchToTextParsing(U,gr.SCRIPT_DATA);break}case ge.TEMPLATE:{k._insertTemplate(U),k.activeFormattingElements.insertMarker(),k.framesetOk=!1,k.insertionMode=Ge.IN_TEMPLATE,k.tmplInsertionModeStack.unshift(Ge.IN_TEMPLATE);break}case ge.HEAD:{k._err(U,Me.misplacedStartTagForHeadElement);break}default:pi(k,U)}}function Sr(k,U){switch(U.tagID){case ge.HEAD:{k.openElements.pop(),k.insertionMode=Ge.AFTER_HEAD;break}case ge.BODY:case ge.BR:case ge.HTML:{pi(k,U);break}case ge.TEMPLATE:{fr(k,U);break}default:k._err(U,Me.endTagWithoutMatchingOpenElement)}}function fr(k,U){k.openElements.tmplCount>0?(k.openElements.generateImpliedEndTagsThoroughly(),k.openElements.currentTagId!==ge.TEMPLATE&&k._err(U,Me.closingOfElementWithOpenChildElements),k.openElements.popUntilTagNamePopped(ge.TEMPLATE),k.activeFormattingElements.clearToLastMarker(),k.tmplInsertionModeStack.shift(),k._resetInsertionMode()):k._err(U,Me.endTagWithoutMatchingOpenElement)}function pi(k,U){k.openElements.pop(),k.insertionMode=Ge.AFTER_HEAD,k._processToken(U)}function Pi(k,U){switch(U.tagID){case ge.HTML:{Bo(k,U);break}case ge.BASEFONT:case ge.BGSOUND:case ge.HEAD:case ge.LINK:case ge.META:case ge.NOFRAMES:case ge.STYLE:{Yt(k,U);break}case ge.NOSCRIPT:{k._err(U,Me.nestedNoscriptInHead);break}default:Ji(k,U)}}function Ai(k,U){switch(U.tagID){case ge.NOSCRIPT:{k.openElements.pop(),k.insertionMode=Ge.IN_HEAD;break}case ge.BR:{Ji(k,U);break}default:k._err(U,Me.endTagWithoutMatchingOpenElement)}}function Ji(k,U){const Ce=U.type===Oe.EOF?Me.openElementsLeftAfterEof:Me.disallowedContentInNoscriptInHead;k._err(U,Ce),k.openElements.pop(),k.insertionMode=Ge.IN_HEAD,k._processToken(U)}function To(k,U){switch(U.tagID){case ge.HTML:{Bo(k,U);break}case ge.BODY:{k._insertElement(U,ht.HTML),k.framesetOk=!1,k.insertionMode=Ge.IN_BODY;break}case ge.FRAMESET:{k._insertElement(U,ht.HTML),k.insertionMode=Ge.IN_FRAMESET;break}case ge.BASE:case ge.BASEFONT:case ge.BGSOUND:case ge.LINK:case ge.META:case ge.NOFRAMES:case ge.SCRIPT:case ge.STYLE:case ge.TEMPLATE:case ge.TITLE:{k._err(U,Me.abandonedHeadElementChild),k.openElements.push(k.headElement,ge.HEAD),Yt(k,U),k.openElements.remove(k.headElement);break}case ge.HEAD:{k._err(U,Me.misplacedStartTagForHeadElement);break}default:bo(k,U)}}function _o(k,U){switch(U.tagID){case ge.BODY:case ge.HTML:case ge.BR:{bo(k,U);break}case ge.TEMPLATE:{fr(k,U);break}default:k._err(U,Me.endTagWithoutMatchingOpenElement)}}function bo(k,U){k._insertFakeElement(st.BODY,ge.BODY),k.insertionMode=Ge.IN_BODY,Vo(k,U)}function Vo(k,U){switch(U.type){case Oe.CHARACTER:{no(k,U);break}case Oe.WHITESPACE_CHARACTER:{Nt(k,U);break}case Oe.COMMENT:{Br(k,U);break}case Oe.START_TAG:{Bo(k,U);break}case Oe.END_TAG:{is(k,U);break}case Oe.EOF:{Uc(k,U);break}default:}}function Nt(k,U){k._reconstructActiveFormattingElements(),k._insertCharacters(U)}function no(k,U){k._reconstructActiveFormattingElements(),k._insertCharacters(U),k.framesetOk=!1}function Fo(k,U){k.openElements.tmplCount===0&&k.treeAdapter.adoptAttributes(k.openElements.items[0],U.attrs)}function Xo(k,U){const Ce=k.openElements.tryPeekProperlyNestedBodyElement();Ce&&k.openElements.tmplCount===0&&(k.framesetOk=!1,k.treeAdapter.adoptAttributes(Ce,U.attrs))}function ho(k,U){const Ce=k.openElements.tryPeekProperlyNestedBodyElement();k.framesetOk&&Ce&&(k.treeAdapter.detachNode(Ce),k.openElements.popAllUpToHtmlElement(),k._insertElement(U,ht.HTML),k.insertionMode=Ge.IN_FRAMESET)}function Zo(k,U){k.openElements.hasInButtonScope(ge.P)&&k._closePElement(),k._insertElement(U,ht.HTML)}function ko(k,U){k.openElements.hasInButtonScope(ge.P)&&k._closePElement(),Vn(k.openElements.currentTagId)&&k.openElements.pop(),k._insertElement(U,ht.HTML)}function hs(k,U){k.openElements.hasInButtonScope(ge.P)&&k._closePElement(),k._insertElement(U,ht.HTML),k.skipNextNewLine=!0,k.framesetOk=!1}function fi(k,U){const Ce=k.openElements.tmplCount>0;(!k.formElement||Ce)&&(k.openElements.hasInButtonScope(ge.P)&&k._closePElement(),k._insertElement(U,ht.HTML),Ce||(k.formElement=k.openElements.current))}function $i(k,U){k.framesetOk=!1;const Ce=U.tagID;for(let et=k.openElements.stackTop;et>=0;et--){const It=k.openElements.tagIDs[et];if(Ce===ge.LI&&It===ge.LI||(Ce===ge.DD||Ce===ge.DT)&&(It===ge.DD||It===ge.DT)){k.openElements.generateImpliedEndTagsWithExclusion(It),k.openElements.popUntilTagNamePopped(It);break}if(It!==ge.ADDRESS&&It!==ge.DIV&&It!==ge.P&&k._isSpecialElement(k.openElements.items[et],It))break}k.openElements.hasInButtonScope(ge.P)&&k._closePElement(),k._insertElement(U,ht.HTML)}function Rr(k,U){k.openElements.hasInButtonScope(ge.P)&&k._closePElement(),k._insertElement(U,ht.HTML),k.tokenizer.state=gr.PLAINTEXT}function Yr(k,U){k.openElements.hasInScope(ge.BUTTON)&&(k.openElements.generateImpliedEndTags(),k.openElements.popUntilTagNamePopped(ge.BUTTON)),k._reconstructActiveFormattingElements(),k._insertElement(U,ht.HTML),k.framesetOk=!1}function ui(k,U){const Ce=k.activeFormattingElements.getElementEntryInScopeWithTagName(st.A);Ce&&(kr(k,U),k.openElements.remove(Ce.element),k.activeFormattingElements.removeEntry(Ce)),k._reconstructActiveFormattingElements(),k._insertElement(U,ht.HTML),k.activeFormattingElements.pushElement(k.openElements.current,U)}function ji(k,U){k._reconstructActiveFormattingElements(),k._insertElement(U,ht.HTML),k.activeFormattingElements.pushElement(k.openElements.current,U)}function Wn(k,U){k._reconstructActiveFormattingElements(),k.openElements.hasInScope(ge.NOBR)&&(kr(k,U),k._reconstructActiveFormattingElements()),k._insertElement(U,ht.HTML),k.activeFormattingElements.pushElement(k.openElements.current,U)}function mo(k,U){k._reconstructActiveFormattingElements(),k._insertElement(U,ht.HTML),k.activeFormattingElements.insertMarker(),k.framesetOk=!1}function ao(k,U){k.treeAdapter.getDocumentMode(k.document)!==jt.QUIRKS&&k.openElements.hasInButtonScope(ge.P)&&k._closePElement(),k._insertElement(U,ht.HTML),k.framesetOk=!1,k.insertionMode=Ge.IN_TABLE}function fo(k,U){k._reconstructActiveFormattingElements(),k._appendElement(U,ht.HTML),k.framesetOk=!1,U.ackSelfClosing=!0}function ns(k){const U=pe(k,wt.TYPE);return U!=null&&U.toLowerCase()===tn}function fs(k,U){k._reconstructActiveFormattingElements(),k._appendElement(U,ht.HTML),ns(U)||(k.framesetOk=!1),U.ackSelfClosing=!0}function Nn(k,U){k._appendElement(U,ht.HTML),U.ackSelfClosing=!0}function So(k,U){k.openElements.hasInButtonScope(ge.P)&&k._closePElement(),k._appendElement(U,ht.HTML),k.framesetOk=!1,U.ackSelfClosing=!0}function No(k,U){U.tagName=st.IMG,U.tagID=ge.IMG,fo(k,U)}function Es(k,U){k._insertElement(U,ht.HTML),k.skipNextNewLine=!0,k.tokenizer.state=gr.RCDATA,k.originalInsertionMode=k.insertionMode,k.framesetOk=!1,k.insertionMode=Ge.TEXT}function go(k,U){k.openElements.hasInButtonScope(ge.P)&&k._closePElement(),k._reconstructActiveFormattingElements(),k.framesetOk=!1,k._switchToTextParsing(U,gr.RAWTEXT)}function bs(k,U){k.framesetOk=!1,k._switchToTextParsing(U,gr.RAWTEXT)}function jr(k,U){k._switchToTextParsing(U,gr.RAWTEXT)}function Zs(k,U){k._reconstructActiveFormattingElements(),k._insertElement(U,ht.HTML),k.framesetOk=!1,k.insertionMode=k.insertionMode===Ge.IN_TABLE||k.insertionMode===Ge.IN_CAPTION||k.insertionMode===Ge.IN_TABLE_BODY||k.insertionMode===Ge.IN_ROW||k.insertionMode===Ge.IN_CELL?Ge.IN_SELECT_IN_TABLE:Ge.IN_SELECT}function Jo(k,U){k.openElements.currentTagId===ge.OPTION&&k.openElements.pop(),k._reconstructActiveFormattingElements(),k._insertElement(U,ht.HTML)}function Qo(k,U){k.openElements.hasInScope(ge.RUBY)&&k.openElements.generateImpliedEndTags(),k._insertElement(U,ht.HTML)}function ks(k,U){k.openElements.hasInScope(ge.RUBY)&&k.openElements.generateImpliedEndTagsWithExclusion(ge.RTC),k._insertElement(U,ht.HTML)}function Ma(k,U){k._reconstructActiveFormattingElements(),yo(U),Yi(U),U.selfClosing?k._appendElement(U,ht.MATHML):k._insertElement(U,ht.MATHML),U.ackSelfClosing=!0}function tl(k,U){k._reconstructActiveFormattingElements(),Bs(U),Yi(U),U.selfClosing?k._appendElement(U,ht.SVG):k._insertElement(U,ht.SVG),U.ackSelfClosing=!0}function rs(k,U){k._reconstructActiveFormattingElements(),k._insertElement(U,ht.HTML)}function Bo(k,U){switch(U.tagID){case ge.I:case ge.S:case ge.B:case ge.U:case ge.EM:case ge.TT:case ge.BIG:case ge.CODE:case ge.FONT:case ge.SMALL:case ge.STRIKE:case ge.STRONG:{ji(k,U);break}case ge.A:{ui(k,U);break}case ge.H1:case ge.H2:case ge.H3:case ge.H4:case ge.H5:case ge.H6:{ko(k,U);break}case ge.P:case ge.DL:case ge.OL:case ge.UL:case ge.DIV:case ge.DIR:case ge.NAV:case ge.MAIN:case ge.MENU:case ge.ASIDE:case ge.CENTER:case ge.FIGURE:case ge.FOOTER:case ge.HEADER:case ge.HGROUP:case ge.DIALOG:case ge.DETAILS:case ge.ADDRESS:case ge.ARTICLE:case ge.SECTION:case ge.SUMMARY:case ge.FIELDSET:case ge.BLOCKQUOTE:case ge.FIGCAPTION:{Zo(k,U);break}case ge.LI:case ge.DD:case ge.DT:{$i(k,U);break}case ge.BR:case ge.IMG:case ge.WBR:case ge.AREA:case ge.EMBED:case ge.KEYGEN:{fo(k,U);break}case ge.HR:{So(k,U);break}case ge.RB:case ge.RTC:{Qo(k,U);break}case ge.RT:case ge.RP:{ks(k,U);break}case ge.PRE:case ge.LISTING:{hs(k,U);break}case ge.XMP:{go(k,U);break}case ge.SVG:{tl(k,U);break}case ge.HTML:{Fo(k,U);break}case ge.BASE:case ge.LINK:case ge.META:case ge.STYLE:case ge.TITLE:case ge.SCRIPT:case ge.BGSOUND:case ge.BASEFONT:case ge.TEMPLATE:{Yt(k,U);break}case ge.BODY:{Xo(k,U);break}case ge.FORM:{fi(k,U);break}case ge.NOBR:{Wn(k,U);break}case ge.MATH:{Ma(k,U);break}case ge.TABLE:{ao(k,U);break}case ge.INPUT:{fs(k,U);break}case ge.PARAM:case ge.TRACK:case ge.SOURCE:{Nn(k,U);break}case ge.IMAGE:{No(k,U);break}case ge.BUTTON:{Yr(k,U);break}case ge.APPLET:case ge.OBJECT:case ge.MARQUEE:{mo(k,U);break}case ge.IFRAME:{bs(k,U);break}case ge.SELECT:{Zs(k,U);break}case ge.OPTION:case ge.OPTGROUP:{Jo(k,U);break}case ge.NOEMBED:{jr(k,U);break}case ge.FRAMESET:{ho(k,U);break}case ge.TEXTAREA:{Es(k,U);break}case ge.NOSCRIPT:{k.options.scriptingEnabled?jr(k,U):rs(k,U);break}case ge.PLAINTEXT:{Rr(k,U);break}case ge.COL:case ge.TH:case ge.TD:case ge.TR:case ge.HEAD:case ge.FRAME:case ge.TBODY:case ge.TFOOT:case ge.THEAD:case ge.CAPTION:case ge.COLGROUP:break;default:rs(k,U)}}function ou(k,U){if(k.openElements.hasInScope(ge.BODY)&&(k.insertionMode=Ge.AFTER_BODY,k.options.sourceCodeLocationInfo)){const Ce=k.openElements.tryPeekProperlyNestedBodyElement();Ce&&k._setEndLocation(Ce,U)}}function Eu(k,U){k.openElements.hasInScope(ge.BODY)&&(k.insertionMode=Ge.AFTER_BODY,Gs(k,U))}function su(k,U){const Ce=U.tagID;k.openElements.hasInScope(Ce)&&(k.openElements.generateImpliedEndTags(),k.openElements.popUntilTagNamePopped(Ce))}function Al(k){const U=k.openElements.tmplCount>0,{formElement:Ce}=k;U||(k.formElement=null),(Ce||U)&&k.openElements.hasInScope(ge.FORM)&&(k.openElements.generateImpliedEndTags(),U?k.openElements.popUntilTagNamePopped(ge.FORM):Ce&&k.openElements.remove(Ce))}function Js(k){k.openElements.hasInButtonScope(ge.P)||k._insertFakeElement(st.P,ge.P),k._closePElement()}function Ns(k){k.openElements.hasInListItemScope(ge.LI)&&(k.openElements.generateImpliedEndTagsWithExclusion(ge.LI),k.openElements.popUntilTagNamePopped(ge.LI))}function Da(k,U){const Ce=U.tagID;k.openElements.hasInScope(Ce)&&(k.openElements.generateImpliedEndTagsWithExclusion(Ce),k.openElements.popUntilTagNamePopped(Ce))}function nl(k){k.openElements.hasNumberedHeaderInScope()&&(k.openElements.generateImpliedEndTags(),k.openElements.popUntilNumberedHeaderPopped())}function Pu(k,U){const Ce=U.tagID;k.openElements.hasInScope(Ce)&&(k.openElements.generateImpliedEndTags(),k.openElements.popUntilTagNamePopped(Ce),k.activeFormattingElements.clearToLastMarker())}function Fu(k){k._reconstructActiveFormattingElements(),k._insertFakeElement(st.BR,ge.BR),k.openElements.pop(),k.framesetOk=!1}function tc(k,U){const Ce=U.tagName,et=U.tagID;for(let It=k.openElements.stackTop;It>0;It--){const Ut=k.openElements.items[It],pn=k.openElements.tagIDs[It];if(et===pn&&(et!==ge.UNKNOWN||k.treeAdapter.getTagName(Ut)===Ce)){k.openElements.generateImpliedEndTagsWithExclusion(et),k.openElements.stackTop>=It&&k.openElements.shortenToLength(It);break}if(k._isSpecialElement(Ut,pn))break}}function is(k,U){switch(U.tagID){case ge.A:case ge.B:case ge.I:case ge.S:case ge.U:case ge.EM:case ge.TT:case ge.BIG:case ge.CODE:case ge.FONT:case ge.NOBR:case ge.SMALL:case ge.STRIKE:case ge.STRONG:{kr(k,U);break}case ge.P:{Js(k);break}case ge.DL:case ge.UL:case ge.OL:case ge.DIR:case ge.DIV:case ge.NAV:case ge.PRE:case ge.MAIN:case ge.MENU:case ge.ASIDE:case ge.BUTTON:case ge.CENTER:case ge.FIGURE:case ge.FOOTER:case ge.HEADER:case ge.HGROUP:case ge.DIALOG:case ge.ADDRESS:case ge.ARTICLE:case ge.DETAILS:case ge.SECTION:case ge.SUMMARY:case ge.LISTING:case ge.FIELDSET:case ge.BLOCKQUOTE:case ge.FIGCAPTION:{su(k,U);break}case ge.LI:{Ns(k);break}case ge.DD:case ge.DT:{Da(k,U);break}case ge.H1:case ge.H2:case ge.H3:case ge.H4:case ge.H5:case ge.H6:{nl(k);break}case ge.BR:{Fu(k);break}case ge.BODY:{ou(k,U);break}case ge.HTML:{Eu(k,U);break}case ge.FORM:{Al(k);break}case ge.APPLET:case ge.OBJECT:case ge.MARQUEE:{Pu(k,U);break}case ge.TEMPLATE:{fr(k,U);break}default:tc(k,U)}}function Uc(k,U){k.tmplInsertionModeStack.length>0?gl(k,U):Jr(k,U)}function yc(k,U){var Ce;U.tagID===ge.SCRIPT&&((Ce=k.scriptHandler)===null||Ce===void 0||Ce.call(k,k.openElements.current)),k.openElements.pop(),k.insertionMode=k.originalInsertionMode}function Bu(k,U){k._err(U,Me.eofInElementThatCanContainOnlyText),k.openElements.pop(),k.insertionMode=k.originalInsertionMode,k.onEof(U)}function kl(k,U){if(it.has(k.openElements.currentTagId))switch(k.pendingCharacterTokens.length=0,k.hasNonWhitespacePendingCharacterToken=!1,k.originalInsertionMode=k.insertionMode,k.insertionMode=Ge.IN_TABLE_TEXT,U.type){case Oe.CHARACTER:{vt(k,U);break}case Oe.WHITESPACE_CHARACTER:{nc(k,U);break}}else dr(k,U)}function Vs(k,U){k.openElements.clearBackToTableContext(),k.activeFormattingElements.insertMarker(),k._insertElement(U,ht.HTML),k.insertionMode=Ge.IN_CAPTION}function Ks(k,U){k.openElements.clearBackToTableContext(),k._insertElement(U,ht.HTML),k.insertionMode=Ge.IN_COLUMN_GROUP}function ws(k,U){k.openElements.clearBackToTableContext(),k._insertFakeElement(st.COLGROUP,ge.COLGROUP),k.insertionMode=Ge.IN_COLUMN_GROUP,Ga(k,U)}function js(k,U){k.openElements.clearBackToTableContext(),k._insertElement(U,ht.HTML),k.insertionMode=Ge.IN_TABLE_BODY}function ju(k,U){k.openElements.clearBackToTableContext(),k._insertFakeElement(st.TBODY,ge.TBODY),k.insertionMode=Ge.IN_TABLE_BODY,pl(k,U)}function ba(k,U){k.openElements.hasInTableScope(ge.TABLE)&&(k.openElements.popUntilTagNamePopped(ge.TABLE),k._resetInsertionMode(),k._processStartTag(U))}function os(k,U){ns(U)?k._appendElement(U,ht.HTML):dr(k,U),U.ackSelfClosing=!0}function Uu(k,U){!k.formElement&&k.openElements.tmplCount===0&&(k._insertElement(U,ht.HTML),k.formElement=k.openElements.current,k.openElements.pop())}function dl(k,U){switch(U.tagID){case ge.TD:case ge.TH:case ge.TR:{ju(k,U);break}case ge.STYLE:case ge.SCRIPT:case ge.TEMPLATE:{Yt(k,U);break}case ge.COL:{ws(k,U);break}case ge.FORM:{Uu(k,U);break}case ge.TABLE:{ba(k,U);break}case ge.TBODY:case ge.TFOOT:case ge.THEAD:{js(k,U);break}case ge.INPUT:{os(k,U);break}case ge.CAPTION:{Vs(k,U);break}case ge.COLGROUP:{Ks(k,U);break}default:dr(k,U)}}function Wl(k,U){switch(U.tagID){case ge.TABLE:{k.openElements.hasInTableScope(ge.TABLE)&&(k.openElements.popUntilTagNamePopped(ge.TABLE),k._resetInsertionMode());break}case ge.TEMPLATE:{fr(k,U);break}case ge.BODY:case ge.CAPTION:case ge.COL:case ge.COLGROUP:case ge.HTML:case ge.TBODY:case ge.TD:case ge.TFOOT:case ge.TH:case ge.THEAD:case ge.TR:break;default:dr(k,U)}}function dr(k,U){const Ce=k.fosterParentingEnabled;k.fosterParentingEnabled=!0,Vo(k,U),k.fosterParentingEnabled=Ce}function nc(k,U){k.pendingCharacterTokens.push(U)}function vt(k,U){k.pendingCharacterTokens.push(U),k.hasNonWhitespacePendingCharacterToken=!0}function un(k,U){let Ce=0;if(k.hasNonWhitespacePendingCharacterToken)for(;Ce<k.pendingCharacterTokens.length;Ce++)dr(k,k.pendingCharacterTokens[Ce]);else for(;Ce<k.pendingCharacterTokens.length;Ce++)k._insertCharacters(k.pendingCharacterTokens[Ce]);k.insertionMode=k.originalInsertionMode,k._processToken(U)}const bc=new Set([ge.CAPTION,ge.COL,ge.COLGROUP,ge.TBODY,ge.TD,ge.TFOOT,ge.TH,ge.THEAD,ge.TR]);function Sc(k,U){const Ce=U.tagID;bc.has(Ce)?k.openElements.hasInTableScope(ge.CAPTION)&&(k.openElements.generateImpliedEndTags(),k.openElements.popUntilTagNamePopped(ge.CAPTION),k.activeFormattingElements.clearToLastMarker(),k.insertionMode=Ge.IN_TABLE,dl(k,U)):Bo(k,U)}function Nl(k,U){const Ce=U.tagID;switch(Ce){case ge.CAPTION:case ge.TABLE:{k.openElements.hasInTableScope(ge.CAPTION)&&(k.openElements.generateImpliedEndTags(),k.openElements.popUntilTagNamePopped(ge.CAPTION),k.activeFormattingElements.clearToLastMarker(),k.insertionMode=Ge.IN_TABLE,Ce===ge.TABLE&&Wl(k,U));break}case ge.BODY:case ge.COL:case ge.COLGROUP:case ge.HTML:case ge.TBODY:case ge.TD:case ge.TFOOT:case ge.TH:case ge.THEAD:case ge.TR:break;default:is(k,U)}}function Ga(k,U){switch(U.tagID){case ge.HTML:{Bo(k,U);break}case ge.COL:{k._appendElement(U,ht.HTML),U.ackSelfClosing=!0;break}case ge.TEMPLATE:{Yt(k,U);break}default:Rl(k,U)}}function Vl(k,U){switch(U.tagID){case ge.COLGROUP:{k.openElements.currentTagId===ge.COLGROUP&&(k.openElements.pop(),k.insertionMode=Ge.IN_TABLE);break}case ge.TEMPLATE:{fr(k,U);break}case ge.COL:break;default:Rl(k,U)}}function Rl(k,U){k.openElements.currentTagId===ge.COLGROUP&&(k.openElements.pop(),k.insertionMode=Ge.IN_TABLE,k._processToken(U))}function pl(k,U){switch(U.tagID){case ge.TR:{k.openElements.clearBackToTableBodyContext(),k._insertElement(U,ht.HTML),k.insertionMode=Ge.IN_ROW;break}case ge.TH:case ge.TD:{k.openElements.clearBackToTableBodyContext(),k._insertFakeElement(st.TR,ge.TR),k.insertionMode=Ge.IN_ROW,zr(k,U);break}case ge.CAPTION:case ge.COL:case ge.COLGROUP:case ge.TBODY:case ge.TFOOT:case ge.THEAD:{k.openElements.hasTableBodyContextInTableScope()&&(k.openElements.clearBackToTableBodyContext(),k.openElements.pop(),k.insertionMode=Ge.IN_TABLE,dl(k,U));break}default:dl(k,U)}}function jo(k,U){const Ce=U.tagID;switch(U.tagID){case ge.TBODY:case ge.TFOOT:case ge.THEAD:{k.openElements.hasInTableScope(Ce)&&(k.openElements.clearBackToTableBodyContext(),k.openElements.pop(),k.insertionMode=Ge.IN_TABLE);break}case ge.TABLE:{k.openElements.hasTableBodyContextInTableScope()&&(k.openElements.clearBackToTableBodyContext(),k.openElements.pop(),k.insertionMode=Ge.IN_TABLE,Wl(k,U));break}case ge.BODY:case ge.CAPTION:case ge.COL:case ge.COLGROUP:case ge.HTML:case ge.TD:case ge.TH:case ge.TR:break;default:Wl(k,U)}}function zr(k,U){switch(U.tagID){case ge.TH:case ge.TD:{k.openElements.clearBackToTableRowContext(),k._insertElement(U,ht.HTML),k.insertionMode=Ge.IN_CELL,k.activeFormattingElements.insertMarker();break}case ge.CAPTION:case ge.COL:case ge.COLGROUP:case ge.TBODY:case ge.TFOOT:case ge.THEAD:case ge.TR:{k.openElements.hasInTableScope(ge.TR)&&(k.openElements.clearBackToTableRowContext(),k.openElements.pop(),k.insertionMode=Ge.IN_TABLE_BODY,pl(k,U));break}default:dl(k,U)}}function Ys(k,U){switch(U.tagID){case ge.TR:{k.openElements.hasInTableScope(ge.TR)&&(k.openElements.clearBackToTableRowContext(),k.openElements.pop(),k.insertionMode=Ge.IN_TABLE_BODY);break}case ge.TABLE:{k.openElements.hasInTableScope(ge.TR)&&(k.openElements.clearBackToTableRowContext(),k.openElements.pop(),k.insertionMode=Ge.IN_TABLE_BODY,jo(k,U));break}case ge.TBODY:case ge.TFOOT:case ge.THEAD:{(k.openElements.hasInTableScope(U.tagID)||k.openElements.hasInTableScope(ge.TR))&&(k.openElements.clearBackToTableRowContext(),k.openElements.pop(),k.insertionMode=Ge.IN_TABLE_BODY,jo(k,U));break}case ge.BODY:case ge.CAPTION:case ge.COL:case ge.COLGROUP:case ge.HTML:case ge.TD:case ge.TH:break;default:Wl(k,U)}}function Sa(k,U){const Ce=U.tagID;bc.has(Ce)?(k.openElements.hasInTableScope(ge.TD)||k.openElements.hasInTableScope(ge.TH))&&(k._closeTableCell(),zr(k,U)):Bo(k,U)}function Io(k,U){const Ce=U.tagID;switch(Ce){case ge.TD:case ge.TH:{k.openElements.hasInTableScope(Ce)&&(k.openElements.generateImpliedEndTags(),k.openElements.popUntilTagNamePopped(Ce),k.activeFormattingElements.clearToLastMarker(),k.insertionMode=Ge.IN_ROW);break}case ge.TABLE:case ge.TBODY:case ge.TFOOT:case ge.THEAD:case ge.TR:{k.openElements.hasInTableScope(Ce)&&(k._closeTableCell(),Ys(k,U));break}case ge.BODY:case ge.CAPTION:case ge.COL:case ge.COLGROUP:case ge.HTML:break;default:is(k,U)}}function Ci(k,U){switch(U.tagID){case ge.HTML:{Bo(k,U);break}case ge.OPTION:{k.openElements.currentTagId===ge.OPTION&&k.openElements.pop(),k._insertElement(U,ht.HTML);break}case ge.OPTGROUP:{k.openElements.currentTagId===ge.OPTION&&k.openElements.pop(),k.openElements.currentTagId===ge.OPTGROUP&&k.openElements.pop(),k._insertElement(U,ht.HTML);break}case ge.INPUT:case ge.KEYGEN:case ge.TEXTAREA:case ge.SELECT:{k.openElements.hasInSelectScope(ge.SELECT)&&(k.openElements.popUntilTagNamePopped(ge.SELECT),k._resetInsertionMode(),U.tagID!==ge.SELECT&&k._processStartTag(U));break}case ge.SCRIPT:case ge.TEMPLATE:{Yt(k,U);break}default:}}function ds(k,U){switch(U.tagID){case ge.OPTGROUP:{k.openElements.stackTop>0&&k.openElements.currentTagId===ge.OPTION&&k.openElements.tagIDs[k.openElements.stackTop-1]===ge.OPTGROUP&&k.openElements.pop(),k.openElements.currentTagId===ge.OPTGROUP&&k.openElements.pop();break}case ge.OPTION:{k.openElements.currentTagId===ge.OPTION&&k.openElements.pop();break}case ge.SELECT:{k.openElements.hasInSelectScope(ge.SELECT)&&(k.openElements.popUntilTagNamePopped(ge.SELECT),k._resetInsertionMode());break}case ge.TEMPLATE:{fr(k,U);break}default:}}function na(k,U){const Ce=U.tagID;Ce===ge.CAPTION||Ce===ge.TABLE||Ce===ge.TBODY||Ce===ge.TFOOT||Ce===ge.THEAD||Ce===ge.TR||Ce===ge.TD||Ce===ge.TH?(k.openElements.popUntilTagNamePopped(ge.SELECT),k._resetInsertionMode(),k._processStartTag(U)):Ci(k,U)}function Oo(k,U){const Ce=U.tagID;Ce===ge.CAPTION||Ce===ge.TABLE||Ce===ge.TBODY||Ce===ge.TFOOT||Ce===ge.THEAD||Ce===ge.TR||Ce===ge.TD||Ce===ge.TH?k.openElements.hasInTableScope(Ce)&&(k.openElements.popUntilTagNamePopped(ge.SELECT),k._resetInsertionMode(),k.onEndTag(U)):ds(k,U)}function ca(k,U){switch(U.tagID){case ge.BASE:case ge.BASEFONT:case ge.BGSOUND:case ge.LINK:case ge.META:case ge.NOFRAMES:case ge.SCRIPT:case ge.STYLE:case ge.TEMPLATE:case ge.TITLE:{Yt(k,U);break}case ge.CAPTION:case ge.COLGROUP:case ge.TBODY:case ge.TFOOT:case ge.THEAD:{k.tmplInsertionModeStack[0]=Ge.IN_TABLE,k.insertionMode=Ge.IN_TABLE,dl(k,U);break}case ge.COL:{k.tmplInsertionModeStack[0]=Ge.IN_COLUMN_GROUP,k.insertionMode=Ge.IN_COLUMN_GROUP,Ga(k,U);break}case ge.TR:{k.tmplInsertionModeStack[0]=Ge.IN_TABLE_BODY,k.insertionMode=Ge.IN_TABLE_BODY,pl(k,U);break}case ge.TD:case ge.TH:{k.tmplInsertionModeStack[0]=Ge.IN_ROW,k.insertionMode=Ge.IN_ROW,zr(k,U);break}default:k.tmplInsertionModeStack[0]=Ge.IN_BODY,k.insertionMode=Ge.IN_BODY,Bo(k,U)}}function Ds(k,U){U.tagID===ge.TEMPLATE&&fr(k,U)}function gl(k,U){k.openElements.tmplCount>0?(k.openElements.popUntilTagNamePopped(ge.TEMPLATE),k.activeFormattingElements.clearToLastMarker(),k.tmplInsertionModeStack.shift(),k._resetInsertionMode(),k.onEof(U)):Jr(k,U)}function Qi(k,U){U.tagID===ge.HTML?Bo(k,U):Fi(k,U)}function Gs(k,U){var Ce;if(U.tagID===ge.HTML){if(k.fragmentContext||(k.insertionMode=Ge.AFTER_AFTER_BODY),k.options.sourceCodeLocationInfo&&k.openElements.tagIDs[0]===ge.HTML){k._setEndLocation(k.openElements.items[0],U);const et=k.openElements.items[1];et&&!(!((Ce=k.treeAdapter.getNodeSourceCodeLocation(et))===null||Ce===void 0)&&Ce.endTag)&&k._setEndLocation(et,U)}}else Fi(k,U)}function Fi(k,U){k.insertionMode=Ge.IN_BODY,Vo(k,U)}function xo(k,U){switch(U.tagID){case ge.HTML:{Bo(k,U);break}case ge.FRAMESET:{k._insertElement(U,ht.HTML);break}case ge.FRAME:{k._appendElement(U,ht.HTML),U.ackSelfClosing=!0;break}case ge.NOFRAMES:{Yt(k,U);break}default:}}function Lo(k,U){U.tagID===ge.FRAMESET&&!k.openElements.isRootHtmlElementCurrent()&&(k.openElements.pop(),!k.fragmentContext&&k.openElements.currentTagId!==ge.FRAMESET&&(k.insertionMode=Ge.AFTER_FRAMESET))}function Go(k,U){switch(U.tagID){case ge.HTML:{Bo(k,U);break}case ge.NOFRAMES:{Yt(k,U);break}default:}}function ro(k,U){U.tagID===ge.HTML&&(k.insertionMode=Ge.AFTER_AFTER_FRAMESET)}function au(k,U){U.tagID===ge.HTML?Bo(k,U):xr(k,U)}function xr(k,U){k.insertionMode=Ge.IN_BODY,Vo(k,U)}function Hc(k,U){switch(U.tagID){case ge.HTML:{Bo(k,U);break}case ge.NOFRAMES:{Yt(k,U);break}default:}}function Wi(k,U){U.chars=se,k._insertCharacters(U)}function zc(k,U){k._insertCharacters(U),k.framesetOk=!1}function lu(k){for(;k.treeAdapter.getNamespaceURI(k.openElements.current)!==ht.HTML&&!k._isIntegrationPoint(k.openElements.currentTagId,k.openElements.current);)k.openElements.pop()}function Hu(k,U){if(cs(U))lu(k),k._startTagOutsideForeignContent(U);else{const Ce=k._getAdjustedCurrentElement(),et=k.treeAdapter.getNamespaceURI(Ce);et===ht.MATHML?yo(U):et===ht.SVG&&(eo(U),Bs(U)),Yi(U),U.selfClosing?k._appendElement(U,et):k._insertElement(U,et),U.ackSelfClosing=!0}}function xc(k,U){if(U.tagID===ge.P||U.tagID===ge.BR){lu(k),k._endTagOutsideForeignContent(U);return}for(let Ce=k.openElements.stackTop;Ce>0;Ce--){const et=k.openElements.items[Ce];if(k.treeAdapter.getNamespaceURI(et)===ht.HTML){k._endTagOutsideForeignContent(U);break}const It=k.treeAdapter.getTagName(et);if(It.toLowerCase()===U.tagName){U.tagName=It,k.openElements.shortenToLength(Ce);break}}}const Il=/["&'<>$\x80-\uFFFF]/g,ml=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),Kl=String.prototype.codePointAt!=null?(k,U)=>k.codePointAt(U):(k,U)=>(k.charCodeAt(U)&64512)===55296?(k.charCodeAt(U)-55296)*1024+k.charCodeAt(U+1)-56320+65536:k.charCodeAt(U);function io(k){let U="",Ce=0,et;for(;(et=Il.exec(k))!==null;){const It=et.index,Ut=k.charCodeAt(It),pn=ml.get(Ut);pn!==void 0?(U+=k.substring(Ce,It)+pn,Ce=It+1):(U+=`${k.substring(Ce,It)}&#x${Kl(k,It).toString(16)};`,Ce=Il.lastIndex+=+((Ut&64512)===55296))}return U+k.substr(Ce)}const Yl=null;function Ke(k,U){return function(et){let It,Ut=0,pn="";for(;It=k.exec(et);)Ut!==It.index&&(pn+=et.substring(Ut,It.index)),pn+=U.get(It[0].charCodeAt(0)),Ut=It.index+1;return pn+et.substring(Ut)}}const at=Ke(/[&<>'"]/g,ml),pt=Ke(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),mt=Ke(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]])),kt=new Set([st.AREA,st.BASE,st.BASEFONT,st.BGSOUND,st.BR,st.COL,st.EMBED,st.FRAME,st.HR,st.IMG,st.INPUT,st.KEYGEN,st.LINK,st.META,st.PARAM,st.SOURCE,st.TRACK,st.WBR]);function Pt(k,U){return U.treeAdapter.isElementNode(k)&&U.treeAdapter.getNamespaceURI(k)===NS.HTML&&kt.has(U.treeAdapter.getTagName(k))}const Ht={treeAdapter:hr,scriptingEnabled:!0};function Qt(k,U){const Ce=ls(ls({},Ht),U);return Pt(k,Ce)?"":dn(k,Ce)}function xn(k,U){const Ce=ls(ls({},Ht),U);return Ln(k,Ce)}function dn(k,U){let Ce="";const et=U.treeAdapter.isElementNode(k)&&U.treeAdapter.getTagName(k)===$.TEMPLATE&&U.treeAdapter.getNamespaceURI(k)===NS.HTML?U.treeAdapter.getTemplateContent(k):k,It=U.treeAdapter.getChildNodes(et);if(It)for(const Ut of It)Ce+=Ln(Ut,U);return Ce}function Ln(k,U){return U.treeAdapter.isElementNode(k)?yn(k,U):U.treeAdapter.isTextNode(k)?Cn(k,U):U.treeAdapter.isCommentNode(k)?jn(k,U):U.treeAdapter.isDocumentTypeNode(k)?qn(k,U):""}function yn(k,U){const Ce=U.treeAdapter.getTagName(k);return`<${Ce}${An(k,U)}>${Pt(k,U)?"":`${dn(k,U)}</${Ce}>`}`}function An(k,{treeAdapter:U}){let Ce="";for(const et of U.getAttrList(k)){if(Ce+=" ",!et.namespace)Ce+=et.name;else switch(et.namespace){case NS.XML:{Ce+=`xml:${et.name}`;break}case NS.XMLNS:{et.name!=="xmlns"&&(Ce+="xmlns:"),Ce+=et.name;break}case NS.XLINK:{Ce+=`xlink:${et.name}`;break}default:Ce+=`${et.prefix}:${et.name}`}Ce+=`="${escapeAttribute(et.value)}"`}return Ce}function Cn(k,U){const{treeAdapter:Ce}=U,et=Ce.getTextNodeContent(k),It=Ce.getParentNode(k),Ut=It&&Ce.isElementNode(It)&&Ce.getTagName(It);return Ut&&Ce.getNamespaceURI(It)===NS.HTML&&hasUnescapedText(Ut,U.scriptingEnabled)?et:escapeText(et)}function jn(k,{treeAdapter:U}){return`<!--${U.getCommentNodeContent(k)}-->`}function qn(k,{treeAdapter:U}){return`<!DOCTYPE ${U.getDocumentTypeNodeName(k)}>`}function mr(k,U){return Parser.parse(k,U)}function Or(k,U,Ce){typeof k=="string"&&(Ce=U,U=k,k=null);const et=Parser.getFragmentParser(k,Ce);return et.tokenizer.write(U,!0),et.getFragment()}var Hn=b(3980),ur=b(21623);const Qn=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,_r=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Xr={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Cr(k,U){const Ce=Rt(k),et=M("type",{handlers:{root:ni,element:Bi,text:te,comment:Pe,doctype:Ee,raw:Ye},unknown:Qe}),It={parser:Ce?new Et(Xr):Et.getFragmentParser(void 0,Xr),handle(wn){et(wn,It)},stitches:!1,options:U||{}};et(k,It),nt(It,(0,Hn.Pk)());const Ut=Ce?It.parser.document:It.parser.getFragment(),pn=v(Ut,{file:It.options.file});return It.stitches&&(0,ur.Vn)(pn,"comment",function(wn,fn,Tr){const Li=wn;if(Li.value.stitch&&Tr&&fn!==void 0){const ci=Tr.children;return ci[fn]=Li.value.stitch,fn}}),pn.type==="root"&&pn.children.length===1&&pn.children[0].type===k.type?pn.children[0]:pn}function wi(k,U){let Ce=-1;if(k)for(;++Ce<k.length;)U.handle(k[Ce])}function ni(k,U){wi(k.children,U)}function Bi(k,U){Ft(k,U),wi(k.children,U),Bt(k,U)}function te(k,U){U.parser.tokenizer.state>4&&(U.parser.tokenizer.state=0);const Ce={type:Oe.CHARACTER,chars:k.value,location:Zt(k)};nt(U,(0,Hn.Pk)(k)),U.parser.currentToken=Ce,U.parser._processToken(U.parser.currentToken)}function Ee(k,U){const Ce={type:Oe.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Zt(k)};nt(U,(0,Hn.Pk)(k)),U.parser.currentToken=Ce,U.parser._processToken(U.parser.currentToken)}function Ae(k,U){U.stitches=!0;const Ce=Jt(k);if("children"in k&&"children"in Ce){const et=Cr({type:"root",children:k.children},U.options);Ce.children=et.children}Pe({type:"comment",value:{stitch:Ce}},U)}function Pe(k,U){const Ce=k.value,et={type:Oe.COMMENT,data:Ce,location:Zt(k)};nt(U,(0,Hn.Pk)(k)),U.parser.currentToken=et,U.parser._processToken(U.parser.currentToken)}function Ye(k,U){if(U.parser.tokenizer.preprocessor.html="",U.parser.tokenizer.preprocessor.pos=-1,U.parser.tokenizer.preprocessor.lastGapPos=-2,U.parser.tokenizer.preprocessor.gapStack=[],U.parser.tokenizer.preprocessor.skipNextNewLine=!1,U.parser.tokenizer.preprocessor.lastChunkWritten=!1,U.parser.tokenizer.preprocessor.endOfChunkHit=!1,U.parser.tokenizer.preprocessor.isEol=!1,bt(U,(0,Hn.Pk)(k)),U.parser.tokenizer.write(U.options.tagfilter?k.value.replace(Qn,"&lt;$1$2"):k.value,!1),U.parser.tokenizer._runParsingLoop(),U.parser.tokenizer.state===72||U.parser.tokenizer.state===78){U.parser.tokenizer.preprocessor.lastChunkWritten=!0;const Ce=U.parser.tokenizer._consume();U.parser.tokenizer._callState(Ce)}}function Qe(k,U){const Ce=k;if(U.options.passThrough&&U.options.passThrough.includes(Ce.type))Ae(Ce,U);else{let et="";throw _r.has(Ce.type)&&(et=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+Ce.type+"` node"+et)}}function nt(k,U){bt(k,U);const Ce=k.parser.tokenizer.currentCharacterToken;Ce&&Ce.location&&(Ce.location.endLine=k.parser.tokenizer.preprocessor.line,Ce.location.endCol=k.parser.tokenizer.preprocessor.col+1,Ce.location.endOffset=k.parser.tokenizer.preprocessor.offset+1,k.parser.currentToken=Ce,k.parser._processToken(k.parser.currentToken)),k.parser.tokenizer.paused=!1,k.parser.tokenizer.inLoop=!1,k.parser.tokenizer.active=!1,k.parser.tokenizer.returnState=gr.DATA,k.parser.tokenizer.charRefCode=-1,k.parser.tokenizer.consumedAfterSnapshot=-1,k.parser.tokenizer.currentLocation=null,k.parser.tokenizer.currentCharacterToken=null,k.parser.tokenizer.currentToken=null,k.parser.tokenizer.currentAttr={name:"",value:""}}function bt(k,U){if(U&&U.offset!==void 0){const Ce={startLine:U.line,startCol:U.column,startOffset:U.offset,endLine:-1,endCol:-1,endOffset:-1};k.parser.tokenizer.preprocessor.lineStartPos=-U.column+1,k.parser.tokenizer.preprocessor.droppedBufferSize=U.offset,k.parser.tokenizer.preprocessor.line=U.line,k.parser.tokenizer.currentLocation=Ce}}function Ft(k,U){const Ce=k.tagName.toLowerCase();if(U.parser.tokenizer.state===gr.PLAINTEXT)return;nt(U,(0,Hn.Pk)(k));const et=U.parser.openElements.current;let It="namespaceURI"in et?et.namespaceURI:g.t.html;It===g.t.html&&Ce==="svg"&&(It=g.t.svg);const Ut=V(Vh(ls({},k),{children:[]}),{space:It===g.t.svg?"svg":"html"}),pn={type:Oe.START_TAG,tagName:Ce,tagID:mn(Ce),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in Ut?Ut.attrs:[],location:Zt(k)};U.parser.currentToken=pn,U.parser._processToken(U.parser.currentToken),U.parser.tokenizer.lastStartTagName=Ce}function Bt(k,U){const Ce=k.tagName.toLowerCase();if(!U.parser.tokenizer.inForeignNode&&Le.includes(Ce)||U.parser.tokenizer.state===gr.PLAINTEXT)return;nt(U,(0,Hn.rb)(k));const et={type:Oe.END_TAG,tagName:Ce,tagID:mn(Ce),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Zt(k)};U.parser.currentToken=et,U.parser._processToken(U.parser.currentToken),Ce===U.parser.tokenizer.lastStartTagName&&(U.parser.tokenizer.state===gr.RCDATA||U.parser.tokenizer.state===gr.RAWTEXT||U.parser.tokenizer.state===gr.SCRIPT_DATA)&&(U.parser.tokenizer.state=gr.DATA)}function Rt(k){const U=k.type==="root"?k.children[0]:k;return!!(U&&(U.type==="doctype"||U.type==="element"&&U.tagName.toLowerCase()==="html"))}function Zt(k){const U=(0,Hn.Pk)(k)||{line:void 0,column:void 0,offset:void 0},Ce=(0,Hn.rb)(k)||{line:void 0,column:void 0,offset:void 0};return{startLine:U.line,startCol:U.column,startOffset:U.offset,endLine:Ce.line,endCol:Ce.column,endOffset:Ce.offset}}function Jt(k){return"children"in k?(0,B.ZP)(Vh(ls({},k),{children:[]})):(0,B.ZP)(k)}function zt(k){return function(U,Ce){return Cr(U,Vh(ls({},k),{file:Ce}))}}},67127:function(Ie,Z,b){"use strict";b.d(Z,{Z:function(){return S}});function B(v){if(typeof v!="string")throw new TypeError("Expected a string");return v.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Y=b(88718),s=b(96093);function E(v,c,h){const m=h||{},x=(0,s.O)(m.ignore||[]),T=I(c);let _=-1;for(;++_<T.length;)(0,Y.S4)(v,"text",R);function R(N,L){let M=-1,F;for(;++M<L.length;){const H=L[M],P=F?F.children:void 0;if(x(H,P?P.indexOf(H):void 0,F))return;F=H}if(F)return A(N,L)}function A(N,L){const M=L[L.length-1],F=T[_][0],H=T[_][1];let P=0;const G=M.children.indexOf(N);let Q=!1,ne=[];F.lastIndex=0;let ue=F.exec(N.value);for(;ue;){const ae=ue.index,he={index:ue.index,input:ue.input,stack:[...L,N]};let ce=H(...ue,he);if(typeof ce=="string"&&(ce=ce.length>0?{type:"text",value:ce}:void 0),ce===!1?F.lastIndex=ae+1:(P!==ae&&ne.push({type:"text",value:N.value.slice(P,ae)}),Array.isArray(ce)?ne.push(...ce):ce&&ne.push(ce),P=ae+ue[0].length,Q=!0),!F.global)break;ue=F.exec(N.value)}return Q?(P<N.value.length&&ne.push({type:"text",value:N.value.slice(P)}),M.children.splice(G,1,...ne)):ne=[N],G+ne.length}}function I(v){const c=[];if(!Array.isArray(v))throw new TypeError("Expected find and replace tuple or list of tuples");const h=!v[0]||Array.isArray(v[0])?v:[v];let m=-1;for(;++m<h.length;){const x=h[m];c.push([u(x[0]),d(x[1])])}return c}function u(v){return typeof v=="string"?new RegExp(B(v),"g"):v}function d(v){return typeof v=="function"?v:function(){return v}}function g(v){E(v,[/\r?\n|\r/g,y])}function y(){return{type:"break"}}function S(){return function(v){g(v)}}},41807:function(Ie,Z,b){"use strict";b.d(Z,{Z:function(){return T}});var B=b(24345);function Y(_,R){const A=String(_);let N=A.indexOf(R),L=N,M=0,F=0;if(typeof R!="string")throw new TypeError("Expected substring");for(;N!==-1;)N===L?++M>F&&(F=M):M=1,L=N+R.length,N=A.indexOf(R,L);return F}function s(){return{enter:{mathFlow:_,mathFlowFenceMeta:R,mathText:M},exit:{mathFlow:L,mathFlowFence:N,mathFlowFenceMeta:A,mathFlowValue:H,mathText:F,mathTextData:H}};function _(P){const V={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[V]}},P)}function R(){this.buffer()}function A(){const P=this.resume(),V=this.stack[this.stack.length-1];(0,B.ok)(V.type==="math"),V.meta=P}function N(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function L(P){const V=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),G=this.stack[this.stack.length-1];(0,B.ok)(G.type==="math"),this.exit(P),G.value=V;const Q=G.data.hChildren[0];(0,B.ok)(Q.type==="element"),(0,B.ok)(Q.tagName==="code"),Q.children.push({type:"text",value:V}),this.data.mathFlowInside=void 0}function M(P){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},P),this.buffer()}function F(P){const V=this.resume(),G=this.stack[this.stack.length-1];(0,B.ok)(G.type==="inlineMath"),this.exit(P),G.value=V,G.data.hChildren.push({type:"text",value:V})}function H(P){this.config.enter.data.call(this,P),this.config.exit.data.call(this,P)}}function E(_){let R=(_||{}).singleDollarTextMath;return R==null&&(R=!0),N.peek=L,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
`,inConstruct:"mathFlowMeta"},{character:"$",after:R?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:A,inlineMath:N}};function A(M,F,H,P){const V=M.value||"",G=H.createTracker(P),Q="$".repeat(Math.max(Y(V,"$")+1,2)),ne=H.enter("mathFlow");let ue=G.move(Q);if(M.meta){const ae=H.enter("mathFlowMeta");ue+=G.move(H.safe(M.meta,ls({after:`
`,before:ue,encode:["$"]},G.current()))),ae()}return ue+=G.move(`
`),V&&(ue+=G.move(V+`
`)),ue+=G.move(Q),ne(),ue}function N(M,F,H){let P=M.value||"",V=1;for(R||V++;new RegExp("(^|[^$])"+"\\$".repeat(V)+"([^$]|$)").test(P);)V++;const G="$".repeat(V);/[^ \r\n]/.test(P)&&(/^[ \r\n]/.test(P)&&/[ \r\n]$/.test(P)||/^\$|\$$/.test(P))&&(P=" "+P+" ");let Q=-1;for(;++Q<H.unsafe.length;){const ne=H.unsafe[Q];if(!ne.atBreak)continue;const ue=H.compilePattern(ne);let ae;for(;ae=ue.exec(P);){let he=ae.index;P.codePointAt(he)===10&&P.codePointAt(he-1)===13&&he--,P=P.slice(0,he)+" "+P.slice(ae.index+1)}}return G+P+G}function L(){return"$"}}var I=b(42761),u=b(15459);const d={tokenize:y,concrete:!0,name:"mathFlow"},g={tokenize:S,partial:!0};function y(_,R,A){const N=this,L=N.events[N.events.length-1],M=L&&L[1].type==="linePrefix"?L[2].sliceSerialize(L[1],!0).length:0;let F=0;return H;function H(me){return _.enter("mathFlow"),_.enter("mathFlowFence"),_.enter("mathFlowFenceSequence"),P(me)}function P(me){return me===36?(_.consume(me),F++,P):F<2?A(me):(_.exit("mathFlowFenceSequence"),(0,I.f)(_,V,"whitespace")(me))}function V(me){return me===null||(0,u.Ch)(me)?Q(me):(_.enter("mathFlowFenceMeta"),_.enter("chunkString",{contentType:"string"}),G(me))}function G(me){return me===null||(0,u.Ch)(me)?(_.exit("chunkString"),_.exit("mathFlowFenceMeta"),Q(me)):me===36?A(me):(_.consume(me),G)}function Q(me){return _.exit("mathFlowFence"),N.interrupt?R(me):_.attempt(g,ne,ce)(me)}function ne(me){return _.attempt({tokenize:we,partial:!0},ce,ue)(me)}function ue(me){return(M?(0,I.f)(_,ae,"linePrefix",M+1):ae)(me)}function ae(me){return me===null?ce(me):(0,u.Ch)(me)?_.attempt(g,ne,ce)(me):(_.enter("mathFlowValue"),he(me))}function he(me){return me===null||(0,u.Ch)(me)?(_.exit("mathFlowValue"),ae(me)):(_.consume(me),he)}function ce(me){return _.exit("mathFlow"),R(me)}function we(me,Le,ee){let se=0;return(0,I.f)(me,le,"linePrefix",N.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function le(Be){return me.enter("mathFlowFence"),me.enter("mathFlowFenceSequence"),ke(Be)}function ke(Be){return Be===36?(se++,me.consume(Be),ke):se<F?ee(Be):(me.exit("mathFlowFenceSequence"),(0,I.f)(me,De,"whitespace")(Be))}function De(Be){return Be===null||(0,u.Ch)(Be)?(me.exit("mathFlowFence"),Le(Be)):ee(Be)}}}function S(_,R,A){const N=this;return L;function L(F){return F===null?R(F):(_.enter("lineEnding"),_.consume(F),_.exit("lineEnding"),M)}function M(F){return N.parser.lazy[N.now().line]?A(F):R(F)}}function v(_){let A=(_||{}).singleDollarTextMath;return A==null&&(A=!0),{tokenize:N,resolve:c,previous:h,name:"mathText"};function N(L,M,F){const H=this;let P=0,V,G;return Q;function Q(ce){return L.enter("mathText"),L.enter("mathTextSequence"),ne(ce)}function ne(ce){return ce===36?(L.consume(ce),P++,ne):P<2&&!A?F(ce):(L.exit("mathTextSequence"),ue(ce))}function ue(ce){return ce===null?F(ce):ce===36?(G=L.enter("mathTextSequence"),V=0,he(ce)):ce===32?(L.enter("space"),L.consume(ce),L.exit("space"),ue):(0,u.Ch)(ce)?(L.enter("lineEnding"),L.consume(ce),L.exit("lineEnding"),ue):(L.enter("mathTextData"),ae(ce))}function ae(ce){return ce===null||ce===32||ce===36||(0,u.Ch)(ce)?(L.exit("mathTextData"),ue(ce)):(L.consume(ce),ae)}function he(ce){return ce===36?(L.consume(ce),V++,he):V===P?(L.exit("mathTextSequence"),L.exit("mathText"),M(ce)):(G.type="mathTextData",ae(ce))}}}function c(_){let R=_.length-4,A=3,N,L;if((_[A][1].type==="lineEnding"||_[A][1].type==="space")&&(_[R][1].type==="lineEnding"||_[R][1].type==="space")){for(N=A;++N<R;)if(_[N][1].type==="mathTextData"){_[R][1].type="mathTextPadding",_[A][1].type="mathTextPadding",A+=2,R-=2;break}}for(N=A-1,R++;++N<=R;)L===void 0?N!==R&&_[N][1].type!=="lineEnding"&&(L=N):(N===R||_[N][1].type==="lineEnding")&&(_[L][1].type="mathTextData",N!==L+2&&(_[L][1].end=_[N-1][1].end,_.splice(L+2,N-L-2),R-=N-L-2,N=L+2),L=void 0);return _}function h(_){return _!==36||this.events[this.events.length-1][1].type==="characterEscape"}function m(_){return{flow:{36:d},text:{36:v(_)}}}const x={};function T(_){const R=this,A=_||x,N=R.data(),L=N.micromarkExtensions||(N.micromarkExtensions=[]),M=N.fromMarkdownExtensions||(N.fromMarkdownExtensions=[]),F=N.toMarkdownExtensions||(N.toMarkdownExtensions=[]);L.push(m(A)),M.push(s()),F.push(E(A))}},17423:function(Ie,Z,b){"use strict";b.d(Z,{Z:function(){return g}});const B=y=>typeof y=="object"&&y!=null&&y.nodeType===1,Y=(y,S)=>(!S||y!=="hidden")&&y!=="visible"&&y!=="clip",s=(y,S)=>{if(y.clientHeight<y.scrollHeight||y.clientWidth<y.scrollWidth){const v=getComputedStyle(y,null);return Y(v.overflowY,S)||Y(v.overflowX,S)||(c=>{const h=(m=>{if(!m.ownerDocument||!m.ownerDocument.defaultView)return null;try{return m.ownerDocument.defaultView.frameElement}catch(x){return null}})(c);return!!h&&(h.clientHeight<c.scrollHeight||h.clientWidth<c.scrollWidth)})(y)}return!1},E=(y,S,v,c,h,m,x,T)=>m<y&&x>S||m>y&&x<S?0:m<=y&&T<=v||x>=S&&T>=v?m-y-c:x>S&&T<v||m<y&&T>v?x-S+h:0,I=y=>{const S=y.parentElement;return S==null?y.getRootNode().host||null:S},u=(y,S)=>{var v,c,h,m;if(typeof document=="undefined")return[];const{scrollMode:x,block:T,inline:_,boundary:R,skipOverflowHiddenElements:A}=S,N=typeof R=="function"?R:De=>De!==R;if(!B(y))throw new TypeError("Invalid target");const L=document.scrollingElement||document.documentElement,M=[];let F=y;for(;B(F)&&N(F);){if(F=I(F),F===L){M.push(F);break}F!=null&&F===document.body&&s(F)&&!s(document.documentElement)||F!=null&&s(F,A)&&M.push(F)}const H=(c=(v=window.visualViewport)==null?void 0:v.width)!=null?c:innerWidth,P=(m=(h=window.visualViewport)==null?void 0:h.height)!=null?m:innerHeight,{scrollX:V,scrollY:G}=window,{height:Q,width:ne,top:ue,right:ae,bottom:he,left:ce}=y.getBoundingClientRect(),{top:we,right:me,bottom:Le,left:ee}=(De=>{const Be=window.getComputedStyle(De);return{top:parseFloat(Be.scrollMarginTop)||0,right:parseFloat(Be.scrollMarginRight)||0,bottom:parseFloat(Be.scrollMarginBottom)||0,left:parseFloat(Be.scrollMarginLeft)||0}})(y);let se=T==="start"||T==="nearest"?ue-we:T==="end"?he+Le:ue+Q/2-we+Le,le=_==="center"?ce+ne/2-ee+me:_==="end"?ae+me:ce-ee;const ke=[];for(let De=0;De<M.length;De++){const Be=M[De],{height:He,width:Fe,top:Je,right:Me,bottom:lt,left:Re}=Be.getBoundingClientRect();if(x==="if-needed"&&ue>=0&&ce>=0&&he<=P&&ae<=H&&ue>=Je&&he<=lt&&ce>=Re&&ae<=Me)return ke;const Oe=getComputedStyle(Be),pe=parseInt(Oe.borderLeftWidth,10),fe=parseInt(Oe.borderTopWidth,10),z=parseInt(Oe.borderRightWidth,10),J=parseInt(Oe.borderBottomWidth,10);let be=0,_e=0;const oe="offsetWidth"in Be?Be.offsetWidth-Be.clientWidth-pe-z:0,ie="offsetHeight"in Be?Be.offsetHeight-Be.clientHeight-fe-J:0,ve="offsetWidth"in Be?Be.offsetWidth===0?0:Fe/Be.offsetWidth:0,Ne="offsetHeight"in Be?Be.offsetHeight===0?0:He/Be.offsetHeight:0;if(L===Be)be=T==="start"?se:T==="end"?se-P:T==="nearest"?E(G,G+P,P,fe,J,G+se,G+se+Q,Q):se-P/2,_e=_==="start"?le:_==="center"?le-H/2:_==="end"?le-H:E(V,V+H,H,pe,z,V+le,V+le+ne,ne),be=Math.max(0,be+G),_e=Math.max(0,_e+V);else{be=T==="start"?se-Je-fe:T==="end"?se-lt+J+ie:T==="nearest"?E(Je,lt,He,fe,J+ie,se,se+Q,Q):se-(Je+He/2)+ie/2,_e=_==="start"?le-Re-pe:_==="center"?le-(Re+Fe/2)+oe/2:_==="end"?le-Me+z+oe:E(Re,Me,Fe,pe,z+oe,le,le+ne,ne);const{scrollLeft:ze,scrollTop:Ve}=Be;be=Ne===0?0:Math.max(0,Math.min(Ve+be/Ne,Be.scrollHeight-He/Ne+ie)),_e=ve===0?0:Math.max(0,Math.min(ze+_e/ve,Be.scrollWidth-Fe/ve+oe)),se+=Ve-be,le+=ze-_e}ke.push({el:Be,top:be,left:_e})}return ke},d=y=>y===!1?{block:"end",inline:"nearest"}:(S=>S===Object(S)&&Object.keys(S).length!==0)(y)?y:{block:"start",inline:"nearest"};function g(y,S){if(!y.isConnected||!(h=>{let m=h;for(;m&&m.parentNode;){if(m.parentNode===document)return!0;m=m.parentNode instanceof ShadowRoot?m.parentNode.host:m.parentNode}return!1})(y))return;const v=(h=>{const m=window.getComputedStyle(h);return{top:parseFloat(m.scrollMarginTop)||0,right:parseFloat(m.scrollMarginRight)||0,bottom:parseFloat(m.scrollMarginBottom)||0,left:parseFloat(m.scrollMarginLeft)||0}})(y);if((h=>typeof h=="object"&&typeof h.behavior=="function")(S))return S.behavior(u(y,S));const c=typeof S=="boolean"||S==null?void 0:S.behavior;for(const{el:h,top:m,left:x}of u(y,d(S))){const T=m-v.top+v.bottom,_=x-v.left+v.right;h.scroll({top:T,left:_,behavior:c})}}},50342:function(Ie,Z,b){"use strict";b.d(Z,{P:function(){return Y},Q:function(){return B}});function B(s){const E=String(s||"").trim();return E?E.split(/[ \t\n\r\f]+/g):[]}function Y(s){return s.join(" ").trim()}},96093:function(Ie,Z,b){"use strict";b.d(Z,{O:function(){return Y}});const B=function(y,S,v,c,h){const m=Y(S);if(v!=null&&(typeof v!="number"||v<0||v===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(c!=null&&(!B(c)||!c.children))throw new Error("Expected parent node");if(c==null!=(v==null))throw new Error("Expected both parent and index");return g(y)?m.call(h,y,v,c):!1},Y=function(y){if(y==null)return d;if(typeof y=="function")return u(y);if(typeof y=="object")return Array.isArray(y)?s(y):E(y);if(typeof y=="string")return I(y);throw new Error("Expected function, string, or object as test")};function s(y){const S=[];let v=-1;for(;++v<y.length;)S[v]=Y(y[v]);return u(c);function c(...h){let m=-1;for(;++m<S.length;)if(S[m].apply(this,h))return!0;return!1}}function E(y){const S=y;return u(v);function v(c){const h=c;let m;for(m in y)if(h[m]!==S[m])return!1;return!0}}function I(y){return u(S);function S(v){return v&&v.type===y}}function u(y){return S;function S(v,c,h){return!!(g(v)&&y.call(this,v,typeof c=="number"?c:void 0,h||void 0))}}function d(){return!0}function g(y){return y!==null&&typeof y=="object"&&"type"in y}},3980:function(Ie,Z,b){"use strict";b.d(Z,{FK:function(){return E},Pk:function(){return Y},rb:function(){return B}});const B=s("end"),Y=s("start");function s(I){return u;function u(d){const g=d&&d.position&&d.position[I]||{};if(typeof g.line=="number"&&g.line>0&&typeof g.column=="number"&&g.column>0)return{line:g.line,column:g.column,offset:typeof g.offset=="number"&&g.offset>-1?g.offset:void 0}}}function E(I){const u=Y(I),d=B(I);if(u&&d)return{start:u,end:d}}},88718:function(Ie,Z,b){"use strict";b.d(Z,{AM:function(){return u},S4:function(){return d}});var B=b(96093);function Y(y){return y}const s=[],E=!0,I=!1,u="skip";function d(y,S,v,c){let h;typeof S=="function"&&typeof v!="function"?(c=v,v=S):h=S;const m=(0,B.O)(h),x=c?-1:1;T(y,void 0,[])();function T(_,R,A){const N=_&&typeof _=="object"?_:{};if(typeof N.type=="string"){const M=typeof N.tagName=="string"?N.tagName:typeof N.name=="string"?N.name:void 0;Object.defineProperty(L,"name",{value:"node ("+(_.type+(M?"<"+M+">":""))+")"})}return L;function L(){let M=s,F,H,P;if((!S||m(_,R,A[A.length-1]||void 0))&&(M=g(v(_,A)),M[0]===I))return M;if("children"in _&&_.children){const V=_;if(V.children&&M[0]!==u)for(H=(c?V.children.length:-1)+x,P=A.concat(V);H>-1&&H<V.children.length;){const G=V.children[H];if(F=T(G,H,P)(),F[0]===I)return F;H=typeof F[1]=="number"?F[1]:H+x}}return M}}}function g(y){return Array.isArray(y)?y:typeof y=="number"?[E,y]:y==null?s:[y]}},21623:function(Ie,Z,b){"use strict";b.d(Z,{Vn:function(){return Y}});var B=b(88718);function Y(s,E,I,u){let d,g,y;typeof E=="function"&&typeof I!="function"?(g=void 0,y=E,d=I):(g=E,y=I,d=u),(0,B.S4)(s,g,S,d);function S(v,c){const h=c[c.length-1],m=h?h.children.indexOf(v):void 0;return y(v,m,h)}}},49911:function(Ie,Z,b){"use strict";b.d(Z,{t:function(){return B}});const B={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},93580:function(Ie){"use strict";Ie.exports=JSON.parse('{"0":"\uFFFD","128":"\u20AC","130":"\u201A","131":"\u0192","132":"\u201E","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02C6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017D","145":"\u2018","146":"\u2019","147":"\u201C","148":"\u201D","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02DC","153":"\u2122","154":"\u0161","155":"\u203A","156":"\u0153","158":"\u017E","159":"\u0178"}')},21922:function(Ie){"use strict";Ie.exports=JSON.parse('{"AElig":"\xC6","AMP":"&","Aacute":"\xC1","Acirc":"\xC2","Agrave":"\xC0","Aring":"\xC5","Atilde":"\xC3","Auml":"\xC4","COPY":"\xA9","Ccedil":"\xC7","ETH":"\xD0","Eacute":"\xC9","Ecirc":"\xCA","Egrave":"\xC8","Euml":"\xCB","GT":">","Iacute":"\xCD","Icirc":"\xCE","Igrave":"\xCC","Iuml":"\xCF","LT":"<","Ntilde":"\xD1","Oacute":"\xD3","Ocirc":"\xD4","Ograve":"\xD2","Oslash":"\xD8","Otilde":"\xD5","Ouml":"\xD6","QUOT":"\\"","REG":"\xAE","THORN":"\xDE","Uacute":"\xDA","Ucirc":"\xDB","Ugrave":"\xD9","Uuml":"\xDC","Yacute":"\xDD","aacute":"\xE1","acirc":"\xE2","acute":"\xB4","aelig":"\xE6","agrave":"\xE0","amp":"&","aring":"\xE5","atilde":"\xE3","auml":"\xE4","brvbar":"\xA6","ccedil":"\xE7","cedil":"\xB8","cent":"\xA2","copy":"\xA9","curren":"\xA4","deg":"\xB0","divide":"\xF7","eacute":"\xE9","ecirc":"\xEA","egrave":"\xE8","eth":"\xF0","euml":"\xEB","frac12":"\xBD","frac14":"\xBC","frac34":"\xBE","gt":">","iacute":"\xED","icirc":"\xEE","iexcl":"\xA1","igrave":"\xEC","iquest":"\xBF","iuml":"\xEF","laquo":"\xAB","lt":"<","macr":"\xAF","micro":"\xB5","middot":"\xB7","nbsp":"\xA0","not":"\xAC","ntilde":"\xF1","oacute":"\xF3","ocirc":"\xF4","ograve":"\xF2","ordf":"\xAA","ordm":"\xBA","oslash":"\xF8","otilde":"\xF5","ouml":"\xF6","para":"\xB6","plusmn":"\xB1","pound":"\xA3","quot":"\\"","raquo":"\xBB","reg":"\xAE","sect":"\xA7","shy":"\xAD","sup1":"\xB9","sup2":"\xB2","sup3":"\xB3","szlig":"\xDF","thorn":"\xFE","times":"\xD7","uacute":"\xFA","ucirc":"\xFB","ugrave":"\xF9","uml":"\xA8","uuml":"\xFC","yacute":"\xFD","yen":"\xA5","yuml":"\xFF"}')}}]);
}());